/* ═══════════════════════════════════════════════════════════
   TRILOGI WELLNESS — Site Stylesheet
   Locked palette, typography, animations
   Used by: index, about, results, offer, faq, contact, apply
   ═══════════════════════════════════════════════════════════ */

:root {
  /* LIGHT (milky white) */
  --paper-base:    #ffffff;
  --paper-warm:    #f5f5f5;
  --paper-deeper:  #ededed;

  /* DARK (charcoal — from logo) */
  --charcoal:      #1f1f1f;
  --charcoal-lift: #2a2a2a;
  --charcoal-deep: #151515;

  /* TYPE COLORS */
  --ink:           #1a1a1a;
  --body:          #2d2d2d;
  --quiet:         #6e6356;
  --silver:        #e8e6e0;
  --silver-soft:   #c4c2bc;

  /* ACCENT — green (logo signature) */
  --green:         #1d6e57;
  --green-light:   #4a9580;

  /* ACCENT — gold */
  --gold:          #b07a52;
  --gold-deep:     #8a5a3b;

  /* LINES */
  --line-light:    #e8e8e8;
  --line-dark:     rgba(232, 230, 224, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--paper-base);
  color: var(--body);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── HEADER ─────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.logo-mark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding-left: 0.16em;
}
.logo-mark .ecg-o {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 1em;
  height: 1em;
  margin: 0 0.04em;
  vertical-align: middle;
}
.logo-mark .ecg-o svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color 0.4s;
}
nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
nav a:hover { color: var(--gold-deep); }
nav a:hover::after { transform: scaleX(1); }
nav a.active { color: var(--gold-deep); }
nav a.active::after { transform: scaleX(1); }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 16px 36px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  transition: background 0.5s, color 0.5s, border-color 0.5s;
  cursor: pointer;
  border: 1px solid;
  border-radius: 2px;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper-base);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--paper-base);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--paper-base);
}
.btn-on-dark {
  background: var(--gold);
  color: var(--paper-base);
  border-color: var(--gold);
}
.btn-on-dark:hover {
  background: var(--silver);
  color: var(--ink);
  border-color: var(--silver);
}

/* ─── SECTIONS ───────────────────────────────────────────── */
section {
  padding: 120px 56px;
  position: relative;
}
.section-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.section-wide {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ─── LIGHT SECTIONS ─────────────────────────────────────── */
.section-light {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 60%, #ededed 100%);
}
.section-light-soft {
  background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%);
}

/* ─── DARK SECTIONS ──────────────────────────────────────── */
.section-dark {
  background: linear-gradient(180deg, #2a2a2a 0%, #1f1f1f 60%, #151515 100%);
  color: var(--silver);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(232, 230, 224, 0.15), transparent);
  z-index: 1;
}
.ambient-glow-1, .ambient-glow-2 {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}
.ambient-glow-1 {
  top: -10%; left: -5%;
  width: 60%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(232, 230, 224, 0.06) 0%, transparent 60%);
  animation: drift-glow-1 18s ease-in-out infinite alternate;
}
.ambient-glow-2 {
  bottom: -10%; right: -5%;
  width: 50%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(176, 122, 82, 0.06) 0%, transparent 60%);
  animation: drift-glow-2 22s ease-in-out infinite alternate;
}
@keyframes drift-glow-1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  100% { transform: translate(80px, 40px) scale(1.1); opacity: 1; }
}
@keyframes drift-glow-2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate(-60px, -50px) scale(1.15); opacity: 1; }
}

/* ─── EYEBROWS ───────────────────────────────────────────── */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.section-dark .eyebrow {
  color: var(--gold);
}
.section-dark .eyebrow::before {
  background: var(--gold);
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.section-dark h1, .section-dark h2, .section-dark h3 {
  color: var(--silver);
}
h1 em, h2 em, h3 em { font-style: italic; }

h2 {
  font-size: 50px;
  line-height: 1.10;
  margin-bottom: 32px;
}

.lead {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 28px;
  font-weight: 300;
}
.section-dark .lead { color: var(--silver); }

p {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--body);
  margin-bottom: 22px;
}
.section-dark p { color: var(--silver-soft); }
p strong { color: var(--ink); font-weight: 600; }
.section-dark p strong { color: var(--silver); font-weight: 500; }
p em { font-style: italic; }
.section-dark p em { color: var(--silver); }

