/* =========================================
   Sanctuary Cabinet Company — Design System
   Language: Zen Editorial (Warm Editorial + Earthy Organic hybrid)
   Locked: May 15, 2026
   ========================================= */

/* ---------- Tokens ---------- */
:root {
  /* Backgrounds */
  --linen:        #f5f0e8;
  --cream:        #faf7f2;
  --sand:         #e8e3d9;

  /* Darks */
  --deep-earth:   #2a2520;
  --bark:         #1a1510;

  /* Accents */
  --sage:         #7a9a6d;
  --sage-muted:   rgba(122,154,109,0.2);
  --sage-deep:    #5c7a50;
  --gold:         #b8956a;
  --gold-muted:   rgba(184,149,106,0.2);

  /* Text */
  --text-dark:    #2a2520;
  --text-muted:   rgba(42,37,32,0.55);
  --text-light:   rgba(255,255,255,0.85);
  --text-light-muted: rgba(255,255,255,0.5);

  /* Fonts */
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width:    1100px;
  --gutter:       clamp(1.25rem, 4vw, 2.5rem);
  --nav-height:   72px;

  /* Spacing */
  --space-xs:     0.25rem;
  --space-sm:     0.5rem;
  --space-md:     1rem;
  --space-lg:     1.5rem;
  --space-xl:     2rem;
  --space-2xl:    3rem;
  --space-3xl:    4rem;
  --space-4xl:    5rem;
  --space-5xl:    clamp(4rem, 8vw, 6rem);

  /* Motion */
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth:  cubic-bezier(0.4, 0, 0, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--linen);
  color: var(--text-dark);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
::selection { background: var(--sage-muted); color: var(--deep-earth); }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--linen); }
::-webkit-scrollbar-thumb { background: var(--sage-muted); border-radius: 2px; }

/* ---------- Noise Overlay ---------- */
.noise {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025; mix-blend-mode: multiply;
}

/* ---------- Custom Cursor ---------- */
.cursor-dot { width: 6px; height: 6px; background: var(--sage); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10001; transform: translate(-50%,-50%); }
.cursor-ring { width: 44px; height: 44px; border: 1px solid rgba(122,154,109,0.4); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10000; transform: translate(-50%,-50%); }

/* ---------- Typography ---------- */
.t-display { font-family: var(--font-serif); font-weight: 300; line-height: 0.92; letter-spacing: -0.02em; }
.t-xl { font-size: clamp(3rem, 7vw, 6.5rem); }
.t-lg { font-size: clamp(2.25rem, 5.5vw, 4.5rem); }
.t-md { font-size: clamp(1.75rem, 3.5vw, 3rem); }
.t-sm { font-size: clamp(1.375rem, 2.5vw, 2rem); }
.t-italic { font-style: italic; }

.t-body-xl { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 300; line-height: 1.75; }
.t-body-lg { font-size: clamp(0.9375rem, 1.3vw, 1.0625rem); font-weight: 300; line-height: 1.8; }
.t-body { font-size: 0.9375rem; font-weight: 300; line-height: 1.8; }
.t-body-sm { font-size: 0.8125rem; font-weight: 400; line-height: 1.7; }

.t-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space-5xl) 0; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: var(--space-lg) var(--gutter) var(--space-md);
  display: flex; align-items: flex-start; justify-content: space-between;
  background: var(--linen);
  border-bottom: 1px solid var(--sand);
  transition: transform 0.4s var(--ease-smooth);
}

.nav__brand { display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0; }
.nav__brand-text { display: flex; flex-direction: column; justify-content: center; margin-top: -1px; }
.nav__brand-name { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500; letter-spacing: 0.02em; line-height: 1.1; }
.nav__brand-sub { font-size: 0.5625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-muted); }

.nav__links { display: none; align-items: center; gap: var(--space-xl); }
@media (min-width: 768px) { .nav__links { display: flex; } }

.nav__link { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; opacity: 0.7; transition: opacity 0.3s; }
.nav__link:hover { opacity: 1; }
.nav__link--active { opacity: 1; color: var(--sage); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 2.25rem; font-size: 0.625rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.25em;
  overflow: hidden; transition: all 0.3s ease; border-radius: 3px;
}
.btn__fill { position: absolute; top: 100%; left: 0; width: 100%; height: 100%; z-index: 1; transition: top 0.45s var(--ease-smooth); }
.btn__text { position: relative; z-index: 2; transition: color 0.35s ease; }
.btn:hover .btn__fill { top: 0; }

