/* ============================================================
   Learning How To Breathe Again — "Cinematic" rebrand
   Dark charcoal / gold / silver. Same layout, new palette.
   ============================================================ */

:root {
  --deep-teal: #0d1319;
  --teal: #d2ae67;
  --teal-soft: #eed08e;
  --teal-mist: #2a3542;
  --sage: #d2ae67;
  --sage-deep: #b8944f;
  --sage-pale: #1c2530;
  --cream: #0d1319;
  --cream-deep: #111820;
  --ink: #f5f1e8;
  --ink-soft: #c6c9cd;
  --ink-faint: #98a0a8;
  --white: #161e27;
  --radius: 1.5rem;
  --radius-sm: 1rem;
  --shadow-soft: 0 18px 45px -18px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 10px 30px -14px rgba(0, 0, 0, 0.5);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.narrow { width: min(760px, 92%); margin: 0 auto; }

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-soft);
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 44rem;
}

p + p { margin-top: 1rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 19, 25, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(210, 174, 103, 0.25);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--teal-soft); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(210, 174, 103, 0.4);
  border-radius: 0.75rem;
  padding: 0.5rem 0.8rem;
  font-size: 1.1rem;
  color: var(--ink);
  cursor: pointer;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #080d12 0%, #101821 55%, #090e14 100%);
  color: var(--ink);
  padding: 6.5rem 0 7.5rem;
  border-bottom: 1px solid rgba(210, 174, 103, 0.25);
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}

.hero::before {
  width: 34rem; height: 34rem;
  background: rgba(210, 174, 103, 0.35);
  top: -12rem; right: -8rem;
}

.hero::after {
  width: 26rem; height: 26rem;
  background: rgba(172, 190, 209, 0.25);
  bottom: -14rem; left: -8rem;
}

.hero-inner { position: relative; z-index: 1; text-align: center; }

.hero h1 { color: var(--ink); max-width: 16ch; margin: 0 auto 1.25rem; }
.hero h1 em { font-style: italic; color: var(--teal-soft); }

.hero .lede { color: rgba(245, 241, 232, 0.78); margin: 0 auto 2.25rem; }

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Hero with book */
.hero-split { display: flex; align-items: center; gap: 3.5rem; text-align: left; }
.hero-copy { flex: 1 1 auto; min-width: 0; }
.hero-split h1 { margin: 0 0 1.25rem; max-width: 14ch; }
.hero-split .lede { margin: 0 0 2.25rem; }
.hero-split .hero-cta { justify-content: flex-start; }
.hero-book { flex: 0 0 290px; text-align: center; }
.hero-book img { display: block; width: 100%; height: auto; border-radius: 0.9rem; box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.7); border: 1px solid rgba(210, 174, 103, 0.3); }

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

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--sage);
  color: #0a0f14;
  box-shadow: 0 12px 28px -12px rgba(210, 174, 103, 0.5);
}

.btn-primary:hover { transform: translateY(-2px); background: var(--teal-soft); }

.btn-outline {
  border-color: rgba(245, 241, 232, 0.4);
  color: var(--ink);
}

.btn-outline:hover { background: rgba(245, 241, 232, 0.08); transform: translateY(-2px); }

.btn-teal {
  background: var(--teal);
  color: #0a0f14;
  box-shadow: 0 12px 28px -12px rgba(210, 174, 103, 0.5);
}

.btn-teal:hover { transform: translateY(-2px); background: var(--teal-soft); }

.btn-ghost {
  border-color: rgba(210, 174, 103, 0.4);
  color: var(--teal-soft);
}

.btn-ghost:hover { background: rgba(210, 174, 103, 0.1); transform: translateY(-2px); }

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

.section { padding: 5.5rem 0; }

.section.alt { background: var(--cream-deep); }