/* ─── PULL QUOTE ─────────────────────────────────────────── */
.pull-quote {
  margin: 72px 0;
  padding-left: 32px;
  border-left: 1px solid var(--gold);
}
.pull-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}
.section-dark .pull-quote p { color: var(--silver); }
.pull-quote em { font-style: italic; color: var(--gold-deep); }
.section-dark .pull-quote em { color: var(--gold); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 56px 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.hero-content { max-width: 780px; }
.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fade-up 1.1s ease-out 0.2s forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--gold);
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 76px;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 36px;
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 1.4s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
.hero-title .line-1 { animation-delay: 0.5s; }
.hero-title .line-2 { animation-delay: 0.9s; }
.hero-title .line-3 { animation-delay: 1.3s; }
.hero-title em { font-style: italic; font-weight: 400; }

.drawn-rule {
  width: 0;
  height: 1px;
  background: var(--gold);
  margin-bottom: 32px;
  animation: draw-line 1.6s ease-out 1.7s forwards;
}
@keyframes draw-line { to { width: 80px; } }

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  line-height: 1.65;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fade-up 1.4s ease-out 2s forwards;
}
.hero-cta-wrap {
  opacity: 0;
  animation: fade-up 1.4s ease-out 2.4s forwards;
}
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

.hero-mark {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  opacity: 0;
  animation: fade-up 2s ease-out 1.5s forwards;
}

/* ─── RECOGNITION CARDS ─────────────────────────────────── */
.recognition-list { margin: 48px 0 0; }
.recognition-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-light);
}
.recognition-item:last-child { border-bottom: none; }
.recognition-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
  opacity: 0.4;
  min-width: 40px;
  line-height: 1;
  padding-top: 4px;
}
.recognition-text {
  font-size: 17px;
  color: var(--body);
  line-height: 1.7;
}
.recognition-text strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 18px;
}

/* ─── SPIRAL SIGNATURE ──────────────────────────────────── */
.spiral-signature {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

/* ─── METHOD PILLARS ────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.pillar {
  text-align: center;
  padding: 28px 18px;
  border-top: 1px solid var(--line-dark);
}
.pillar-spiral {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.pillar-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 40px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}
.pillar-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--silver);
  line-height: 1.3;
  margin-bottom: 12px;
  font-weight: 400;
}
.pillar-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--silver-soft);
  line-height: 1.65;
}

/* ─── OFFERS ─────────────────────────────────────────────── */
.offers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}
.offer-card {
  background: rgba(232, 230, 224, 0.04);
  border: 1px solid rgba(232, 230, 224, 0.15);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 2px;
}
.offer-card.featured {
  border-color: var(--gold);
}
.offer-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.offer-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 30px;
  color: var(--silver);
  line-height: 1.15;
  margin-bottom: 12px;
}
.offer-name em { font-style: italic; color: var(--gold); }
.offer-desc {
  font-size: 15px;
  color: var(--silver-soft);
  line-height: 1.7;
  margin-bottom: 24px;
}
.offer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.offer-list li {
  padding: 11px 0 11px 22px;
  color: var(--silver-soft);
  font-size: 14px;
  line-height: 1.55;
  position: relative;
  border-top: 1px solid rgba(232, 230, 224, 0.08);
}
.offer-list li:last-child { border-bottom: 1px solid rgba(232, 230, 224, 0.08); }
.offer-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--green-light);
}
.offer-price {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 26px;
  color: var(--silver);
  margin: 10px 0 4px;
}
.offer-price-note {
  font-size: 12px;
  color: var(--silver-soft);
  opacity: 0.7;
  font-style: italic;
  margin-bottom: 22px;
}
.offer-cta { margin-top: auto; }

/* ─── FOUNDER NOTE ──────────────────────────────────────── */
.founder-note {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.founder-mark {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 24px;
}
.founder-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.40em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.founder-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 20px;
}
.founder-attribution {
  margin-top: 32px;
  text-align: center;
}
.founder-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.founder-credentials {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--gold-deep);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-left: 8px;
}
.founder-role {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--quiet);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ─── EMAIL CAPTURE (MailerLite) ────────────────────────── */
.email-section { text-align: center; }

