/* ============================================================
   Mirashii — Handcrafted Chocolates & Cookies
   "Every Child Deserves a Healthy Start."
   Shared stylesheet. Vanilla CSS, no frameworks.
   ============================================================ */

:root {
  --forest: #0B3D2E;
  --forest-deep: #07271D;
  --forest-soft: #10402F;
  --gold: #D4AF37;
  --gold-light: #E7C65E;
  --gold-dark: #A8862A;
  --cream: #F7F5EA;
  --cream-dark: #EFE9D6;
  --choco: #4E3B2E;
  --sage: #A7B893;
  --sage-light: #E7ECDD;
  --ink: #2B2620;
  --muted: #6E6558;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 61, 46, 0.10);
  --shadow-lg: 0 18px 50px rgba(11, 61, 46, 0.16);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  color: var(--forest);
  margin-bottom: 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin-bottom: 1.1em; }

a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--gold-dark); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- Eyebrow + dividers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.on-dark .eyebrow { color: var(--gold-light); }

.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 22px auto;
}
.divider::before, .divider::after {
  content: ""; height: 1px; width: 72px; background: var(--gold);
  opacity: 0.7;
}
.divider span {
  width: 9px; height: 9px; background: var(--gold);
  transform: rotate(45deg); display: inline-block;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--forest);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 54px; width: auto; }
