/* ═══════════════════════════════════════
   SVARATMAN — Global Stylesheet
   ═══════════════════════════════════════ */

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

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --terra:     #B8654A;
  --terra-dk:  #8F4A30;
  --terra-lt:  #D08868;
  --sage:      #6B8F71;
  --sage-lt:   #96B89C;
  --sage-dk:   #3E6645;
  --moss:      #4A6741;
  --moss-lt:   #7A9E72;
  --forest:    #2D4A32;
  --cream:     #F3F0E8;
  --parch:     #E8E2D4;
  --linen:     #EFF5EC;
  --bark:      #2A3828;
  --bark-lt:   #3D5239;
  --gold:      #B8975A;
  --gold-lt:   #D4B47A;
  --smoke:     #6B7D65;
}

html { scroll-behavior: smooth; }

body {
  background: var(--linen);
  color: var(--bark);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ── */
.cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--terra); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .3s, height .3s, background .3s;
  mix-blend-mode: multiply;
}
.cursor-ring {
  position: fixed; width: 38px; height: 38px;
  border: 1px solid var(--terra); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .3s, height .3s, opacity .3s;
  opacity: .5;
}

/* ── GRAIN ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .04; pointer-events: none; z-index: 9000;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 56px; z-index: 1000;
  background: rgba(239,245,236,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107,143,113,0.12);
  transition: padding .4s;
}
nav.scrolled { padding: 16px 56px; }
.nav-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.nav-logo-text {
  font-family: 'Cinzel', serif; font-size: 14px;
  letter-spacing: .32em; color: var(--bark); text-transform: uppercase;
}
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--bark-lt); text-decoration: none; transition: color .3s;
}
.nav-links a:hover { color: var(--terra); }
.nav-cta {
  background: var(--forest); color: var(--cream);
  padding: 10px 28px;
  font-family: 'Jost', sans-serif; font-size: 10px;
  letter-spacing: .3em; text-transform: uppercase;
  text-decoration: none; transition: background .3s;
}
.nav-cta:hover { background: var(--moss); }

/* Mobile menu toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.nav-toggle span { width: 24px; height: 1px; background: var(--bark); transition: all .3s; display: block; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; background: var(--terra); color: var(--cream);
  padding: 16px 44px;
  font-family: 'Jost', sans-serif; font-size: 11px;
  letter-spacing: .3em; text-transform: uppercase; text-decoration: none;
  transition: background .3s, transform .3s;
}
.btn-primary:hover { background: var(--terra-dk); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Jost', sans-serif; font-size: 11px;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--bark-lt); text-decoration: none; transition: color .3s;
}
.btn-ghost:hover { color: var(--terra); }
.btn-ghost svg { transition: transform .3s; }
.btn-ghost:hover svg { transform: translateX(4px); }

/* ── SECTION LABEL ── */
.label {
  font-size: 10px; letter-spacing: .5em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 24px; display: block;
}

/* ── DIVIDER ── */
.divider {
  display: flex; align-items: center;
  padding: 0 80px; gap: 24px; margin: 72px 0 0;
}
.divider-line { flex: 1; height: 1px; background: var(--parch); }
.divider-symbol {
  font-family: 'Cormorant Garamond', serif; font-size: 22px;
  color: var(--sage); opacity: .7;
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* ── FOOTER ── */
footer {
  background: var(--forest); padding: 80px 80px 40px;
  color: var(--cream);
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 64px;
  border-bottom: 1px solid rgba(150,184,156,.15);
}
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand { font-family: 'Cinzel', serif; font-size: 20px; letter-spacing: .3em; color: var(--cream); }
.footer-tagline { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-style: italic; color: rgba(243,240,232,.45); line-height: 1.65; margin-bottom: 32px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px; border: 1px solid rgba(150,184,156,.25);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--cream); text-decoration: none; font-size: 12px; transition: all .3s;
}
.footer-social a:hover { border-color: var(--sage-lt); background: var(--sage-dk); }
.footer-col-title { font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--sage-lt); margin-bottom: 22px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.footer-links a { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: rgba(243,240,232,.55); text-decoration: none; transition: color .3s; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom { padding-top: 32px; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 12px; color: rgba(243,240,232,.3); letter-spacing: .1em; }
.footer-legal { display: flex; gap: 28px; }
.footer-legal a { font-size: 11px; color: rgba(243,240,232,.3); text-decoration: none; letter-spacing: .1em; transition: color .3s; }
.footer-legal a:hover { color: var(--sage-lt); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes rotSlow { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes rotSlowCenter { to { transform: rotate(360deg); } }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 160px 80px 80px;
  background: var(--bark);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500'%3E%3Cg fill='none' stroke='%236B8F71' stroke-width='.6' opacity='.12'%3E%3Ccircle cx='400' cy='250' r='200'/%3E%3Ccircle cx='400' cy='250' r='150'/%3E%3Ccircle cx='400' cy='250' r='100'/%3E%3Cline x1='400' y1='50' x2='400' y2='450'/%3E%3Cline x1='200' y1='250' x2='600' y2='250'/%3E%3C/g%3E%3C/svg%3E") center/cover;
  pointer-events: none;
}
.page-hero-eyebrow { font-size:10px; letter-spacing:.5em; text-transform:uppercase; color:var(--sage-lt); margin-bottom:20px; opacity:0; animation: fadeUp .9s ease .2s forwards; }
.page-hero-title {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(48px,6vw,88px);
  font-weight: 300; color: var(--cream); line-height: 1;
  opacity:0; animation: fadeUp 1s ease .4s forwards;
}
.page-hero-title em { font-style:italic; color:var(--sage-lt); }
.page-hero-sub {
  font-family: 'Cormorant Garamond', serif; font-size:20px; font-style:italic;
  color:rgba(239,245,236,.55); max-width:520px; line-height:1.65; margin-top:24px;
  opacity:0; animation: fadeUp 1s ease .6s forwards;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--linen); align-items: center; justify-content: center; gap: 36px; z-index: 999; }
  .nav-links.open a { font-size: 16px; }
  .nav-toggle { display: flex; }
  .divider { padding: 0 24px; }
  .page-hero { padding: 120px 24px 60px; }
  footer { padding: 60px 24px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
