/* =====================================================================
   The Golden Circle — shared brand styles
   Used by every non-landing page (crm, spa-finder, terms, privacy, 404).
   Landing page (index.html) has its own inline styles + animation layer.
   ===================================================================== */

/* ---- Color palette ---- */
:root {
  --c-cream:  249 248 246;
  --c-cream2: 243 240 236;
  --c-ink:    35 33 31;
  --c-ink2:   58 55 51;
  --c-muted:  109 100 90;
  --c-gold:   180 162 121;
  --c-gold2:  157 139 101;
  --c-line:   231 227 223;
  --c-white:  255 255 255;
}
html.dark {
  --c-cream:  15 14 13;
  --c-cream2: 26 24 22;
  --c-ink:    245 242 236;
  --c-ink2:   201 195 184;
  --c-muted:  138 129 117;
  --c-gold:   212 185 140;
  --c-gold2:  195 168 117;
  --c-line:   42 37 32;
  --c-white:  26 24 22;
  color-scheme: dark;
}

html, body {
  background: rgb(var(--c-cream));
  color: rgb(var(--c-ink));
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}

/* ---- Display fonts ---- */
.font-display {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 96, "wdth" 100;
  font-weight: 800;
}
.font-display em, .font-display i {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
h1.font-display, h2.font-display { line-height: 0.96; }

/* ---- Gold accent ---- */
.gold-ink { color: rgb(var(--c-gold)); }

/* ---- Soft gradient (hero glow) ---- */
.soft-grad {
  background: radial-gradient(ellipse at top, rgb(var(--c-gold) / 0.14), transparent 62%);
}

/* ---- Global focus-visible ring (WCAG 2.4.7) ---- */
:where(a, button, input, select, textarea, [tabindex]):focus { outline: none; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid rgb(var(--c-gold));
  outline-offset: 2px;
  border-radius: 4px;
  transition: outline-offset .15s ease;
}
/* Round rings on already-rounded controls */
.rounded-full:focus-visible,
button.rounded-full:focus-visible,
a.rounded-full:focus-visible { border-radius: 9999px; }

/* ---- Skip-to-content link (visible only on focus) ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .65rem 1rem;
  background: rgb(var(--c-ink));
  color: rgb(var(--c-cream));
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 .75rem 0;
  text-decoration: none;
}
.skip-link:focus-visible {
  left: 0;
  outline: 2px solid rgb(var(--c-gold));
  outline-offset: 2px;
}

/* ---- Visually-hidden helper (for screen readers) ---- */
.sr-only {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}

/* ---- Subtle gold grid pattern (homepage signature) ---- */
.grid-bg {
  background-image:
    linear-gradient(rgb(var(--c-gold) / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--c-gold) / 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ---- "Always dark" zones (locks palette regardless of theme) ---- */
.is-dark {
  --c-ink:    8 7 6;
  --c-ink2:   26 24 22;
  --c-cream:  245 242 236;
  --c-cream2: 30 28 25;
  --c-line:   42 37 32;
  --c-white:  30 28 25;
  color: rgb(var(--c-cream));
}
html.dark .is-dark {
  --c-ink:    4 3 2;
  --c-ink2:   20 18 16;
}

/* ---- Card hover lift ---- */
.lift {
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s, border-color .4s;
  will-change: transform;
}
.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px -12px rgb(0 0 0 / 0.18);
}

/* ---- Reveal-on-scroll (no GSAP required, IntersectionObserver toggles it) ---- */
.gc-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity   .9s cubic-bezier(.16,1,.3,1),
    transform .9s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.gc-reveal.is-visible { opacity: 1; transform: none; }
.gc-reveal-d1 { transition-delay: .08s; }
.gc-reveal-d2 { transition-delay: .16s; }
.gc-reveal-d3 { transition-delay: .24s; }
.gc-reveal-d4 { transition-delay: .32s; }
.gc-reveal-d5 { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .gc-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- WhatsApp floating button ---- */
@media print { #whatsapp-fab { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  #whatsapp-fab .animate-ping { animation: none !important; }
}

/* ---- Subtle pulse ---- */
@keyframes gc-pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.4; transform:scale(0.85); } }
.pulse { animation: gc-pulse 1.8s ease-in-out infinite; }

/* ===================================================================
   Mobile menu — full-screen elegant takeover (shared across all pages)
   =================================================================== */
.gc-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  visibility: hidden;
}
.gc-mobile-nav.is-open { pointer-events: auto; visibility: visible; }

