/*
 * Sunaina — Vibrant single-surgeon theme · Treatlly
 *
 * Three deliberate breaks from the catalogue:
 *   1. TRI-COLOR. Saffron + Peacock + Ivory — used as FULL-BLEED section
 *      backgrounds, not as hairline accents. The palette is the theme
 *      character; tenants don't override it. (Only the primary CTA fill
 *      follows --launch-primary so individual tenants can brand their CTA.)
 *   2. SINGLE-SURGEON LAYOUT. doctor_list renders ONE doctor in a magazine
 *      spread. team.liquid is repurposed as "Our Promise" (3 commitments).
 *      why_choose_us.liquid is repurposed as patient testimonials.
 *   3. IRIS IDENTITY DEVICE. Inline SVG with the surgeon's portrait clipped
 *      inside the pupil. The mark glyph is defined once in layout.liquid
 *      via <symbol id="sunainaMark"> and reused in header + footer.
 *
 * Typography: Fraunces with both opsz AND SOFT variation axes
 * (font-display = SOFT 50, font-display-soft = SOFT 100). Plus Jakarta
 * Sans for body. NO mono.
 */
@import url("/assets/tailwind.css");

:root {
  --paper:       #FFF8EE;
  --paper-2:     #FBF1DE;
  --ink:         #1A2B3C;
  --ink-2:       rgba(26, 43, 60, 0.78);
  --ink-3:       rgba(26, 43, 60, 0.52);
  --ink-4:       rgba(26, 43, 60, 0.30);
  --rule:        rgba(26, 43, 60, 0.16);
  --rule-soft:   rgba(26, 43, 60, 0.08);
  --saffron:     #F59E0B;
  --saffron-d:   #D97706;
  --saffron-2:   #FBC15D;
  --peacock:     #0F4C81;
  --peacock-d:   #093560;
  --peacock-2:   #1A5E97;
  --emerald:     #10B981;
}

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

/* ── Type ──────────────────────────────────────────────────────────── */
.font-display {
  font-family: "Fraunces", "Georgia", serif;
  font-variation-settings: "opsz" 96, "SOFT" 50;
  letter-spacing: -0.02em;
}
.font-display-soft {
  font-family: "Fraunces", "Georgia", serif;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  letter-spacing: -0.018em;
}
.italic-disp {
  font-family: "Fraunces", "Georgia", serif;
  font-style: italic;
}
.tnum { font-variant-numeric: tabular-nums; }
.num-badge {
  font-family: "Fraunces", "Georgia", serif;
  font-style: italic;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Eyebrow — warm small caps, saffron-tinted by default */
.eyebrow {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--saffron-d);
}
.eyebrow-soft { color: var(--ink-3); }

/* ── Ink / colour utilities ────────────────────────────────────────── */
.ink       { color: var(--ink); }
.ink-2     { color: var(--ink-2); }
.ink-3     { color: var(--ink-3); }
.saff      { color: var(--saffron); }
.peacock-c { color: var(--peacock); }

.text-paper   { color: var(--paper) !important; }
.text-ink     { color: var(--ink)   !important; }
.text-saff    { color: var(--saffron) !important; }
.text-peacock { color: var(--peacock) !important; }

/* Background tokens (used by the three color-block sections) */
.bg-paper      { background: var(--paper); }
.bg-paper-2    { background: var(--paper-2); }
.bg-paper\/80  { background: rgba(255, 248, 238, 0.80); }
.bg-paper\/90  { background: rgba(255, 248, 238, 0.90); }
.bg-paper\/95  { background: rgba(255, 248, 238, 0.95); }
.bg-saff       { background: var(--saffron); }
.bg-saff-soft  { background: #FEF3C7; }
.bg-peacock    { background: var(--peacock); }
.bg-peacock-d  { background: var(--peacock-d); }
.bg-emerald-500 { background: var(--emerald); }

.rule       { border-color: var(--rule); }
.rule-soft  { border-color: var(--rule-soft); }
.border-rule { border-color: var(--rule); }
.border-rule-soft { border-color: var(--rule-soft); }
.border-ink { border-color: var(--ink); }
.border-saff { border-color: var(--saffron); }
.border-peacock { border-color: var(--peacock); }
.divide-rule > * + * { border-color: var(--rule); }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--saffron);
  color: var(--ink);
  padding: 14px 26px;
  border-radius: 999px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px -6px rgba(245, 158, 11, 0.55);
}
.btn-primary:hover  { background: var(--saffron-d); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--ink);
  padding: 13px 25px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-primary-on-dark {
  background: var(--saffron);
  color: var(--peacock-d);
  box-shadow: 0 4px 18px -6px rgba(245, 158, 11, 0.7);
}
.btn-primary-on-dark:hover { background: var(--saffron-d); }

.btn-ghost-on-dark {
  color: var(--paper);
  border-color: rgba(255, 248, 238, 0.4);
}
.btn-ghost-on-dark:hover {
  background: var(--paper);
  color: var(--peacock);
}

/* Tenant-driven CTA fill — only the primary CTA inherits the tenant brand
   colour. The saffron/peacock palette stays fixed (see RATIONALE: theme
   character is not tenant-overridable). */
.btn-theme-primary {
  background: var(--launch-primary, var(--saffron));
  color: var(--launch-primary-foreground, var(--ink));
}
.hover-bg-theme-primary-dark:hover {
  background: var(--launch-primary-dark, var(--saffron-d));
}
.text-theme-primary { color: var(--launch-primary, var(--saffron)); }

/* ── Iris centrepiece — the hero motif ────────────────────────────── */
.iris-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
.iris-glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.32), rgba(245, 158, 11, 0) 65%);
  pointer-events: none;
  z-index: 0;
}
.iris-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}

/* Sun-burst rays — used as background decoration in hero + doctor sections */
.sun-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 75% 30%, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0) 50%),
    radial-gradient(circle at 25% 65%, rgba(15, 76, 129, 0.10), rgba(15, 76, 129, 0) 60%);
}

/* Treatment tile — used inside the peacock section, has saffron accent line on hover */
.treat-tile {
  background: rgba(255, 248, 238, 0.04);
  border: 1px solid rgba(255, 248, 238, 0.15);
  border-radius: 16px;
  padding: 28px 24px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.treat-tile:hover {
  background: rgba(255, 248, 238, 0.08);
  border-color: var(--saffron);
  transform: translateY(-2px);
}
.treat-tile .index {
  font-family: "Fraunces", "Georgia", serif;
  font-style: italic;
  font-size: 18px;
  color: var(--saffron);
  letter-spacing: -0.01em;
}

/* Hand-drawn saffron wave underline — used under italic word in hero headline */
.wave-saff {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10'><path d='M2 7 Q 28 1 56 6 T 112 5 T 168 5 T 198 6' fill='none' stroke='%23F59E0B' stroke-width='2.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 10px;
  padding-bottom: 8px;
}

/* Decorative left-quote mark — used before the surgeon pull-quote */
.qmark::before {
  content: "\201C";
  font-family: "Fraunces", "Georgia", serif;
  font-size: 5em;
  line-height: 0.1;
  vertical-align: -0.45em;
  color: var(--saffron);
  margin-right: 0.05em;
}
