/* ==========================================================================
   Dr. Asna Zehra Naqvi — Design System
   Color tokens & typography extracted from reference design brief.
   ========================================================================== */

:root {
  /* Color tokens — teal + soft pink + white medical palette */
  --primary: #16767D;          /* deep medical teal — navbar, links, icons, accents */
  --primary-light: #54A5AA;    /* aqua teal — hovers, subtle accents */
  --accent-deep: #0B5F66;      /* dark teal — headings, strong highlights */
  --navy: #16767D;             /* navbar (token kept for compatibility) */
  --dark-teal: #0B5F66;        /* footer & emergency strip */
  --soft-aqua: #88C8CB;        /* light teal background shapes */
  --mist: #C5D5D6;             /* pale blue/grey background */
  --baby-pink: #DD999D;        /* dusty medical pink — CTA / appointment buttons, badges */
  --soft-pink: #E9BEBF;        /* pale rose — soft backgrounds */
  --blush-pink: #F6D7D9;       /* very light pink tint — section accents, cards */
  --text: #0D0F12;             /* charcoal body text */
  --bg: #FBFDFD;               /* clean off-white page background */
  --panel-lavender: #F6D7D9;   /* blush-pink section background (token kept) */
  --panel-cream: #ECE8E6;      /* soft beige-grey alternating panels */
  --card-bg: #FBFDFD;          /* off-white card base */
  --gold: #C9952E;             /* mustard gold — premium accents, star ratings */
  --coral: #C2815D;            /* muted coral — small accents */
  --link-blue: #16767D;
  --green: #34AF23;            /* whatsapp / success icons */
  --muted: #665F5F;            /* warm grey secondary text */
  --border: #DCE7E7;           /* pale teal-grey border */

  /* Typography */
  --font-body: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Poppins", var(--font-body);

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(11, 95, 102, 0.12);
  --shadow-soft: 0 6px 20px rgba(30, 32, 34, 0.06);
  --transition: 0.25s ease;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Smoother interactive feedback site-wide */
a, button, .btn, .card, .svc-tab, .reel-card, .service-photo, .gallery-item {
  transition: color .25s ease, background-color .25s ease, border-color .25s ease,
              box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(.985); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;          /* roomier so descenders (g, y, p) are never clipped */
  letter-spacing: -0.015em;   /* tight, geometric look like the reference */
  margin: 0 0 .5em;
  padding-bottom: 0.06em;     /* safety gap below the text box */
}

h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 800; color: var(--accent-deep); }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 800; color: var(--accent-deep); }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 72px 0; }
.section--lavender { background: var(--panel-lavender); }
.section--cream { background: var(--panel-cream); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; font-size: .8rem; color: var(--primary); margin-bottom: 10px;
}
.section-head p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 1rem;
  padding: 13px 26px; border-radius: 40px; border: 2px solid transparent;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn--primary { background: var(--baby-pink); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); color: #fff; }
.btn--outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--ghost { background: #fff; color: var(--accent-deep); box-shadow: var(--shadow-soft); }
.btn--ghost:hover { background: var(--accent-deep); color: #fff; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.emergency-strip {
  background: var(--dark-teal); color: #fff; font-size: .85rem;
  text-align: center; padding: 7px 16px;
}
.emergency-strip a { font-weight: 600; color: #fff; }
.emergency-strip i { color: var(--gold); margin-right: 6px; }

.site-header {
  position: sticky; top: 6px; z-index: 120;   /* above the mobile nav backdrop (105) */
  width: calc(100% - 36px); max-width: 1180px;
  margin: 5px auto 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(11, 95, 102, 0.16);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; padding-bottom: 10px; padding-left: 30px; padding-right: 18px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo .logo-icon {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-deep));
  display: grid; place-items: center; color: #fff; font-size: 1.2rem;
}
.logo .logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo .logo-name { font-family: var(--font-display); font-weight: 700; color: var(--accent-deep); font-size: 1.15rem; }
.logo .logo-tag { font-size: .72rem; color: var(--baby-pink); }
.site-logo { height: 58px; width: auto; display: block; }

/* Nav */
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; }
.main-nav a { font-weight: 500; font-size: .95rem; color: var(--text); transition: color var(--transition); }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }

