/* =========================================================
   Calming Bloom — Design System
   Spa-inspired: cream, blush, beige, dusty rose, sage
   ========================================================= */

:root {
  --cream:        #faf3e9;
  --cream-deep:   #f2e7d7;
  --blush:        #f1ddd1;
  --blush-soft:   #f7e9df;
  --beige:        #e9dcc7;
  --rose:         #c1806a;
  --rose-dark:    #a86651;
  --rose-soft:    #e3b3a0;
  --sage:         #98a984;
  --sage-dark:    #7c8f68;
  --sage-soft:    #cdd8bd;
  --text:         #3d3128;
  --text-muted:   #6f6156;
  --white:        #fffdfa;
  --shadow:       0 12px 32px rgba(94, 70, 54, 0.10);
  --shadow-soft:  0 6px 18px rgba(94, 70, 54, 0.08);
  --radius-lg:    28px;
  --radius-md:    18px;
  --radius-sm:    10px;
  --max-width:    1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: 'Jost', 'Segoe UI', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

p { margin: 0 0 1.2em; color: var(--text-muted); }

a { color: var(--rose-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--rose); }

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

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

.eyebrow {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--rose-dark);
  font-weight: 500;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--rose);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--rose-dark); color: var(--white); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  border-color: var(--rose);
  color: var(--rose-dark);
}
.btn-outline:hover { background: var(--rose); color: var(--white); }

.btn-sage {
  background: var(--sage);
  color: var(--white);
}
.btn-sage:hover { background: var(--sage-dark); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 243, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--beige);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--text);
  font-weight: 600;
}
.brand img { width: 30px; height: 42px; }
.brand:hover { color: var(--rose-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
}
.nav-links a.active,
.nav-links a:hover { color: var(--rose-dark); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 90px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.hero-art {
  background: linear-gradient(160deg, var(--blush) 0%, var(--beige) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.hero-art svg, .hero-art img { width: 62%; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-alt { background: var(--blush-soft); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

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

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--beige);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card .icon-badge {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--sage-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card .icon-badge.rose { background: var(--blush); }

.tag {
  display: inline-block;
  background: var(--sage-soft);
  color: #3f4b34;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.tag.rose { background: var(--blush); color: var(--rose-dark); }

/* ---------- Blog ---------- */
.post-card img, .post-card .thumb { border-radius: var(--radius-sm); margin-bottom: 18px; }
.thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(140deg, var(--blush) 0%, var(--sage-soft) 100%);
  display: flex; align-items: center; justify-content: center;
}
.thumb svg { width: 40%; opacity: 0.8; }

article.post-body {
  max-width: 720px;
  margin: 0 auto;
}
article.post-body h2 { margin-top: 1.4em; }
article.post-body blockquote {
  border-left: 3px solid var(--rose);
  margin: 2em 0;
  padding: 0.4em 0 0.4em 22px;
  font-style: italic;
  color: var(--text);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
}
article.post-body ul, article.post-body ol {
  margin: 0 0 1.4em;
  padding-left: 1.3em;
  color: var(--text-muted);
}
article.post-body li { margin-bottom: 0.6em; }
article.post-body li::marker { color: var(--rose); }
article.post-body .sources-list {
  margin-top: 1em;
  padding-left: 1.3em;
  font-size: 0.86rem;
  color: var(--text-muted);
}
article.post-body .sources-list li { margin-bottom: 0.5em; line-height: 1.5; }

/* ---------- Conditions ---------- */
.condition-card { display: flex; flex-direction: column; height: 100%; }
.condition-card .tag { margin-bottom: 14px; align-self: flex-start; }
.condition-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.condition-card p { font-size: 0.92rem; margin-bottom: 16px; flex-grow: 1; }
.condition-card .learn-more { font-size: 0.9rem; font-weight: 500; color: var(--rose-dark); }

.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 8px;
  padding: 20px;
  background: var(--blush-soft);
  border-radius: var(--radius-md);
}
.jump-nav a {
  font-size: 0.84rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: 999px;
  padding: 7px 15px;
  transition: all 0.15s ease;
}
.jump-nav a:hover { border-color: var(--rose); color: var(--rose-dark); }

.card .icon-badge svg { width: 22px; height: 22px; }

.service-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--rose);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 6px;
}
.service-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 20px;
}
.service-icon-panel {
  background: linear-gradient(160deg, var(--blush) 0%, var(--beige) 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.service-icon-panel svg { width: 40%; height: 40%; opacity: 0.9; }
.symptom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 26px 0 28px;
}
.symptom-block { display: flex; gap: 14px; align-items: flex-start; }
.symptom-block .icon-badge {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--sage-soft);
  display: flex; align-items: center; justify-content: center;
}
.symptom-block .icon-badge svg { width: 20px; height: 20px; }
.symptom-block h4 { margin: 0 0 4px; font-size: 1rem; }
.symptom-block p { margin: 0; font-size: 0.9rem; }

@media (max-width: 900px) {
  .service-hero { grid-template-columns: 1fr; }
  .service-icon-panel { max-width: 320px; margin: 0 auto; }
  .symptom-grid { grid-template-columns: 1fr; }
}

.condition-meta { color: var(--text-muted); font-size: 0.95rem; margin-top: -0.4em; }

.disclaimer-note {
  margin-top: 2.4em;
  padding-top: 1.6em;
  border-top: 1px solid var(--beige);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Resources ---------- */
.resource-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--beige);
}
.resource-item:last-child { border-bottom: none; }
.resource-item h4 { margin: 0 0 4px; font-size: 1.05rem; }
.resource-item p { margin: 0; font-size: 0.92rem; }

.crisis-banner {
  background: var(--rose);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 50px;
  box-shadow: var(--shadow);
}
.crisis-banner h3, .crisis-banner p { color: var(--white); margin: 0; }
.crisis-banner p { opacity: 0.92; }
.crisis-banner .btn-outline { border-color: var(--white); color: var(--white); }
.crisis-banner .btn-outline:hover { background: var(--white); color: var(--rose-dark); }

.cta-banner {
  background: linear-gradient(135deg, var(--sage-dark) 0%, var(--sage) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 56px 0 8px;
  box-shadow: var(--shadow);
}
.cta-banner h3, .cta-banner p { color: var(--white); margin: 0; }
.cta-banner p { opacity: 0.92; max-width: 480px; }
.cta-banner .btn-outline { border-color: var(--white); color: var(--white); }
.cta-banner .btn-outline:hover { background: var(--white); color: var(--sage-dark); }
.cta-banner .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 20px; max-width: 620px; }
label { display: block; font-size: 0.85rem; letter-spacing: 0.03em; margin-bottom: 8px; color: var(--text); }
input, textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--beige);
  background: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
}
input:focus, textarea:focus { outline: 2px solid var(--sage-soft); border-color: var(--sage); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream-deep);
  border-top: 1px solid var(--beige);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-grid h4 { font-family: 'Jost', sans-serif; font-weight: 500; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose-dark); margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-muted); font-size: 0.94rem; }