.gc-mobile-nav-backdrop {
  position: absolute; inset: 0;
  background: rgb(var(--c-ink) / 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .5s cubic-bezier(.16,1,.3,1);
}
.gc-mobile-nav.is-open .gc-mobile-nav-backdrop { opacity: 1; }

.gc-mobile-nav-panel {
  position: absolute; inset: 0;
  background: rgb(var(--c-cream));
  transform: translateY(-100%);
  transition: transform .6s cubic-bezier(.83,0,.17,1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gc-mobile-nav.is-open .gc-mobile-nav-panel { transform: translateY(0); }

.gc-mobile-nav-ring {
  position: absolute;
  width: 88vw; max-width: 460px;
  aspect-ratio: 1;
  right: -22vw;
  top: 28%;
  opacity: 0;
  transform: rotate(-90deg);
  transition: opacity 1s ease .15s;
  pointer-events: none;
}
.gc-mobile-nav-ring circle { transition: stroke-dashoffset 1.6s cubic-bezier(.65,0,.35,1) .25s; }
.gc-mobile-nav-ring-inner  { transition: stroke-dashoffset 1.8s cubic-bezier(.65,0,.35,1) .45s !important; }
.gc-mobile-nav.is-open .gc-mobile-nav-ring { opacity: 1; }
.gc-mobile-nav.is-open .gc-mobile-nav-ring circle { stroke-dashoffset: 0; }

.gc-mobile-nav-inner {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.gc-mobile-nav-links { gap: .25rem; margin-top: 1rem; }
.gc-nav-link {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  padding: 1rem .25rem;
  border-bottom: 1px solid rgb(var(--c-line) / 0.55);
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.025em;
  color: rgb(var(--c-ink));
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s cubic-bezier(.16,1,.3,1),
              transform .5s cubic-bezier(.16,1,.3,1),
              color .25s, border-color .25s;
}
.gc-nav-link-num {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgb(var(--c-gold));
  align-self: flex-start;
  margin-top: .55rem;
}
.gc-nav-link-text { flex: 1; }
.gc-nav-link-arrow {
  font-size: 1.4rem;
  color: rgb(var(--c-muted));
  transform: translateX(-6px);
  opacity: 0;
  transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .25s, color .25s;
}
.gc-nav-link:hover, .gc-nav-link:active, .gc-nav-link:focus-visible {
  color: rgb(var(--c-gold));
  border-bottom-color: rgb(var(--c-gold) / 0.6);
  outline: none;
}
.gc-nav-link:hover .gc-nav-link-arrow,
.gc-nav-link:active .gc-nav-link-arrow,
.gc-nav-link:focus-visible .gc-nav-link-arrow {
  transform: translateX(0);
  opacity: 1;
  color: rgb(var(--c-gold));
}

.gc-mobile-nav.is-open .gc-nav-link,
.gc-mobile-nav.is-open .gc-mobile-nav-cta,
.gc-mobile-nav.is-open [data-i] {
  opacity: 1;
  transform: translateY(0);
}
.gc-mobile-nav .gc-nav-link[data-i="0"]      { transition-delay: .22s; }
.gc-mobile-nav .gc-nav-link[data-i="1"]      { transition-delay: .28s; }
.gc-mobile-nav .gc-nav-link[data-i="2"]      { transition-delay: .34s; }
.gc-mobile-nav .gc-nav-link[data-i="3"]      { transition-delay: .40s; }
.gc-mobile-nav .gc-nav-link[data-i="4"]      { transition-delay: .46s; }
.gc-mobile-nav .gc-nav-link[data-i="5"]      { transition-delay: .52s; }
.gc-mobile-nav .gc-mobile-nav-cta[data-i="6"]{ transition-delay: .60s; }
.gc-mobile-nav [data-i="7"]                  { transition-delay: .68s; }

.gc-mobile-nav-foot { margin-top: auto; padding-top: 2rem; }
.gc-mobile-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  padding: 1.05rem 1.25rem;
  background: rgb(var(--c-ink));
  color: rgb(var(--c-cream));
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s cubic-bezier(.16,1,.3,1),
              transform .55s cubic-bezier(.16,1,.3,1),
              background .25s;
  box-shadow: 0 10px 28px -10px rgb(var(--c-ink) / 0.5);
}
.gc-mobile-nav-cta:hover, .gc-mobile-nav-cta:focus-visible { background: rgb(var(--c-gold2)); outline: none; }
.gc-mobile-nav [data-i="7"] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s cubic-bezier(.16,1,.3,1),
              transform .5s cubic-bezier(.16,1,.3,1);
}
.gc-mobile-nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1rem;
  border: 1px solid rgb(var(--c-line));
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: rgb(var(--c-ink2));
  background: rgb(var(--c-white));
  transition: background .25s, border-color .25s, color .25s;
}
.gc-mobile-nav-pill:hover { border-color: rgb(var(--c-gold) / 0.5); color: rgb(var(--c-ink)); }

body.gc-nav-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .gc-mobile-nav-panel,
  .gc-mobile-nav-backdrop,
  .gc-mobile-nav-ring,
  .gc-mobile-nav-ring circle,
  .gc-nav-link,
  .gc-mobile-nav-cta,
  .gc-mobile-nav [data-i="7"] {
    transition: none !important;
    transition-delay: 0s !important;
  }
}