.btn--sage { background: var(--sage); color: #fff; }
.btn--sage .btn__fill { background: var(--deep-earth); }
.btn--sage:hover .btn__text { color: var(--cream); }

.btn--gold { background: var(--gold); color: var(--deep-earth); }
.btn--gold .btn__fill { background: var(--deep-earth); }
.btn--gold:hover .btn__text { color: var(--cream); }

.btn--dark { background: var(--deep-earth); color: var(--cream); }
.btn--dark .btn__fill { background: var(--sage); }
.btn--dark:hover .btn__text { color: #fff; }

.btn--outline { background: transparent; border: 1px solid rgba(42,37,32,0.2); color: var(--deep-earth); }
.btn--outline .btn__fill { background: var(--sage); }
.btn--outline:hover .btn__text { color: #fff; }
.btn--outline:hover { border-color: transparent; }

.btn--outline-light { background: transparent; border: 1px solid rgba(255,255,255,0.25); color: var(--cream); }
.btn--outline-light .btn__fill { background: var(--sage); }
.btn--outline-light:hover .btn__text { color: #fff; }

.btn--lg { padding: 1.125rem 3rem; font-size: 0.6875rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--bark); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 120%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,21,16,0.25) 0%, rgba(26,21,16,0.75) 100%); z-index: 1; }
.hero__content { position: relative; z-index: 2; padding: calc(var(--nav-height) + var(--space-2xl)) var(--gutter) var(--space-4xl); }

/* ---------- Split Grid ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--sand); }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; } }
.split__panel { padding: var(--space-3xl); display: flex; flex-direction: column; justify-content: center; }

/* ---------- Tier Cards ---------- */
.tier { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--deep-earth); border: 1px solid var(--deep-earth); }
@media (min-width: 768px) { .tier { grid-template-columns: 1fr 1fr; } }
.tier__card { padding: var(--space-3xl) var(--space-2xl); display: flex; flex-direction: column; transition: background 0.4s ease; }
.tier__card:hover { background: var(--cream); }

/* ---------- Stats Strip ---------- */
.stats { display: flex; justify-content: center; gap: var(--space-4xl); padding: var(--space-3xl) var(--gutter); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); text-align: center; flex-wrap: wrap; }
.stat__number { font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; color: var(--gold); line-height: 1; }
.stat__label { font-size: 0.625rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-muted); margin-top: var(--space-sm); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.gallery img:hover { transform: scale(1.03); }

/* ---------- Process Steps ---------- */
.process__step { display: flex; gap: var(--space-2xl); padding: var(--space-2xl) 0; border-bottom: 1px solid var(--sand); }
.process__number { font-family: var(--font-serif); font-size: clamp(3rem, 6vw, 4.5rem); color: var(--gold-muted); line-height: 1; }

/* ---------- Footer ---------- */
.footer { background: var(--sand); color: var(--deep-earth); padding: var(--space-3xl) 0 var(--space-xl); }
.footer__top { display: flex; flex-direction: column; gap: var(--space-2xl); margin-bottom: var(--space-2xl); }
@media (min-width: 768px) { .footer__top { flex-direction: row; justify-content: space-between; align-items: flex-end; } }
.footer__links { display: flex; gap: var(--space-3xl); }
.footer__col { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__col-title { font-size: 0.5625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); margin-bottom: var(--space-xs); }
.footer__link { font-size: 0.8125rem; color: var(--text-muted); transition: color 0.3s; }
.footer__link:hover { color: var(--gold); }
.footer__bottom { padding-top: var(--space-xl); border-top: 1px solid rgba(42,37,32,0.1); display: flex; justify-content: space-between; align-items: center; }
.footer__copy { font-size: 0.6875rem; color: var(--text-muted); }

/* ---------- Newsletter Opt-in ---------- */
.newsletter { background: var(--linen); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); padding: var(--space-3xl) 0; text-align: center; }
.newsletter__form { display: flex; gap: var(--space-sm); max-width: 460px; margin: 0 auto; }
.newsletter__input {
  flex: 1; padding: 0.875rem 1.25rem; font-family: var(--font-sans); font-size: 0.875rem;
  background: var(--linen); border: 1px solid var(--sand); border-radius: 3px;
  color: var(--text-dark); outline: none; transition: border-color 0.3s;
}
.newsletter__input:focus { border-color: var(--sage); }
.newsletter__input::placeholder { color: var(--text-muted); }
@media (max-width: 480px) { .newsletter__form { flex-direction: column; } }

