/* 360 Whitening — Patient site styles
   Dubai-influencer cinema · cream + champagne + deep warm black.
   Shared type DNA with the (future) dentist site: Fraunces + Inter + JB Mono. */

:root {
  /* Warm dark world */
  --ink: #0E0B07;
  --ink-2: #1A130E;
  --ink-3: #2B201A;

  /* Cream + champagne world */
  --pearl: #F6EFE3;
  --pearl-2: #ECE2D1;
  --pearl-3: #DDCEB6;

  /* Accents */
  --champagne: #D4B07A;
  --champagne-deep: #B5904F;
  --rose: #C9A58F;
  --rose-deep: #B58A72;

  /* Inks */
  --on-dark-60: rgba(246, 239, 227, 0.62);
  --on-dark-40: rgba(246, 239, 227, 0.40);
  --on-dark-15: rgba(246, 239, 227, 0.15);
  --on-dark-08: rgba(246, 239, 227, 0.08);
  --on-light-60: rgba(14, 11, 7, 0.62);
  --on-light-40: rgba(14, 11, 7, 0.40);
  --on-light-15: rgba(14, 11, 7, 0.15);
  --on-light-08: rgba(14, 11, 7, 0.08);

  --accent: var(--champagne);
  --accent-deep: var(--champagne-deep);

  --max-w: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --sec-y: clamp(96px, 11vw, 168px);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--ink);
  color: var(--pearl);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* Grain overlay — barely there, adds depth */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Type */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--on-dark-60);
}
.on-light .eyebrow { color: var(--on-light-60); }

.h-display {
  font-family: var(--font-display);
  font-weight: 360;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  letter-spacing: -0.025em;
  line-height: 0.92;
  text-wrap: balance;
}
.h-display em, .italic {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 320;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 360;
  font-variation-settings: "opsz" 120, "SOFT" 30;
  letter-spacing: -0.02em;
  line-height: 1.0;
  text-wrap: balance;
}

.lead {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--on-dark-60);
  text-wrap: pretty;
}
.on-light .lead { color: var(--on-light-60); }

/* Layout */
.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-block: var(--sec-y); position: relative; }
.section--light { background: var(--pearl); color: var(--ink); }
.section--pearl-2 { background: var(--pearl-2); color: var(--ink); }
.on-light, .section--light, .section--pearl-2 { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .25s ease, color .25s ease, border-color .25s ease, box-shadow .35s ease;
  font-family: var(--font-body);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-1px); }
.btn--big { padding: 19px 30px; font-size: 13px; }
.btn--gold {
  background: linear-gradient(135deg, #E8C893 0%, #D4B07A 40%, #B5904F 100%);
  color: #1A130E;
  border-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(212,176,122,0.55);
}
.btn--gold::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .9s ease;
}
.btn--gold:hover::after { transform: translateX(110%); }
.btn--ghost {
  background: transparent;
  color: var(--pearl);
  border-color: var(--on-dark-15);
}
.btn--ghost:hover { border-color: var(--pearl); }
.on-light .btn--ghost, .section--light .btn--ghost, .section--pearl-2 .btn--ghost {
  color: var(--ink); border-color: var(--on-light-15);
}
.on-light .btn--ghost:hover, .section--light .btn--ghost:hover, .section--pearl-2 .btn--ghost:hover {
  border-color: var(--ink);
}

/* Placeholder slots */
.slot {
  position: relative;
  background: var(--ink-2);
  overflow: hidden;
  border-radius: 4px;
  isolation: isolate;
}
.section--light .slot, .section--pearl-2 .slot, .on-light .slot { background: var(--pearl-3); }
.slot::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 30%, rgba(212,176,122,0.12), transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 24px, rgba(246,239,227,0.04) 24px 48px);
}
.section--light .slot::before, .section--pearl-2 .slot::before, .on-light .slot::before {
  background:
    radial-gradient(120% 80% at 50% 30%, rgba(212,176,122,0.18), transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 24px, rgba(14,11,7,0.04) 24px 48px);
}
.slot__caption {
  position: absolute;
  left: 16px; top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--on-dark-40);
  z-index: 2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.section--light .slot__caption, .section--pearl-2 .slot__caption, .on-light .slot__caption {
  color: var(--on-light-40);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Header nav — responsive collapse */
.hdr-nav { display: flex; gap: 28px; }
@media (max-width: 1180px) {
  .hdr-nav { gap: 20px; }
  .hdr-nav a:nth-child(n+4) { display: none; }
}
@media (max-width: 980px) {
  .hdr-nav { display: none; }
  .hdr-dentists { display: none !important; }
}

/* Marquee */
.marquee {
  display: flex; overflow: hidden; gap: 0;
  border-block: 1px solid var(--on-dark-15);
}
.section--light .marquee, .on-light .marquee { border-color: var(--on-light-15); }
.marquee__track {
  display: flex; gap: 56px;
  animation: marquee 38s linear infinite;
  flex-shrink: 0;
  padding-block: 22px;
  padding-right: 56px;
}
.marquee__item {
  display: inline-flex; align-items: center; gap: 56px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 36px);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  white-space: nowrap;
}
.marquee__dot { color: var(--accent); font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* Rule */
.rule { height: 1px; background: var(--on-dark-15); border: 0; margin: 0; }
.on-light .rule, .section--light .rule, .section--pearl-2 .rule { background: var(--on-light-15); }

/* Selection + scrollbar */
::selection { background: var(--accent); color: var(--ink); }

/* Sticky CTA ribbon */
.dock {
  position: fixed; left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(140%);
  z-index: 80;
  background: rgba(26, 19, 14, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  color: var(--pearl);
  border: 1px solid var(--on-dark-15);
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  display: flex; align-items: center; gap: 18px;
  font-size: 13px;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.dock.is-on { transform: translateX(-50%) translateY(0); }
.dock__pulse {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(212,176,122,0.5);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212,176,122,0.55); }
  70% { box-shadow: 0 0 0 12px rgba(212,176,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,176,122,0); }
}

/* Modal */
.modal-scrim {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 6, 4, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity .45s ease;
  padding: 24px;
}
.modal-scrim.is-on { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--pearl);
  color: var(--ink);
  border-radius: 8px;
  width: 100%; max-width: 560px;
  padding: clamp(28px, 4vw, 48px);
  transform: translateY(20px) scale(0.98);
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
  position: relative;
}
.modal-scrim.is-on .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; right: 14px; top: 14px;
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--on-light-15);
  background: transparent; cursor: pointer;
  display: grid; place-items: center;
}

/* Field */
.field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px;
}
.field__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-light-60);
}
.field__input {
  border: 0; border-bottom: 1px solid var(--on-light-15);
  background: transparent;
  padding: 12px 0;
  font-size: 17px;
  font-family: var(--font-body);
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease;
}
.field__input:focus { border-bottom-color: var(--accent); }
