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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

::selection {
  background: var(--primary-500);
  color: var(--color-text-on-primary);
}

img { display: block; width: 100%; height: auto; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 18px;
  transform: translateY(-160%);
  border-radius: var(--radius-md);
  background: var(--neutral-900);
  color: var(--color-text-on-dark);
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(calc(100% - 48px), var(--max-content));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--primary-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.02em; }

h1 span { color: var(--primary-700); }

.lead {
  max-width: 34rem;
  margin: var(--space-5) 0 0;
  color: var(--color-text-muted);
  font-size: 1.125rem;
  line-height: 1.75;
}

.section-head { margin: 0 0 var(--space-7); }
.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-default),
    color var(--duration-fast),
    border-color var(--duration-fast),
    transform var(--duration-fast);
}

.btn-primary {
  background: var(--cta-primary-bg);
  color: var(--cta-primary-text);
}

.btn-primary:hover {
  background: var(--cta-primary-hover-bg);
  transform: translateY(-1px);
}

.btn-ink {
  background: var(--cta-secondary-bg);
  color: var(--cta-secondary-text);
}

.btn-ink:hover { background: var(--cta-secondary-hover-bg); }

.btn-ghost {
  background: var(--cta-ghost-bg);
  color: var(--cta-ghost-text);
  border-color: var(--cta-ghost-border);
}

.btn-ghost:hover { background: var(--cta-ghost-hover-bg); }

.btn-sm { padding: 10px 20px; font-size: 0.8rem; }
.btn-block { width: 100%; }

.play-mini {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--primary-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 76px;
  padding: 12px 32px;
  background: var(--color-overlay-light);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
}

.logo-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--primary-500);
}

.nav-desktop {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
}

.nav-desktop a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--duration-fast);
}

.nav-desktop a:hover,
.nav-desktop a.is-active { color: var(--color-text); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-text);
}

.menu-mobile {
  display: none;
  position: fixed;
  inset: 76px 16px auto;
  z-index: 90;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}

.menu-mobile.is-open { display: block; }
.menu-mobile nav { display: flex; flex-direction: column; gap: var(--space-4); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--space-7);
  padding: var(--space-8) 0 var(--space-9);
  position: relative;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero-visual { position: relative; }

.hero-photo {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 420px;
}

.hero-photo img { height: 480px; }

.float-card {
  position: absolute;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
}

.float-sat {
  top: 24px;
  left: -16px;
  min-width: 180px;
}

.float-sat strong { font-size: 1.35rem; display: block; }

.mini-bars {
  display: block;
  height: 28px;
  margin-top: 8px;
  background:
    linear-gradient(var(--primary-500), var(--primary-500)) 0 100% / 18% 40%,
    linear-gradient(var(--primary-500), var(--primary-500)) 28% 100% / 18% 70%,
    linear-gradient(var(--primary-500), var(--primary-500)) 56% 100% / 18% 55%,
    linear-gradient(var(--primary-500), var(--primary-500)) 84% 100% / 18% 90%;
  background-repeat: no-repeat;
  border-radius: 2px;
}

.float-meta {
  right: 16px;
  bottom: 88px;
}

.float-meta ul { margin: 0; padding: 0; list-style: none; }
.float-meta li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-default);
  font-weight: 600;
  font-size: 0.78rem;
}
.float-meta li:last-child { border: 0; }

.search-bar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: var(--space-3);
  margin-top: calc(var(--space-6) * -1);
  position: relative;
  z-index: 2;
  background: var(--color-surface);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-default);
}

.search-bar label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.search-bar select {
  height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--neutral-50);
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text);
}

/* Services bento */
.services { padding: var(--space-9) 0; }

.bento {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-5);
}

.bento-feature {
  position: relative;
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 420px;
}

.bento-feature img { height: 100%; min-height: 420px; }
.bento-feature-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-6);
  background: linear-gradient(transparent, rgba(17, 17, 17, 0.7));
  color: var(--color-text-on-dark);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast), box-shadow var(--duration-fast);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.lime-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--primary-500);
  font-weight: 800;
}

.service-card p {
  margin: 8px 0 16px;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.link-more {
  font-size: 0.8rem;
  font-weight: 700;
}

.link-more:hover { color: var(--primary-700); }

/* Tech masonry */
.tech { padding: 0 0 var(--space-9); }

.masonry {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  grid-auto-rows: minmax(140px, auto);
  gap: var(--space-4);
}

.tech-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
}

.tech-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tech-card p { margin: 0; color: var(--color-text-muted); font-size: 0.875rem; }

.lime-fab {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--primary-500);
}

.masonry-photo {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  grid-row: span 2;
}

.masonry-photo img { height: 100%; min-height: 280px; }
.masonry-photo-tall { grid-row: span 2; }

/* Video */
.video-block { padding: 0 0 var(--space-9); }

.video-frame {
  margin: 0;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.video-frame img { height: 420px; }

.play-fab {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--primary-500);
  color: var(--color-text-on-primary);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}

.play-fab:hover { background: var(--cta-primary-hover-bg); }

/* Doctors */
.team { padding: 0 0 var(--space-9); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.doctor-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.doctor-card img { height: 340px; }

.doctor-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-5) var(--space-4);
  background: linear-gradient(transparent, rgba(17, 17, 17, 0.78));
  color: var(--color-text-on-dark);
}

.doctor-meta p { margin: 4px 0 0; font-size: 0.8rem; opacity: 0.85; font-weight: 500; }

/* Testimonials */
.testimonials { padding: 0 0 var(--space-9); }

.review-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.quote-mark {
  margin: var(--space-5) 0 0;
  font-size: 4rem;
  line-height: 0.8;
  color: var(--primary-600);
  font-weight: 800;
}

.review-quote {
  display: none;
  margin: 0 0 var(--space-5);
  font-size: 1.2rem;
  line-height: 1.55;
  font-weight: 500;
}

.review-quote.is-active { display: block; }

.review-name { margin: 0; font-weight: 800; }
.review-place { margin: 4px 0 0; color: var(--color-text-muted); font-size: 0.875rem; }

.review-nav { display: flex; gap: 8px; margin-top: var(--space-5); }

.review-nav button {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  background: var(--color-surface);
  cursor: pointer;
}

.review-nav button:hover { background: var(--primary-500); }

.review-photo {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.review-photo img { height: 460px; }

/* Booking */
.booking {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-8);
  align-items: start;
  padding: 0 0 var(--space-10);
}

.booking-card {
  background: var(--color-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }

.booking-card label,
.booking-card .field-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-3);
  font-size: 0.75rem;
  font-weight: 700;
}

.booking-card input,
.booking-card textarea {
  height: 48px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0 14px;
  background: var(--neutral-50);
  outline: none;
}

.booking-card textarea { height: auto; padding: 12px 14px; resize: vertical; }

.booking-card input:focus,
.booking-card textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px var(--primary-100);
  background: var(--color-surface);
}

.form-status {
  min-height: 1.2em;
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--primary-700);
}

/* Footer */
.site-footer {
  background: var(--color-surface-tint);
  padding: var(--space-8) 0 var(--space-5);
  position: relative;
  overflow: hidden;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 180px;
  background: radial-gradient(ellipse at center, var(--accent-powder) 0%, transparent 70%);
  pointer-events: none;
}

.connect-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  background: var(--accent-ice);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-7);
}

.connect-banner p {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: var(--space-6);
  position: relative;
  z-index: 1;
}

.footer-grid p { color: var(--color-text-muted); font-size: 0.875rem; }
.footer-grid h4 {
  margin: 0 0 var(--space-3);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-grid a { display: block; font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: 8px; }
.footer-grid a:hover { color: var(--color-text); }

.footer-news { display: flex; flex-wrap: wrap; gap: 8px; }

.footer-news input {
  flex: 1;
  min-width: 140px;
  height: 44px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0 12px;
  background: var(--color-surface);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  position: relative;
  z-index: 1;
}

.footer-bottom p { margin: 0; font-size: 0.8rem; color: var(--color-text-muted); }

.social { display: flex; gap: 8px; }
.social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--color-surface);
}

/* Modal */
.modal { border: 0; padding: 0; background: transparent; }
.modal::backdrop { background: var(--color-overlay); }

.modal-card {
  width: min(720px, calc(100vw - 32px));
  margin: auto;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  position: relative;
}

.modal-card img { border-radius: var(--radius-lg); height: 360px; }
.modal-card p { color: var(--color-text-muted); }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  cursor: pointer;
  font-size: 1.2rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: none;
  transition: opacity var(--duration-slow) var(--ease-enter),
    transform var(--duration-slow) var(--ease-enter);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .hero,
  .bento,
  .review-split,
  .booking,
  .masonry,
  .team-grid,
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar .btn { grid-column: 1 / -1; }
  .masonry { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }

  .hero,
  .bento,
  .bento-grid,
  .review-split,
  .booking,
  .masonry,
  .team-grid,
  .footer-grid,
  .field-row,
  .search-bar,
  .section-head-split { grid-template-columns: 1fr; }

  .hero { padding-top: var(--space-6); }
  .hero-photo img,
  .video-frame img,
  .review-photo img { height: 320px; }
  .float-sat { left: 12px; }
  .float-meta { display: none; }
  .search-bar { margin-top: 0; }
  .connect-banner,
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-head-split .btn { align-self: start; }
}
