/* ============================================================
   GALADENT — Luxury dental clinic brand system
   Palette: deep teal #044a42 · gold #d4af37 · white
   Type: Cormorant Garamond (editorial serif display)
         + Geist (crisp UI / body sans)
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Geist:wght@300;400;500;600;700&display=swap");

:root {
  /* ---------- Brand ---------- */
  --teal:        #044a42;   /* primary brand */
  --teal-deep:   #02322c;   /* deeper teal — hero base */
  --teal-night:  #01201c;   /* darkest — footer / vignette */
  --teal-soft:   #0a5b51;   /* lifted teal — cards on dark */
  --teal-tint:   rgba(4, 74, 66, 0.06);
  --teal-tint-2: rgba(4, 74, 66, 0.12);

  --gold:        #d4af37;   /* the only metallic accent */
  --gold-bright: #e7c860;   /* highlight / sheen */
  --gold-deep:   #b08d22;   /* engraved rim / pressed */
  --gold-tint:   rgba(212, 175, 55, 0.12);
  --gold-tint-2: rgba(212, 175, 55, 0.20);
  --gold-line:   rgba(212, 175, 55, 0.35);

  /* ---------- Surfaces ---------- */
  --white:       #ffffff;
  --paper:       #faf8f3;   /* warm off-white page bg */
  --paper-deep:  #f3efe6;   /* one notch warmer for variety */
  --paper-glass: rgba(255, 255, 255, 0.6);

  --ink:         #14211f;   /* near-black, teal-tinted text on light */
  --ink-soft:    #4f5f5b;   /* secondary text */
  --ink-faint:   #8a9692;   /* tertiary */
  --border-soft: rgba(4, 74, 66, 0.12);
  --border-faint:rgba(4, 74, 66, 0.07);

  /* On-dark text tiers */
  --white-90:    rgba(255, 255, 255, 0.90);
  --white-70:    rgba(255, 255, 255, 0.70);
  --white-55:    rgba(255, 255, 255, 0.55);
  --white-18:    rgba(255, 255, 255, 0.18);
  --white-10:    rgba(255, 255, 255, 0.10);
  --white-06:    rgba(255, 255, 255, 0.06);

  /* ---------- Type ---------- */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --display: clamp(56px, 9.5vw, 168px);
  --h1: clamp(40px, 6.5vw, 104px);
  --h2: clamp(34px, 4.6vw, 76px);
  --h3: clamp(27px, 3vw, 46px);
  --h4: clamp(22px, 2vw, 30px);
  --eyebrow: 12px;

  /* ---------- Radius ---------- */
  --r-pill: 9999px;
  --r-2xl: 32px;
  --r-xl: 24px;
  --r-lg: 16px;
  --r-md: 12px;

  /* ---------- Shadows ---------- */
  --shadow-card: 0 1px 2px rgba(20, 33, 31, 0.04), 0 24px 60px -22px rgba(20, 33, 31, 0.20);
  --shadow-lift: 0 1px 2px rgba(20, 33, 31, 0.05), 0 34px 80px -24px rgba(4, 74, 66, 0.30);
  --shadow-gold: 0 1px 0 rgba(255,255,255,0.4) inset, 0 18px 44px -10px rgba(212, 175, 55, 0.45);
  --shadow-gold-hover: 0 1px 0 rgba(255,255,255,0.5) inset, 0 26px 56px -10px rgba(212, 175, 55, 0.60);
  --shadow-teal: 0 22px 60px -18px rgba(2, 50, 44, 0.55);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-luxe: cubic-bezier(0.65, 0.05, 0.36, 1);
  --d-fast: 220ms;
  --d-base: 360ms;
  --d-slow: 640ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--teal-night); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--paper-deep); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 99px; border: 3px solid var(--paper-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
.display {
  font-family: var(--serif);
  font-size: var(--display);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); font-weight: 600; }
p { margin: 0; }

.serif-it { font-family: var(--serif); font-style: italic; font-weight: 500; }
.gold-text { color: var(--gold); }
.gold-grad {
  background: linear-gradient(105deg, var(--gold-deep) 0%, var(--gold-bright) 42%, var(--gold) 70%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--sans);
  font-size: var(--eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--gold-bright); }
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::after {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.65; color: var(--ink-soft); }
.on-dark .lead, .lead.on-dark { color: var(--white-70); }

/* ============================================================
   Layout
   ============================================================ */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 28px; }
section { position: relative; }
.section-pad { padding: clamp(80px, 11vw, 160px) 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  isolation: isolate;
  overflow: hidden;
  transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out), color var(--d-base), border-color var(--d-base);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  transform: translateX(-101%);
  transition: transform 520ms var(--ease-luxe);
  z-index: -1;
}
.btn:hover::before { transform: translateX(0); }
.btn .ic { display: inline-flex; transition: transform var(--d-base) var(--ease-out); }
.btn:hover .ic { transform: translateX(3px); }

