/* ==========================================================================
   ChillTidyNest — Brand Stylesheet
   "Nest ring" system — Fraunces + Dancing Script + Inter
   Warm beige, sage, taupe. Pinned cards, stitched timelines, ring motifs.
   ========================================================================== */

:root {
  --sage: #C4D4C1;
  --sage-light: #EEF3ED;
  --sage-dark: #6E8A69;
  --taupe: #CFC7BD;
  --taupe-light: #F3EFEA;
  --taupe-dark: #9C8C79;
  --beige: #F7F4EF;
  --beige-dark: #EAE4DA;
  --charcoal: #2A2A2A;
  --charcoal-soft: #6E6A65;
  --white: #FFFFFF;

  --font-heading: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
  --font-script: "Dancing Script", cursive;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 10px 30px rgba(42, 42, 42, 0.07);
  --shadow-card: 0 6px 20px rgba(110, 138, 105, 0.12);
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.18;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 460; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1.1em; }

a { color: var(--sage-dark); text-decoration: none; }
a:hover { color: var(--charcoal); }

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

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

.script {
  font-family: var(--font-script);
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--sage-dark);
  display: inline-block;
}
.eyebrow-invert { color: var(--white); }
.eyebrow-invert::before { background: rgba(255,255,255,0.6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 14px 30px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--sage-dark);
  color: var(--white);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: #5C7657; color: var(--white); transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}
.btn-secondary:hover { background: var(--charcoal); color: var(--white); }
.btn-taupe {
  background: var(--taupe);
  color: var(--charcoal);
}
.btn-taupe:hover { background: var(--taupe-dark); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--beige-dark);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 50px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a { color: var(--charcoal); }
.nav-links a:hover { color: var(--sage-dark); }
.nav-toggle { display: none; }

@media (max-width: 780px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--beige); flex-direction: column; gap: 0; border-bottom: 1px solid var(--beige-dark); max-height: 0; overflow: hidden; transition: max-height 0.25s ease; box-shadow: var(--shadow-soft); z-index: 10; }
  .nav-links.open { max-height: 400px; }
  .nav-links li { width: 100%; background: var(--beige); }
  .nav-links a { display: block; padding: 16px 24px; border-top: 1px solid var(--beige-dark); border-radius: 0; }
  .nav-links li:last-child { padding: 14px 24px 20px; }
  .nav-links li:last-child a.btn { width: 100%; justify-content: center; border-top: none; padding: 14px 22px; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--charcoal);
  }
}

/* ---------- Hero: ring motif + pinned note ---------- */
.hero-organic {
  padding: 64px 0 76px;
  position: relative;
  overflow: hidden;
}
.hero-organic .ring-motif {
  position: absolute;
  top: -140px;
  left: -160px;
  width: 620px;
  height: 620px;
  pointer-events: none;
  z-index: 0;
  animation: nest-spin 140s linear infinite;
  transform-origin: 50% 50%;
}
.ring-motif-small {
  animation: nest-spin 90s linear infinite reverse;
  transform-origin: 50% 50%;
}
@keyframes nest-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-organic .ring-motif, .ring-motif-small { animation: none; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-organic .ring-motif { opacity: 0.6; }
}
.hero-organic h1 { margin-bottom: 22px; }
.hero-organic h1 .accent {
  font-family: var(--font-script);
  color: var(--sage-dark);
  font-weight: 600;
  font-size: 1.18em;
  padding: 0 0.05em;
}
.lede { font-size: 1.15rem; color: var(--charcoal-soft); max-width: 46ch; }
.hero-cta { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

/* ---------- Interior page hero (About / Resources / Blog index / Articles) ---------- */
.page-hero { padding: 60px 0 16px; }
.page-hero .lede { margin: 0 auto; }

.pin-card {
  background: var(--white);
  border-radius: 4px 4px var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 38px 34px 32px;
  position: relative;
  transform: rotate(-1.6deg);
  border: 1px dashed var(--beige-dark);
  transition: transform 0.4s ease;
}
.pin-card:hover { transform: rotate(0deg); }
.pin-card::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--taupe-dark);
  box-shadow: 0 2px 4px rgba(42,42,42,0.25);
}
.pin-card .tag {
  display: inline-block;
  background: var(--taupe);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.pin-card ul { margin: 18px 0 0; padding: 0; list-style: none; }
.pin-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px dashed var(--beige-dark);
  font-size: 0.98rem;
  color: var(--charcoal-soft);
}
.pin-card li:first-of-type { border-top: none; }
.pin-card .check {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 1px;
}
.pin-card .check svg { width: 22px; height: 22px; stroke: var(--sage-dark); }

