/* ==========================================================================
   Dandelion Homestead — styles
   Palette: forest green, warm cream, dandelion gold, terracotta.
   ========================================================================== */

:root{
  --ink:#23281F;
  --forest:#2F4131;
  --forest-2:#3D5541;
  --gold:#D6A227;
  --gold-dk:#B4851A;
  --terra:#B85C38;
  --cream:#FBF7EE;
  --cream-2:#F3ECDD;
  --line:#E2D9C6;
  --muted:#6E6A5F;
  --white:#fff;
  --ok:#3F7A4E;
  --radius:14px;
  --shadow:0 2px 14px rgba(35,40,31,.07);
  --shadow-lg:0 18px 50px rgba(35,40,31,.20);
  --serif:Georgia,'Iowan Old Style','Times New Roman',serif;
  --sans:'Segoe UI',system-ui,-apple-system,Roboto,Helvetica,Arial,sans-serif;
  --wrap:1160px;
}

/* `hidden` must always win over any display rule below. */
[hidden]{display:none!important}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--cream);color:var(--ink);
  font-family:var(--sans);font-size:17px;line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{font-family:var(--serif);font-weight:400;line-height:1.15;margin:0 0 .5em}
h1{font-size:clamp(2.6rem,6vw,4.2rem);letter-spacing:-.5px}
h1 em{font-style:italic;color:var(--gold-dk)}
h2{font-size:clamp(1.8rem,3.4vw,2.5rem)}
h3{font-size:1.18rem}
p{margin:0 0 1em}
a{color:var(--forest)}
img{max-width:100%;display:block}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.82rem 1.5rem;border-radius:999px;border:1.5px solid transparent;
  font:inherit;font-weight:600;font-size:.98rem;cursor:pointer;
  text-decoration:none;transition:transform .12s ease,background .15s ease,box-shadow .15s ease;
}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--forest);color:var(--cream)}
.btn-primary:hover{background:var(--forest-2)}
.btn-ghost{background:transparent;color:var(--forest);border-color:var(--line)}
.btn-ghost:hover{border-color:var(--forest);background:rgba(47,65,49,.05)}
.btn-gold{background:var(--gold);color:#33290A}
.btn-gold:hover{background:var(--gold-dk);color:#fff}
.btn[disabled]{opacity:.45;cursor:not-allowed;transform:none}
.btn-wide{width:100%}
.icon-btn{
  background:none;border:0;font-size:1.9rem;line-height:1;color:var(--muted);
  cursor:pointer;padding:0 .25rem;border-radius:8px;
}
.icon-btn:hover{color:var(--ink)}

/* ---------- header ---------- */
.site-head{
  position:sticky;top:0;z-index:40;display:flex;align-items:center;
  justify-content:space-between;gap:1rem;
  padding:.7rem clamp(1rem,4vw,2.5rem);
  background:rgba(251,247,238,.92);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none}
.brand-mark{height:64px;width:64px}
.brand-word{
  font-family:var(--serif);font-size:1.12rem;line-height:1.05;color:var(--ink);
  letter-spacing:.11em;text-transform:uppercase;
}
.brand-word span{display:block;font-size:.72rem;letter-spacing:.24em;color:var(--muted);margin-top:.18rem}
.nav{display:flex;align-items:center;gap:clamp(.6rem,2vw,1.7rem)}
.nav a{
  text-decoration:none;font-weight:600;font-size:.95rem;color:var(--forest);
  padding:.4rem 0;border-bottom:2px solid transparent;
}
.nav a:hover{border-bottom-color:var(--gold)}
.cart-btn{
  display:inline-flex;align-items:center;gap:.45rem;background:var(--forest);
  color:var(--cream);border:0;border-radius:999px;padding:.6rem 1.05rem;
  font:inherit;font-weight:600;font-size:.92rem;cursor:pointer;position:relative;
}
.cart-btn:hover{background:var(--forest-2)}
.cart-count{
  background:var(--gold);color:#33290A;border-radius:999px;
  min-width:20px;height:20px;display:grid;place-items:center;
  font-size:.75rem;font-weight:700;padding:0 .3rem;
}

/* ---------- hero ---------- */
.hero{
  max-width:var(--wrap);margin:0 auto;padding:clamp(2.5rem,7vw,5rem) clamp(1rem,4vw,2.5rem);
  display:grid;grid-template-columns:1.25fr .75fr;gap:2rem;align-items:center;
}
.eyebrow{
  text-transform:uppercase;letter-spacing:.16em;font-size:.76rem;font-weight:700;
  color:var(--gold-dk);margin-bottom:1rem;
}
.hero-tagline{
  font-family:var(--serif);font-style:italic;font-size:1.35rem;
  color:var(--gold-dk);margin:-.2rem 0 1rem;
}
.lede{font-size:1.08rem;color:var(--muted);max-width:48ch;margin-bottom:1.8rem}
.hero-actions{display:flex;gap:.75rem;flex-wrap:wrap}
.hero-art img{width:min(100%,400px);margin-left:auto}

/* ---------- drop status bar ---------- */
.dropbar{background:var(--forest);color:var(--cream)}
.dropbar-inner{
  max-width:var(--wrap);margin:0 auto;padding:.95rem clamp(1rem,4vw,2.5rem);
  display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;
}
.dropbar-status{display:flex;align-items:center;gap:.75rem}
.dropbar-status strong{display:block;font-size:1rem}
.dropbar-status span:not(.dot){font-size:.9rem;opacity:.75}
.dot{
  width:11px;height:11px;border-radius:50%;background:var(--gold);flex:none;
  box-shadow:0 0 0 0 rgba(214,162,39,.6);animation:pulse 2.2s infinite;
}
.dot.closed{background:var(--terra);animation:none}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(214,162,39,.55)}
  70%{box-shadow:0 0 0 12px rgba(214,162,39,0)}
  100%{box-shadow:0 0 0 0 rgba(214,162,39,0)}
}
.countdown{display:flex;gap:.5rem}
.cd-unit{
  background:rgba(251,247,238,.12);border-radius:9px;padding:.4rem .7rem;
  text-align:center;min-width:56px;
}
.cd-unit b{display:block;font-size:1.22rem;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}
.cd-unit span{font-size:.66rem;text-transform:uppercase;letter-spacing:.09em;opacity:.7}