.has-dropdown { position: relative; }
.has-dropdown > a::after { content: " \25be"; font-size: .8em; }
.dropdown {
  position: absolute; top: 140%; left: 50%; right: auto; min-width: 260px;
  margin: 0;
  background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 10px; opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: var(--transition); list-style: none;
  border: 1px solid var(--border);
}
/* little arrow pointing up to the Services link */
.dropdown::before {
  content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px; background: #fff; border-left: 1px solid var(--border); border-top: 1px solid var(--border);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown li { display: block; }
.dropdown a { display: block; padding: 8px 12px; border-radius: 6px; font-size: .9rem; color: var(--text); }
.dropdown a:hover { background: var(--panel-lavender); color: var(--accent-deep); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.hamburger {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.6rem; color: var(--primary);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; background: var(--bg);
  --hdr-pull: 100px;                /* fills the floating-header band (extra tucks behind emergency strip) */
  margin-top: calc(-1 * var(--hdr-pull));
}
.hero::before {
  content: ""; position: absolute; inset: 0 35% 0 0;
  background: linear-gradient(135deg, #88C8CB 0%, #C5D5D6 55%, #F6D7D9 100%);
  border-bottom-right-radius: 40% 90%; z-index: 0;
}
.hero .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  padding-top: calc(60px + var(--hdr-pull)); padding-bottom: 60px;
}
.hero-rotator { position: relative; min-height: 3.4em; margin-bottom: 12px; }
.hero-tagline {
  color: var(--primary); font-weight: 600; letter-spacing: .04em; margin: 0;
  position: absolute; inset: 0; opacity: 0; transform: translateY(14px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  pointer-events: none;
}
.hero-tagline.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hero h1 { margin-bottom: 8px; }
.hero .hero-title-bar { color: var(--text); font-weight: 600; margin-bottom: 20px; }
.hero ul.credentials { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.hero ul.credentials li { display: flex; gap: 10px; align-items: flex-start; }
.hero ul.credentials i { color: var(--primary); margin-top: 4px; }
.hero-photo { position: relative; }
.hero-photo img, .hero-photo .photo-placeholder {
  border-radius: 20px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/5; object-fit: cover;
}
.photo-placeholder {
  background: repeating-linear-gradient(45deg, #d7eaeb, #d7eaeb 14px, #c8e0e1 14px, #c8e0e1 28px);
  display: grid; place-items: center; color: var(--accent-deep); font-weight: 600; text-align: center; padding: 20px;
}

/* ==========================================================================
   About / Know Your Doctor
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.about-grid .photo-placeholder { aspect-ratio: 1/1; border-radius: 20px; }
.about-photo {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 20px; box-shadow: var(--shadow); display: block;
}

/* About info blocks (Qualifications / Experience / Expertise / Philosophy) */
.about-blocks { display: grid; gap: 26px; max-width: 920px; }
.about-block {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 32px; box-shadow: var(--shadow-soft);
}
.about-block-icon {
  width: 58px; height: 58px; flex: none; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.5rem; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent-deep));
}
.about-block-body h2 { margin: 0 0 14px; }
.about-block-body ul { padding-left: 1.2em; margin: 0; }
.about-block-body li { margin-bottom: 8px; }
.about-block-body p:last-child { margin-bottom: 0; }

.location-block {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-soft);
  margin-top: 36px;
}
.location-block i { color: var(--primary); margin-right: 8px; }

/* ==========================================================================
   Cards (treatments, why-choose, services)
   ========================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 30px 24px;
  box-shadow: var(--shadow-soft); transition: var(--transition); text-align: center;
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .card-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; font-size: 1.6rem; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent-deep));
}
.card h3 { color: var(--accent-deep); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .92rem; margin: 0; }
.card a.card-link { display: inline-block; margin-top: 14px; color: var(--primary); font-weight: 600; font-size: .9rem; }

/* Trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.trust-item { padding: 24px; }
.trust-item .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--accent-deep); }
.trust-item .num i { color: var(--gold); }
.trust-item p { color: var(--muted); margin: 6px 0 0; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--accent-deep));
  color: #fff; text-align: center; border-radius: var(--radius); padding: 50px 30px;
}
.cta-banner h2 { color: #fff; }
.cta-banner .btn--ghost { margin-top: 12px; }

/* ==========================================================================
   Testimonials carousel
   ========================================================================== */
.carousel { position: relative; max-width: 820px; margin: 0 auto; }
.carousel-track { overflow: hidden; }
.slides { display: flex; transition: transform .4s ease; }
.slide { min-width: 100%; padding: 8px; }
.testimonial {
  background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-soft);
  text-align: center; border: 1px solid var(--border);
}
.testimonial .stars { color: var(--gold); margin-bottom: 14px; }
.testimonial .quote { color: var(--text); }
.testimonial .quote.clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.testimonial .read-toggle { background: none; border: 0; color: var(--primary); font-weight: 600; cursor: pointer; padding: 6px 0; }
.testimonial .author { font-weight: 600; color: var(--accent-deep); margin-top: 14px; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--accent-deep); box-shadow: var(--shadow); font-size: 1.1rem;
}
.carousel-btn.prev { left: -10px; }
.carousel-btn.next { right: -10px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.carousel-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #aed2d4; cursor: pointer; }
.carousel-dots button.active { background: var(--primary); }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 24px; font-family: var(--font-body); font-weight: 600; font-size: 1.02rem;
  color: var(--accent-deep); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .icon { transition: transform var(--transition); color: var(--primary); }
.faq-q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 24px 20px; color: var(--muted); }