/* ---------- Section wrappers ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head p { color: var(--charcoal-soft); }
.section-head.align-left { text-align: left; margin: 0 0 40px; }
.bg-white { background: var(--white); }

/* ---------- Pillars: stitched timeline ---------- */
.pillars-wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 880px) { .pillars-wrap { grid-template-columns: 1fr; } }

.pillars-timeline { position: relative; padding-left: 4px; }
.pillars-timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background-image: linear-gradient(var(--taupe-dark) 60%, transparent 0%);
  background-size: 1px 10px;
  background-repeat: repeat-y;
}
.pillar-row {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  position: relative;
  padding: 20px 0;
}
.pillar-row-icon {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--beige);
  border: 1.5px solid var(--taupe);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
}
.pillar-row-icon svg { width: 24px; height: 24px; stroke: var(--sage-dark); }
.pillar-row h3 { margin-bottom: 6px; font-size: 1.18rem; }
.pillar-row p { color: var(--charcoal-soft); font-size: 0.96rem; margin-bottom: 0; }

.pillars-side {
  background: var(--taupe-light);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  position: sticky;
  top: 100px;
}
.pillars-side .ring-motif-small { width: 100%; max-width: 180px; margin: 0 auto 24px; }
.pillars-side p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  text-align: center;
  color: var(--charcoal);
  margin-bottom: 0;
}
.pillars-side span { display: block; text-align: center; margin-top: 14px; font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; color: var(--sage-dark); }

/* ---------- Featured articles: editorial spotlight ---------- */
.spotlight {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--beige-dark);
}
.spotlight-feature {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--beige-dark);
}
@media (max-width: 780px) { .spotlight-feature { grid-template-columns: 1fr; } }
.spotlight-feature .num-ring {
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 1px dashed var(--sage-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--sage-dark);
  margin: 0 auto;
}
.spotlight-feature .cat {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 10px;
  display: block;
}
.spotlight-feature h3 { font-size: 1.5rem; margin-bottom: 10px; }
.spotlight-feature p { color: var(--charcoal-soft); margin-bottom: 12px; }

.spotlight-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--beige-dark);
}
.spotlight-row .idx {
  flex: none;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--taupe-dark);
  width: 34px;
}
.spotlight-row .info { flex: 1; }
.spotlight-row h4 { font-size: 1.02rem; font-weight: 600; margin: 0 0 4px; font-family: var(--font-body); color: var(--charcoal); }
.spotlight-row .cat-tag {
  flex: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  background: var(--beige);
  border: 1px solid var(--beige-dark);
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.spotlight-row .arrow { flex: none; color: var(--sage-dark); font-size: 1.1rem; }
.spotlight-row.static { opacity: 0.68; }

/* ---------- Article grid (blog index / resources) ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .articles-grid { grid-template-columns: 1fr; } }

.article-card {
  background: var(--white);
  border-radius: 4px var(--radius-md) var(--radius-md) var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--sage-dark);
}
.article-card.taupe-top { border-top-color: var(--taupe-dark); }
.article-card .body { padding: 26px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.article-card .cat-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--taupe);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.article-card .cat-icon svg { width: 16px; height: 16px; stroke: var(--sage-dark); }
.article-card .cat {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 10px;
  display: block;
}
.article-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.article-card p { color: var(--charcoal-soft); font-size: 0.94rem; margin-bottom: 14px; }
.article-card .read-more { margin-top: auto; font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; }
.article-card.static { opacity: 0.68; }
.article-card.static .cat::after { content: " · coming soon"; text-transform: none; letter-spacing: 0; color: var(--charcoal-soft); font-weight: 400; }

/* ---------- Opt-in / freebie banner ---------- */
.optin {
  background: var(--sage-dark);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 800px) { .optin { grid-template-columns: 1fr; padding: 40px 28px; } }
.optin h2 { color: var(--white); }
.optin p { color: rgba(255,255,255,0.85); }
.optin-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.optin-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border-radius: 100px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.98rem;
}
.optin-form small { display: block; margin-top: 10px; color: rgba(255,255,255,0.65); font-size: 0.82rem; }