.section.sage-wash { background: linear-gradient(180deg, var(--sage-pale), var(--cream)); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split.reverse > :first-child { order: 2; }

.card {
  background: var(--white);
  border: 1px solid rgba(210, 174, 103, 0.22);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.rounded-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 6px solid var(--white);
}

.quote-band {
  background: linear-gradient(150deg, #141c25, #080d12);
  color: var(--ink);
  border: 1px solid rgba(210, 174, 103, 0.3);
  border-radius: var(--radius);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-band::before {
  content: "“";
  position: absolute;
  top: -1.5rem;
  left: 2rem;
  font-family: var(--font-display);
  font-size: 9rem;
  color: rgba(210, 174, 103, 0.18);
  line-height: 1;
}

.quote-band h2 { color: var(--ink); font-style: italic; font-weight: 500; }
.quote-band p { color: rgba(245, 241, 232, 0.75); max-width: 40rem; margin: 1rem auto 0; }

/* ---------- Product grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.product-card {
  background: var(--white);
  border: 1px solid rgba(210, 174, 103, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: rgba(210, 174, 103, 0.45); }

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--cream-deep);
}

.product-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }

.product-body h3 { color: var(--ink); }

.badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(210, 174, 103, 0.15);
  color: var(--teal-soft);
  border: 1px solid rgba(210, 174, 103, 0.4);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 0.7rem;
}

.product-desc { color: var(--ink-soft); font-size: 0.97rem; flex: 1; }

.product-meta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-soft);
  margin: 0.9rem 0 0.4rem;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.product-body .btn { text-align: center; }

/* ---------- Verse ---------- */

.verse-card {
  background: linear-gradient(150deg, #141c25, #080d12);
  border: 1px solid rgba(210, 174, 103, 0.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.verse-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(210, 174, 103, 0.12), transparent 70%);
  pointer-events: none;
}

.verse-card > * { position: relative; }

.verse-signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--teal-soft);
  margin-top: 1.5rem;
}

.verse-date {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

.verse-text {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 36rem;
  margin: 0 auto;
  font-style: italic;
}

.verse-ref {
  margin-top: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--teal-soft);
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  border: 1px solid rgba(210, 174, 103, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2.75rem;
}

.field { margin-bottom: 1.4rem; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(210, 174, 103, 0.3);
  border-radius: var(--radius-sm);
  background: var(--cream-deep);
  color: var(--ink);
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--teal-soft);
  outline-offset: 1px;
  border-color: var(--teal);
}

.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }

.field textarea { min-height: 9rem; resize: vertical; }

.reason-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }

.reason-pills span {
  font-size: 0.88rem;
  background: rgba(210, 174, 103, 0.12);
  color: var(--teal-soft);
  border: 1px solid rgba(210, 174, 103, 0.3);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-weight: 500;
}

.form-note {
  margin-top: 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-faint);
  background: var(--cream-deep);
  border: 1px solid rgba(210, 174, 103, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

/* ---------- Email signup ---------- */
.signup-form { max-width: 640px; margin: 0 auto 2.25rem; text-align: left; }
.signup-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.signup-form .btn { width: 100%; }
.signup-form .form-note { text-align: center; }
@media (max-width: 640px) { .signup-fields { grid-template-columns: 1fr; } }

/* ---------- Policy pages ---------- */

.policy { padding: 4.5rem 0 6rem; }

.policy h2 {
  font-size: 1.6rem;
  margin: 2.8rem 0 0.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(210, 174, 103, 0.25);
}

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

.policy h3 { font-size: 1.2rem; margin: 1.6rem 0 0.5rem; }

.policy ul { margin: 0.8rem 0 0.8rem 1.4rem; }
.policy li { margin-bottom: 0.4rem; }

.policy strong { color: var(--teal-soft); }

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

.site-footer {
  background: #080d12;
  color: rgba(245, 241, 232, 0.75);
  padding: 4rem 0 2.5rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(210, 174, 103, 0.25);
}

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

.footer-brand { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); margin-bottom: 0.6rem; }

.site-footer h4 {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-soft);
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }

.site-footer a { color: rgba(245, 241, 232, 0.75); text-decoration: none; }
.site-footer a:hover { color: var(--teal-soft); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(210, 174, 103, 0.18);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(245, 241, 232, 0.55);
}

/* ---------- Decorative ---------- */

.blob-divider {
  height: 70px;
  background:
    radial-gradient(ellipse 55% 100% at 50% 0%, rgba(210, 174, 103, 0.1) 0%, transparent 70%);
}

