/* ==========================================================================
   Meadow — wildflower garden design template · archesign.studio
   1. Tokens  2. Base  3. Header  4. Components  5. Pages  6. Footer  7. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --cream: #fffaf0;
  --lavender: #b8a9d9;
  --poppy: #e86a5a;
  --buttercup: #f2cf5b;
  --grass: #8fb36a;
  --ink: #3b3550;
  --muted: #6e6884;

  --font-hand: "Caveat", "Comic Sans MS", cursive;
  --font-sans: "Quicksand", "Trebuchet MS", Arial, sans-serif;

  --radius: 26px;
  --gutter: clamp(16px, 3vw, 40px);
  --max: 1260px;
  --space: clamp(80px, 10vw, 140px);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --confetti: radial-gradient(circle at 12% 20%, var(--poppy) 0 5px, transparent 6px),
              radial-gradient(circle at 82% 14%, var(--buttercup) 0 6px, transparent 7px),
              radial-gradient(circle at 66% 78%, var(--lavender) 0 7px, transparent 8px),
              radial-gradient(circle at 28% 86%, var(--grass) 0 5px, transparent 6px),
              radial-gradient(circle at 92% 62%, var(--poppy) 0 4px, transparent 5px);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 18px/1.65 var(--font-sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-weight: 700; margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
h4 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--buttercup); margin-bottom: 10px; }
:focus-visible { outline: 3px solid var(--poppy); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--buttercup); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.hand { font-family: var(--font-hand); font-size: clamp(26px, 2.6vw, 34px); color: var(--poppy); margin: 0 0 6px; line-height: 1; transform: rotate(-2deg); display: inline-block; }
.muted { color: var(--muted); }
/* hand-drawn underline */
.hl { position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: -.12em; height: .32em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C40 4 80 18 120 9 S180 6 197 11' fill='none' stroke='%23f2cf5b' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; z-index: -1; }
.h-l { font-size: clamp(36px, 4.8vw, 66px); }
.wave-top { display: block; width: 100%; height: 60px; }

/* 3. Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; }
.logo svg { width: 38px; height: 38px; transition: transform .6s var(--bounce); }
.logo:hover svg { transform: rotate(90deg); }
.logo b { color: var(--poppy); }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a { padding: 8px 16px; border-radius: 999px; font-weight: 600; transition: background .2s; }
.site-nav a:hover { background: #f5eedb; }
.site-nav a[aria-current="page"] { background: var(--lavender); color: #fff; }
.site-nav .nav-pill { background: var(--poppy); color: #fff; }
.site-nav .nav-pill:hover { background: var(--ink); }
.menu-btn { display: none; }

/* 4. Components ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; background: var(--ink); color: var(--cream); font: 700 17px var(--font-sans); border: 0; cursor: pointer; transition: transform .4s var(--bounce), background .2s; }
.btn:hover { transform: translateY(-3px) rotate(-1deg); background: var(--poppy); }
.btn--yellow { background: var(--buttercup); color: var(--ink); }
.btn--yellow:hover { background: #fff; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--cream); }
.round { border-radius: var(--radius); overflow: hidden; background: #f5eedb; }
.round img { width: 100%; aspect-ratio: var(--ratio, 1); object-fit: cover; }
.confetti { background-image: var(--confetti); }
.js .reveal { opacity: 0; transform: translateY(24px) rotate(-1deg); transition: opacity .8s ease, transform .9s var(--bounce); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 5. Pages ----------------------------------------------------------------- */
/* hero */
.hero { padding: clamp(32px, 5vw, 72px) 0 var(--space); }
.hero-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(46px, 6.6vw, 104px); letter-spacing: -0.035em; line-height: 1.02; }
.hero h1 .poppy { color: var(--poppy); }
.hero .lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); margin: 24px 0 32px; max-width: 44ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; padding: 24px; }
.hero-art::before { content: ""; position: absolute; inset: 0; background: var(--confetti); background-size: 100% 100%; }
.hero-art .round { border-radius: 50%; border: 10px solid #fff; box-shadow: 0 30px 50px -30px rgba(59, 53, 80, .5); position: relative; }
.note { position: absolute; left: -12px; bottom: 12%; background: var(--buttercup); border-radius: 16px; padding: 12px 16px; transform: rotate(-6deg); font-family: var(--font-hand); font-size: 26px; line-height: 1; box-shadow: 0 12px 24px -16px rgba(59, 53, 80, .6); }

/* pollinators */
.bugs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bug { background: #fff; border-radius: var(--radius); padding: 26px; text-align: center; }
.bug b { display: block; font-size: clamp(38px, 4vw, 56px); line-height: 1; color: var(--ink); }
.bug span { font-family: var(--font-hand); font-size: 26px; color: var(--poppy); }
.bug:nth-child(2) span { color: #9b85cf; } .bug:nth-child(3) span { color: #c8a12a; } .bug:nth-child(4) span { color: #6f9445; }

/* seed mixes */
.mixes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mix { background: #fff; border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.pie { width: 120px; aspect-ratio: 1; border-radius: 50%; position: relative; }
.pie::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: #fff; }
.mix h3 { font-size: 22px; margin-bottom: 8px; }
.mix ul { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--muted); }
.mix li { display: flex; align-items: center; gap: 8px; }
.mix li i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* polaroid gardens */
.polas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 36px; }
.pola { display: block; background: #fff; padding: 14px 14px 22px; border-radius: 6px; box-shadow: 0 20px 40px -26px rgba(59, 53, 80, .55); transform: rotate(var(--rot, -2deg)); transition: transform .5s var(--bounce); position: relative; }
.pola:nth-child(3n+2) { --rot: 1.6deg; } .pola:nth-child(3n) { --rot: -0.8deg; }
.pola:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.pola::before { content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgba(242, 207, 91, .75); }
.pola img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.pola h3 { font-family: var(--font-hand); font-size: 32px; font-weight: 700; margin-top: 12px; }
.pola p { margin: 0; font-size: 14px; color: var(--muted); }
.pola[hidden] { display: none; }

/* page head */
.page-head { padding: clamp(48px, 7vw, 100px) 0 clamp(36px, 5vw, 64px); text-align: center; }
.page-head h1 { font-size: clamp(50px, 8vw, 120px); letter-spacing: -0.035em; }
.page-head p { max-width: 52ch; margin: 22px auto 0; color: var(--muted); font-size: 19px; }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 64px; }
.filters button { font: 700 16px var(--font-sans); padding: 10px 20px; border-radius: 999px; border: 2.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: transform .3s var(--bounce); }
.filters button:hover { transform: rotate(-2deg); }
.filters button[aria-pressed="true"] { background: var(--grass); border-color: var(--grass); color: #fff; }

/* compare (mown → meadow) */
.compare { --pos: 50%; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 14 / 9; background: #ddd; border: 10px solid #fff; box-shadow: 0 30px 50px -34px rgba(59, 53, 80, .6); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; pointer-events: none; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .tag { position: absolute; top: 14px; font-family: var(--font-hand); font-size: 28px; background: #fff; padding: 2px 14px; border-radius: 12px; pointer-events: none; }
.compare .t1 { left: 14px; } .compare .t2 { right: 14px; background: var(--buttercup); }
.story { max-width: 720px; margin: 0 auto; font-size: 19px; }
.story h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.chips span { background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 600; }

/* team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.member { text-align: center; }
.member .round { border-radius: 50%; border: 8px solid #fff; max-width: 260px; margin: 0 auto; }
.member h3 { font-size: 24px; margin-top: 16px; }
.member .hand { font-size: 26px; }

/* services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border-radius: var(--radius); padding: 32px; }
.card:nth-child(1) { background: #fde3df; } .card:nth-child(2) { background: #ece6f6; } .card:nth-child(3) { background: #fdf2c8; }
.card h3 { font-size: 26px; margin: 10px 0 10px; }
.card .price { font-family: var(--font-hand); font-size: 34px; color: var(--ink); }
.card ul { padding-left: 20px; margin: 14px 0 0; color: var(--muted); }
.year { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.year li { background: #fff; border-radius: var(--radius); padding: 26px; }
.year .hand { font-size: 34px; }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 20px; padding: 20px 24px; }
.faq summary { cursor: pointer; list-style: none; display: block; position: relative; padding-right: 40px; font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "✿"; position: absolute; right: 0; top: -4px; font-size: 26px; color: var(--lavender); transition: transform .5s var(--bounce), color .3s; }
.faq details[open] summary::after { transform: rotate(180deg); color: var(--poppy); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* contact */
.contact { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: start; }
.form-card { background: #fff; border-radius: var(--radius); padding: clamp(24px, 3.4vw, 44px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form > *, .field { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field select, .field textarea { font: 500 17px var(--font-sans); color: var(--ink); background: var(--cream); border: 2.5px solid #efe6cc; border-radius: 16px; padding: 12px 15px; appearance: none; min-width: 0; max-width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lavender); }
.form-note { grid-column: 1 / -1; background: #ece6f6; border-radius: 16px; padding: 14px 16px; margin: 0; }
.side { background: var(--lavender); color: #fff; border-radius: var(--radius); padding: 32px; position: relative; overflow: hidden; }
.side::after { content: ""; position: absolute; inset: 0; background: var(--confetti); opacity: .6; pointer-events: none; }
.side h3 { font-size: 26px; margin-bottom: 10px; }

/* 6. Footer ---------------------------------------------------------------- */
.site-footer { margin-top: var(--space); }
.wave { display: block; width: 100%; height: 70px; }
.f-body { background: var(--ink); color: var(--cream); padding: clamp(40px, 6vw, 80px) 0 30px; }
.f-top { text-align: center; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 250, 240, .15); }
.f-top .hand { color: var(--buttercup); }
.f-top h2 { font-size: clamp(36px, 5vw, 72px); margin: 8px 0 28px; }
.f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gutter); padding: 44px 0 30px; font-size: 15px; }
.f-logo { font-weight: 700; font-size: 22px; margin: 0 0 8px; }
.dim { color: #c4bdd6; }
.f-grid a:hover { color: var(--buttercup); }
.f-base { font-size: 13px; color: #9a92b2; margin: 0; text-align: center; }

/* 7. Responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .mixes, .cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .bugs, .year { grid-template-columns: repeat(2, 1fr); }
  .polas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .menu-btn { display: inline-block; background: var(--buttercup); border: 0; border-radius: 999px; padding: 10px 20px; font: 700 16px var(--font-sans); color: var(--ink); cursor: pointer; position: relative; z-index: 60; }
  .site-nav { position: fixed; inset: 0; z-index: 55; background: var(--cream) var(--confetti); flex-direction: column; justify-content: center; gap: 10px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .site-nav a { font-size: 34px; }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .hero-grid, .contact, .form { grid-template-columns: 1fr; }
  .hero-art { max-width: 440px; margin: 0 auto; width: 100%; }
  .note { left: 0; }
  .polas { grid-template-columns: 1fr; padding: 0 12px; }
  .team { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .f-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .bugs, .year { grid-template-columns: 1fr; }
  .mix { grid-template-columns: 1fr; justify-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
