/* ============================================================
   HOMEPAGE-SPECIFIC COMPONENTS
   Tokens, typography, buttons, nav, footer, mobile bar
   are all in global CSS now — this file is homepage-only sections.
   ============================================================ */

/* ============================================================
   TOP UTILITY BAR — Homepage only
   ============================================================ */
.topbar {
  background: rgba(6,13,20,.9);
  border-bottom: 1px solid var(--t4);
  height: 36px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px,4vw,64px);
  font-size: .48rem; letter-spacing: .14em;
  color: var(--t3); text-transform: uppercase;
  position: relative; z-index: 101;
  backdrop-filter: blur(10px);
}
.topbar a { color: var(--t2); transition: color .25s }
.topbar a:hover { color: var(--skyL) }
.top-l { display: flex; gap: 20px; align-items: center }
.top-l .pin {
  color: var(--skyL); font-weight: 600;
  display: inline-flex; gap: 5px; align-items: center;
}
.top-r { display: flex; gap: 10px; align-items: center }
.top-r a {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--t2);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.top-r a:hover { border-color: var(--sky); background: var(--skyG) }
.top-r svg { width: 9px; height: 9px; fill: currentColor }
@media(max-width:767px) { .topbar { display: none } }

/* ============================================================
   HERO — Cinematic video background
   ============================================================ */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: 1;
}
.hero-media video,
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 65%;
  animation: heroZoom 30s ease-out forwards;
}
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(6,13,20,.5) 0%,
      rgba(6,13,20,.3) 30%,
      rgba(6,13,20,.4) 60%,
      var(--bg) 100%),
    radial-gradient(ellipse at 8% 85%, rgba(0,147,211,.1) 0%, transparent 50%),
    radial-gradient(ellipse at 92% 15%, rgba(201,160,74,.05) 0%, transparent 40%);
}
@keyframes heroZoom {
  from { transform: scale(1.08) }
  to   { transform: scale(1) }
}

/* Hero content — asymmetric split */
.hero-content {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1fr .55fr;
  align-items: end;
  width: 100%; max-width: 1400px; margin: 0 auto;
  padding: 0 clamp(16px,4vw,64px);
  padding-top: clamp(64px, 9vh, 96px);
  padding-bottom: clamp(40px, 7vh, 80px);
}
.hero-text { max-width: 720px }
.hero-eyebrow {
  font-size: .48rem; font-weight: 700;
  letter-spacing: .45em; text-transform: uppercase;
  color: var(--skyL);
  margin-bottom: 28px;
  will-change: transform, opacity;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.hero-h1 {
  font-family: 'Fraunces', 'Fraunces-fallback', serif;
  font-weight: 200;
  font-size: clamp(3rem, 2rem + 4vw, 6rem);
  line-height: .92; letter-spacing: -.04em;
  margin-bottom: 22px;
  will-change: transform, opacity;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.hero-h1 em { font-style: italic; font-weight: 300 }
.hero-h1 .hero-sub {
  color: var(--t2); font-weight: 200;
  display: block; font-size: .42em;
  letter-spacing: -.01em; margin-top: 12px; line-height: 1.3;
}
.hero-desc {
  font-size: .88rem; font-weight: 300;
  color: var(--t1); line-height: 1.85;
  max-width: 48ch;
  will-change: transform, opacity;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.hero-desc a {
  color: var(--skyL);
  border-bottom: 1px solid rgba(79,192,235,.25);
  transition: border-color .25s;
}
.hero-desc a:hover { border-color: var(--skyL) }
.hero-ctas {
  display: flex; gap: 14px; margin-top: 36px;
  flex-wrap: wrap; will-change: transform, opacity;
}

/* Trust strip */
.hero-trust {
  display: flex; align-items: center; gap: 20px;
  margin-top: 32px; flex-wrap: wrap;
  will-change: transform, opacity;
}
.hero-trust .stars { color: var(--gold); font-size: .7rem; letter-spacing: 2px }
.hero-trust span { font-size: .62rem; color: var(--t3); letter-spacing: .05em }
.hero-trust strong { color: var(--t2) }

/* Floating office card */
.hero-card { align-self: end; margin-bottom: 48px; will-change: transform, opacity }
.hero-card-inner {
  display: block;
  background: rgba(6,13,20,.65);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--t4);
  border-radius: 18px; padding: 22px;
  max-width: 290px; margin-left: auto;
  transition: transform .4s var(--e), box-shadow .4s;
  text-decoration: none; color: inherit;
}
.hero-card-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0,0,0,.3);
}
.hero-card-inner img {
  border-radius: 12px; margin-bottom: 14px;
  aspect-ratio: 16/10; object-fit: cover; width: 100%;
}
.hero-card-inner h4 {
  font-family: 'Poppins', 'Poppins-fallback', sans-serif;
  font-size: .75rem; font-weight: 600; margin-bottom: 4px;
}
.hero-card-inner p { font-size: .68rem; color: var(--t2); line-height: 1.6 }
@media(max-width:900px) {
  .hero-content { grid-template-columns: 1fr }
  .hero-card { display: none }
}

