/* ===========================================
   RESPONSIVE.CSS — Global Mobile Overrides
   Get Clinic Growth
   Loaded after inline <style> on every page.
   =========================================== */

/* Prevent horizontal overflow everywhere */
img, video, canvas, svg { max-width: 100%; height: auto; }

/* =============================================
   FOOTER — desktop base
   Individual case-study pages ship no inline footer CSS, so on desktop
   their footer renders unstyled (zero padding, no grid → misaligned with
   the rest of the page). These rules supply that missing base. The values
   are identical to what every other page defines inline, and this sheet
   loads after the inline <style>, so it is a no-op for those pages and a
   fix for the case-study pages. Mobile widths are overridden below.
   ============================================= */
footer { padding: 5rem 3rem 3rem; border-top: 1px solid var(--border); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-brand { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem; letter-spacing: -0.02em; margin-bottom: 1rem; }
.footer-brand span { color: var(--accent); }
.footer-tagline { font-size: 0.85rem; color: var(--text2); line-height: 1.75; max-width: 220px; }
.footer-col-title { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text3); font-weight: 500; margin-bottom: 1.5rem; }
.footer-col a { display: block; font-size: 0.875rem; color: var(--text2); margin-bottom: 0.75rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 2rem; }
.footer-copy { font-size: 0.78rem; color: var(--text3); }

/* =============================================
   TABLET  (max-width: 900px)
   — enhance existing 900px rules
   ============================================= */
@media (max-width: 900px) {
  /* Hero CTA buttons stack */
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    text-align: center;
    width: 100%;
  }
  /* CTA actions wrap */
  .cta-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 360px;
  }
  .cta-actions .btn-primary,
  .cta-actions .btn-outline {
    width: 100%;
    text-align: center;
  }

  /* Metrics row */
  .hero-metrics { flex-wrap: wrap; gap: 1.5rem; }

  /* Touch targets */
  .btn-primary, .btn-outline, .nav-cta, .pricing-btn, .form-submit {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .faq-q { min-height: 44px; }
  .carousel-dot { min-width: 12px; min-height: 12px; }
  .carousel-arrow { min-width: 44px; min-height: 44px; }

  /* Individual case study pages — padding for mobile */
  .cs-hero { padding: 6rem 1.5rem 3rem; }
  .cs-content { padding: 3rem 1.5rem; }
  .cs-section-title { font-size: 1.75rem; }
  .cs-p { font-size: 1rem; }
  .cs-title { font-size: clamp(2rem, 6vw, 3.5rem); }
  .h-metric { min-width: 0; flex: 1 1 160px; padding: 1.25rem 1.5rem; }
  .hm-val { font-size: 2rem; }
  .testimonial-box { padding: 2.5rem 1.5rem; border-radius: 16px; }
  .testimonial-text { font-size: 1.15rem; }

  /* Case study pages: hide nav-links (they have no hamburger) */
  .nav-links { display: none; }
  .nav-cta { display: none; }

  /* Our Clients roster names */
  .roster-name { font-size: clamp(1.25rem, 3vw, 2rem); }
  .roster-logo-wrap { width: 44px; height: 44px; }

  /* About us */
  .diff-visual { padding: 2rem; }
  .diff-metric-value { font-size: 1.25rem; }
}

/* =============================================
   LARGE PHONES  (max-width: 680px)
   ============================================= */