.footer-bottom {
  border-top: 1px solid var(--beige);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Toolkit ---------- */
.tool-panel {
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 40px;
}
.tool-panel-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.tool-panel-head .icon-badge { flex-shrink: 0; width: 52px; height: 52px; }
.tool-panel-head .icon-badge svg { width: 24px; height: 24px; }

/* Breathing exercise */
.tech-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 34px; }
.tech-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--beige);
  background: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s ease;
}
.tech-tab:hover { border-color: var(--sage); }
.tech-tab.active { background: var(--sage); border-color: var(--sage); color: var(--white); }

.breathing-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 0 10px;
}
.breathing-orb-wrap {
  width: 240px; height: 240px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  margin-bottom: 28px;
}
.breathing-orb {
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--rose-soft), var(--rose) 70%);
  box-shadow: 0 0 0 16px var(--blush-soft), 0 20px 40px rgba(161, 100, 80, 0.25);
  display: flex; align-items: center; justify-content: center;
  transition: transform linear, box-shadow linear;
  transform: scale(0.7);
}
.breathing-orb.phase-inhale { transform: scale(1.15); }
.breathing-orb.phase-hold, .breathing-orb.phase-hold2 { transform: scale(1.15); }
.breathing-orb.phase-exhale { transform: scale(0.7); }
.breathing-orb.phase-rest { transform: scale(0.7); }
.breathing-orb-label {
  color: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.02em;
}
.breathing-orb-count { font-family: 'Playfair Display', serif; font-size: 1.8rem; display: block; margin-top: 2px; }
.breathing-meta { text-align: center; color: var(--text-muted); font-size: 0.92rem; margin-bottom: 22px; min-height: 1.4em; }
.breathing-controls { display: flex; gap: 14px; align-items: center; }
.breathing-cycles { font-size: 0.85rem; color: var(--text-muted); }

/* Affirmations */
.affirmation-card {
  background: linear-gradient(160deg, var(--blush) 0%, var(--sage-soft) 100%);
  border-radius: var(--radius-md);
  padding: 44px 36px;
  text-align: center;
  margin: 22px 0 26px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.affirmation-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  max-width: 560px;
}
.affirmation-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.affirmation-note { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-top: 14px; }

/* Journaling */
.journal-prompt-box {
  background: var(--blush-soft);
  border-left: 3px solid var(--rose);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 22px 0 20px;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--text);
}
.journal-actions-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.journal-textarea {
  width: 100%;
  min-height: 160px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--beige);
  background: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.6;
  resize: vertical;
}
.journal-textarea:focus { outline: 2px solid var(--sage-soft); border-color: var(--sage); }
.journal-footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.journal-save-status { font-size: 0.82rem; color: var(--sage-dark); min-height: 1.2em; }
.journal-privacy-note { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Misc ---------- */
.divider-leaf { display: flex; justify-content: center; margin: 8px 0 40px; opacity: 0.7; }
.divider-leaf svg { width: 46px; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }

.center { text-align: center; }
.mt-lg { margin-top: 56px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tool-panel { padding: 30px 22px; }
  .breathing-orb-wrap { width: 200px; height: 200px; }
  .breathing-orb { width: 110px; height: 110px; }
}

@media (max-width: 680px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px 28px;
    border-bottom: 1px solid var(--beige);
    display: none;
    gap: 18px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .crisis-banner, .cta-banner { flex-direction: column; align-items: flex-start; }
}