/* Scroll indicator */
.scroll-cue {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%); z-index: 3;
  text-align: center; will-change: transform, opacity;
}
.scroll-pill {
  width: 22px; height: 36px;
  border: 1px solid var(--t3); border-radius: 11px;
  margin: 0 auto 8px;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 7px;
}
.scroll-dot {
  width: 2px; height: 2px; border-radius: 50%;
  background: var(--t1);
  animation: scrollBounce 2.5s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: translateY(0); opacity: 1 }
  50%     { transform: translateY(15px); opacity: .1 }
}
.scroll-label {
  font-size: .55rem; letter-spacing: .4em;
  text-transform: uppercase; color: var(--t3);
}

/* ============================================================
   SERVICE MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden; padding: 18px 0;
  border-bottom: 1px solid var(--t4);
}
.marquee-track {
  display: flex; gap: 44px;
  animation: marqueeScroll 45s linear infinite;
  width: max-content;
  will-change: transform;
}
.marquee-track a,
.marquee-track span {
  font-family: 'Fraunces', 'Fraunces-fallback', serif;
  font-weight: 200; font-size: .82rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--t2); white-space: nowrap;
  display: flex; align-items: center; gap: 44px;
  transition: color .25s;
}
.marquee-track a:hover { color: var(--skyL) }
.marquee-track span::after,
.marquee-track a::after {
  content: ''; width: 3px; height: 3px;
  border-radius: 50%; background: var(--sky); opacity: .3;
}
.marquee:hover .marquee-track { animation-play-state: paused }
.marquee-track:focus-within { animation-play-state: paused }
@keyframes marqueeScroll { to { transform: translateX(-50%) } }

/* ============================================================
   PROMISE STATEMENT
   ============================================================ */
.promise { text-align: center }
.promise p {
  font-family: 'Fraunces', 'Fraunces-fallback', serif;
  font-weight: 200;
  font-size: clamp(1.25rem, .95rem + 1.7vw, 2.1rem);
  line-height: 1.55; max-width: 28ch;
  margin: 0 auto; color: var(--t2);
}
.promise .divider { margin: 0 auto 32px }

/* ============================================================
   SERVICES GRID — featured + cards
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
}
.service-featured {
  grid-row: 1 / 3;
  border-radius: var(--radius); overflow: hidden;
  position: relative; min-height: 520px;
}
.service-featured img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--e);
}
.service-featured:hover img { transform: scale(1.05) }
.service-featured .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 15%, rgba(6,13,20,.94) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 3.5vw, 44px);
}
.service-featured h3 {
  color: #fff;
  font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem);
  margin-bottom: 8px;
}
.service-featured p {
  color: var(--t2); font-size: .78rem;
  max-width: 34ch; margin-bottom: 14px;
}
.service-card {
  background: var(--bg2);
  border: 1px solid var(--t4);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  transition: all .4s var(--e);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sky), transparent);
  transform: scaleX(0);
  transition: transform .5s var(--e);
}
.service-card:hover {
  background: var(--bg3);
  transform: translateY(-3px);
  border-color: rgba(0,147,211,.1);
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
}
.service-card:hover::before { transform: scaleX(1) }
.service-card h3 {
  margin-bottom: 6px; color: var(--t1);
  font-size: clamp(.95rem, .85rem + .4vw, 1.12rem);
}
.service-card p { font-size: .76rem; color: var(--t2); margin-bottom: 14px }
.services-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 14px;
}
@media(max-width:900px) {
  .services-grid { grid-template-columns: 1fr }
  .service-featured { min-height: 340px }
  .services-row { grid-template-columns: 1fr }
}

/* ============================================================
   EXPERIENCE SPLIT
   ============================================================ */
