/* =========================================================
   Pure & Petal — Non-Toxic Living
   Shared stylesheet
   Palette: sage, cream, warm terracotta, soft charcoal
   ========================================================= */

:root {
  --cream: #faf7f2;
  --cream-deep: #f2ece2;
  --sage: #8a9a83;
  --sage-deep: #6d7d67;
  --sage-mist: #e7ece4;
  --terracotta: #c4795d;
  --terracotta-soft: #d99b81;
  --charcoal: #3b3a36;
  --charcoal-soft: #6b6a63;
  --line: #e6ded2;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(59, 58, 54, 0.08);
  --shadow-sm: 0 6px 18px rgba(59, 58, 54, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

/* Graceful image fallback: if an Unsplash image fails, show a soft gradient */
.img-fallback {
  background: linear-gradient(135deg, var(--sage-mist), var(--sage)) !important;
}

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: 0.2px;
}

a { color: var(--terracotta); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--sage-deep); }

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

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

/* ---------- Top bar / nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand {
  font-family: var(--serif);
  font-size: 26px; font-weight: 600; letter-spacing: .5px;
  color: var(--charcoal);
  display: flex; align-items: center; gap: 10px;
}
.brand .mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--sage), var(--sage-deep));
  display: inline-block; flex: none;
}
.brand span.tag { font-family: var(--sans); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--sage-deep); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  color: var(--charcoal-soft); font-size: 14px; letter-spacing: .6px;
  text-transform: uppercase; font-weight: 600;
}
.nav-links a:hover { color: var(--terracotta); }

.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--charcoal); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding: 80px 0 70px;
}
.hero-eyebrow {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--sage-deep); font-weight: 700; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(42px, 6vw, 68px); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero p { font-size: 19px; color: var(--charcoal-soft); margin-bottom: 30px; max-width: 30em; }
.hero-media {
  border-radius: 26px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 5; background: var(--sage-mist);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  font-weight: 700; font-size: 14px; letter-spacing: .8px; text-transform: uppercase;
  cursor: pointer; border: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--terracotta-soft); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--sage-deep); border: 1.5px solid var(--sage); }
.btn-ghost:hover { background: var(--sage-mist); color: var(--sage-deep); }

/* ---------- Section titles ---------- */
.section { padding: 70px 0; }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head .eyebrow {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--sage-deep); font-weight: 700; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { color: var(--charcoal-soft); margin-top: 12px; }

/* ---------- Category grid ---------- */
.cat-grid { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1 / 1; box-shadow: var(--shadow-sm); display: block;
  flex: 0 1 calc((100% - 52px) / 3);
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card .label {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  padding: 22px; color: #fff;
  background: linear-gradient(to top, rgba(45,44,40,.65) 0%, rgba(45,44,40,.05) 55%);
}
.cat-card .label span {
  font-family: var(--serif); font-size: 23px; font-weight: 600;
}

/* ---------- Article cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sage-mist); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card .kicker {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--sage-deep); font-weight: 700; margin-bottom: 10px;
}
.post-card h3 { font-size: 25px; margin-bottom: 10px; }
.post-card p { color: var(--charcoal-soft); font-size: 15.5px; margin-bottom: 18px; flex: 1; }
.post-card .read { font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Newsletter band ---------- */
.band {
  background: var(--sage-mist); border-radius: 26px;
  padding: 56px 40px; text-align: center;
}
.band h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.band p { color: var(--charcoal-soft); max-width: 32em; margin: 0 auto 26px; }
.band form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.band input {
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid var(--line);
  min-width: 280px; font-family: var(--sans); font-size: 15px; background: #fff;
}
.band input:focus { outline: none; border-color: var(--sage); }

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal); color: #d9d5cc; margin-top: 20px;
  padding: 60px 0 30px;
}
.footer a { color: #d9d5cc; }
.footer a:hover { color: var(--terracotta-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand .tag { color: var(--sage); }
.footer p { color: #a8a49b; font-size: 15px; max-width: 30em; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; font-size: 15px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: #918d84;
}

/* ---------- Affiliate disclosure strip ---------- */
.disclosure-strip {
  background: var(--cream-deep); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 20px;
  font-size: 13.5px; color: var(--charcoal-soft); font-style: italic;
}

/* =========================================================
   Article page
   ========================================================= */
.article-hero { padding: 46px 0 10px; }
.breadcrumb { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sage-deep); font-weight: 700; margin-bottom: 18px; }
.breadcrumb a { color: var(--sage-deep); }
.article-hero h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 18px; }
.article-meta { color: var(--charcoal-soft); font-size: 14.5px; letter-spacing: .3px; }
.article-lede { font-size: 20px; color: var(--charcoal-soft); margin: 22px 0 30px; }
.article-figure { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); margin: 10px 0 36px; aspect-ratio: 16/9; background: var(--sage-mist); }
.article-figure img { width: 100%; height: 100%; object-fit: cover; }

.article-body { font-size: 18px; }
.article-body p { margin-bottom: 22px; }
.article-body h2 { font-size: clamp(28px, 3.5vw, 38px); margin: 46px 0 16px; }
.article-body h3 { font-size: 25px; margin: 34px 0 12px; }
.article-body ul { margin: 0 0 22px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--charcoal); }

.toc {
  background: var(--sage-mist); border-radius: var(--radius);
  padding: 26px 30px; margin: 30px 0 40px;
}
.toc h4 { font-family: var(--sans); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 14px; }
.toc ol { margin-left: 18px; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--charcoal); }
.toc a:hover { color: var(--terracotta); }

/* ---------- Product card ---------- */
.product {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 200px 1fr; gap: 0; margin: 26px 0 34px;
}
.product .pic { background: #fff; aspect-ratio: 1/1; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product .pic img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.product .info { padding: 26px 30px; display: flex; flex-direction: column; }
.product .rank {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--terracotta); font-weight: 800; margin-bottom: 6px;
}
.product .info h3 { font-size: 26px; margin-bottom: 6px; }
.product .tagline { color: var(--sage-deep); font-weight: 700; font-size: 13.5px; letter-spacing: .5px; margin-bottom: 12px; }
.product .info p { font-size: 16px; margin-bottom: 16px; color: var(--charcoal-soft); }
.product .best-for {
  font-size: 14px; background: var(--cream-deep); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 18px; color: var(--charcoal);
}
.product .cta { margin-top: auto; }

.callout {
  border-left: 4px solid var(--sage); background: var(--sage-mist);
  padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 30px 0; font-size: 16.5px;
}

.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item h3 { font-size: 22px; margin-bottom: 8px; }
.faq-item p { color: var(--charcoal-soft); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 50px 0; }
  .hero-media { aspect-ratio: 16/11; }
  .cat-card { flex-basis: calc((100% - 26px) / 2); }
  .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; right: 4%;
    background: #fff; padding: 20px 26px; border-radius: var(--radius); box-shadow: var(--shadow); gap: 16px;
  }
  .nav-toggle { display: block; }
  .product { grid-template-columns: 1fr; }
  .product .pic { aspect-ratio: 16/10; }
}
@media (max-width: 560px) {
  .cat-card { flex-basis: 100%; }
}