/* ---------- Sage trio (Meet Sage section) ---------- */
.sage-trio { grid-template-columns: 1fr auto 1fr; align-items: center; }
.sage-portrait {
  width: 280px; height: 280px; object-fit: cover; border-radius: 50%;
  border: 3px solid rgba(210, 174, 103, 0.5);
  box-shadow: 0 18px 45px -18px rgba(0, 0, 0, 0.55);
}
@media (max-width: 860px) {
  .sage-trio { grid-template-columns: 1fr; text-align: center; }
  .sage-portrait { width: 220px; height: 220px; margin: 0 auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2.25rem; }
  .split.reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .hero { padding: 4.5rem 0 5.5rem; }
  .hero-split { flex-direction: column; text-align: center; gap: 2.5rem; }
  .hero-split h1 { margin: 0 auto 1.25rem; }
  .hero-split .lede { margin: 0 auto 2.25rem; }
  .hero-split .hero-cta { justify-content: center; }
  .hero-book { flex: none; width: min(250px, 68%); }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(210, 174, 103, 0.3);
    padding: 0.5rem 4%;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid rgba(210, 174, 103, 0.2); }
  .nav-links a { display: block; padding: 0.85rem 0; }
  .nav-toggle { display: block; }
  .site-header .container { position: relative; }
}

/* ---------- Brevo signup form integration ---------- */
.sib-form-message-panel { display: none; }
.sib-form-message-panel--active { display: block; }
.form-alert {
  max-width: 640px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  border: 1px solid;
  text-align: center;
}
.form-alert--error { color: #ff9d9d; background-color: rgba(255, 73, 73, 0.12); border-color: #ff4949; }
.form-alert--success { color: #9fe8c9; background-color: rgba(31, 122, 84, 0.18); border-color: #7fc7a9; }
.input--hidden { position: absolute; left: -9999px; visibility: hidden; }

/* Submission loader (expected by the Brevo form script) */
.sib-loader { text-align: center; margin: 0.25rem 0 1rem; }
.sib-spinner {
  display: inline-block;
  width: 1.75rem;
  height: 1.75rem;
  border: 3px solid var(--teal-mist);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: sib-spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes sib-spin { to { transform: rotate(360deg); } }

.recaptcha-wrap { display: flex; justify-content: center; margin: 1.1rem 0 1.3rem; }

/* ---------- Shopify Buy Button integration ---------- */
.shopify-buy-frame { margin-top: 1.25rem; min-height: 56px; }
.shopify-buy-frame iframe { max-width: 100%; }

/* ---------- Sample chapter ---------- */
.chapter { margin-top: 2.5rem; }
.chapter p { font-size: 1.12rem; line-height: 1.9; color: var(--ink); margin: 0 0 1.75rem; }
.chapter .dropcap { font-family: var(--font-display); font-weight: 600; font-size: 3.2em; line-height: 0.85; float: left; margin: 0.1em 0.14em 0 0; color: var(--teal); }

/* ---------- Signup popup ---------- */
.popup-overlay { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(8, 13, 18, 0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease; }
.popup-overlay.open { opacity: 1; visibility: visible; }
.popup-card { position: relative; width: 100%; max-width: 30rem; max-height: 90vh; overflow-y: auto; background: var(--white); border: 1px solid rgba(210, 174, 103, 0.3); border-radius: var(--radius); padding: 2.5rem 2rem 2rem; text-align: center; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7); transform: translateY(18px) scale(0.98); transition: transform 0.35s ease; }
.popup-overlay.open .popup-card { transform: none; }
.popup-card h2 { margin: 0.6rem 0 0.75rem; font-size: 1.9rem; }
.popup-sub { color: var(--ink-soft); margin: 0 0 1.5rem; }
.popup-close { position: absolute; top: 0.7rem; right: 0.9rem; background: none; border: none; font-size: 1.8rem; line-height: 1; color: var(--ink-faint); cursor: pointer; padding: 0.25rem; }
.popup-close:hover { color: var(--ink); }
.popup-form { margin-top: 0.5rem; }