.experience { overflow: hidden }
.experience-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.experience-img {
  border-radius: var(--radius); overflow: hidden;
  position: relative;
}
.experience-img img {
  width: 100%; height: auto;
  aspect-ratio: 4/3; object-fit: cover;
  transition: transform 1s var(--e);
}
.experience-img:hover img { transform: scale(1.03) }
.experience-img::after {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--t4);
  pointer-events: none;
}
.experience-text h2 { margin-bottom: 20px }
.experience-text p { color: var(--t2); margin-bottom: 12px; font-size: .85rem }
.experience-text .arrow-link { margin-top: 8px }
@media(max-width:900px) { .experience-grid { grid-template-columns: 1fr } }

/* ============================================================
   AWARDS / TRUST BAR
   ============================================================ */
.awards {
  border-top: 1px solid var(--t4);
  border-bottom: 1px solid var(--t4);
  padding: clamp(36px, 5vw, 56px) clamp(16px, 4vw, 64px);
}
.awards-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: center;
  gap: clamp(32px, 5vw, 72px);
  flex-wrap: wrap; align-items: center;
}
.award-item { text-align: center; opacity: .35; transition: opacity .4s }
.award-item:hover { opacity: .95 }
.award-icon {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--t3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  transition: all .35s var(--e);
}
.award-item:hover .award-icon {
  border-color: var(--sky);
  box-shadow: 0 0 20px var(--skyG);
}
.award-icon svg {
  width: 20px; height: 20px;
  stroke: var(--t2); fill: none; stroke-width: 1.5;
}
.award-item:hover .award-icon svg { stroke: var(--skyL) }
.award-label {
  font-size: .58rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--t2); line-height: 1.45;
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial {
  text-align: center;
  position: relative; overflow: hidden;
}
.testimonial::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, var(--goldG) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, var(--skyG) 0%, transparent 40%);
}
.testimonial .stars {
  color: var(--gold); font-size: .68rem;
  letter-spacing: 4px; margin-bottom: 16px;
  position: relative;
}
.testimonial blockquote {
  font-size: clamp(1.5rem, 1rem + 3vw, 3.2rem);
  line-height: 1.25; max-width: 18ch;
  margin: 0 auto 40px; position: relative;
  color: var(--t1);
}
.testimonial .divider { margin: 0 auto 20px }
.testimonial cite {
  font-style: normal; font-weight: 600;
  font-size: .82rem; display: block;
  margin-bottom: 4px; position: relative;
  color: var(--t1);
}
.testimonial .cite-sub {
  font-size: .48rem; letter-spacing: .25em;
  text-transform: uppercase; color: var(--t3);
  position: relative;
}

/* ============================================================
   DOCTORS GRID
   ============================================================ */
.doctors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: clamp(16px, 3vw, 32px);
}
.doctor-card {
  border-radius: 16px; overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--t4);
  transition: transform .5s var(--e), box-shadow .5s;
}
.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.doctor-media {
  aspect-ratio: 3/4; overflow: hidden;
  position: relative; background: var(--bg);
}
.doctor-media video,
.doctor-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform .9s var(--e);
}
.doctor-card:hover .doctor-media video,
.doctor-card:hover .doctor-media img { transform: scale(1.04) }
.doctor-media .gradient {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(6,13,20,.45));
}
.doctor-info { padding: 18px 22px 24px }
.doctor-info h3 {
  font-family: 'Poppins', 'Poppins-fallback', sans-serif;
  font-weight: 600; font-size: .88rem;
  margin-bottom: 3px; color: var(--t1);
}
.doctor-info p {
  font-size: .7rem; color: var(--t2);
  line-height: 1.6; margin: 9px 0 12px;
}
.doctor-text {
  display: flex; flex-direction: column;
  justify-content: center;
}
.doctor-text h2 { margin-bottom: 18px }
.doctor-text p { color: var(--t2); margin-bottom: 12px; font-size: .84rem }
@media(max-width:900px) {
  .doctors-grid { grid-template-columns: 1fr }
  .doctor-text { order: -1 }
}

