/* =========================================================
   Simara — shared styles
   Calm, mystical, premium. Warm ivory + plum aura.
   ========================================================= */

:root {
  /* Palette */
  --ivory:      #FFF5ED;
  --ivory-2:    #FBEADD;
  --white:      #FFFFFF;
  --plum:       #5B2E8F;
  --plum-700:   #4A2474;
  --plum-deep:  #271146;
  --plum-ink:   #1B0E33;
  --bronze:     #C4956A;
  --bronze-700: #A9764A;
  --bronze-text: #8A5A33;
  --sage:       #7B9E87;
  --sage-700:   #5F8069;
  --ink:        #1A1A2E;
  --ink-60:     rgba(26, 26, 46, 0.70);
  --ink-45:     rgba(26, 26, 46, 0.52);
  --line:       rgba(26, 26, 46, 0.10);

  /* Type */
  --font-display: 'Plus Jakarta Sans', 'Sora', system-ui, sans-serif;
  --font-body:    'Sora', system-ui, -apple-system, sans-serif;

  /* Shape */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  /* Depth */
  --shadow-sm: 0 2px 10px rgba(39, 17, 70, 0.05);
  --shadow-md: 0 16px 40px -18px rgba(39, 17, 70, 0.28);
  --shadow-lg: 0 40px 90px -40px rgba(39, 17, 70, 0.40);

  /* Layout */
  --container: 1180px;
  --pad: clamp(20px, 5vw, 56px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.62;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 2.5px solid var(--plum);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  background: var(--plum);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  z-index: 200;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-text);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--bronze);
  display: inline-block;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--ink-60);
  line-height: 1.6;
  max-width: 56ch;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--plum);
  --fg: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.92em 1.5em;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease, background .2s ease;
  will-change: transform;
}
.btn-primary {
  box-shadow: 0 14px 30px -12px rgba(91, 46, 143, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(91, 46, 143, 0.66); }
.btn-ghost {
  --bg: transparent;
  --fg: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--plum); color: var(--plum); transform: translateY(-2px); }
.btn-light {
  --bg: rgba(255,255,255,0.10);
  --fg: #fff;
  border-color: rgba(255,255,255,0.22);
  backdrop-filter: blur(4px);
}
.btn-light:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(123,158,135,.25); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 245, 237, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 245, 237, 0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 84px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.42rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.wordmark .glyph {
  width: 26px; height: 26px;
  /* Real Simara mark, masked so it inherits the wordmark color:
     ink on the light header, white on the dark footer. */
  background-color: currentColor;
  -webkit-mask: url("logo-icon.svg") center / contain no-repeat;
  mask: url("logo-icon.svg") center / contain no-repeat;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-inline: auto;
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-60);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--plum); }
.header-cta { margin-left: 0; flex-shrink: 0; }
.mobile-nav { display: none; }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--plum-ink);
  color: rgba(255,255,255,0.82);
  padding-block: clamp(56px, 8vw, 90px) 40px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  width: 680px; height: 680px;
  left: -160px; bottom: -380px;
  background: radial-gradient(circle, rgba(91,46,143,.55), transparent 65%);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px 32px;
  position: relative;
  z-index: 1;
}
.footer-brand .wordmark { color: #fff; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 34ch; font-size: 0.96rem; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.footer-col a { color: rgba(255,255,255,0.82); font-size: 0.97rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--bronze); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
}
.footer-bottom .disclaimer { max-width: 62ch; }

/* ---------- Reveal (entrance enhancement) ----------
   Content is ALWAYS visible at its base state so it renders in print,
   reduced-motion, and any environment that doesn't advance animations.
   The fade-up only plays in real browsers that support it. */
.js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal.armed {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1);
    transition-delay: var(--d, 0ms);
  }
  .js .reveal.armed.in { opacity: 1; transform: none; }
}

/* =========================================================
   Page-specific styles continue in styles-pages.css
   ========================================================= */
