/* Estate Planning Clinic - Responsive CSS */

/* Extra Large Devices (≥1400px) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .section {
    padding: 5rem 0;
  }
}

/* Large Devices (≥1200px) */
@media (min-width: 1200px) {
  .hero-content h1 {
    font-size: 2.75rem;
  }
}

/* Medium Devices (≥992px) */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav .nav-link {
    font-size: 10px !important;
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

/* Small Devices (≥768px) */
@media (min-width: 768px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .card-deck .card {
    margin-bottom: 0;
  }
  
  .testimonial-item {
    margin: 0.5rem;
  }
}

/* Extra Small Devices (<768px) */
@media (max-width: 767.98px) {
  /* Typography */
  :root {
    --font-size-h1: 1.875rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
    --font-size-navbar-brand: 1.125rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 12px !important;

  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 10px !important;
    padding: 0.5rem 0;
    text-align: center;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: var(--font-size-base);
  }
  
  /* Sections */
  .section {
    padding: 2.5rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-desc {
    margin-bottom: 2rem;
  }
  
  /* Cards */
  .card {
    margin-bottom: 1.5rem;
  }
  
  /* Services */
  .service-item {
    margin-bottom: 2rem;
  }
  
  .service-price {
    font-size: 1.25rem;
  }
  
  /* Team */
  .team-member {
    margin-bottom: 2.5rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Testimonials */
  .testimonial-item {
    margin: 0.5rem 0;
    padding: 1.5rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  .form-control {
    margin-bottom: 1rem;
  }
  
  /* FAQ */
  .faq-item {
    padding: 1rem 0;
  }
  
  /* Gallery */
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
  
  /* Utilities */
  .text-center-mobile {
    text-align: center;
  }
  
  .mb-4-mobile {
    margin-bottom: 1.5rem !important;
  }
}

/* Extra Small Devices (<576px) */
@media (max-width: 575.98px) {
  /* Container */
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Typography */
  :root {
    --font-size-h1: 1.75rem;
    --font-size-h2: 1.375rem;
    --font-size-base: 15px;
  }
  
  /* Hero */
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  /* Sections */
  .section {
    padding: 2rem 0;
  }
  
  /* Cards */
  .card-body {
    padding: 1rem;
  }
  
  .card-header {
    padding: 1rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1rem;
  }
  
  /* Team */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 180px;
  }
  
  /* Buttons */
  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Tablet Portrait (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 75vh;
  }
  
  .section {
    padding: 3.5rem 0;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Tablet Landscape (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 4rem 0;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../SHE_images/hero-bg@2x.webp');
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4 {
    page-break-after: avoid;
  }
}

/* Accessibility - Focus States */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  /* This can be implemented if needed in the future */
  /* Currently maintaining light theme as per requirements */
} 