/* ---------- sections ---------- */
.section{max-width:var(--wrap);margin:0 auto;padding:clamp(3rem,7vw,5rem) clamp(1rem,4vw,2.5rem)}
.band{background:var(--cream-2);max-width:none}
.band>*{max-width:var(--wrap);margin-left:auto;margin-right:auto}
.section-head{margin-bottom:2.2rem;max-width:60ch}
.section-head p{color:var(--muted);margin:0}
.section-head.centered{margin-left:auto;margin-right:auto;text-align:center;margin-bottom:2.6rem}

/* ---------- product grid ---------- */
.grid{display:grid;gap:1.4rem;grid-template-columns:repeat(auto-fill,minmax(266px,1fr))}
.card{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow);
  transition:transform .15s ease,box-shadow .15s ease;
}
.card:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(35,40,31,.11)}
.card.out{opacity:.62}
.card.out:hover{transform:none}
.card-art-wrap{position:relative}
.card-art{
  height:172px;display:grid;place-items:center;
  border-bottom:1px solid var(--line);overflow:hidden;
}
.card-art svg{width:66px;height:66px}
.card-art.has-photo{padding:0}
.card-art.has-photo img{width:100%;height:172px;object-fit:cover;display:block}
.li-art.has-photo{overflow:hidden}
.li-art.has-photo img{width:100%;height:100%;object-fit:cover}
.badge{
  position:absolute;top:.7rem;right:.7rem;background:var(--white);
  border:1px solid var(--line);border-radius:999px;padding:.2rem .65rem;
  font-size:.72rem;font-weight:700;letter-spacing:.03em;color:var(--muted);
}
.badge.low{background:#FFF4DA;border-color:#E9CF8E;color:#8A6608}
.badge.gone{background:#F6E3DB;border-color:#E4BCA9;color:#8C3F22}
.card-body{padding:1.05rem 1.15rem 1.25rem;display:flex;flex-direction:column;flex:1}
.card-body h3{margin:0 0 .15rem}
.unit{font-size:.82rem;color:var(--muted);margin:0 0 .55rem}
.card-body p.blurb{font-size:.92rem;color:var(--muted);margin:0 0 1rem;flex:1}
.price-row{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:.85rem}
.price{font-family:var(--serif);font-size:1.5rem;color:var(--ink)}
.limit{font-size:.76rem;color:var(--muted)}
.qty{display:flex;align-items:center;gap:.6rem}
.qty button{
  width:34px;height:34px;border-radius:9px;border:1.5px solid var(--line);
  background:var(--white);font-size:1.15rem;line-height:1;cursor:pointer;color:var(--forest);
}
.qty button:hover:not([disabled]){border-color:var(--forest)}
.qty button[disabled]{opacity:.35;cursor:not-allowed}
.qty output{min-width:1.6rem;text-align:center;font-weight:700;font-variant-numeric:tabular-nums}

.disclaimer{
  margin-top:2.2rem;padding:.9rem 1.1rem;background:var(--cream-2);
  border-left:3px solid var(--gold);border-radius:0 8px 8px 0;
  font-size:.84rem;color:var(--muted);max-width:76ch;
}

/* ---------- steps ---------- */
.steps{
  list-style:none;padding:0;margin:0 0 3rem;display:grid;gap:2rem;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
}
.steps li{text-align:center;display:flex;flex-direction:column;align-items:center}
.step-n{
  width:2.6rem;height:2.6rem;border-radius:50%;flex:none;
  background:var(--forest);color:var(--cream);display:grid;place-items:center;
  font-weight:700;font-size:1.05rem;margin-bottom:.9rem;
}
.steps h3{margin:0 0 .35rem}
.steps p{color:var(--muted);font-size:.94rem;margin:0;max-width:30ch}

.pickup-cards{
  display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(240px,300px));
  justify-content:center;
}
.pickup-card{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.15rem 1.25rem;
}
.pickup-card{text-align:center}
.pickup-card h4{margin:0 0 .3rem;font-family:var(--serif);font-weight:400;font-size:1.1rem}
.pickup-card .when{color:var(--gold-dk);font-weight:700;font-size:.9rem;margin:0 0 .35rem}
.pickup-card .where{color:var(--muted);font-size:.88rem;margin:0}

/* ---------- about ---------- */
.about-wrap{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.5fr);
  gap:clamp(1.5rem,4vw,3rem);align-items:start}