@media (max-width: 680px) {
  /* Hero */
  .hero {
    min-height: auto;
    padding-top: 7rem;
  }
  .hero-title {
    font-size: clamp(2.25rem, 9vw, 3.5rem);
    margin-bottom: 2.5rem;
  }
  .hero-eyebrow { margin-bottom: 1.5rem; }
  .hero-desc { max-width: 100%; font-size: 0.9rem; }

  /* Sections */
  .section-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .section-sub { max-width: 100%; text-align: left; }
  .section-header { margin-bottom: 3rem; }

  /* Stats */
  .stat-num { font-size: clamp(2.5rem, 10vw, 4rem); }
  .stat-item { padding: 3rem 1.5rem; }

  /* Testimonials */
  .testimonial-block { padding: 2.5rem 1.5rem; }
  .t-quote { font-size: clamp(1rem, 3.5vw, 1.5rem); }
  .t-author { flex-wrap: wrap; gap: 0.75rem; }
  .t-result { margin-left: 0; margin-top: 0.5rem; }

  /* Pricing */
  .pricing-price { font-size: 2.25rem; }

  /* CTA */
  .cta-section { padding: 5rem 1.5rem; }
  .cta-title { font-size: clamp(2rem, 7vw, 3.5rem); margin-bottom: 2.5rem; }

  /* Form */
  .form-wrap { padding: 2rem 1.25rem; border-radius: 14px; }
  .form-title { font-size: 1.25rem; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; align-items: flex-start; }

  /* Process */
  .process-item { padding: 2rem 0; }

  /* Mockup (service pages) */
  .mockup-section { padding: 4rem 1.5rem; }
  .mockup-heading { font-size: clamp(1.5rem, 5vw, 2.25rem); }

  /* Case Studies hub */
  .studies-container { grid-template-columns: 1fr; gap: 1.5rem; }
  .country-title-large { font-size: clamp(3rem, 12vw, 5rem); }

  /* Mobile menu */
  .mobile-menu a { font-size: 2rem; }

  /* Marquee */
  .marquee-item { padding: 1rem 1.5rem; }

  /* Our Clients */
  .clients-container { padding: 2rem 1.5rem 5rem; }
  .country-section { margin-bottom: 4rem; padding-top: 2.5rem; gap: 1.5rem; }
  .country-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .category-block { margin-bottom: 3rem; }
  .roster-item { padding: 1.5rem 0.5rem; }
  .roster-name { font-size: clamp(1.1rem, 4vw, 1.75rem); }

  /* About us */
  .mission-large { font-size: clamp(1.25rem, 4vw, 1.75rem); }
  .team-card { padding: 2rem; }
  .team-name { font-size: 1.1rem; }
  .diff-heading { font-size: clamp(1.5rem, 5vw, 2rem); }
  .diff-visual { padding: 1.5rem; }
}

/* =============================================
   SMALL PHONES  (max-width: 480px)
   ============================================= */
