/* ==========================================================================
   HOUSE OF EARTH — Design System
   Mystic-luxury: obsidian/espresso base, aged gold + bone type,
   Cormorant Garamond + Lora. A private ritual space, not a wellness startup.
   ========================================================================== */

:root{
  /* -- core palette -- */
  --black: #140d09;        /* warm espresso/clay base, deeper & warmer than pure obsidian */
  --black-deep: #0a0603;
  --panel: #1e150e;
  --panel-2: #241a10;

  --gold: #b9905a;         /* aged gold / bronze */
  --gold-rgb: 185,144,90;
  --gold-light: #ecd9ae;
  --gold-light-rgb: 236,217,174;
  --gold-dim: #7d6138;

  --ivory: #f3ead9;        /* warm bone */
  --ivory-dim: #cdbfa3;

  --ember: #a05733;        /* terracotta/clay — one emphasis tone, used sparingly */
  --ember-rgb: 160,87,51;

  --line: rgba(var(--gold-rgb), 0.22);
  --shadow: 0 40px 100px rgba(0,0,0,0.62);
  --shadow-soft: 0 18px 44px rgba(0,0,0,0.4);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'Lora', 'Georgia', serif;
  --maxw: 1200px;

  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: .6s;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Mystic ambient background: layered radial glows (candlelight) + linen grain */
body::before{
  content:"";
  position: fixed; inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 42% at 18% 0%, rgba(var(--gold-rgb),0.09), transparent 62%),
    radial-gradient(ellipse 50% 38% at 100% 15%, rgba(var(--gold-rgb),0.07), transparent 62%),
    radial-gradient(ellipse 55% 45% at 85% 95%, rgba(var(--ember-rgb),0.06), transparent 65%),
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(120,90,40,0.08), transparent 62%),
    var(--black);
}
body::after{
  content:"";
  position: fixed; inset: 0;
  z-index: -1;
  opacity: 0.065;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

h1,h2,h3,h4{
  font-family: var(--serif);
  font-weight: 500;
  color: var(--gold-light);
  line-height: 1.12;
  letter-spacing: 0.012em;
  margin: 0 0 0.5em;
}
h1{ font-size: clamp(2.8rem, 6.5vw, 5.4rem); font-weight: 500; letter-spacing: 0.015em; line-height: 1.05; }
h2{ font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3{ font-size: clamp(1.35rem, 2.4vw, 1.8rem); color: var(--ivory); }
p{ margin: 0 0 0.95em; color: var(--ivory-dim); }
p.lede{ font-size: 1.28rem; line-height: 1.7; color: var(--ivory); }
a{ color: var(--gold); text-decoration: none; }
strong{ color: var(--ivory); }
em.gold{ font-style: normal; color: var(--gold); }

.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section{ padding: 84px 0; position: relative; }
.section.tight{ padding: 48px 0; }
.section.alt{ background: linear-gradient(180deg, transparent, rgba(var(--gold-rgb),0.035), transparent); }
.divider{
  width: 64px; height: 1px; margin: 32px 0;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.divider.center{ margin: 32px auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.eyebrow{
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 0.7rem;
  color: var(--gold);
  margin-bottom: 20px;
  display: inline-block;
}
.center{ text-align: center; }
.narrow{ max-width: 720px; }
.narrow.center{ margin-left:auto; margin-right:auto; }

/* ---------- Buttons / CTAs ---------- */
.btn{
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: inline-flex;
  align-items:center;
  gap: 10px;
  padding: 18px 40px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--body);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 1px;
  background: transparent;
  transition: color var(--dur) var(--ease-slow), border-color var(--dur) var(--ease-slow), box-shadow var(--dur) var(--ease-slow);
  cursor: pointer;
}
.btn::before{
  content:"";
  position:absolute; inset:0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-slow);
  z-index:-1;
}
.btn:hover{ color: var(--black-deep); box-shadow: 0 0 46px rgba(var(--gold-rgb),0.32); }
.btn:hover::before{ transform: scaleX(1); }

.btn.solid{ background: var(--gold); color: var(--black-deep); }
.btn.solid::before{ background: var(--gold-light); }
.btn.solid:hover{ color: var(--black-deep); }

.btn.ghost{ border-color: var(--line); color: var(--ivory-dim); }
.btn.ghost::before{ background: rgba(var(--gold-rgb), 0.14); }
.btn.ghost:hover{ color: var(--gold-light); border-color: var(--gold); box-shadow: none; }

/* ---------- Header / Nav ---------- */
header.site{
  position: fixed; top:0; left:0; right:0; z-index: 500;
  background: rgba(11,8,5,0.74);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row{
  display:flex; align-items:center; justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--maxw); margin:0 auto;
}
.logo{
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  text-transform: uppercase;
  transition: letter-spacing .4s ease, color .4s ease;
}
.logo:hover{ letter-spacing: 0.17em; color: var(--gold-light); }
.logo span{ color: var(--ivory-dim); font-size: 0.95rem; letter-spacing: 0.3em; display:block; text-align:center; margin-top:2px; }

.hamburger{
  width: 44px; height: 44px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap: 6px; background: none; border: 1px solid var(--line); border-radius: 1px;
  cursor:pointer; z-index: 600;
  transition: border-color .4s ease;
}
.hamburger:hover{ border-color: var(--gold); }
.hamburger span{ width: 20px; height: 1px; background: var(--gold); transition: all .4s var(--ease-slow); }
.hamburger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.menu-panel{
  position: absolute; top: 100%; right: 32px;
  width: min(360px, 90vw);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 10px 0;
  transform-origin: top right;
  transform: scaleY(0.85) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease-slow), transform .5s var(--ease-slow);
}
.menu-panel.show{ opacity:1; transform: scaleY(1) translateY(0); pointer-events:auto; }

.menu-panel a.top-link{
  display:block; padding: 15px 28px;
  font-family: var(--serif); font-size: 1.15rem; color: var(--ivory);
  border-bottom: 1px solid rgba(var(--gold-rgb),0.12);
  transition: color .4s ease, background .4s ease, letter-spacing .4s ease;
}
.menu-panel a.top-link:hover{ color: var(--gold-light); background: rgba(var(--gold-rgb),0.05); letter-spacing: 0.01em; }

.submenu-toggle{
  display:flex; align-items:center; justify-content:space-between;
  padding: 15px 28px; cursor:pointer;
  font-family: var(--serif); font-size: 1.15rem; color: var(--ivory);
  border-bottom: 1px solid rgba(var(--gold-rgb),0.12);
  transition: color .4s ease;
}
.submenu-toggle:hover{ color: var(--gold-light); }
.submenu-toggle .chev{ transition: transform .4s var(--ease-slow); color: var(--gold); }
.submenu-toggle.open .chev{ transform: rotate(180deg); }
.submenu{
  max-height: 0; overflow: hidden; transition: max-height .5s var(--ease-slow);
  background: rgba(0,0,0,0.35);
}
.submenu.open{ max-height: 340px; }
.submenu a{
  display:block; padding: 12px 46px;
  font-family: var(--body); font-size: 0.92rem; color: var(--ivory-dim);
  border-bottom: 1px solid rgba(var(--gold-rgb),0.06);
  transition: color .4s ease, padding-left .4s ease;
}
.submenu a:hover{ color: var(--gold); padding-left: 50px; }
.menu-cta{ padding: 20px 28px 24px; }

/* ---------- Hero ---------- */
.hero{
  min-height: 90vh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; position:relative; padding: 130px 24px 70px;
  overflow: hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  z-index:0; pointer-events:none;
  background: radial-gradient(ellipse 62% 46% at 50% 28%, rgba(var(--gold-rgb),0.11), transparent 66%);
}
.hero .container{ max-width: 880px; position:relative; z-index:1; }

/* Photo-backed hero: add class="hero photo" + <img class="hero-bg"> as first child of .hero */
.hero.photo{ color:var(--ivory); }
.hero-bg{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  filter: sepia(12%) saturate(85%) brightness(0.5) contrast(1.05);
  z-index:0; padding:0; border:none; box-shadow:none;
}
.hero.photo::after{
  content:""; position:absolute; inset:0; z-index:0;
  background: linear-gradient(180deg, rgba(20,13,9,0.55) 0%, rgba(20,13,9,0.75) 45%, rgba(20,13,9,0.94) 100%);
}
.hero.photo .container{ z-index:2; }
.hero.photo h1{ text-shadow: 0 4px 30px rgba(0,0,0,0.4); }
.hero h1{ margin-bottom: 0.34em; }
.hero .promise{
  margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.5rem; color: var(--ivory);
  max-width: 640px;
}
.hero .promise strong{ color: var(--gold-light); }
.scroll-cue{
  position:absolute; bottom: 44px; left:50%; transform: translateX(-50%);
  font-size: 0.7rem; letter-spacing: 0.34em; text-transform:uppercase; color: var(--gold-dim);
}

/* ---------- Cards / grids ---------- */
.grid{ display:grid; gap: 30px; }
.grid.cols-2{ grid-template-columns: repeat(2, 1fr); }
.grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
.grid.cols-4{ grid-template-columns: repeat(4, 1fr); }

.card{
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(var(--gold-rgb),0.045), transparent);
  padding: 44px 38px;
  transition: border-color .5s var(--ease-slow), transform .5s var(--ease-slow), box-shadow .5s var(--ease-slow);
}
.card:hover{ border-color: var(--gold); transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.card h3{ margin-bottom: 0.4em; }
.card .price{ font-family: var(--serif); color: var(--gold); font-size: 1.4rem; margin: 14px 0; }

.h1-fit{ font-size: clamp(2rem, 4.6vw, 3.7rem); white-space: nowrap; }
@media (max-width: 640px){
  .h1-fit{ white-space: normal; font-size: clamp(1.7rem, 7vw, 2.4rem); }
}

.stat{ text-align:center; }
.stat .num{ font-family: var(--serif); font-size: clamp(2.2rem,5vw,3.2rem); color: var(--gold); display:block; }
.stat .label{ font-size: 0.85rem; letter-spacing: 0.06em; color: var(--ivory-dim); text-transform: uppercase; }

blockquote.voice{
  position: relative;
  font-family: var(--serif); font-size: 1.6rem; color: var(--gold-light);
  border-left: 2px solid var(--gold);
  padding: 26px 32px 26px 26px;
  margin: 26px 0;
  font-style: italic;
  background:
    radial-gradient(ellipse 140% 100% at 25% 0%, rgba(var(--gold-rgb),0.055), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,0.16), transparent);
}
blockquote.voice cite{ display:block; margin-top: 18px; font-size: 0.95rem; color: var(--ivory-dim); font-style: normal; letter-spacing: 0.02em; }