.about-wrap p{color:var(--muted)}
.sig{font-family:var(--serif);font-style:italic;color:var(--ink)!important}
.about-card{background:var(--forest);color:var(--cream);border-radius:var(--radius);padding:1.5rem}
.about-card h3{color:var(--cream);margin-bottom:.9rem}
.find-list{list-style:none;padding:0;margin:0;font-size:.94rem}
.find-list li{padding:.5rem 0;border-bottom:1px solid rgba(251,247,238,.14)}
.find-list li:last-child{border:0}
.find-list a{color:var(--gold);text-decoration:none;font-weight:600}
.find-list a:hover{text-decoration:underline}

/* ---------- notify ---------- */
.notify{background:var(--forest);color:var(--cream);max-width:none;
  padding-top:clamp(2.6rem,5vw,3.6rem);padding-bottom:clamp(2.6rem,5vw,3.6rem)}
.notify-inner{max-width:640px;margin:0 auto;text-align:center}
.notify h2{color:var(--cream)}
.notify p{color:rgba(251,247,238,.78)}
.notify-form{display:flex;gap:.6rem;margin-top:1.5rem;flex-wrap:wrap;justify-content:center}
.notify-form input{
  flex:1 1 260px;padding:.85rem 1.1rem;border-radius:999px;border:1.5px solid rgba(251,247,238,.28);
  background:rgba(251,247,238,.08);color:var(--cream);font:inherit;font-size:1rem;
}
.notify-form input::placeholder{color:rgba(251,247,238,.55)}
.notify-form input:focus{outline:2px solid var(--gold);outline-offset:1px}
.notify-form .btn-primary{background:var(--gold);color:#33290A}
.notify-form .btn-primary:hover{background:#E8B23A}
.notify-msg{margin-top:1rem;font-weight:600;min-height:1.4em;color:var(--gold)}

/* ---------- footer ---------- */
.site-foot{background:var(--ink);color:rgba(251,247,238,.7);padding:2.5rem clamp(1rem,4vw,2.5rem) 0}
.foot-inner{max-width:var(--wrap);margin:0 auto;display:flex;gap:1.5rem;align-items:flex-start;flex-wrap:wrap}
.foot-mark{width:84px;height:84px;opacity:.9;flex:none}
.foot-name{font-family:var(--serif);font-size:1.25rem;color:var(--cream);margin:0 0 .3rem;
  letter-spacing:.09em;text-transform:uppercase}
.verse{
  margin:0 0 .8rem;padding-left:.9rem;border-left:2px solid var(--gold);
  font-family:var(--serif);font-style:italic;font-size:.98rem;
  color:rgba(251,247,238,.9);max-width:44ch;line-height:1.45;
}
.verse cite{
  display:block;font-style:normal;font-family:var(--sans);font-size:.72rem;
  letter-spacing:.16em;text-transform:uppercase;color:var(--gold);margin-top:.35rem;
}
.foot-small{font-size:.82rem;margin:0 0 .35rem;max-width:60ch;line-height:1.5}
.foot-links{margin-left:auto;display:flex;flex-direction:column;gap:.4rem}
.foot-links a{color:var(--gold);text-decoration:none;font-size:.9rem;font-weight:600}
.foot-links a:hover{text-decoration:underline}

/* ---------- drawer / cart ---------- */
.scrim{position:fixed;inset:0;background:rgba(35,40,31,.45);z-index:50;animation:fade .18s ease}
@keyframes fade{from{opacity:0}to{opacity:1}}
.drawer{
  position:fixed;top:0;right:0;height:100%;width:min(420px,100%);z-index:60;
  background:var(--cream);box-shadow:var(--shadow-lg);
  display:flex;flex-direction:column;transform:translateX(102%);
  transition:transform .26s cubic-bezier(.4,0,.2,1);
}
.drawer.open{transform:none}
.drawer-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:1.1rem 1.3rem;border-bottom:1px solid var(--line);flex:none;
}
.drawer-head h2{margin:0;font-size:1.35rem}
.drawer-body{flex:1;overflow-y:auto;padding:1.1rem 1.3rem}
.drawer-foot{padding:1.1rem 1.3rem;border-top:1px solid var(--line);background:var(--cream-2);flex:none}

.line-item{display:flex;gap:.85rem;padding:.85rem 0;border-bottom:1px solid var(--line)}
.line-item:last-child{border:0}
.li-art{width:52px;height:52px;border-radius:10px;display:grid;place-items:center;flex:none}
.li-art svg{width:30px;height:30px}
.li-main{flex:1;min-width:0}
.li-main h4{margin:0;font-family:var(--sans);font-size:.98rem;font-weight:700}
.li-main .unit{margin:0 0 .4rem}
.li-right{text-align:right;font-weight:700;white-space:nowrap}
.li-remove{background:none;border:0;color:var(--terra);font-size:.8rem;cursor:pointer;padding:.2rem 0;text-decoration:underline}
.empty{text-align:center;color:var(--muted);padding:2.5rem 1rem}
.empty svg{width:52px;height:52px;opacity:.35;margin:0 auto 1rem}
.totals{display:flex;justify-content:space-between;font-size:1.18rem;font-weight:700;margin-bottom:.9rem}
.pay-note{font-size:.83rem;color:var(--muted);margin:.75rem 0 0;text-align:center}

/* ---------- checkout modal ---------- */
.modal{position:fixed;inset:0;z-index:70;display:none;align-items:center;justify-content:center;padding:1rem;
  background:rgba(35,40,31,.5)}
.modal.open{display:flex}
.modal-card{
  background:var(--cream);border-radius:var(--radius);width:min(560px,100%);
  max-height:92vh;display:flex;flex-direction:column;box-shadow:var(--shadow-lg);
}
.modal-body{overflow-y:auto;padding:1.3rem}
.field{margin-bottom:1.05rem}
.field label{display:block;font-weight:600;font-size:.9rem;margin-bottom:.35rem}
.field input,.field textarea{
  width:100%;padding:.72rem .9rem;border:1.5px solid var(--line);border-radius:10px;
  font:inherit;font-size:1rem;background:var(--white);color:var(--ink);
}
.field input:focus,.field textarea:focus{outline:2px solid var(--gold);outline-offset:0;border-color:transparent}
.field textarea{resize:vertical;min-height:74px}
.hint{font-size:.8rem;color:var(--muted);margin:.3rem 0 0}
fieldset{border:0;padding:0;margin:0 0 1.05rem}
legend{font-weight:600;font-size:.9rem;margin-bottom:.5rem;padding:0}
.slot{
  display:flex;gap:.75rem;align-items:flex-start;padding:.8rem .9rem;margin-bottom:.55rem;
  border:1.5px solid var(--line);border-radius:11px;background:var(--white);cursor:pointer;
}
.slot:hover{border-color:var(--gold)}
.slot:has(input:checked){border-color:var(--forest);background:#F4F7F2;box-shadow:0 0 0 1px var(--forest)}
.slot input{margin-top:.25rem;accent-color:var(--forest);flex:none}
.slot strong{display:block;font-size:.96rem}
.slot .when{color:var(--gold-dk);font-weight:700;font-size:.85rem}
.slot .where{color:var(--muted);font-size:.83rem}
.review{background:var(--white);border:1px solid var(--line);border-radius:11px;padding:.9rem 1.05rem;margin-bottom:1.05rem}
.review-row{display:flex;justify-content:space-between;font-size:.92rem;padding:.22rem 0}
.review-row.total{border-top:1px solid var(--line);margin-top:.45rem;padding-top:.55rem;font-weight:700;font-size:1.08rem}
.form-error{color:var(--terra);font-size:.87rem;font-weight:600;margin:0 0 .9rem;min-height:1.2em}

.success{text-align:center;padding:1.5rem .5rem}
.success .tick{
  width:64px;height:64px;border-radius:50%;background:var(--ok);color:#fff;
  display:grid;place-items:center;margin:0 auto 1.1rem;font-size:2rem;
}
.success h3{font-size:1.6rem;margin-bottom:.4rem}
.order-no{
  display:inline-block;background:var(--cream-2);border:1px dashed var(--line);
  border-radius:9px;padding:.5rem 1rem;font-weight:700;letter-spacing:.06em;margin:.6rem 0 1rem;
}
.success p{color:var(--muted);font-size:.95rem}

/* ---------- responsive ---------- */
@media (max-width:860px){
  .hero{grid-template-columns:1fr}
  .hero-art{display:none}
  .about-wrap{grid-template-columns:1fr}
  .nav a{display:none}
  .dropbar-inner{flex-direction:column;align-items:flex-start}
}
@media (max-width:520px){
  body{font-size:16px}
  .brand-mark{height:52px;width:52px}
  .brand-word{font-size:1rem}
  .cd-unit{min-width:48px;padding:.35rem .55rem}
  .foot-links{margin-left:0;width:100%}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
}

/* ---------- pay now (Venmo / Zelle) ---------- */
.paynow{margin:1.3rem 0 .4rem;padding-top:1.1rem;border-top:1px solid var(--line);text-align:left}
.paynow-h{font-size:.9rem;color:var(--muted);text-align:center;margin-bottom:.9rem}
.paybtn{
  display:block;width:100%;padding:.85rem 1rem;border-radius:11px;border:0;
  font:inherit;font-weight:700;font-size:1rem;cursor:pointer;text-align:center;
  text-decoration:none;margin-bottom:.6rem;color:#fff;
}
.paybtn.venmo{background:#008CFF}
.paybtn.venmo:hover{background:#0079db}
.paybtn.zelle{background:#6D1ED4}
.paybtn.zelle:hover{background:#5b17b4}
.zelle-info{
  background:var(--cream-2);border:1px solid var(--line);border-radius:11px;
  padding:.9rem 1rem;margin-bottom:.6rem;font-size:.9rem;
}
.zelle-info p{margin:0 0 .4rem;color:var(--muted)}
.copyrow{display:flex;gap:.5rem;align-items:center;margin-bottom:.8rem}
.copyrow code{
  flex:1;background:var(--white);border:1px solid var(--line);border-radius:8px;
  padding:.5rem .7rem;font-size:.95rem;font-weight:700;overflow-wrap:anywhere;
}
.btn-sm{padding:.45rem .85rem;font-size:.85rem}


/* ---------- cottage-law notice: once, at the very bottom ---------- */
.foot-legal{
  margin-top:2.2rem;border-top:1px solid rgba(251,247,238,.14);
  padding:1.2rem clamp(1rem,4vw,2.5rem) 1.6rem;
  margin-left:calc(-1 * clamp(1rem,4vw,2.5rem));
  margin-right:calc(-1 * clamp(1rem,4vw,2.5rem));
}
.foot-legal p{
  max-width:var(--wrap);margin:0 auto;font-size:.8rem;line-height:1.55;
  color:rgba(251,247,238,.55);text-align:center;
}