/* MailerLite default form restyle */
.ml-embedded {
  max-width: 480px;
  margin: 28px auto 0;
}
.ml-embedded .ml-form-embedContainer {
  background: transparent !important;
}
.ml-embedded input[type="email"] {
  background: transparent !important;
  border: 1px solid var(--silver) !important;
  color: var(--silver) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  padding: 14px 18px !important;
  border-radius: 2px 0 0 2px !important;
}
.ml-embedded input[type="email"]::placeholder {
  color: rgba(232, 230, 224, 0.6) !important;
}
.ml-embedded button[type="submit"] {
  background: var(--gold) !important;
  color: var(--paper-base) !important;
  border: 1px solid var(--gold) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  letter-spacing: 0.24em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  padding: 14px 28px !important;
  border-radius: 0 2px 2px 0 !important;
  cursor: pointer !important;
}
.ml-embedded button[type="submit"]:hover {
  background: var(--gold-deep) !important;
  border-color: var(--gold-deep) !important;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  background: linear-gradient(180deg, #1f1f1f 0%, #151515 100%);
  color: var(--silver-soft);
  padding: 70px 56px 44px;
}
.footer-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.footer-mark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 12px;
  padding-left: 0.16em;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.footer-mark .ecg-o {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  margin: 0 0.04em;
  vertical-align: middle;
}
.footer-mark .ecg-o svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.footer-tag {
  font-size: 11px;
  color: var(--silver-soft);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 44px;
}
.disclaimer-block {
  background: rgba(232, 230, 224, 0.03);
  border: 1px solid rgba(232, 230, 224, 0.10);
  padding: 32px 28px;
  margin: 28px 0;
  text-align: left;
  border-radius: 2px;
}
.disclaimer-title {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.30em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}
.disclaimer-block p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--silver-soft);
  margin-bottom: 12px;
}
.disclaimer-block p:last-child { margin-bottom: 0; }
.disclaimer-block p em { color: var(--silver); font-style: italic; }
.disclaimer-block p strong { color: var(--silver); font-weight: 500; }
.footer-meta {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(232, 230, 224, 0.10);
}
.footer-meta p {
  font-size: 11px;
  color: var(--silver-soft);
  line-height: 1.8;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.footer-links {
  margin-top: 22px;
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--silver);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }

/* ─── REVEAL ON SCROLL ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  header { padding: 16px 22px; }
  nav { gap: 18px; }
  nav a { font-size: 10px; letter-spacing: 0.15em; }
  .hero { padding: 110px 22px 60px; }
  .hero-title { font-size: 42px; }
  .hero-mark { display: none; }
  section { padding: 70px 22px; }
  h2 { font-size: 32px; }
  .lead { font-size: 17px; }
  p { font-size: 16px; }
  .pull-quote p { font-size: 22px; }
  .pillars { grid-template-columns: 1fr; gap: 14px; }
  .offers-grid { grid-template-columns: 1fr; gap: 22px; }
  .offer-card { padding: 32px 26px; }
  .founder-text { font-size: 19px; }
  footer { padding: 56px 22px 36px; }
}

/* ─── HERO AMBIENT BREATHING (subtle, premium) ──────────── */
.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 800px 500px at 70% 30%, rgba(176, 122, 82, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(176, 122, 82, 0.04) 0%, transparent 60%);
  animation: hero-breathe 22s ease-in-out infinite alternate;
}
@keyframes hero-breathe {
  0% { transform: scale(1) translate(0, 0); opacity: 0.85; }
  100% { transform: scale(1.08) translate(20px, -15px); opacity: 1; }
}
.hero > * { position: relative; z-index: 2; }
.hero-mark { z-index: 1 !important; }

/* ─── ORNAMENTAL DIVIDERS (subtle drawn lines between sections) ─── */
.section-ornament {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 56px 0 0;
}
.section-ornament svg {
  width: 60px;
  height: 12px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity 1.2s ease-out, transform 1.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.section-ornament.visible svg {
  opacity: 1;
  transform: scaleX(1);
}

/* ─── SLOW DRAWN UNDERLINES on lead text (a moment of motion) ─── */
.section-light h2,
.section-light-soft h2 {
  position: relative;
}

/* ─── SUBTLE LETTER REVEAL on pull quotes ─── */
.pull-quote.reveal {
  transition-delay: 0.2s;
}

/* ─── REFINED HOVER (slower, more intentional) ─── */
.btn {
  transition: background 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s ease;
}
.btn:hover {
  transform: translateY(-1px);
}

/* ─── DEEPER WHITESPACE between sections (premium pacing) ─── */
section {
  padding: 140px 56px;
}
@media (max-width: 768px) {
  section { padding: 80px 22px; }
}