@media (max-width: 480px) {
  /* Nav */
  nav { padding: 1rem 1.25rem; }

  /* Hero */
  .hero {
    padding: 6rem 1.25rem 1.5rem;
    min-height: auto;
  }
  .hero-title {
    font-size: clamp(2rem, 8.5vw, 3rem);
    margin-bottom: 2rem;
    line-height: 0.95;
  }
  .hero-bottom { padding-top: 1.5rem; gap: 1.5rem; }
  .hero-desc { font-size: 0.85rem; line-height: 1.7; }
  .hero-metrics { flex-direction: column; gap: 0.75rem; }
  .hero-metric-val { font-size: 1.5rem; }

  /* Sections */
  section { padding: 3rem 1.25rem; }
  .section-header { margin-bottom: 2.5rem; gap: 1rem; }
  .section-title { font-size: clamp(1.5rem, 7vw, 2rem); }

  /* Services grid */
  .svc-card { padding: 2rem 1.5rem; }
  .svc-name { font-size: 1rem; }

  /* Stats — collapse to single column (handles both 3-col and 4-col variants) */
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { padding: 2rem 1rem; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; grid-column: auto; }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-num { font-size: clamp(2rem, 10vw, 3rem); }

  /* Pricing */
  .pricing-plan { padding: 2rem 1.5rem; }
  .pricing-price { font-size: 2rem; }

  /* Testimonials */
  .testimonial-block { padding: 2rem 1.25rem; border-radius: 8px; }
  .t-quote { font-size: 1rem; margin-bottom: 1.5rem; }
  .t-stars { margin-bottom: 1.25rem; }

  /* FAQ */
  .faq-q { padding: 1.5rem 0; }
  .faq-q-text { font-size: 0.9rem; }
  .faq-icon { width: 24px; height: 24px; margin-left: 1rem; }

  /* CTA */
  .cta-section { padding: 4rem 1.25rem; }
  .cta-title { font-size: clamp(1.75rem, 7vw, 3rem); margin-bottom: 2rem; }

  /* Form */
  .form-wrap { padding: 1.5rem 1rem; border-radius: 12px; }
  .form-grid { gap: 1rem; }
  .form-title { font-size: 1.15rem; }
  .form-sub { font-size: 0.85rem; margin-bottom: 1.5rem; }
  .phone-row { flex-direction: column; gap: 0.5rem; }
  .phone-code { width: 100%; }
  .form-submit { font-size: 0.9rem; padding: 0.875rem; }

  /* Footer */
  footer { padding: 3rem 1.25rem 2rem; }
  .footer-top { gap: 1.5rem; margin-bottom: 2.5rem; }
  .footer-col-title { margin-bottom: 1rem; }
  .footer-copy { font-size: 0.72rem; }

  /* Process */
  .process-name { font-size: 1.1rem; }
  .process-desc { font-size: 0.82rem; }

  /* Benefits (service pages) */
  .benefit-card { padding: 2rem 1.5rem; border-right: none; }

  /* Mockup (service pages) */
  .mockup-section { padding: 3rem 1.25rem; }
  .mockup-heading { font-size: clamp(1.25rem, 5.5vw, 1.75rem); }
  .mockup-desc { font-size: 0.85rem; }
  .ad-preview { padding: 1.5rem; }
  .funnel-step { padding: 1.25rem; }
  .funnel-header { padding: 1rem; font-size: 0.8rem; }

  /* Case Studies hub */
  .case-card .card-top { padding: 1.5rem; }
  .case-card .card-body { padding: 1.5rem; }
  .clinic-name { font-size: 1.1rem; }
  .metric-val { font-size: 2.5rem; }
  .card-link { font-size: 0.82rem; }
  .studies-container { padding: 2rem 1.25rem 4rem; gap: 1.25rem; }
  .country-group-header { padding: 0 1.25rem; margin-top: 2rem; }
  .country-title-large { font-size: clamp(2.5rem, 14vw, 4rem); }

  /* Mobile menu */
  .mobile-menu { padding: 2rem; }
  .mobile-menu a { font-size: 1.75rem; }
  .mobile-close { top: 1.25rem; right: 1.25rem; }

  /* Marquee */
  .marquee-item { padding: 0.875rem 1.25rem; font-size: 0.6rem; }
  .marquee-dot { padding: 0.875rem 1rem; }

  /* Buttons */
  .btn-primary, .btn-outline { font-size: 0.82rem; padding: 0.75rem 1.5rem; }

  /* Carousel nav */
  .carousel-nav { gap: 1rem; margin-top: 1.5rem; }

  /* Services page - service rows */
  .svc-row { grid-template-columns: 1fr; gap: 0.5rem; padding: 2rem 0; }
  .svc-row:hover { margin: 0; padding-left: 0; padding-right: 0; }
  .svc-row-tag { text-align: left; }
  .svc-row-name { font-size: 1.1rem; }
  .svc-row-desc { font-size: 0.82rem; }

  /* Services page - approach */
  .approach-grid { grid-template-columns: 1fr; gap: 2rem; }
  .approach-heading { font-size: clamp(1.25rem, 5vw, 1.75rem); margin-bottom: 1.5rem; }
  .approach-item { gap: 1rem; padding: 1.25rem 0; }

  /* Services page - timeline */
  .timeline-item { grid-template-columns: 36px 1fr; gap: 1rem; padding: 2rem 0; }
  .timeline-dot { width: 32px; height: 32px; font-size: 0.65rem; }
  .timeline-content-title { font-size: 1rem; }

  /* About us specifics */
  .values-grid { grid-template-columns: 1fr; }
  .value-card { border-right: none; padding: 2rem 1.5rem; border-bottom: 1px solid var(--border); }
  .value-card:last-child { border-bottom: none; }
  .mission-grid { gap: 2rem; }
  .mission-large { font-size: 1.15rem; }
  .diff-grid { gap: 2rem; }
  .diff-item { gap: 1rem; padding: 1.25rem 0; }
  .diff-metric { flex-direction: column; gap: 0.25rem; align-items: flex-start; }
  .diff-metric-value { font-size: 1.15rem; }
  .team-grid { gap: 0; }
  .team-card { padding: 2rem 1.5rem; }
  .team-photo { width: 56px; height: 56px; font-size: 1rem; margin-bottom: 1.25rem; }

  /* Our Clients */
  .clients-container { padding: 1rem 1.25rem 4rem; }
  .country-section { gap: 1rem; padding-top: 2rem; margin-bottom: 3rem; }
  .country-flag { font-size: 1.5rem; margin-bottom: 0.75rem; }
  .country-title { font-size: clamp(2rem, 12vw, 3.5rem); }
  .category-title { font-size: 0.68rem; margin-bottom: 1.5rem; padding-bottom: 1rem; }
  .roster-item { padding: 1.25rem 0; }
  .roster-name { font-size: clamp(1rem, 4.5vw, 1.5rem); }
  .roster-logo-wrap { width: 40px; height: 40px; padding: 0.5rem; }

  /* Individual case study pages */
  .cs-hero { padding: 5rem 1.25rem 2rem; }
  .cs-hero-inner { text-align: center; }
  .cs-logo-wrap { width: 64px; height: 64px; padding: 0.875rem; margin-bottom: 1.5rem; border-radius: 12px; }
  .cs-title { font-size: clamp(1.75rem, 7vw, 2.5rem); margin-bottom: 1rem; }
  .cs-meta { font-size: 0.75rem; margin-bottom: 2rem; }
  .hero-metrics { gap: 0.75rem; }
  .h-metric { padding: 1rem 1.25rem; border-radius: 8px; }
  .hm-val { font-size: 1.75rem; }
  .hm-label { font-size: 0.78rem; }
  .cs-content { padding: 2.5rem 1rem; }
  .cs-section { margin-bottom: 3rem; }
  .cs-section-title { font-size: 1.5rem; margin-bottom: 1.25rem; }
  .cs-p { font-size: 0.95rem; }
  .charts-grid { gap: 1.5rem; margin: 2.5rem 0; }
  .chart-card { padding: 1.5rem; border-radius: 12px; }
  .chart-title { font-size: 1rem; margin-bottom: 1.25rem; }
  .testimonial-box { padding: 2rem 1.25rem; border-radius: 12px; margin: 3rem 0; }
  .testimonial-text { font-size: 1.05rem; }
  .cta-section h2 { font-size: clamp(1.5rem, 6vw, 2.25rem); }

  /* Individual case study footer — it uses unstyled footer */
  .footer-top { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
  .footer-brand { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem; margin-bottom: 0.5rem; }
  .footer-col-title { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text3); font-weight: 500; margin-bottom: 1rem; }
  .footer-col a { display: block; font-size: 0.875rem; color: var(--text2); margin-bottom: 0.6rem; }
  .footer-bottom { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; border-top: 1px solid var(--border); padding-top: 1.5rem; }
}

/* =============================================
   VERY SMALL PHONES  (max-width: 360px)
   ============================================= */
@media (max-width: 360px) {
  .hero-title { font-size: clamp(1.75rem, 9vw, 2.5rem); }
  .section-title { font-size: clamp(1.35rem, 7vw, 1.75rem); }
  .cta-title { font-size: clamp(1.5rem, 8vw, 2.5rem); }
  .stat-num { font-size: 2rem; }
  .pricing-price { font-size: 1.75rem; }
  .t-quote { font-size: 0.9rem; }
  .metric-val { font-size: 2rem; }
  .country-title-large { font-size: 2.5rem; }
  nav { padding: 0.875rem; }
  .nav-logo { font-size: 0.95rem; }
  .cs-title { font-size: 1.5rem; }
  .hm-val { font-size: 1.5rem; }
  .roster-name { font-size: 1rem; }
  .country-title { font-size: 2rem; }
}

/* =============================================
   LANDSCAPE PHONES
   ============================================= */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: 5rem; padding-bottom: 2rem; }
  .hero-title { font-size: clamp(1.75rem, 4vw, 3rem); margin-bottom: 1.5rem; }
  .cta-section { padding: 3rem 1.5rem; }
}