.pillar{ display:flex; gap: 22px; padding: 18px 0; border-bottom: 1px solid rgba(var(--gold-rgb),0.12); align-items: flex-start; }
.pillar .mark{
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--gold-dim);
  min-width: 44px;
  text-align: center;
  padding-top: 4px;
}
.pillar .mark::before{
  content: "✦";
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 10px;
  opacity: 0.9;
}

table.offer-table{ width:100%; border-collapse: collapse; margin: 34px 0; }
table.offer-table th, table.offer-table td{
  text-align:left; padding: 18px 16px; border-bottom: 1px solid rgba(var(--gold-rgb),0.14);
  font-size: 0.95rem;
}
table.offer-table th{ color: var(--gold); font-family: var(--body); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.1em; }

.badge{
  display:inline-block; padding: 7px 16px; border: 1px solid var(--gold); color: var(--gold);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform:uppercase; border-radius: 30px;
}

/* ---------- Imagery as objects ---------- */
img{
  display: block;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--panel);
  padding: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  filter: sepia(8%) saturate(90%) contrast(97%) brightness(97%);
  transition: transform .6s var(--ease-slow), box-shadow .6s var(--ease-slow);
}
a img:hover, .card img:hover{ transform: scale(1.015); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
footer.site{
  border-top: 1px solid var(--line);
  padding: 50px 0 32px;
  text-align:center;
  color: var(--ivory-dim);
}
footer.site .logo{ margin-bottom: 20px; }
footer.site .links{ display:flex; gap: 30px; justify-content:center; flex-wrap:wrap; margin: 26px 0; font-size: 0.9rem; }
footer.site .links a{ position:relative; color: var(--ivory-dim); transition: color .4s ease; }
footer.site .links a::after{
  content:""; position:absolute; left:0; right:100%; bottom:-4px; height:1px;
  background: var(--gold); transition: right .4s var(--ease-slow);
}
footer.site .links a:hover{ color: var(--gold); }
footer.site .links a:hover::after{ right:0; }
footer.site .fine{ font-size: 0.8rem; opacity: 0.6; margin-top: 22px; }

/* ---------- Newsletter: The Earth Letter ---------- */
.newsletter{
  max-width: 480px; margin: 6px auto 34px; text-align:center;
  padding: 36px 38px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(var(--gold-rgb),0.045), transparent);
}
.newsletter .eyebrow{ margin-bottom: 10px; }
.newsletter h3{ font-family: var(--serif); font-size: 1.5rem; color: var(--gold-light); margin-bottom: 10px; }
.newsletter p{ font-size: 0.92rem; margin-bottom: 22px; }
.newsletter-form{ display:flex; gap: 10px; flex-wrap: wrap; justify-content:center; }
.newsletter-form input[type="email"], .newsletter-form input[type="text"]{
  flex: 1 1 220px; background: transparent; border: 1px solid var(--line);
  color: var(--ivory); font-family: var(--body); font-size: 0.92rem;
  padding: 13px 16px; outline: none; transition: border-color .4s ease;
}
.newsletter-form input[type="email"]::placeholder, .newsletter-form input[type="text"]::placeholder{ color: var(--ivory-dim); opacity: 0.55; }
.newsletter-form input[type="email"]:focus, .newsletter-form input[type="text"]:focus{ border-color: var(--gold); }
.newsletter-form button{ cursor:pointer; }
.hp-field{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.newsletter .fine-note{ font-size: 0.76rem; opacity: 0.55; margin: 14px 0 0; }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity 1.1s var(--ease-slow), transform 1.1s var(--ease-slow); }
.reveal.in{ opacity:1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 860px){
  .grid.cols-2, .grid.cols-3, .grid.cols-4{ grid-template-columns: 1fr; }
  .grid{ gap: 24px; }
  .section{ padding: 60px 0; }
  .section.tight{ padding: 36px 0; }
  .hero{ padding: 110px 20px 56px; min-height: auto; justify-content: flex-start; }
  .hero .promise{ margin-top: 26px; padding-top: 20px; font-size: 1.2rem; }
  h1{ font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero .lede{ font-size: 1.05rem; }
  .scroll-cue{ display: none; }
  img{ max-width: 100%; height: auto; }
  .eyebrow{ letter-spacing: 0.28em; }
  .btn{ padding: 16px 30px; letter-spacing: 0.14em; }
  blockquote.voice{ padding: 28px 24px 28px 22px; }
  .container{ padding: 0 22px; }
}
