/* mobile.css */
@media (max-width: 768px) {


  /* Navigation mobile menu */
  .navbar {
    position: fixed;
    height: 70px;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    flex-direction: column;
    background: white;
    padding: 1rem;
    width: 100%;
    display: none;
  }

  .navbar.active .nav-links {
    display: flex;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
  }

  .mobile-menu {
    display: block;
  }

  /* Hero section adjustments */
  .hero {
    height: 50vh;
    padding-top: 140px;
    position: relative; /* Ensure .hero is a positioned parent */
  }

  .hero-content h1 {
    font-size: 2.2rem;
    margin-top: 30px;
  }

  /* Services grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    margin-bottom: 1.5rem;
  }

  /* Contact section */
  .intake-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    order: -1;
    margin-bottom: 2rem;
  }

  /* Form adjustments */
  .form-container {
    height: 500px;
  }

  .clio-form-iframe {
    height: 100%;
  }

  /* Appointment grid */
  .appointment-grid {
    grid-template-columns: 1fr;
  }

  /* Chatbot sizing */
  .chatbot-container {
    width: 90vw;
    right: 5vw;
    bottom: 70px;
  }

  /* Footer adjustments */
  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }

  /* Testimonials */
  .feedback-grid {
    grid-template-columns: 1fr;
  }

  /* Case intake form */
  .case-inquiry {
    padding: 2rem 1rem;
  }

  /* Utility adjustments */
  .gold-divider {
    width: 90px;
  }

  .logo-header {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 9999;
    transform: none;
    /* Keep your existing background, shadow, etc. */
  }

  .nav-links a.active {
    background: rgba(212, 175, 55, 0.12);
    border-radius: 8px;
    color: var(--gold-accent) !important;
  }
}