/* ---------- Freebie preview: pinned checklist ---------- */
.freebie-preview {
  background: var(--white);
  border-radius: 4px var(--radius-md) var(--radius-md) var(--radius-md);
  padding: 20px;
  color: var(--charcoal);
  box-shadow: var(--shadow-soft);
  transform: rotate(1.4deg);
  position: relative;
  transition: transform 0.4s ease;
}
.freebie-preview:hover { transform: rotate(0deg); }
.freebie-preview::before {
  content: "";
  position: absolute;
  top: -8px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--charcoal);
}
.freebie-preview .mini-doc {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px dashed var(--beige-dark);
}
.freebie-preview .mini-doc .bar { background: var(--sage-dark); color: var(--white); padding: 10px 14px; font-family: var(--font-heading); font-style: italic; font-size: 0.95rem; }
.freebie-preview .mini-doc .rows { padding: 14px; }
.freebie-preview .mini-doc .row { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px dashed var(--beige-dark); font-size: 0.82rem; color: var(--charcoal-soft); }
.freebie-preview .mini-doc .row .box { flex: none; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--sage-dark); margin-top: 1px; }

/* ---------- Testimonial / quote ---------- */
.quote-block {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.quote-block .twig { width: 42px; height: 42px; margin: 0 auto 20px; stroke: var(--sage-dark); }
.quote-block p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--charcoal);
  line-height: 1.5;
}
.quote-block span { font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; color: var(--sage-dark); }

/* ---------- Category pills (blog index) ---------- */
.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 46px; }
.cat-pill {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 9px 20px;
  border-radius: 100px;
  background: var(--white);
  color: var(--charcoal);
  border: 1px solid var(--beige-dark);
}
.cat-pill.active { background: var(--sage-dark); color: var(--white); border-color: var(--sage-dark); }

/* ---------- Article page ---------- */
.post-hero { padding: 52px 0 20px; }
.post-hero .eyebrow { margin-bottom: 20px; }
.post-hero h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
.post-meta { color: var(--charcoal-soft); font-size: 0.92rem; margin-bottom: 30px; }
.post-body { max-width: 720px; margin: 0 auto; }
.post-body h2 { margin-top: 1.6em; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin-bottom: 0.5em; }
.post-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  font-size: 0.94rem;
}
.post-table th {
  background: var(--sage-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.post-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--beige-dark);
  color: var(--charcoal-soft);
}
.post-table tr:first-of-type td { border-top: none; }
.post-table strong { color: var(--charcoal); }

.post-hero-image {
  max-width: 720px;
  margin: 28px auto 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.post-hero-image img { width: 100%; height: 340px; object-fit: cover; object-position: center 30%; display: block; }
@media (max-width: 640px) { .post-hero-image img { height: 240px; } }

.post-inline-image {
  margin: 32px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.post-inline-image img { width: 100%; height: 280px; object-fit: cover; object-position: center 30%; display: block; }
.post-inline-image figcaption {
  padding: 12px 18px;
  background: var(--white);
  font-size: 0.84rem;
  color: var(--charcoal-soft);
  font-style: italic;
}
.callout {
  background: var(--white);
  border-left: 3px solid var(--taupe-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 0.98rem;
}
.callout strong { color: var(--sage-dark); font-family: var(--font-heading); font-style: italic; font-weight: 500; }
.quick-wins {
  background: var(--sage-light);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin: 28px 0;
}
.quick-wins h3 { margin-bottom: 12px; }
.quick-wins ul { margin: 0; padding-left: 1.2em; }
.printable-cta {
  background: var(--white);
  border: 1.5px dashed var(--taupe-dark);
  border-radius: 4px var(--radius-md) var(--radius-md) var(--radius-md);
  padding: 26px 28px;
  margin: 36px 0;
  text-align: center;
  transform: rotate(-0.6deg);
  position: relative;
  transition: transform 0.4s ease;
}
.printable-cta:hover { transform: rotate(0deg); }
.printable-cta::before {
  content: "";
  position: absolute;
  top: -7px; left: 50%; transform: translateX(-50%);
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--taupe-dark);
}
.printable-cta p { margin-bottom: 14px; color: var(--charcoal-soft); }

/* ---------- Footer ---------- */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.72);
  padding: 56px 0 30px;
  font-size: 0.92rem;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 10px; }
footer a { color: rgba(255,255,255,0.72); }
footer a:hover { color: var(--taupe); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 58px; width: auto; border-radius: 50%; background: var(--beige); padding: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }
