/* ==========================================================================
   Self Guru — selfguru.app
   Premium Zen wellness stylesheet
   ========================================================================== */

:root {
  --cream: #FAF6EE;
  --cream-soft: #F3EBD9;
  --cream-deep: #ECE0C4;
  --gold: #C7A05C;
  --gold-deep: #A9813F;
  --gold-light: #E4CD9C;
  --ink: #362F26;
  --ink-soft: #6E6355;
  --ink-faint: #9C9184;
  --white: #FFFFFF;
  --border: #E6DAC0;
  --shadow: 0 20px 50px -25px rgba(54, 47, 38, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --max-width: 1120px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Jost", "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold-deep);
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-deep);
  display: inline-block;
}

/* ---------------------------------- Header ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--ink);
}

.brand:hover { color: var(--gold-deep); }

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 9px;
}

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

nav.primary-nav a {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

nav.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--gold);
  transition: right 0.25s ease;
}

nav.primary-nav a:hover::after,
nav.primary-nav a[aria-current="page"]::after {
  right: 0;
}

nav.primary-nav a[aria-current="page"] {
  color: var(--gold-deep);
}

.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
}

/* Mobile nav via checkbox hack */
@media (max-width: 780px) {
  nav.primary-nav {
    position: fixed;
    inset: 78px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 28px 30px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-bottom: 1px solid var(--border);
  }

  nav.primary-nav a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
  }

  .nav-toggle:checked ~ nav.primary-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 60;
  }

  .hamburger span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ---------------------------------- Buttons ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(169, 129, 63, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-deep);
}

.btn-ghost:hover {
  background: var(--gold-light);
  color: var(--ink);
}

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  padding: 76px 0 40px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art .halo {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--gold-light) 0%, rgba(228, 205, 156, 0) 70%);
  opacity: 0.65;
  z-index: 0;
}

.hero-art .hero-rings {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}

.hero-art .hero-icon {
  position: absolute;
  z-index: 2;
  width: 46%;
  max-width: 210px;
  border-radius: 22px;
  box-shadow: 0 24px 60px -20px rgba(169, 129, 63, 0.55);
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy .cta-row {
    justify-content: center;
  }
  .hero-art .hero-rings {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ---------------------------------- Sections ---------------------------------- */

section {
  padding: 64px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-alt {
  background: var(--cream-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------------------------------- Feature grid ---------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--gold-deep);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

/* ---------------------------------- Quote / philosophy ---------------------------------- */

.philosophy {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.philosophy blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 18px;
  line-height: 1.4;
}

.philosophy cite {
  font-style: normal;
  color: var(--gold-deep);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------------------------------- Legal / content pages ---------------------------------- */

.page-hero {
  padding: 56px 0 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--cream-soft);
}

.page-hero .updated {
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.content {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 28px;
}

.content h2 {
  margin-top: 2.2em;
  padding-top: 0.4em;
  border-top: 1px solid var(--border);
}

.content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.content ul, .content ol {
  color: var(--ink-soft);
  padding-left: 1.3em;
}

.content li {
  margin-bottom: 0.5em;
}

.content .callout {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 1.6em 0;
}

.content .callout p {
  margin-bottom: 0;
}

.mail-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--ink);
}

.mail-chip:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

/* ---------------------------------- FAQ ---------------------------------- */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--gold-deep);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 12px 0 0;
}

/* ---------------------------------- Steps ---------------------------------- */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 4px 52px;
  margin-bottom: 22px;
  color: var(--ink-soft);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps strong {
  color: var(--ink);
}

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--cream-soft);
  padding: 56px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

.footer-grid h4 {
  color: var(--gold-light);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-grid .brand {
  color: var(--white);
  margin-bottom: 12px;
}

.footer-grid p {
  color: #C8BFAE;
  font-size: 0.94rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid a {
  color: #D9CFBB;
  font-size: 0.94rem;
}

.footer-grid a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #A99E8B;
}

/* ---------------------------------- Misc ---------------------------------- */

.text-center { text-align: center; }