@media (max-width: 480px) {
  .logo-header {
    top: 8px;
    right: 8px;
    transform: scale(0.6);
  }

  .logo {
    width: 50px;
    height: 50px;
  }

  .logo-name {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
  }

  .logo-tagline {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .learn-more-btn {
    width: 100%;
    text-align: center;
  }

  .chatbot-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 892.8px) {
  .nav-links {
    display: none !important;
  }
  .mobile-menu {
    display: block !important;
  }
}

@media (min-width: 892.81px) {
  .nav-links {
    display: flex !important;
  }
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .nav-links {
    display: none !important;
  }
  .navbar.active .nav-links {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1001;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  }
  .mobile-menu {
    display: block !important;
  }
}

@media (min-width: 1100.01px) {
  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    box-shadow: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 400px) {
  /* Navbar & Logo */
  .navbar {
    height: 48px !important;
    padding: 0 4px !important;
  }
  .nav-container {
    height: 48px !important;
    padding: 0 2px !important;
  }
  .logo-header {
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .logo-container {
    gap: 4px !important;
    padding: 2px 4px !important;
  }
  .logo {
    width: 32px !important;
    height: 32px !important;
  }
  .logo-name {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px !important;
    text-shadow: 0 1px 2px rgba(255,255,255,0.7), 0 1px 2px rgba(44,62,80,0.10);
  }
  .logo-tagline {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1px !important;
    display: none !important;
  }
  .mobile-menu {
    font-size: 1.2rem !important;
    padding: 0.2rem 0.3rem !important;
  }
  .nav-links {
    top: 48px !important;
    padding: 0.5rem !important;
    gap: 0.3rem !important;
  }
  .nav-links a {
    font-size: 0.95rem !important;
    padding: 0.4rem 0 !important;
  }

  /* Hero Section */
  .hero {
    padding-top: 60px !important;
    min-height: 140px !important;
    height: 28vh !important;
  }
  .hero-content h1 {
    font-size: 1.05rem !important;
    margin-top: 6px !important;
    word-break: break-word;
  }
  .tagline {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.4rem !important;
    margin-top: 0.2rem !important;
  }

  /* Services Section */
  .services {
    padding: 0.7rem 0.1rem !important;
  }
  .section-header h2 {
    font-size: 1rem !important;
  }
  .gold-divider {
    width: 30px !important;
    height: 2px !important;
  }
  .services-grid {
    gap: 0.5rem !important;
  }
  .service-card {
    padding: 0.5rem 0.1rem !important;
  }
  .service-content h3 {
    font-size: 0.85rem !important;
  }
  .service-content p {
    font-size: 0.75rem !important;
  }
  .learn-more-btn {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.5rem !important;
  }

  /* Feedback Section */
  .client-feedback {
    padding: 0.7rem 0.1rem !important;
  }
  .feedback-grid {
    gap: 0.3rem !important;
  }
  .feedback-card {
    padding: 0.5rem !important;
  }
  .client-profile img {
    width: 24px !important;
    height: 24px !important;
  }
  .client-info h4 {
    font-size: 0.8rem !important;
  }
  .feedback-text {
    font-size: 0.75rem !important;
  }

  /* Case Inquiry Section */
  .case-inquiry {
    padding: 0.7rem 0.1rem !important;
  }
  .case-intake-container {
    padding: 0.3rem !important;
  }
  .intake-info, .contact-card {
    padding: 0.5rem !important;
  }
  .benefits-list li {
    font-size: 0.75rem !important;
    gap: 0.3rem !important;
  }
  .form-container, .clio-form-iframe {
    height: 120px !important;
    min-height: 80px !important;
  }

  /* Book Appointment Section */
  .book-appointment {
    padding: 0.7rem 0.1rem !important;
  }
  .appointment-container {
    padding: 0.2rem !important;
  }
  .appointment-grid {
    grid-template-columns: 1fr;
  }
  .appointment-card, .features-card {
    padding: 0.5rem !important;
    border-radius: 7px !important;
    margin-bottom: 0.5rem !important;
  }
  .card-header h3 {
    font-size: 0.85rem !important;
  }
  .feature-text h4 {
    font-size: 0.8rem !important;
  }
  .feature-text p {
    font-size: 0.7rem !important;
  }
  .emergency-notice {
    font-size: 0.7em !important;
    padding: 0.3rem 0.2rem !important;
    border-radius: 4px !important;
    margin-top: 0.5em !important;
    gap: 0.2rem !important;
  }

  /* Chatbot */
  .floating-chatbot {
    bottom: 4px !important;
    right: 4px !important;
  }
  .chatbot-toggle {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.9rem !important;
  }
  .chatbot-container {
    width: 98vw !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 60vh !important;
    bottom: 60px !important;
    right: 1vw !important;
  }
  .chatbot-header {
    font-size: 1rem !important;
    padding: 0.3rem !important;
  }
  .chatbot-message {
    font-size: 0.9rem !important;
    padding: 0.4rem !important;
  }
  .chatbot-input {
    font-size: 0.9rem !important;
    padding: 0.4rem !important;
  }
  .chatbot-button {
    font-size: 0.9rem !important;
    padding: 0.4rem 0.6rem !important;
  }
  .chatbot-close {
    font-size: 1.2rem !important;
    top: 4px !important;
    right: 4px !important;
  }
}

@media (max-width: 600px) {
  .case-inquiry {
    padding: 1.2rem 0.3rem !important;
  }
  .case-intake-container {
    padding: 0.7rem !important;
  }
  .intake-info, .contact-card {
    padding: 0.7rem !important;
    font-size: 0.98em !important;
  }
  .intake-info h3, .contact-card h3 {
    font-size: 1.05em !important;
    margin-bottom: 0.5em !important;
  }
  .intro-text {
    font-size: 0.95em !important;
    margin-bottom: 0.5em !important;
  }
  .benefits-list li {
    font-size: 0.95em !important;
    gap: 0.4rem !important;
    padding: 0.5em 0 !important;
  }
  .contact-method {
    font-size: 0.95em !important;
    gap: 0.5rem !important;
    padding-left: 1rem !important;
  }
  .form-container {
    height: 180px !important;
    margin-top: 0.7em !important;
  }
  .clio-form-iframe {
    height: 100% !important;
    min-height: 100px !important;
  }
  .form-loading {
    padding: 0.5em 0.2em !important;
    font-size: 0.98em !important;
  }
  .form-fallback-button {
    width: 100%;
    justify-content: center;
    font-size: 1em !important;
    padding: 0.7em 0.5em !important;
    margin-top: 0.5em !important;
  }
  .form-note {
    font-size: 0.85em;
    color: #2c3e50;
    margin-top: 0.5em;
    text-align: center;
  }
  .appointment-grid {
    gap: 0.7rem !important;
  }
  .appointment-card, .features-card {
    padding: 1rem !important;
  }
  .card-header h3 {
    font-size: 1rem !important;
  }
  .feature-text h4 {
    font-size: 0.95rem !important;
  }
  .feature-text p {
    font-size: 0.85rem !important;
  }
  .emergency-notice {
    padding: 0.5rem 0.7rem !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
    margin-top: 1em !important;
  }
  .emergency-notice i {
    font-size: 1.1rem !important;
  }
  .emergency-notice a {
    font-size: 0.95em !important;
  }
}

@media (max-width: 400px) {
  .case-inquiry {
    padding: 0.5rem 0.05rem !important;
  }
  .case-intake-container {
    padding: 0.2rem !important;
  }
  .intake-info, .contact-card {
    padding: 0.3rem !important;
    font-size: 0.9em !important;
  }
  .intake-info h3, .contact-card h3 {
    font-size: 0.95em !important;
    margin-bottom: 0.3em !important;
  }
  .intro-text {
    font-size: 0.85em !important;
    margin-bottom: 0.3em !important;
  }
  .benefits-list li {
    font-size: 0.85em !important;
    gap: 0.2rem !important;
    padding: 0.3em 0 !important;
  }
  .contact-method {
    font-size: 0.85em !important;
    gap: 0.2rem !important;
    padding-left: 0.5rem !important;
  }
  .form-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    height: auto !important;
    min-height: 80px !important;
    padding: 0.2em 0.05em !important;
    gap: 0.4em !important;
  }
  .form-loading {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin-bottom: 0.3em !important;
    padding: 0 !important;
    min-height: 40px !important;
    gap: 0.3em !important;
  }
  .form-spinner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.3em !important;
    font-size: 1.1em !important;
    margin-bottom: 0.2em !important;
  }
  .form-fallback-button {
    width: 100% !important;
    font-size: 0.85em !important;
    padding: 0.4em 0.2em !important;
    margin-top: 0.2em !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }
  .form-note {
    font-size: 0.7em !important;
    text-align: center !important;
    margin-top: 0.2em !important;
  }
  .clio-form-iframe {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: 60px !important;
    margin: 0 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    display: block !important;
  }
}