/* ===================================================================
   Scroll progress ring — sticky bottom-right brand ornament
   =================================================================== */
.gc-scroll-ring {
  position: fixed;
  right: 1.25rem;
  bottom: 6.5rem;
  width: 52px; height: 52px;
  z-index: 35;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity .35s ease, transform .35s cubic-bezier(.16,1,.3,1);
}
.gc-scroll-ring.is-visible { opacity: 1; transform: scale(1); }
.gc-scroll-ring .track  { stroke: rgb(var(--c-ink) / 0.12); stroke-width: 2.2; fill: none; }
.gc-scroll-ring .fill   {
  stroke: rgb(var(--c-gold)); stroke-width: 2.4; fill: none; stroke-linecap: round;
  stroke-dasharray: 138; stroke-dashoffset: 138;
  transition: stroke-dashoffset .15s linear;
  filter: drop-shadow(0 0 6px rgb(var(--c-gold) / 0.5));
}
.gc-scroll-ring .pct {
  font-family: 'Inter', sans-serif; font-size: 8px; font-weight: 700;
  letter-spacing: 0.15em; fill: rgb(var(--c-ink) / 0.65); text-anchor: middle;
}
html.dark .gc-scroll-ring .pct { fill: rgb(var(--c-cream) / 0.7); }
@media (max-width: 480px){ .gc-scroll-ring{ display: none; } }
@media (prefers-reduced-motion: reduce){ .gc-scroll-ring{ transition: none !important; } }

/* ===================================================================
   Cookie consent banner — slides up bottom-left, dismissible
   =================================================================== */
.gc-cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 460px;
  z-index: 45;
  background: rgb(var(--c-white));
  border: 1px solid rgb(var(--c-line));
  border-radius: 18px;
  box-shadow: 0 24px 48px -16px rgb(0 0 0 / 0.35), 0 8px 16px -8px rgb(0 0 0 / 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .45s cubic-bezier(.16,1,.3,1), transform .45s cubic-bezier(.16,1,.3,1);
}
.gc-cookie-banner.is-visible { opacity: 1; transform: translateY(0); }
.gc-cookie-inner { padding: 1.25rem 1.25rem 1.1rem; }
.gc-cookie-title {
  display: flex; align-items: center; gap: .5rem;
  color: rgb(var(--c-gold));
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.gc-cookie-desc {
  color: rgb(var(--c-ink2));
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.gc-cookie-link {
  color: rgb(var(--c-gold));
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gc-cookie-link:hover { color: rgb(var(--c-gold2)); }
.gc-cookie-actions {
  display: flex; gap: .55rem;
  margin-top: 1rem;
  justify-content: flex-end;
}
.gc-cookie-btn-primary,
.gc-cookie-btn-secondary {
  font-size: 13px;
  font-weight: 600;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.gc-cookie-btn-primary {
  background: rgb(var(--c-gold));
  color: rgb(var(--c-ink));
}
.gc-cookie-btn-primary:hover { background: rgb(var(--c-gold2)); }
.gc-cookie-btn-secondary {
  background: transparent;
  border-color: rgb(var(--c-line));
  color: rgb(var(--c-ink2));
}
.gc-cookie-btn-secondary:hover {
  background: rgb(var(--c-cream2));
  color: rgb(var(--c-ink));
}
@media print { .gc-cookie-banner { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .gc-cookie-banner { transition: opacity .2s ease !important; transform: none !important; }
}

/* ===================================================================
   Section divider ornament — subtle gold ring + tapered lines
   =================================================================== */
.gc-divider-ring {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin: 2rem auto; max-width: 220px;
}
.gc-divider-ring .line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, rgb(var(--c-gold) / 0.55), transparent);
}
.gc-divider-ring svg { width: 22px; height: 22px; opacity: 0.9; }

/* ---- Typography for reading pages (terms, privacy) ---- */
.prose-legal { color: rgb(var(--c-ink2)); line-height: 1.7; font-size: 15px; }
.prose-legal h1, .prose-legal h2, .prose-legal h3 { color: rgb(var(--c-ink)); }
.prose-legal h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; }
.prose-legal h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; font-weight: 700; font-size: 1.05rem; }
.prose-legal p, .prose-legal ul { margin-bottom: 1rem; }
.prose-legal ul { padding-left: 1.25rem; list-style: disc; }
.prose-legal li { margin-bottom: 0.35rem; }
.prose-legal a { color: rgb(var(--c-gold)); text-decoration: underline; text-underline-offset: 3px; }
.prose-legal a:hover { color: rgb(var(--c-gold2)); }
.prose-legal strong { color: rgb(var(--c-ink)); }