/* ---------- CTA Section ---------- */
.cta-section { background: var(--sand); color: var(--deep-earth); text-align: center; padding: var(--space-5xl) 0; }

/* ---------- Dark Sections ---------- */
/* Dark sections removed — site is fully light/warm */

/* ---------- Reveal Animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); }

/* ---------- Contact Form ---------- */
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label { font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-muted); }
.form-field input, .form-field textarea, .form-field select {
  background: transparent; border: none; border-bottom: 1px solid var(--sand);
  padding: 0.75rem 0; font-family: var(--font-sans); font-size: 1rem; color: var(--deep-earth);
  transition: border-color 0.3s; outline: none;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--sage); }
.form-field textarea { resize: vertical; min-height: 120px; }

/* ---------- Utilities ---------- */
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }
.text-sage { color: var(--sage); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-light-muted { color: var(--text-light-muted); }
.text-center { text-align: center; }
.max-w-lg { max-width: 600px; }
.max-w-xl { max-width: 720px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Mobile Menu ---------- */
.hamburger { display: flex; flex-direction: column; gap: 6px; width: 24px; cursor: pointer; z-index: 101; padding: 4px 0; }
.hamburger span { display: block; width: 100%; height: 1.5px; background: var(--deep-earth); transition: all 0.3s; transform-origin: center; }
@media (min-width: 768px) { .hamburger { display: none; } }
.hamburger--open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.hamburger--open span:nth-child(2) { opacity: 0; }
.hamburger--open span:nth-child(3) { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; background: var(--linen); color: var(--deep-earth); z-index: 99;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 0 var(--gutter); gap: var(--space-sm);
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.mobile-menu--open { opacity: 1; pointer-events: all; }
.mobile-menu a.mobile-menu__link {
  font-family: var(--font-serif); font-size: 2.25rem; font-weight: 300;
  color: var(--deep-earth); line-height: 1.4; transition: color 0.3s;
}
.mobile-menu a.mobile-menu__link:hover { color: var(--gold); }
.mobile-menu__divider { width: 40px; height: 1px; background: var(--sand); margin: var(--space-lg) 0; }
.mobile-menu__cta {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 1rem; background: var(--sage); color: #fff;
  font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.25em; border-radius: 4px;
  text-decoration: none; transition: background 0.3s;
}
.mobile-menu__cta:hover { background: var(--sage-deep); }
.mobile-menu__secondary {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 500;
  color: var(--gold); text-decoration: none; margin-top: var(--space-sm);
  transition: color 0.3s;
}
.mobile-menu__secondary:hover { color: var(--deep-earth); }

/* ---------- Responsive: Small phones (< 480px) ---------- */
@media (max-width: 480px) {
  .t-xl { font-size: 2.5rem; }
  .t-lg { font-size: 2rem; }
  .section { padding: var(--space-2xl) 0; }
  .newsletter__form { flex-direction: column; }
  .cta-section { padding: var(--space-3xl) 0; }
  .footer__bottom { flex-direction: column; gap: var(--space-md); align-items: flex-start; }
  .footer__links { flex-direction: column; gap: var(--space-xl); }
}

/* ---------- Responsive: Mobile (< 768px) ---------- */
@media (max-width: 767px) {
  .section { padding: var(--space-3xl) 0; }
  .split__panel { padding: var(--space-2xl) var(--space-lg); }
  .tier__card { padding: var(--space-2xl) var(--space-lg); }
  .process__step { flex-direction: column; gap: var(--space-md); }
  .hero__content { padding-bottom: var(--space-2xl); }
  .stats { flex-direction: column; gap: var(--space-xl); }
  .footer__top { flex-direction: column; gap: var(--space-2xl); }
}

/* ---------- Responsive: Tablet (768px – 1023px) ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  :root { --max-width: 720px; }
  .t-xl { font-size: 4rem; }
  .t-lg { font-size: 3rem; }
  .stats { gap: var(--space-2xl); }
}

/* ---------- Responsive: Large desktop (1440px+) ---------- */
@media (min-width: 1440px) {
  :root { --max-width: 1200px; }
}