@media (max-width: 600px) {
  .book-appointment {
    padding: 1.2rem 0.3rem !important;
  }
  .appointment-container {
    padding: 0.7rem !important;
  }
  .appointment-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .appointment-card, .features-card {
    padding: 1rem !important;
    border-radius: 10px !important;
    margin-bottom: 1rem !important;
  }
  .card-header {
    gap: 0.7rem !important;
    margin-bottom: 1rem !important;
  }
  .card-header h3 {
    font-size: 1.1rem !important;
  }
  .hours-list {
    font-size: 0.98em !important;
    gap: 0.3rem !important;
  }
  .hours-list li {
    padding: 0.7rem 0 !important;
    font-size: 0.98em !important;
    gap: 0.7rem !important;
  }
  .feature-item {
    gap: 1rem !important;
    margin-bottom: 1rem !important;
  }
  .feature-icon {
    font-size: 1.2rem !important;
    width: 2rem !important;
    height: 2rem !important;
  }
  .feature-text h4 {
    font-size: 1rem !important;
    margin-bottom: 0.2rem !important;
  }
  .feature-text p {
    font-size: 0.9rem !important;
    margin: 0 !important;
  }
  .emergency-notice {
    font-size: 0.95em !important;
    padding: 0.7rem 0.5rem !important;
    border-radius: 6px !important;
    margin-top: 1em !important;
    gap: 0.5rem !important;
  }
  .emergency-notice i {
    font-size: 1.1rem !important;
  }
  .emergency-notice a {
    font-size: 0.98em !important;
  }
}

@media (max-width: 400px) {
  .book-appointment {
    padding: 0.7rem 0.1rem !important;
  }
  .appointment-container {
    padding: 0.2rem !important;
  }
  .appointment-card, .features-card {
    padding: 0.5rem !important;
    border-radius: 7px !important;
    margin-bottom: 0.5rem !important;
  }
  .card-header h3 {
    font-size: 0.85rem !important;
  }
  .hours-list li {
    padding: 0.4rem 0 !important;
    font-size: 0.85em !important;
    gap: 0.3rem !important;
  }
  .feature-item {
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  .feature-icon {
    font-size: 1rem !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
  }
  .feature-text h4 {
    font-size: 0.8rem !important;
  }
  .feature-text p {
    font-size: 0.7rem !important;
  }
  .emergency-notice {
    font-size: 0.7em !important;
    padding: 0.3rem 0.2rem !important;
    border-radius: 4px !important;
    margin-top: 0.5em !important;
    gap: 0.2rem !important;
  }
}

@media (max-width: 600px) {
  .form-container {
    margin-top: 2.2em !important;
    margin-bottom: 2.2em !important;
    min-height: 220px !important;
    background: #f8f9fa !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 12px rgba(44,62,80,0.07);
    padding: 1.2em 0.7em !important;
  }
}
@media (max-width: 400px) {
  .form-container {
    margin-top: 1.2em !important;
    margin-bottom: 1.2em !important;
    min-height: 160px !important;
    padding: 0.7em 0.2em !important;
  }
}

@media (max-width: 600px) {
  .section-title {
    font-size: 1.3rem !important;
    font-weight: 900 !important;
    gap: 0.7em;
    /* Do NOT set color here, keep as in styles.css */
  }
  .card-title {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    /* Do NOT set color here */
  }
  .card-header i,
  .feature-icon {
    font-size: 1.2em !important;
    /* Do NOT set color here */
  }
}
@media (max-width: 400px) {
  .section-title {
    font-size: 1.05rem !important;
    gap: 0.4em;
  }
  .card-title {
    font-size: 0.85rem !important;
  }
}