/* ClinicStudio landing page. Same design language as the Kalinga Polyclinic site:
   deep teal + saffron accent, Fraunces display serif, Plus Jakarta Sans body. */
:root {
  --teal-950: #04211f; --teal-900: #06302e; --teal-800: #0a4744; --teal-700: #0b5c57;
  --teal-600: #0e726b; --teal-500: #12877f; --teal-300: #7cc7bd; --mint-50: #f2faf8;
  --saffron: #f2a33a; --cream: #fbf8f3; --sand: #f3ede3;
  --ink: #0f2524; --ink-2: #3d5352; --ink-3: #6b7f7d; --line: #dde7e4;
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 18px; --r-lg: 28px;
  --sh-1: 0 1px 2px rgba(6, 48, 46, .06), 0 2px 8px rgba(6, 48, 46, .05);
  --sh-2: 0 10px 30px -10px rgba(6, 48, 46, .25), 0 4px 12px -4px rgba(6, 48, 46, .08);
  --sh-3: 0 30px 60px -20px rgba(6, 48, 46, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 40px); --maxw: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 16.5px; line-height: 1.65; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 500; line-height: 1.1; letter-spacing: -.015em; font-variation-settings: "opsz" 96, "SOFT" 50; }
p { margin: 0 0 1em; } p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 99; background: var(--teal-900); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--sand { background: var(--sand); }

.eyebrow { display: inline-flex; align-items: center; gap: .55em; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: .7; }
.display { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
.h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.display em, .h2 em { font-style: italic; color: var(--teal-500); font-weight: 400; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 36em; margin-top: 1.4rem; }
.head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.sub { color: var(--ink-2); margin-top: 1rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: .8em 1.4em; border-radius: 999px; background: var(--teal-700); color: #fff; font-weight: 650; font-size: .96rem; text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); background: var(--teal-800); }
.btn--sm { min-height: 40px; padding: .5em 1.15em; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--teal-800); border-color: var(--teal-700); }
.btn--ghost:hover { background: var(--teal-700); color: #fff; }
.btn--light { background: var(--saffron); color: var(--teal-950); }
.btn--light:hover { background: #ffb758; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); }

/* Header */
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 243, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-size: 1.45rem; font-weight: 500; letter-spacing: -.01em; color: var(--teal-900); }
.brand b { font-weight: 600; color: var(--teal-500); font-style: italic; }
.brand--light { color: #fff; font-size: 1.2rem; } .brand--light b { color: var(--saffron); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 550; color: var(--ink-2); font-size: .95rem; }
.nav a:hover { color: var(--teal-700); }

/* Hero */
.hero { padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px); background: radial-gradient(1200px 500px at 85% -10%, var(--mint-50), transparent 60%); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero__card { position: relative; }
.mock { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden; border: 1px solid var(--line); transform: rotate(1.5deg); }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--sand); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d8cfc0; }
.mock__bar span { margin-left: 10px; font-size: .78rem; color: var(--ink-3); background: #fff; padding: 2px 12px; border-radius: 99px; }
.mock__body { padding: 28px; }
.mock__h { font-family: var(--f-display); font-size: 1.7rem; line-height: 1.15; color: var(--teal-900); }
.mock__h em { color: var(--teal-500); }
.mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.mock__row b { height: 64px; border-radius: 14px; background: linear-gradient(135deg, var(--mint-50), #dff0ec); }
.mock__slot { display: flex; gap: 8px; flex-wrap: wrap; font-size: .82rem; font-weight: 600; color: var(--ink-2); align-items: center; }
.mock__slot span { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); }
.mock__slot span:first-child { border: 0; padding-left: 0; }
.mock__slot .on { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.mock__btn { margin-top: 22px; text-align: center; padding: 12px; border-radius: 99px; background: var(--saffron); color: var(--teal-950); font-weight: 700; font-size: .9rem; }
.pill { position: absolute; background: #fff; border-radius: 99px; padding: 10px 16px; font-size: .82rem; font-weight: 650; color: var(--teal-800); box-shadow: var(--sh-2); white-space: nowrap; }
.pill::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2bb673; margin-right: 8px; vertical-align: 1px; }
.pill--a { top: 18%; left: -36px; }
.pill--b { bottom: -18px; right: 12px; }
.pill--b::before { background: var(--saffron); }

/* Stats */
.stats { background: var(--teal-900); color: #dcefeb; }
.stats__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 34px; text-align: center; }
.stats b { display: block; font-family: var(--f-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; color: #fff; line-height: 1.1; }
.stats span { font-size: .9rem; color: var(--teal-300); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--sh-1); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.feat:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.feat__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--mint-50); color: var(--teal-600); font-size: 1.35rem; margin-bottom: 18px; }
.feat h3 { font-size: 1.35rem; margin-bottom: .5rem; color: var(--teal-900); }
.feat p { color: var(--ink-2); font-size: .97rem; }

/* Clinics (live) */
.clinics { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.clinic { background: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-1); border: 1px solid var(--line); display: flex; flex-direction: column; }
.clinic__top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.clinic__logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--mint-50); flex: none; box-shadow: var(--sh-1); }
.clinic__logo--text { display: grid; place-items: center; font-family: var(--f-display); font-size: 1.6rem; color: var(--teal-700); }
.clinic h3 { font-size: 1.45rem; color: var(--teal-900); }
.clinic__city { font-size: .88rem; color: var(--ink-3); margin-top: 2px; }
.clinic__tag { color: var(--ink-2); font-style: italic; font-family: var(--f-display); font-size: 1.08rem; }
.clinic__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0 22px; padding: 14px 0; border-block: 1px solid var(--line); text-align: center; }
.clinic__nums b { display: block; font-family: var(--f-display); font-size: 1.5rem; font-weight: 500; color: var(--teal-700); line-height: 1.1; }
.clinic__nums span { font-size: .78rem; color: var(--ink-3); }
.clinic .btn { margin-top: auto; align-self: flex-start; }
.clinic--loading { min-height: 220px; gap: 14px; }
.sk { height: 16px; border-radius: 8px; background: linear-gradient(90deg, #eee8dd, #f7f3ec, #eee8dd); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
.sk--logo { width: 64px; height: 64px; border-radius: 50%; }
.sk--short { width: 55%; }
@keyframes sk { to { background-position: -200% 0; } }
.clinics__empty { color: var(--ink-2); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; padding: 28px; border-radius: var(--r); background: var(--mint-50); }
.steps b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal-700); color: #fff; font-family: var(--f-display); font-size: 1.3rem; font-weight: 500; margin-bottom: 18px; }
.steps h3 { font-size: 1.35rem; color: var(--teal-900); margin-bottom: .5rem; }
.steps p { color: var(--ink-2); font-size: .97rem; }

/* CTA + footer */
.cta { background: var(--teal-900); color: #dcefeb; padding-block: clamp(64px, 9vw, 112px); text-align: center; }
.cta__in { max-width: 760px; }
.cta .h2 { color: #fff; } .cta .h2 em { color: var(--saffron); }
.cta p { margin-top: 1rem; font-size: 1.08rem; }
.cta .hero__cta { justify-content: center; }
.ftr { background: var(--teal-950); color: #9fbfba; font-size: .88rem; }
.ftr__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 26px; flex-wrap: wrap; }

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__card { max-width: 460px; margin-inline: auto; width: 100%; }
  .pill--a { left: 0; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .hdr .btn { margin-left: auto; }
  .features, .steps { grid-template-columns: 1fr; }
  .stats__in { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