/* ==========================================================================
   Appointment form
   ========================================================================== */
.form-card {
  background: #fff; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
  max-width: 760px; margin: 0 auto; border: 1px solid var(--border);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem; background: var(--panel-cream); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--dark-teal); color: #d3e3e4; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-display); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--primary-light); }
.site-footer .foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer .foot-contact i { color: var(--primary); margin-top: 4px; }
.site-footer .foot-map { margin-top: 18px; box-shadow: 0 8px 22px rgba(0,0,0,.22); border-radius: 12px; overflow: hidden; }
.site-footer .socials { display: flex; gap: 12px; margin-top: 16px; }
.site-footer .socials a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: grid; place-items: center; transition: var(--transition);
}
.site-footer .socials a:hover { background: var(--primary); }
.footer-bottom { text-align: center; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #b8a9b3; }

/* ==========================================================================
   Floating buttons
   ========================================================================== */
.floating { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: grid; gap: 14px; }
.floating a {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 1.4rem; box-shadow: var(--shadow); transition: var(--transition);
}
.floating a:hover { transform: scale(1.08); }
.floating .call { background: var(--accent-deep); }
.floating .whatsapp { background: var(--green); }

/* ==========================================================================
   Page banner (interior pages)
   ========================================================================== */
.page-banner {
  --hdr-pull: 100px;
  margin-top: calc(-1 * var(--hdr-pull));
  background: linear-gradient(135deg, #88C8CB 0%, #F6D7D9 100%);
  text-align: center; padding: calc(30px + var(--hdr-pull)) 20px 30px;
}
.page-banner h1 { margin-bottom: 5px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.page-banner .breadcrumb { color: var(--muted); font-size: .9rem; }
.page-banner .breadcrumb a { color: var(--primary); }

/* Prose */
/* Achievement / stats band */
.stats-band {
  background: linear-gradient(120deg, var(--accent-deep) 0%, var(--primary) 60%, #0E6E74 100%);
  color: #fff; position: relative; overflow: hidden;
}
.stats-band .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  padding-top: 26px; padding-bottom: 26px; text-align: center;
}
.stats-band .stat {
  display: flex; flex-direction: column; align-items: center; position: relative;
}
.stats-band .stat > i {
  font-size: 1rem; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 8px; color: #fff;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28);
  transition: transform .45s var(--ease-out), background .45s ease;
}
.stats-band .stat:hover > i { transform: translateY(-4px) scale(1.1); background: rgba(255, 255, 255, 0.24); }
.stats-band .stat-num { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; line-height: 1.05; letter-spacing: .5px; }
.stats-band .stat-label { font-size: .82rem; color: #d7eaeb; margin-top: 3px; }
@media (min-width: 701px) {
  .stats-band .stat:not(:last-child)::after {
    content: ""; position: absolute; right: -11px; top: 14px; bottom: 6px;
    width: 1px; background: rgba(255, 255, 255, 0.18);
  }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .stats-band .stat { animation: statIn .8s var(--ease-out) both; animation-timeline: view(); animation-range: entry 0% cover 16%; }
    .stats-band .stat:nth-child(2) { animation-range: entry 5% cover 20%; }
    .stats-band .stat:nth-child(3) { animation-range: entry 10% cover 24%; }
    .stats-band .stat:nth-child(4) { animation-range: entry 15% cover 28%; }
  }
}
@keyframes statIn { from { opacity: 0; transform: translateY(30px) scale(.92); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .stats-band .container { grid-template-columns: repeat(2, 1fr); gap: 34px 12px; }
}

.prose { max-width: 820px; margin: 0 auto; }
.service-layout {
  display: grid; grid-template-columns: 0.82fr 1.18fr;
  gap: 44px; align-items: start;
  max-width: 1040px; margin: 0 auto;
}
.service-media { margin: 0; position: sticky; top: 100px; }
.service-photo {
  display: block; width: 100%; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: center;
  border-radius: 18px;
  border: 5px solid #fff;
  outline: 2px solid var(--primary); outline-offset: 0;
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), outline-color .35s ease;
}
.service-photo:hover {
  transform: translateY(-6px) scale(1.025) rotate(-0.5deg);
  box-shadow: 0 28px 56px rgba(11, 95, 102, 0.32);
  outline-color: var(--accent-deep);
}
.service-body { margin: 0; max-width: none; }
.service-body > *:first-child { margin-top: 0; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .service-media {
      animation: svcPhotoIn linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 20%;
    }
  }
}
@keyframes svcPhotoIn {
  from { opacity: 0; transform: translateY(42px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .service-layout { grid-template-columns: 1fr; gap: 26px; max-width: 600px; }
  .service-media { position: static; max-width: 420px; margin: 0 auto; }
  .service-photo { aspect-ratio: 3 / 2; }
}
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid .photo-placeholder { aspect-ratio: 4/3; border-radius: var(--radius-sm); }
.gallery-item {
  position: relative; cursor: pointer; overflow: hidden; border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.gallery-item::after {
  content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 1.6rem; background: rgba(22, 118, 125, .5);
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 30px;
  background: rgba(20, 12, 18, .9); opacity: 0; transition: opacity .25s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox .lb-content {
  max-width: 90vw; max-height: 85vh; border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.5); transform: scale(.96); transition: transform .25s ease;
}
.lightbox.open .lb-content { transform: scale(1); }
.lightbox img.lb-content { object-fit: contain; }
.lightbox .lb-caption { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #fff; font-size: .95rem; }
.lightbox .lb-close, .lightbox .lb-nav {
  position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; transition: background var(--transition);
}
.lightbox .lb-close:hover, .lightbox .lb-nav:hover { background: var(--primary); }
.lightbox .lb-close { top: 22px; right: 22px; }
.lightbox .lb-nav.prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-nav.next { right: 22px; top: 50%; transform: translateY(-50%); }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--border); }
.blog-card .photo-placeholder { aspect-ratio: 16/9; border-radius: 0; }
.blog-card .blog-body { padding: 22px; }
.blog-card .blog-meta { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.blog-card h3 { color: var(--accent-deep); font-size: 1.1rem; }

/* ==========================================================================
   Animations
   ========================================================================== */
/* Scroll reveal — fadeInUp (matches the reference site's WOW.js + animate.css feel).
   JS adds .in-view when the element scrolls into view. */
:root { --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal {
  opacity: 0; transform: translateY(44px); will-change: opacity, transform;
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: none; }
/* staggered children (cards, trust items) — 0.15s steps like the reference's 0.2/0.4/0.6 delays */
.reveal-stagger > * {
  opacity: 0; transform: translateY(44px); will-change: opacity, transform;
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal-stagger.in-view > * { opacity: 1; transform: none; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: .15s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: .30s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: .45s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: .60s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: .75s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: .90s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: 1.05s; }
.reveal-stagger.in-view > *:nth-child(9) { transition-delay: 1.2s; }

/* slide-in from the sides — alternating left / right (about page blocks).
   Visible by default (never hidden), so content always shows even without JS.
   The slide animation is layered on via CSS scroll-driven timelines where
   supported (Chrome/Edge 115+), and via the JS IntersectionObserver fallback. */
.reveal-left, .reveal-right { opacity: 1; transform: none; }

/* JS fallback: main.js adds .in-view as the block scrolls in */
.js-anim.reveal-left, .js-anim.reveal-right {
  opacity: 0; will-change: opacity, transform;
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.js-anim.reveal-left  { transform: translateX(-60px); }
.js-anim.reveal-right { transform: translateX(60px); }
.js-anim.reveal-left.in-view, .js-anim.reveal-right.in-view { opacity: 1; transform: none; }

/* Preferred path: pure-CSS scroll-driven animation, no JS needed */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal-left, .reveal-right {
      animation: slideInLeft linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
    .reveal-right { animation-name: slideInRight; }
  }
}
@keyframes slideInLeft  { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(60px);  } to { opacity: 1; transform: none; } }

/* Hero entrance on page load */
@keyframes heroIn { from { opacity: 0; transform: translateY(44px); } to { opacity: 1; transform: none; } }
@keyframes floatPhoto { from { transform: translateY(0); } to { transform: translateY(-12px); } }
.hero-text > * { animation: heroIn .9s var(--ease-out) both; }
.hero-text > *:nth-child(2) { animation-delay: .15s; }
.hero-text > *:nth-child(3) { animation-delay: .30s; }
.hero-text > *:nth-child(4) { animation-delay: .45s; }
.hero-text > *:nth-child(5) { animation-delay: .60s; }
.hero-photo { animation: heroIn 1s var(--ease-out) both .25s; }
.hero-photo img, .hero-photo .photo-placeholder { animation: floatPhoto 3.5s ease-in-out infinite alternate; }

/* Gentle lift on interactive blocks */
.btn { transition: var(--transition), transform .2s ease, box-shadow .2s ease; }
.btn--primary:hover, .btn--outline:hover, .btn--ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.blog-card, .testimonial, .location-block, .trust-item { transition: transform var(--transition), box-shadow var(--transition); }
.blog-card:hover, .trust-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .card-icon { transition: transform var(--transition); }
.card:hover .card-icon { transform: scale(1.1) rotate(-6deg); }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-text > *, .hero-photo { animation: none !important; }
  .hero-photo img, .hero-photo .photo-placeholder { animation: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  /* Full-width header on phones — fits exactly to the screen (no floating side gaps) */
  .site-header {
    width: 100%; max-width: none; margin: 0; top: 0;
    border-radius: 0; border-left: 0; border-right: 0;
  }
  .site-header .container { padding-left: 16px; padding-right: 12px; }
  .hero, .page-banner { --hdr-pull: 74px; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw);
    background: var(--navy); box-shadow: -10px 0 40px rgba(0,0,0,.25);
    /* fade in/out — never slides off-screen, so no horizontal overflow / white strip */
    opacity: 0; visibility: hidden; transform: translateX(0);
    transition: opacity var(--transition), visibility var(--transition);
    padding: 80px 24px 24px; overflow-y: auto; z-index: 110;
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .main-nav li { width: 100%; }
  .main-nav a { display: block; padding: 10px 0; width: 100%; color: #eaf5f5; }
  .main-nav a:hover, .main-nav a.active { color: #fff; }
  .site-logo { height: 46px; }
  .has-dropdown .dropdown {
    position: static !important;
    inset: auto !important;
    left: auto !important; right: auto !important; top: auto !important;
    transform: none !important;
    width: 100% !important; min-width: 0 !important; max-width: 100% !important;
    margin: 2px 0 6px 0 !important;
    padding: 0 0 0 14px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    border-left: 2px solid rgba(255,255,255,.25) !important;
    border-radius: 0 !important;
    opacity: 1 !important; visibility: visible !important;
    max-height: 0; overflow: hidden; transition: max-height var(--transition);
  }
  .has-dropdown .dropdown::before { display: none !important; }
  .has-dropdown .dropdown a {
    display: block !important;
    color: #eef6f6 !important; font-size: .92rem;
    padding: 9px 0 !important; white-space: normal !important; text-align: left !important;
  }
  .has-dropdown .dropdown a:hover, .has-dropdown .dropdown a:active { background: rgba(255,255,255,.10); color: #fff !important; }
  .has-dropdown.open .dropdown { max-height: 600px; }
  .hamburger { display: block; z-index: 120; }
  .header-cta .btn--primary { display: none; }

  .hero { --hdr-pull: 74px; }
  .hero::before { inset: 0; border-radius: 0; opacity: .5; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 360px; margin: 0 auto; }
  .hero-rotator { min-height: 4.8em; }

  .about-grid { grid-template-columns: 1fr; }
  .location-block { grid-template-columns: 1fr; text-align: center; }
  .trust-strip { grid-template-columns: 1fr; }
  .nav-backdrop.show { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 105; }
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid, .gallery-grid, .blog-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}

/* ==========================================================================
   Specialised treatments — interactive tabs panel
   ========================================================================== */
.svc-tabs {
  display: flex; flex-direction: column; gap: 30px;
  max-width: 1100px; margin: 0 auto;
}
/* CanX-style pill row */
.svc-tablist {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.svc-tab {
  display: inline-flex; align-items: center; gap: 9px; text-align: left;
  padding: 11px 20px; border-radius: 999px; border: 1px solid rgba(22,118,125,0.18);
  background: #fff; color: var(--text); cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: .92rem;
  box-shadow: 0 4px 14px rgba(30,32,34,0.05);
  transition: transform .2s var(--ease-out), background .25s ease, color .25s ease, box-shadow .25s ease;
}
.svc-tab i { font-size: 14px; color: var(--primary); transition: color .25s ease; }
.svc-tab:hover { transform: translateY(-2px); border-color: var(--primary); }
.svc-tab.is-active {
  background: linear-gradient(135deg, var(--primary), var(--accent-deep));
  color: #fff; border-color: transparent; box-shadow: 0 12px 28px rgba(11,95,102,0.28);
}
.svc-tab.is-active i { color: #fff; }

/* Banner: text on the left, image on the right (image > half) */
.svc-panels { position: relative; }
.svc-panel {
  display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: stretch;
  background: #fff; border: 1px solid rgba(22,118,125,0.16); border-radius: 22px;
  overflow: hidden; box-shadow: 0 16px 40px rgba(30,32,34,0.08);
  min-height: 420px;
}
.svc-panel[hidden] { display: none; }
.svc-panel.is-active { animation: svcFade .45s var(--ease-out) both; }
@keyframes svcFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.svc-panel-text {
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; padding: 44px 40px;
}
.svc-badge {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary);
  background: var(--blush-pink); border-radius: 999px; padding: 5px 14px; margin-bottom: 16px;
}
.svc-panel h3 { margin: 0 0 12px; color: var(--accent-deep); font-size: 1.7rem; }
.svc-panel p { margin: 0 0 26px; color: var(--muted); line-height: 1.75; }
.svc-media {
  position: relative; overflow: hidden; min-height: 280px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--soft-aqua), var(--primary) 60%, var(--accent-deep));
}
.svc-media i { font-size: 4.4rem; color: rgba(255,255,255,0.92); }
.svc-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 1.1s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform;
}
.svc-panel.is-active .svc-media img { animation: svcImgReveal 1s cubic-bezier(0.165, 0.84, 0.44, 1) both; }
.svc-panel:hover .svc-media img { transform: scale(1.06); }
@keyframes svcImgReveal {
  from { opacity: 0; transform: scale(1.12); }
  to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 820px) {
  .svc-tablist { flex-wrap: wrap; }
  .svc-panel { grid-template-columns: 1fr; min-height: 0; }
  .svc-media { min-height: 240px; order: -1; }
  .svc-panel-text { padding: 30px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-panel.is-active { animation: none; }
  .svc-panel.is-active .svc-media img { animation: none; }
  .svc-panel:hover .svc-media img { transform: none; }
  .svc-tab { transition: background .25s ease, color .25s ease; }
}

/* ===== Video Reels (9:16) ===== */
.section--reels { background: linear-gradient(180deg, #F6F2EF 0%, #FBFDFD 100%); }
.reels-slider { position: relative; max-width: 768px; margin: 0 auto; }   /* ~3 cards visible */
.reels-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 6px 4px 18px; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--soft-aqua) transparent;
}
.reels-track::-webkit-scrollbar { height: 8px; }
.reels-track::-webkit-scrollbar-track { background: transparent; }
.reels-track::-webkit-scrollbar-thumb { background: var(--soft-aqua); border-radius: 999px; }
.reels-track .reel-card { flex: 0 0 auto; width: 236px; scroll-snap-align: start; }
.reels-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--primary); font-size: 1.05rem;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 26px rgba(11, 95, 102, 0.18); transition: var(--transition);
}
.reels-nav:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.reels-prev { left: -14px; }
.reels-next { right: -14px; }
.reel-card {
  position: relative; margin: 0;
  aspect-ratio: 9 / 16;
  border-radius: 22px; overflow: hidden;
  background: linear-gradient(135deg, var(--soft-aqua), var(--primary) 60%, var(--accent-deep));
  box-shadow: 0 18px 40px rgba(11, 95, 102, 0.22);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.reel-card:hover { transform: translateY(-8px) scale(1.015); box-shadow: 0 30px 60px rgba(11, 95, 102, 0.34); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reels-slider {
      animation: slideInRight linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
  }
}
.reel-video {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: cover;
  background: #0B5F66; display: block;
}
.reel-card.is-empty .reel-video { display: none; }
.reel-fallback {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; color: #fff; text-align: center; padding: 16px;
}
.reel-fallback i {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.4rem;
  background: rgba(255,255,255,0.18); border: 2px solid rgba(255,255,255,0.6);
}
.reel-fallback span { font-weight: 600; font-size: .95rem; letter-spacing: .02em; opacity: .95; }

@media (max-width: 600px) {
  /* general mobile readability */
  .hero h1 { font-size: clamp(1.55rem, 7.5vw, 2rem); }
  .section-head h2 { font-size: clamp(1.4rem, 6.4vw, 1.9rem); }
  .hero .hero-title-bar { font-size: .92rem; }
}

@media (max-width: 600px) {
  .reels-track .reel-card { width: 76vw; max-width: 300px; }
  .reels-nav { display: none; }
  .reels-track { scroll-snap-type: x mandatory; padding-left: 0; padding-right: 0; }
}

/* ===== About-page YouTube video window (16:9) ===== */
.yt-frame {
  position: relative; max-width: 860px; margin: 0 auto;
  aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border); background: #0B5F66;
}
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.yt-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  gap: 12px; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--soft-aqua), var(--primary) 60%, var(--accent-deep));
}
.yt-placeholder i { font-size: 3.6rem; }
.yt-placeholder span { font-weight: 600; letter-spacing: .02em; }

/* ==========================================================================
   Scrolling testimonial columns
   ========================================================================== */
.tcols {
  display: flex; justify-content: center; gap: 24px; margin-top: 10px;
  max-height: 680px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
}
.tcol { width: 330px; flex: 0 0 auto; }
.tcol--md, .tcol--lg { display: none; }
.tcol-track {
  display: flex; flex-direction: column; gap: 24px; will-change: transform;
  animation: tscroll var(--dur, 40s) linear infinite;
}
.tcols:hover .tcol-track { animation-play-state: paused; }
@keyframes tscroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.tcard {
  margin: 0; background: #fff; border: 1px solid rgba(22,118,125,0.16);
  border-radius: 22px; padding: 28px 26px; box-shadow: 0 12px 30px rgba(30,32,34,0.07);
}
.tcard-stars { color: var(--gold); letter-spacing: 2px; font-size: .95rem; margin-bottom: 12px; }
.tcard blockquote { margin: 0; color: var(--text); line-height: 1.6; font-size: .96rem; }
.tcard-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.tcard-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .85rem;
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--primary), var(--accent-deep));
}
.tcard-name { font-weight: 600; color: var(--accent-deep); }

@media (min-width: 768px)  { .tcol--md { display: block; } }
@media (min-width: 992px)  { .tcol--lg { display: block; } }

@media (max-width: 560px) {
  .tcol { width: min(86vw, 340px); }
  .tcols { max-height: 600px; }
}

@media (prefers-reduced-motion: reduce) {
  .tcol-track { animation: none; }
  .tcols { max-height: none; -webkit-mask-image: none; mask-image: none; }
}
