/* ============================================
   Responsive Breakpoints
   Mobile-first: base styles are for 375px
   ============================================ */

/* ============================================
   TABLET — 768px+
   ============================================ */
@media (min-width: 768px) {

  /* Typography scale up */
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }

  .section { padding: var(--space-3xl) 0; }

  .section-title h2 {
    font-size: var(--font-size-3xl);
  }

  /* Page headers */
  .page-header {
    padding: var(--space-3xl) 0 var(--space-2xl);
  }

  .page-header h1 {
    font-size: var(--font-size-3xl);
  }

  /* Hero — switch from stacked to two-column */
  .hero-split {
    grid-template-columns: 3fr 2fr;
    gap: var(--space-md);
  }

  .hero-content {
    align-self: center;
    padding-bottom: 80px;             /* Clear the 60px white curve */
  }

  .hero-photo {
    justify-self: auto;
    align-self: end;
    width: auto;
  }

  .hero-photo img {
    max-height: 480px;
    object-fit: contain;
    object-position: bottom center;
  }

  .hero-watermark {
    width: 450px;
    height: 450px;
    opacity: 0.04;
  }

  .hero-buttons {
    flex-direction: row;
  }

  /* Steps */
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Card grids */
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Pricing grid */
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Trust section */
  .trust-section {
    grid-template-columns: 280px 1fr;
  }

  /* Bio layout */
  .bio-layout {
    grid-template-columns: 280px 1fr;
  }

  .bio-photo {
    margin: 0;
  }

  /* Contact grid */
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Map */
  .map-container iframe {
    height: 400px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Audience grid */
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Included sections */
  .included-section {
    grid-template-columns: 1fr 1fr;
  }

  /* Medication rows — two-column */
  .medication-row-fields {
    grid-template-columns: 1fr 1fr;
  }

  /* Cost comparison cards — side-by-side */
  .cost-example {
    grid-template-columns: 1fr 1fr;
  }

  /* Calculator inputs — two-column */
  .calculator-body {
    grid-template-columns: 1fr 1fr;
  }

  /* CTA bar */
  .cta-bar h2 {
    font-size: var(--font-size-3xl);
  }
}

/* ============================================
   DESKTOP — 1024px+
   ============================================ */
@media (min-width: 1024px) {

  /* Header: show full nav, hide hamburger */
  .site-header {
    height: var(--header-height);
  }

  body {
    padding-top: var(--header-height);
  }

  .header-logo img {
    height: 48px;
  }

  .header-nav {
    display: flex;
    gap: var(--space-md);
  }

  .header-actions .btn--secondary {
    display: inline-flex;
  }

  .hamburger {
    display: none;
  }

  /* Hide mobile CTA on desktop */
  .mobile-cta {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  body.enroll-page {
    padding-top: var(--header-height-mobile);
  }

  /* Hero — wider columns at desktop */
  .hero {
    padding: var(--space-3xl) 0 0;
  }

  .hero-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .hero-photo img {
    max-height: 520px;
    object-fit: contain;
    object-position: bottom center;
  }

  .hero-watermark {
    width: 550px;
    height: 550px;
    opacity: 0.04;
    right: 5%;
  }

  /* Card grids */
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Trust */
  .trust-section {
    grid-template-columns: 320px 1fr;
    gap: var(--space-3xl);
  }

  /* Bio */
  .bio-layout {
    grid-template-columns: 320px 1fr;
    gap: var(--space-3xl);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ============================================
   LARGE DESKTOP — 1280px+
   ============================================ */
@media (min-width: 1280px) {

  .hero {
    padding: var(--space-2xl) 0 0;
  }

  .hero-split {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .hero-photo img {
    max-height: 580px;
  }

  .container {
    padding: 0 var(--space-xl);
  }
}

/* ============================================
   MOBILE-ONLY OVERRIDES — below 768px
   ============================================ */
@media (max-width: 1023px) {

  /* Hide desktop comparison table, show mobile cards on tablets too */
  .comparison-table-wrapper {
    display: none;
  }

  .comparison-cards {
    display: block;
  }
}

@media (max-width: 767px) {

  /* Modal adjustments */
  .modal-overlay {
    padding: var(--space-md);
  }

  .modal-body {
    padding: var(--space-lg);
  }

  .hero-watermark {
    width: 250px;
    height: 250px;
    right: -10%;
    opacity: 0.03;
    transform: translateY(-50%);
  }

  /* Stack pricing tiers with full-width buttons */
  .pricing-card .btn {
    width: 100%;
    justify-content: center;
  }

  /* Enroll page adjustments */
  .enroll-content {
    padding-top: var(--space-2xl);
  }
}
