/* ============================================================
   Colorful Living — Design System
   Refined brand evolution: joyful green/yellow + warm neutrals
   WCAG 2.2 AA contrast throughout
   ============================================================ */

:root {
  /* Brand palette */
  --green-700: #2e6b34;      /* primary — deep leaf green (AA on cream) */
  --green-600: #3a8442;
  --green-100: #e6f2e7;
  --yellow-400: #f7c948;     /* sunny accent */
  --yellow-100: #fdf3d7;
  --coral-500: #d95f43;      /* warm petal accent (AA-large) */
  --coral-700: #b34328;      /* AA text-safe coral */
  --cream: #fdfbf6;          /* page background */
  --sand: #f6f0e4;           /* alt section background */
  --ink: #2b2a26;            /* body text */
  --ink-soft: #5c594f;       /* secondary text */
  --white: #ffffff;

  /* Type */
  --font-display: 'Boogaloo', 'Trebuchet MS', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 4px 20px rgba(43, 42, 38, 0.10);
  --shadow-lg: 0 10px 34px rgba(43, 42, 38, 0.16);
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--green-700); }
a:hover { color: var(--green-600); }

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

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.4rem; }
.lead { font-size: 1.22rem; color: var(--ink-soft); }
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-700);
  margin-bottom: 12px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 246, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(43, 42, 38, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand svg, .brand .daisy-logo { width: 42px; height: 42px; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--green-700);
  line-height: 1;
}
.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--green-700); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--green-700);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.25s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--green-700); color: var(--white); }
.btn-primary:hover { background: var(--green-600); color: var(--white); }
.btn-sunny { background: var(--yellow-400); color: var(--ink); }
.btn-sunny:hover { background: #f9d267; color: var(--ink); }
.btn-outline { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-lg { padding: 17px 38px; font-size: 1.12rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 72px 24px 80px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero h1 .accent { color: var(--green-700); }
.hero h1 .accent-2 { color: var(--coral-500); }
.hero .lead { margin: 20px 0 30px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { font-size: 0.92rem; color: var(--ink-soft); margin-top: 14px; }
.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -14px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.95rem;
}
.hero-badge svg, .hero-badge .daisy-logo { width: 30px; height: 30px; flex-shrink: 0; object-fit: contain; }

/* daisy scatter decoration */
.daisy-float {
  position: absolute;
  opacity: 0.14;
  pointer-events: none;
}

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--sand); }
.section-green { background: var(--green-700); color: #f2f7f2; }
.section-green h2 { color: var(--white); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.6rem;
}
.icon-green { background: var(--green-100); }
.icon-yellow { background: var(--yellow-100); }
.icon-coral { background: #fbe4dd; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.99rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  background: var(--coral-500);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.plan {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border-top: 6px solid var(--green-100);
}
.plan.featured { border-top-color: var(--yellow-400); box-shadow: var(--shadow-lg); }
.plan .plan-name { font-family: var(--font-display); font-size: 1.45rem; }
.plan .plan-cadence { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 16px; }
.plan .plan-price { font-size: 2rem; font-weight: 800; color: var(--green-700); }
.plan .plan-price small { font-size: 0.95rem; font-weight: 700; color: var(--ink-soft); }
.plan ul { list-style: none; margin: 18px 0 26px; flex: 1; }
.plan ul li { padding: 7px 0 7px 30px; position: relative; font-size: 0.95rem; color: var(--ink-soft); }
.plan ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-600);
  font-weight: 800;
}
.plan .btn { text-align: center; }
.plan-flag {
  display: inline-block;
  background: var(--yellow-400);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
  align-self: flex-start;
}

/* ---------- Quote / testimonial style ---------- */
.pullquote {
  border-left: 6px solid var(--yellow-400);
  background: var(--white);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 28px 34px;
  box-shadow: var(--shadow);
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto;
}
.pullquote cite { display: block; margin-top: 12px; font-style: normal; font-weight: 800; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Trust bar ---------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 46px;
  padding: 26px 24px;
  background: var(--white);
  border-top: 1px solid rgba(43,42,38,0.06);
  border-bottom: 1px solid rgba(43,42,38,0.06);
}
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 0.95rem; color: var(--ink-soft); }
.trust-item svg { width: 22px; height: 22px; color: var(--green-600); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 30px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: #dcecdd; }
.cta-band .btn { justify-self: end; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card .post-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--coral-700); margin-bottom: 8px; }
.post-card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.post-card h3 a { text-decoration: none; color: var(--ink); }
.post-card h3 a:hover { color: var(--green-700); }
.post-card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.read-more { margin-top: 16px; font-weight: 800; text-decoration: none; font-size: 0.95rem; }

/* Article page */
.article-hero img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.article h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 18px 0; }
.article h2 { font-size: 1.7rem; margin: 40px 0 14px; }
.article p { margin-bottom: 18px; }
.article ul, .article ol { margin: 0 0 18px 24px; }
.article li { margin-bottom: 8px; }
.article .post-meta { margin-bottom: 0; }
.article-cta {
  margin-top: 48px;
  background: var(--green-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.article-cta h3 { margin-bottom: 8px; }
.article-cta p { color: var(--ink-soft); margin-bottom: 18px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 640px;
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 800; font-size: 0.95rem; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #e3ddcf;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 3px solid var(--yellow-400);
  border-color: var(--green-600);
}
.form-note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- FAQ ---------- */
details.faq {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  padding: 20px 26px;
}
details.faq summary {
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
details.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--coral-500);
}
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: 12px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: #24321f;
  color: #cfdac9;
  padding: 60px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.site-footer a { color: #cfdac9; text-decoration: none; }
.site-footer a:hover { color: var(--yellow-400); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; font-size: 0.96rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand svg, .footer-brand .daisy-logo { width: 38px; height: 38px; object-fit: contain; }
.footer-brand span { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 24px;
  font-size: 0.84rem;
  color: #a8b7a1;
  line-height: 1.6;
}

/* ---------- Utility ---------- */
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.center { text-align: center; }
.img-rounded { border-radius: var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 24px 64px; }
  .grid-3, .steps, .pricing-grid, .post-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 30px; }
  .cta-band .btn { justify-self: start; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .steps, .pricing-grid, .post-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .post-card:hover { transform: none; }
}
