﻿/* EXHALIA site - tokens from design-system.html */
:root {
  --brand-teal: #4498A4;
  --brand-blue: #316295;
  --brand-aqua: #99D3DA;
  --brand-sky: #81B8E4;
  --gradient-brand: linear-gradient(135deg, #4498A4 0%, #316295 100%);
  --surface-0: #FFFFFF;
  --surface-1: #F7FAFB;
  --surface-2: #EEF6F8;
  --border: #D4E8EC;
  --text-primary: #1A2B3C;
  --text-secondary: #4A6278;
  --text-muted: #7A94A8;
  --text-inverse: #FFFFFF;
  --success: #2EAA7A;
  --whatsapp: #25D366;
  --font-display: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Aceh', 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  --header-h: 64px;
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 110%; }

body {
  background: var(--surface-0);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.site-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__logo {
  height: 37px;
  width: auto;
  display: block;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.site-nav a:hover { color: var(--brand-teal); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch, .location-switch {
  display: inline-flex;
  gap: 0.15rem;
  padding: 0.15rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.lang-switch__btn, .location-switch__btn {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  min-height: 32px;
  transition: all 0.15s;
}

.lang-switch__btn.is-active,
.location-switch__btn.is-active {
  background: var(--brand-teal);
  color: var(--text-inverse);
}

.site-header__phone {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brand-blue);
  white-space: nowrap;
}

.site-header__phone:hover { color: var(--brand-teal); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--brand-blue);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
  min-height: 44px;
  white-space: nowrap;
}

.btn--primary {
  background: var(--brand-teal);
  color: var(--text-inverse);
  border-color: var(--brand-teal);
}
.btn--primary:hover { background: #3a8792; }

.btn--white {
  background: var(--surface-0);
  color: var(--brand-blue);
  border-color: var(--surface-0);
}
.btn--white:hover { background: var(--surface-2); }

.btn--outline-light {
  background: transparent;
  color: var(--text-inverse);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--text-inverse);
}

.btn--ghost {
  color: var(--brand-teal);
  border-color: var(--brand-teal);
  background: transparent;
}
.btn--ghost:hover { background: var(--surface-2); }

.btn--sm { padding: 0.5rem 1rem; font-size: 0.78rem; min-height: 36px; }

/* ── Hero ── */
.hero {
  background: var(--gradient-brand);
  color: var(--text-inverse);
  padding: 4rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.12) 0%, transparent 45%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero__lead {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 480px;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

.hero__checks span::before {
  content: '\2713  ';
  font-weight: 700;
}

.hero__visual {
  position: relative;
}

.hero-photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 24px 48px rgba(26, 43, 60, 0.2);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-photo__stats {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.5rem;
  backdrop-filter: blur(8px);
  color: var(--brand-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.15rem;
}

.hero-card__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.25;
  margin-bottom: 0;
}

.hero-card__val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--brand-blue);
}

/* ── Sections ── */
.section {
  padding: 4.5rem 0;
}

.section--alt { background: var(--surface-1); }

.section--journey {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 3.25rem 0;
}

.section--journey::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/clinic-interior.jpg') center / cover no-repeat;
  opacity: 0.45;
  z-index: 0;
}

.section--journey::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--surface-1);
  opacity: 0.88;
  z-index: 1;
}

.section--journey > .container {
  position: relative;
  z-index: 2;
}

.section--journey .section__lead {
  margin-bottom: 1.5rem;
}

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 0.5rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--brand-blue);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section__lead {
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2rem;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* ── Metrics ── */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}

.metric {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(49, 98, 149, 0.06);
}

.metric__label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.35rem;
}

.metric__val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  color: var(--brand-blue);
}

/* ── Care journey ── */
.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.journey__step {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  text-align: center;
  backdrop-filter: blur(4px);
}

.journey__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--brand-teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.journey__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand-blue);
  margin-bottom: 0.35rem;
}

.journey__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── Service cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: var(--brand-aqua);
  box-shadow: 0 8px 28px rgba(68, 152, 164, 0.1);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--brand-teal);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brand-blue);
  margin-bottom: 0.4rem;
}

.service-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.service-card__link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-teal);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: 0.65rem;
}

.badge--peds { color: #7B5EA7; background: rgba(123, 94, 167, 0.1); }
.badge--adult { color: var(--brand-teal); background: rgba(68, 152, 164, 0.12); }
.badge--sleep { color: #4A6888; background: rgba(74, 104, 136, 0.12); }
.badge--tele { color: var(--brand-blue); background: rgba(49, 98, 149, 0.1); }

/* ── Tele banner ── */
.tele-banner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  color: var(--text-inverse);
}

.tele-banner__content {
  min-width: 0;
}

.tele-banner__img {
  width: 160px;
  height: auto;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  opacity: 0.95;
}

.tele-banner__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.tele-banner__desc { font-size: 0.9rem; opacity: 0.9; max-width: 480px; }

/* ── Providers ── */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.provider-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 128px;
  align-items: stretch;
  min-height: 240px;
}

.provider-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

.provider-card__body .btn {
  margin-top: auto;
  align-self: flex-start;
}

.provider-card__media {
  position: relative;
  background: var(--surface-2);
  border-left: 1px solid var(--border);
  min-height: 100%;
}

.provider-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.provider-card__photo--1 {
  object-fit: cover;
  object-position: top center;
}

.provider-card__photo--2 { object-position: 28% top; }
.provider-card__photo--3 { object-position: center top; }

.provider-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-inverse);
  margin-bottom: 1rem;
}

.provider-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: 0.2rem;
}

.provider-card__role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.provider-card__spec {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.provider-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

/* ── Locations ── */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.location-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-teal);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
}

.location-card__photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.location-card__body {
  padding: 1.35rem;
}

.location-card__city {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 0.25rem;
}

.location-card__addr {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.location-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── Testimonial ── */
.testimonial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.testimonial-split__media {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(49, 98, 149, 0.08);
}

.testimonial-split__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.testimonial {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: left;
  max-width: none;
  margin: 0;
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--brand-blue);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.testimonial__author {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── CTA section ── */
.cta-section {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.booking-form {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.input, .select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--surface-0);
}

.input:focus, .select:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(68, 152, 164, 0.15);
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-aqua);
}

/* ── Footer ── */
.site-footer {
  background: var(--brand-blue);
  color: var(--text-inverse);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer__logo { height: 32px; width: auto; margin-bottom: 0.75rem; opacity: 0.95; }

.footer__tagline {
  font-size: 0.85rem;
  opacity: 0.75;
  max-width: 260px;
}

.footer__title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.75rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  opacity: 0.85;
}

.footer__links a:hover { opacity: 1; text-decoration: underline; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  opacity: 0.6;
}

/* ── WhatsApp float ── */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  background: var(--whatsapp);
  color: var(--text-inverse);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}

.whatsapp-float:hover { transform: scale(1.03); }

.whatsapp-float svg { flex-shrink: 0; }

/* ── Mobile nav drawer ── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(26, 43, 60, 0.4);
}

.mobile-nav.is-open { display: block; }

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100%;
  background: var(--surface-0);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: -8px 0 32px rgba(0,0,0,0.1);
}

.mobile-nav__panel a {
  padding: 0.75rem 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--brand-blue);
  border-bottom: 1px solid var(--border);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .site-nav, .site-header__phone, .location-switch { display: none; }
  .menu-toggle { display: flex; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero-photo__stats { grid-template-columns: 1fr; }
  .testimonial-split { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .providers-grid { grid-template-columns: 1fr; }
  .tele-banner { grid-template-columns: 1fr; text-align: center; }
  .tele-banner__img { margin-inline: auto; }
  .cta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 3rem 0; }
  .services-grid, .journey, .metrics, .locations-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header__actions .btn--primary span { display: none; }
}