.btn--sm { padding: 11px 22px; font-size: 13px; }
.btn--md { padding: 15px 30px; font-size: 14px; }
.btn--lg { padding: 19px 38px; font-size: 15px; }

/* Gold — primary CTA */
.btn--gold {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  color: var(--teal-night);
  border-color: var(--gold-deep);
  box-shadow: var(--shadow-gold);
  --x: var(--teal-night);
}
.btn--gold::before { background: var(--teal-deep); }
.btn--gold:hover { transform: translateY(-2px); color: var(--gold-bright); box-shadow: var(--shadow-gold-hover); border-color: var(--teal-deep); }

/* Teal — solid */
.btn--teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal-deep);
  box-shadow: var(--shadow-teal);
}
.btn--teal::before { background: var(--gold); }
.btn--teal:hover { transform: translateY(-2px); color: var(--teal-night); border-color: var(--gold-deep); }

/* Ghost on light */
.btn--ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn--ghost::before { background: var(--teal); }
.btn--ghost:hover { color: var(--white); }

/* Outline gold on dark */
.btn--outline-gold {
  background: transparent;
  color: var(--gold-bright);
  border-color: var(--gold-line);
}
.btn--outline-gold::before { background: var(--gold); }
.btn--outline-gold:hover { color: var(--teal-night); border-color: var(--gold); }

/* Glass on dark */
.btn--glass-dark {
  background: var(--white-06);
  color: var(--white);
  border-color: var(--white-18);
  backdrop-filter: blur(12px);
}
.btn--glass-dark::before { background: var(--white); }
.btn--glass-dark:hover { color: var(--teal-night); border-color: var(--white); }

/* Featured ring around primary CTA */
.cta-ring { position: relative; display: inline-block; isolation: isolate; }
.cta-ring::before, .cta-ring::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-pill);
  pointer-events: none; z-index: -1;
}
.cta-ring::before { background: rgba(212,175,55,0.45); filter: blur(22px); animation: ringBreathe 3.4s ease-in-out infinite; }
.cta-ring::after { border: 1px solid rgba(212,175,55,0.55); animation: ringPulse 3.4s var(--ease-out) infinite; }
@keyframes ringBreathe { 0%,100%{opacity:.45;transform:scale(1);} 50%{opacity:.8;transform:scale(1.04);} }
@keyframes ringPulse { 0%{transform:scale(1);opacity:.6;} 100%{transform:scale(1.22);opacity:0;} }

/* Inline link with animated underline */
.link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  color: inherit; font-weight: 600; text-decoration: none; padding-bottom: 3px;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--gold); transform-origin: right center; transform: scaleX(0);
  transition: transform 420ms var(--ease-luxe);
}
.link:hover::after { transform-origin: left center; transform: scaleX(1); }
.link .ic { transition: transform var(--d-base) var(--ease-out); }
.link:hover .ic { transform: translateX(3px); }

/* ============================================================
   Pills / chips
   ============================================================ */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  background: var(--white); color: var(--ink); border: 1px solid var(--border-soft);
}
.pill--gold { background: var(--gold-tint); color: var(--gold-deep); border-color: var(--gold-line); }
.pill--dark { background: var(--white-06); color: var(--white-90); border-color: var(--white-18); }
.pill .star { color: var(--gold); }

/* Rating chip with stars */
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
}

/* Spotlight hover (JS tracks --mx/--my) */
.spotlight { position: relative; overflow: hidden; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--gold-tint), transparent 60%);
  transition: opacity var(--d-base) ease;
}
.spotlight:hover::before { opacity: 1; }

/* ============================================================
   Decorative
   ============================================================ */
.hr-gold { height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); border: 0; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}

/* Reveal — auto-playing keyframe entrance. Robust: never depends on
   IntersectionObserver or scroll timelines (which some renderers don't fire).
   A JS safety net force-shows anything still hidden. */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    animation: revealIn 0.8s var(--ease-out) forwards;
  }
  .reveal[data-delay="1"] { animation-delay: 0.09s; }
  .reveal[data-delay="2"] { animation-delay: 0.18s; }
  .reveal[data-delay="3"] { animation-delay: 0.27s; }
  .reveal[data-delay="4"] { animation-delay: 0.36s; }
  .reveal[data-delay="5"] { animation-delay: 0.45s; }
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  html { scroll-behavior: auto; }
}

/* image-slot default look on this brand */
image-slot { display: block; background: linear-gradient(135deg, var(--teal-deep), var(--teal)); }