.brand-mark { height: 46px !important; width: 46px !important; border-radius: 11px; flex: none; }
.brand-word {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600; font-size: 1.5rem; letter-spacing: 0.3em;
  color: var(--gold); line-height: 1; white-space: nowrap;
}
.footer-brand .brand { margin-bottom: 14px; }
/* Article & recipe imagery */
.article-hero { margin: 0 0 32px; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 44px rgba(11,61,46,.14); }
.article-hero img, .article-figure img, .recipe-figure img { display: block; width: 100%; height: auto; }
.article-figure { margin: 36px 0; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 36px rgba(11,61,46,.12); }
.article-figure figcaption { font-size: .82rem; color: var(--muted); text-align: center; padding: 12px 18px 2px; }
.recipe-figure { max-width: 880px; margin: 6px auto 36px; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 44px rgba(11,61,46,.14); }
.recipe-figure figcaption { font-size: .82rem; color: var(--muted); text-align: center; padding: 12px 18px 2px; }
.main-nav ul { display: flex; gap: 30px; list-style: none; align-items: center; }
.main-nav a {
  color: var(--cream);
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 2px; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width 0.25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--gold-light); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: var(--cream);
  margin: 6px 0; transition: 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(212,175,55,0.14), transparent 60%),
    linear-gradient(180deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: var(--cream);
  text-align: center;
  padding: 104px 0 96px;
}
.hero h1 { color: var(--cream); margin-bottom: 18px; }
.hero .lead {
  font-size: 1.12rem; color: #EDE7D3;
  max-width: 680px; margin: 0 auto 34px;
}
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  background: var(--gold); color: var(--forest-deep);
  font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 15px 34px; border-radius: 999px;
  border: 2px solid var(--gold);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.btn:hover {
  background: var(--gold-light); border-color: var(--gold-light);
  color: var(--forest-deep);
  transform: translateY(-2px); box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: transparent; color: var(--cream); border-color: rgba(247,245,234,0.55);
}
.btn-outline:hover {
  background: rgba(247,245,234,0.12); border-color: var(--cream); color: var(--cream);
}
.btn-forest { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.btn-forest:hover { background: var(--forest-soft); border-color: var(--forest-soft); color: var(--cream); }
.btn-small { padding: 11px 24px; font-size: 0.78rem; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-green { background: var(--forest); color: var(--cream); }
.section-green h2, .section-green h3 { color: var(--cream); }
.section-green p { color: #E9E2CC; }
.section-sage { background: var(--sage-light); }
.section-title { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-title p { color: var(--muted); }
.section-green .section-title p { color: #D8CFB4; }

/* ---------- Trust strip ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--cream-dark); }
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding: 40px 0; text-align: center;
}
.trust-item svg { width: 40px; height: 40px; margin: 0 auto 12px; stroke: var(--gold-dark); fill: none; stroke-width: 1.6; }
.trust-item h3 { font-size: 1.05rem; margin-bottom: 4px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.04em; }
.trust-item p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-art {
  height: 168px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--forest) 0%, var(--choco) 100%);
  position: relative; overflow: hidden;
}
.card-art::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 50% 0%, rgba(212,175,55,0.25), transparent 70%);
}
.card-art span {
  font-family: var(--font-head); font-size: 4rem; color: var(--gold);
  position: relative; z-index: 1; line-height: 1;
}
.card-art img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.card-art.alt1 { background: linear-gradient(135deg, var(--choco) 0%, #6B4A33 100%); }
.card-art.alt2 { background: linear-gradient(135deg, #3E5C48 0%, var(--forest) 100%); }
.card-art.alt3 { background: linear-gradient(135deg, var(--forest-soft) 0%, #2A2118 100%); }
.card-art.alt4 { background: linear-gradient(135deg, #5C6B4A 0%, var(--forest) 100%); }
.card-art.alt5 { background: linear-gradient(135deg, var(--choco) 0%, var(--forest) 100%); }
.card-body { padding: 30px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card-meta {
  display: flex; gap: 16px; font-size: 0.8rem; color: var(--gold-dark);
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 12px;
}
.badge-soon {
  display: inline-block; align-self: flex-start;
  background: var(--sage-light); color: var(--forest);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.badge-new {
  display: inline-block; align-self: flex-start;
  background: var(--gold); color: var(--forest);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.card-link {
  margin-top: 18px; font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--forest);
  display: inline-flex; align-items: center; gap: 8px;
}
.card-link::after { content: "→"; color: var(--gold-dark); transition: transform 0.2s; }
.card:hover .card-link::after { transform: translateX(4px); }

/* ---------- Mission / pull quote ---------- */
.mission-quote {
  font-family: var(--font-head); font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.5;
  color: var(--cream); text-align: center;
  max-width: 800px; margin: 30px auto;
}
.mission-quote::before { content: "\201C"; color: var(--gold); font-size: 1.4em; margin-right: 6px; }
.mission-quote::after { content: "\201D"; color: var(--gold); font-size: 1.4em; margin-left: 6px; }
.tagline-gold {
  font-family: var(--font-head); font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--gold-light); letter-spacing: 0.02em; text-align: center;
}

/* ---------- Newsletter ---------- */
.newsletter-box {
  background: var(--white); border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 56px 48px; text-align: center; max-width: 720px; margin: 0 auto;
  border-top: 4px solid var(--gold);
}
.form-row { display: flex; gap: 12px; margin-top: 26px; }
.form-row input {
  flex: 1; padding: 14px 18px; border: 1.5px solid #DDD5BC;
  border-radius: 999px; font-family: var(--font-body); font-size: 0.95rem;
  background: var(--cream); color: var(--ink);
}
.form-row input:focus { outline: none; border-color: var(--gold-dark); background: var(--white); }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }
.form-success {
  display: none; background: var(--sage-light);
  border: 1px solid var(--sage); color: var(--forest);
  border-radius: var(--radius); padding: 22px; margin-top: 24px;
  font-weight: 500;
}
.form-success.show { display: block; }
.form-error { color: #A33B2E; font-size: 0.85rem; margin-top: 10px; display: none; }
.form-error.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: #D9D2B8; padding: 70px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px;
  padding-bottom: 50px;
}
.footer-brand img { height: 52px; width: auto; margin-bottom: 16px; }
.footer-tagline {
  font-family: var(--font-head); font-style: italic;
  color: var(--gold-light); font-size: 1.05rem; margin-bottom: 14px;
}
.footer-brand p { font-size: 0.92rem; }
.site-footer h4 {
  color: var(--cream); font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 18px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #D9D2B8; font-size: 0.94rem; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(212,175,55,0.2);
  padding: 24px 0; display: flex; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; font-size: 0.82rem; color: #A99F80;
}

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: var(--cream); text-align: center; padding: 84px 0 76px;
}
.page-hero h1 { color: var(--cream); margin-bottom: 14px; }
.page-hero p { color: #E4DCC2; max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Story ---------- */
.story-body p { font-size: 1.06rem; }
.story-body p.lead-par { font-size: 1.22rem; color: var(--forest); font-weight: 500; }
.values-list { list-style: none; margin: 26px 0; }
.values-list li {
  padding: 14px 0 14px 40px; position: relative;
  border-bottom: 1px solid var(--cream-dark); font-weight: 500;
}
.values-list li::before {
  content: ""; position: absolute; left: 4px; top: 22px;
  width: 10px; height: 10px; background: var(--gold);
  transform: rotate(45deg);
}
.values-list li small { display: block; font-weight: 400; color: var(--muted); }

/* ---------- Recipe ---------- */
.recipe-head { text-align: center; margin-bottom: 44px; }
.recipe-meta {
  display: flex; justify-content: center; gap: 36px; flex-wrap: wrap;
  margin: 26px 0; padding: 22px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.recipe-meta div { text-align: center; }
.recipe-meta strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--forest); }
.recipe-meta span { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.recipe-cols { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
.ingredients {
  background: var(--white); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.ingredients ul { list-style: none; }
.ingredients li {
  padding: 9px 0; border-bottom: 1px dashed #E4DCC4; font-size: 0.96rem;
}
.ingredients li:last-child { border-bottom: none; }
.ingredients li strong { color: var(--forest); }
.steps ol { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 26px 64px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--forest); color: var(--gold-light);
  font-family: var(--font-head); font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.steps li h4 { margin-bottom: 6px; font-size: 1.1rem; }
.steps li p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.tip-box {
  background: var(--sage-light); border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px; margin-top: 34px;
}
.tip-box h4 { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--forest); }
.tip-box ul { margin: 10px 0 0 18px; color: var(--ink); font-size: 0.96rem; }
.tip-box li { margin-bottom: 8px; }

/* ---------- Journal article ---------- */
.article-body p { font-size: 1.07rem; }
.article-body h2 { margin-top: 2.2em; }
.article-meta {
  display: flex; gap: 18px; align-items: center; justify-content: center;
  color: #CFC69F; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  margin-top: 18px;
}
.letter { font-style: normal; }
.letter .salutation { font-family: var(--font-head); font-size: 1.3rem; color: var(--forest); }
.disclaimer {
  background: var(--cream-dark); border-radius: var(--radius);
  padding: 20px 26px; font-size: 0.9rem; color: var(--muted); margin-top: 40px;
}

/* ---------- Shop ---------- */
.tool-card .card-body ul { margin: 0 0 0 18px 18px; color: var(--muted); font-size: 0.93rem; }
.affiliate-note {
  background: var(--cream-dark); border-radius: 10px;
  padding: 16px 22px; font-size: 0.85rem; color: var(--muted);
  margin-bottom: 40px; text-align: center;
}
.price-note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.contact-form {
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow);
  padding: 44px 40px; border-top: 4px solid var(--gold);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--forest); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 14px 18px; border: 1.5px solid #DDD5BC;
  border-radius: 12px; font-family: var(--font-body); font-size: 0.97rem;
  background: var(--cream); color: var(--ink); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-dark); background: var(--white); }
.contact-info h3 { margin-top: 28px; }
.contact-info h3:first-child { margin-top: 0; }
.social-text { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.social-text a {
  border: 1.5px solid var(--gold); color: var(--forest);
  padding: 8px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
}
.social-text a:hover { background: var(--forest); border-color: var(--forest); color: var(--cream); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .recipe-cols, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 78px; left: 0; right: 0;
    background: var(--forest-deep);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(212,175,55,0.2);
  }
  .main-nav.open { max-height: 420px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px 20px; align-items: flex-start; }
  .main-nav li { width: 100%; border-bottom: 1px solid rgba(247,245,234,0.08); }
  .main-nav a { display: block; padding: 14px 4px; font-size: 0.85rem; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .header-inner { position: relative; }
  .site-header .container { position: relative; }
  .main-nav { position: absolute; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 76px 0 70px; }
  .form-row { flex-direction: column; }
  .form-row .btn { width: 100%; }
  .newsletter-box { padding: 40px 26px; }
  .contact-form { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .recipe-meta { gap: 20px; }
}