/* ============================================================
   BEFORE / AFTER GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ba-slider {
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--t4);
  transition: transform .35s var(--e), box-shadow .35s;
}
.ba-slider:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.ba-compare {
  position: relative; aspect-ratio: 2.9/1;
  overflow: hidden; cursor: ew-resize;
  user-select: none; -webkit-user-select: none;
}
.ba-compare img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.ba-compare .ba-after {
  clip-path: inset(0 0 0 50%);
}
.ba-handle {
  position: absolute; top: 0; bottom: 0;
  left: 50%; width: 3px;
  background: var(--sky);
  transform: translateX(-50%);
  z-index: 5; transition: left .05s linear;
  pointer-events: none;
}
.ba-handle::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 2px 12px rgba(0,147,211,.4);
}
.ba-handle::after {
  content: '\2194';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff; font-size: 16px; font-weight: 700;
  z-index: 6; line-height: 1;
}
.ba-badge {
  position: absolute; top: 8px;
  font-size: .52rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(6,13,20,.85); color: var(--t2);
  backdrop-filter: blur(6px);
  z-index: 4; pointer-events: none;
}
.ba-badge.before { left: 8px }
.ba-badge.after { right: 8px }
.ba-slider > p { padding: 12px 16px; font-size: .64rem; color: var(--t2) }
@media(max-width:767px) { .gallery-grid { grid-template-columns: 1fr } }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 28% 50%, var(--skyG) 0%, transparent 45%),
    radial-gradient(ellipse at 72% 50%, var(--goldG) 0%, transparent 40%);
}
.cta-section h2 { font-style: italic; margin-bottom: 10px; position: relative }
.cta-section .cta-sub {
  font-weight: 300; font-size: .84rem;
  color: var(--t2); margin-bottom: 36px; position: relative;
}
.cta-section .cta-sub a { color: var(--skyL) }
.cta-buttons {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   LOCATIONS GRID
   ============================================================ */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.location-card {
  background: var(--bg2);
  border: 1px solid var(--t4);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 36px);
  text-align: center;
  transition: all .35s var(--e);
  position: relative; overflow: hidden;
}
.location-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 1px; background: var(--sky);
  transition: width .45s var(--e);
}
.location-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,147,211,.1);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
}
.location-card:hover::after { width: 45% }
.location-card h3 { margin-bottom: 8px; color: var(--t1); font-size: 1.05rem }
.location-card p { font-size: .76rem; color: var(--t2); margin: 0 auto 16px }
@media(max-width:767px) { .locations-grid { grid-template-columns: 1fr } }

/* ============================================================
   GSAP INITIAL STATES — homepage elements start hidden
   ============================================================ */
.service-card,
.ba-slider,
.location-card,
.doctor-card {
  opacity: 0;
  transform: translateY(50px);
}

/* Hero text fallback removed: GSAP no longer animates opacity, so hero is always visible. */

/* CTA section texture depth */
.cta-section::after {
  content: '';
  position: absolute; inset: 0;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.015' numOctaves='3' seed='42'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
  background-size: cover;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

/* ============================================================
   GALLERY PAGE — Larger, more impactful sliders
   ============================================================ */

/* Gallery page: 2-column layout for bigger, more dramatic sliders */
.gallery-page .gallery-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.gallery-page .ba-slider {
  border-radius: 16px;
}
.gallery-page .ba-compare {
  aspect-ratio: 16/9;
}
.gallery-page .ba-slider > p {
  padding: 14px 20px;
  font-size: .72rem;
  font-weight: 400;
}

/* Full-width featured slider (first in each section) */
.gallery-page .gallery-grid .ba-slider:first-child {
  grid-column: 1 / -1;
}
.gallery-page .gallery-grid .ba-slider:first-child .ba-compare {
  aspect-ratio: 21/9;
}

@media (max-width: 767px) {
  .gallery-page .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-page .gallery-grid .ba-slider:first-child .ba-compare {
    aspect-ratio: 16/9;
  }
}
