/* CC's Blooms — public site.
   Separate from styles.css on purpose: that sheet dresses the inquiry form and
   Jeff's dashboard, both of which are live. This one dresses the marketing
   pages and can move without touching either.

   Palette is the approved one, led by fir — which is the Bloomin' Barn's own
   colour. Type is EB Garamond + Mulish: the closest webfont relatives of the
   Palatino/Avenir pairing Jeff signed off on, so it renders the same on a
   phone as it does on Carol's laptop. */

:root{
  --paper:#FAF9F4; --card:#FFFFFF; --shell:#F2F1E9;
  --ink:#232C26; --muted:#66725F; --line:#DDE2D6;
  --fir:#2C4A38; --fir-deep:#1E3328; --sage:#E7EDE3;
  --rose:#B65D6D; --rose-deep:#9E4C5B; --straw:#B08A33;
  --shadow:0 1px 2px rgba(35,44,38,.05), 0 18px 40px -30px rgba(35,44,38,.45);

  --display:"EB Garamond",Palatino,"Palatino Linotype","Book Antiqua",Georgia,serif;
  --body:"Mulish","Avenir Next",Avenir,"Segoe UI",system-ui,-apple-system,sans-serif;

  --gut:clamp(20px,5vw,56px);
  --wide:1180px;
  --read:34rem;
}

@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --paper:#151B17; --card:#1C241E; --shell:#202A23;
    --ink:#E8EBE2; --muted:#A0AE9F; --line:#313E34;
    --fir:#A8CBB2; --fir-deep:#C3DCC9; --sage:#232F26;
    --rose:#DB94A1; --rose-deep:#E9AEB8; --straw:#D7B468;
    --shadow:0 1px 2px rgba(0,0,0,.45), 0 18px 40px -30px rgba(0,0,0,.9);
  }
}
:root[data-theme="dark"]{
  --paper:#151B17; --card:#1C241E; --shell:#202A23;
  --ink:#E8EBE2; --muted:#A0AE9F; --line:#313E34;
  --fir:#A8CBB2; --fir-deep:#C3DCC9; --sage:#232F26;
  --rose:#DB94A1; --rose-deep:#E9AEB8; --straw:#D7B468;
  --shadow:0 1px 2px rgba(0,0,0,.45), 0 18px 40px -30px rgba(0,0,0,.9);
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none!important; transition:none!important}
}
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--body); font-size:17px; line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block}
p{margin:0}
h1,h2,h3,h4{font-family:var(--display); font-weight:500; line-height:1.1; text-wrap:balance; margin:0}
a{color:var(--fir); text-underline-offset:3px; text-decoration-thickness:1px}
:focus-visible{outline:2px solid var(--rose); outline-offset:3px; border-radius:3px}

/* Botanical-plate convention: the latin-ish label under a specimen is italic.
   Used for every eyebrow on the site. */
.eyebrow{
  font-family:var(--display); font-style:italic; font-size:1.02rem;
  color:var(--straw); letter-spacing:.01em; display:block;
}
.lede{font-size:1.16rem; color:var(--muted); max-width:var(--read)}

.wrap{max-width:var(--wide); margin:0 auto; padding-inline:var(--gut)}
.narrow{max-width:var(--read)}
.stack{display:flex; flex-direction:column; gap:18px}
.center{text-align:center; margin-inline:auto}

/* ---------- buttons ---------- */
.btn{
  display:inline-block; font-family:var(--body); font-weight:600; font-size:.93rem;
  letter-spacing:.015em; padding:14px 28px; border-radius:2px; border:1px solid var(--fir);
  background:var(--fir); color:var(--paper); text-decoration:none; cursor:pointer;
  transition:background .18s, color .18s;
}
.btn:hover{background:var(--fir-deep); border-color:var(--fir-deep)}
.btn.ghost{background:transparent; color:var(--fir)}
.btn.ghost:hover{background:var(--fir); color:var(--paper)}
.btn.light{background:var(--paper); color:var(--fir); border-color:var(--paper)}
.btn.light:hover{background:transparent; color:var(--paper); border-color:var(--paper)}
.btn.small{padding:10px 20px; font-size:.86rem}

/* ---------- header ---------- */
.site-head{
  position:sticky; top:0; z-index:40; background:color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter:blur(10px); border-bottom:1px solid var(--line);
}
.site-head .wrap{display:flex; align-items:center; justify-content:space-between; gap:20px; padding-block:12px}
.brand{display:flex; align-items:center; gap:11px; text-decoration:none; color:inherit}
.brand img{height:42px; width:auto}
.brand .wm{display:flex; flex-direction:column; line-height:1.05}
.brand .wm b{font-family:var(--display); font-size:1.18rem; font-weight:500; letter-spacing:.01em}
.brand .wm span{font-size:.62rem; letter-spacing:.2em; text-transform:uppercase; color:var(--muted)}
.nav{display:flex; align-items:center; gap:clamp(14px,2vw,26px)}
.nav a{font-size:.9rem; text-decoration:none; color:var(--ink); white-space:nowrap}
.nav a:hover{color:var(--fir); text-decoration:underline}
.nav .btn{color:var(--paper)}
/* Too many headings to sit beside the logo on a phone, so they take their own
   rows. Wrapped rather than scrolled: a heading off the edge is one nobody finds. */
@media (max-width:980px){
  .site-head .wrap{flex-wrap:wrap; row-gap:8px; position:relative}
  .nav{width:100%; flex-wrap:wrap; gap:6px 18px}
  /* Stays up beside the logo, where a phone customer's thumb goes first. */
  .nav .btn{position:absolute; top:14px; right:var(--gut)}
}

/* ---------- hero ---------- */
.hero{position:relative; min-height:clamp(440px,66vh,620px); display:grid; align-items:end; overflow:hidden}
.hero img.bg{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.hero .veil{
  position:absolute; inset:0;
  /* Heroes sit over bright, pale photography, so the veil has to carry the
     text rather than merely tint the image. */
  background:linear-gradient(180deg, rgba(26,44,34,.16) 0%, rgba(26,44,34,.42) 44%, rgba(26,44,34,.84) 100%);
}
.hero .wrap{position:relative; z-index:2; padding-block:clamp(34px,6vw,64px); color:#FBFAF4}
.hero h1{
  font-size:clamp(2.4rem,6.2vw,4.1rem); color:#FBFAF4; max-width:20ch;
  text-shadow:0 1px 30px rgba(20,34,26,.4);
}
.hero .eyebrow{color:#E3D2A8}
.hero p{color:#E7EBE2; max-width:46ch; margin-top:14px; font-size:1.08rem}
.hero .acts{display:flex; flex-wrap:wrap; gap:12px; margin-top:26px}

/* ---------- generic section ---------- */
.band{padding-block:clamp(54px,8vw,104px)}
.band.tint{background:var(--shell)}
.band.fir{background:var(--fir); color:#EAEFE6}
.band.fir h2,.band.fir h3{color:#FBFAF4}
.band.fir .eyebrow{color:#D8BE85}
.band.fir .lede,.band.fir p{color:#C9D5C6}
h2.title{font-size:clamp(1.9rem,4vw,2.9rem); margin-top:6px}
h3.sub{font-size:clamp(1.25rem,2.2vw,1.6rem)}
.shead{margin-bottom:clamp(26px,4vw,44px)}
.shead .lede{margin-top:12px}

/* ---------- editorial split ---------- */
.split{display:grid; grid-template-columns:1fr 1fr; gap:clamp(26px,5vw,68px); align-items:center}
.split.narrow-img{grid-template-columns:1fr 1.15fr}
.split img{border-radius:2px; box-shadow:var(--shadow); width:100%; height:100%; object-fit:cover; max-height:560px}
@media (max-width:820px){ .split,.split.narrow-img{grid-template-columns:1fr} }

/* ---------- three-up cards ---------- */
.trio{display:grid; grid-template-columns:repeat(auto-fit,minmax(255px,1fr)); gap:clamp(18px,3vw,30px)}
/* Four items want a row of four, not three and an orphan. */
.trio.quad{grid-template-columns:repeat(auto-fit,minmax(228px,1fr))}
.tile{display:flex; flex-direction:column; gap:14px; text-decoration:none; color:inherit}
.tile .shot{aspect-ratio:4/5; overflow:hidden; border-radius:2px; background:var(--sage)}
.tile .shot img{width:100%; height:100%; object-fit:cover; transition:transform .5s ease}
.tile:hover .shot img{transform:scale(1.035)}
.tile h3{font-size:1.3rem}
.tile p{font-size:.95rem; color:var(--muted)}
.tile .more{font-size:.84rem; font-weight:600; color:var(--fir); letter-spacing:.02em}

/* ---------- "in bloom" strip ---------- */
.bloom{border-block:1px solid var(--line); padding-block:clamp(30px,4vw,46px); background:var(--paper)}
.bloom .inner{display:grid; grid-template-columns:auto 1fr; gap:clamp(16px,3vw,48px); align-items:start}
.bloom .mon{font-family:var(--display); font-size:clamp(1.5rem,3vw,2.1rem); line-height:1; white-space:nowrap}
.bloom .mon small{display:block; font-family:var(--body); font-size:.64rem; letter-spacing:.2em;
  text-transform:uppercase; color:var(--straw); margin-bottom:8px; font-weight:700}
.stems{display:flex; flex-wrap:wrap; gap:7px 10px; margin:0; padding:0; list-style:none}
.stems li{font-size:.9rem; color:var(--ink)}
.stems li:not(:last-child)::after{content:"·"; color:var(--straw); margin-left:10px}
.stems li u{text-decoration:none; color:var(--muted); font-size:.82em}
.bloom .foot{grid-column:1/-1; font-size:.84rem; color:var(--muted); margin-top:4px}
@media (max-width:640px){ .bloom .inner{grid-template-columns:1fr} }

/* ---------- facts ---------- */
.facts{display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:1px; background:var(--line);
  border:1px solid var(--line); border-radius:2px; overflow:hidden}
.facts div{background:var(--card); padding:22px 20px}
.facts .n{font-family:var(--display); font-size:2.1rem; line-height:1; color:var(--fir)}
.facts .l{font-size:.84rem; color:var(--muted); margin-top:7px; line-height:1.45}

/* ---------- quotes ---------- */
/* Jeff adds and retires these himself, so the count is never fixed. Columns
   pack whatever is there — three, four, six — without stranding one alone on
   a row the way a grid does. */
.quotes{column-width:290px; column-gap:clamp(24px,3vw,40px)}
.quotes blockquote{break-inside:avoid; -webkit-column-break-inside:avoid; margin-bottom:clamp(22px,3vw,34px)}
blockquote{margin:0; display:flex; flex-direction:column; gap:14px}
blockquote p{font-family:var(--display); font-size:1.18rem; line-height:1.45}
blockquote footer{font-size:.8rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted)}
.band.fir blockquote p{color:#F0F3EC}
.band.fir blockquote footer{color:#AFC0AD}

/* ---------- gallery ---------- */
.mosaic{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px}
.mosaic img{width:100%; height:100%; object-fit:cover; aspect-ratio:1; border-radius:2px}
.mosaic .tall{grid-row:span 2; aspect-ratio:auto}
.mosaic .tall img{aspect-ratio:1/2}
@media (max-width:620px){ .mosaic .tall{grid-row:span 1} .mosaic .tall img{aspect-ratio:1} }

/* ---------- footer ---------- */
.site-foot{background:var(--fir-deep); color:#B9C6B7; padding-block:clamp(44px,6vw,70px); font-size:.9rem}
.site-foot a{color:#E3D2A8}
.site-foot .cols{display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:32px}
.site-foot h4{font-family:var(--body); font-size:.68rem; letter-spacing:.18em; text-transform:uppercase;
  color:#8FA38E; margin-bottom:12px; font-weight:700}
.site-foot ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px}
.site-foot .mark{font-family:var(--display); font-size:1.4rem; color:#FBFAF4; margin-bottom:8px}
.site-foot .fine{border-top:1px solid rgba(255,255,255,.1); margin-top:34px; padding-top:20px;
  font-size:.78rem; color:#8FA38E; display:flex; flex-wrap:wrap; gap:8px 24px; justify-content:space-between}

/* ---------- wholesale availability ---------- */
/* March has two entries and July has seventy, so a grid leaves vast holes.
   Columns let the months pack against each other instead. */
.avail{column-width:250px; column-gap:clamp(26px,3vw,44px)}
.avail-month{break-inside:avoid; -webkit-column-break-inside:avoid; margin-bottom:clamp(24px,3vw,36px)}
.avail-month h3{font-family:var(--display); font-size:1.5rem; color:var(--fir);
  border-bottom:1px solid var(--line); padding-bottom:8px; margin-bottom:14px}
.avail-month .stems{flex-direction:column; gap:6px}
.avail-month .stems li{font-size:.9rem; line-height:1.4}
/* The inline separator belongs to the running strip on the home page, not here. */
.avail-month .stems li:not(:last-child)::after{content:none}

/* ---------- shop ---------- */
.shop-group{font-family:var(--display); font-size:1.5rem; color:var(--fir); margin:clamp(26px,3vw,40px) 0 18px}
.shop-group:first-child{margin-top:0}
.tile .when{font-size:.9rem; color:var(--ink)}
.tile-foot{display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 14px; margin-top:auto; padding-top:4px}
.tile .price{font-family:var(--display); font-size:1.35rem; color:var(--fir)}
.tile .seats{font-size:.8rem; color:var(--straw); font-weight:600}
.tile .seats.out{color:var(--muted)}
.tile .btn{align-self:flex-start}
.tile .btn:disabled{opacity:.5; cursor:not-allowed}

.order-dialog{
  border:none; border-radius:4px; padding:0; max-width:min(520px,94vw); width:100%;
  background:var(--card); color:var(--ink); box-shadow:var(--shadow);
}
.order-dialog::backdrop{background:rgba(26,44,34,.55)}
.order-form{display:flex; flex-direction:column; gap:14px; padding:clamp(22px,4vw,32px)}
.order-form h3{font-size:1.4rem}
.order-summary{color:var(--muted); font-size:.95rem}
.order-summary strong{color:var(--fir); font-family:var(--display); font-size:1.2rem}
.ofield{display:flex; flex-direction:column; gap:5px}
.ofield[hidden]{display:none}
.ofield > span{font-size:.84rem; font-weight:600}
.ofield small{font-size:.78rem; color:var(--muted)}
.ofield input,.ofield select,.ofield textarea{
  font:inherit; font-size:.95rem; color:var(--ink); background:var(--paper);
  border:1px solid var(--line); border-radius:3px; padding:10px 12px; width:100%;
}
.ofield textarea{resize:vertical}
.order-actions{display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:4px}
.order-price{display:grid; grid-template-columns:1fr auto; gap:4px 16px; margin:0; padding:12px 14px; border-radius:10px; background:rgba(0,0,0,.035); font-size:.92rem}
.order-price dt{color:var(--muted)}
.order-price dd{margin:0; text-align:right; font-variant-numeric:tabular-nums}
.order-price .total{color:var(--fir); font-weight:700; padding-top:4px; border-top:1px solid rgba(0,0,0,.08)}
.order-price dd.hint{grid-column:1 / -1; text-align:left; color:var(--muted); font-size:.85rem}
.order-status{font-size:.88rem; color:var(--muted); min-height:1.2em}
.order-status.bad{color:var(--err)}

/* ---------- order confirmation ---------- */
.receipt{max-width:34rem; margin:0 auto; display:flex; flex-direction:column; gap:16px}
.receipt .lines{border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  padding:16px 0; display:flex; flex-direction:column; gap:10px}
.receipt .line{display:flex; justify-content:space-between; gap:18px; font-size:.95rem}
.receipt .total{display:flex; justify-content:space-between; font-weight:700; font-size:1.05rem}

/* ---------- event inquiry form ---------- */
.event-form{display:flex; flex-direction:column; gap:16px}
.event-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px}
.event-trap{position:absolute; left:-9999px}
.hidden{display:none}

/* ---------- product pages (/shop/<slug>) ---------- */
.pdp-band{padding-top:clamp(22px,3vw,36px)}
.crumbs{display:flex; flex-wrap:wrap; gap:8px; font-size:.85rem; color:var(--muted); margin-bottom:clamp(18px,3vw,30px)}
.crumbs a{color:var(--fir)}
.pdp{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(26px,5vw,64px); align-items:start}
.pdp-shot{margin:0; aspect-ratio:4/5; overflow:hidden; border-radius:2px; background:var(--sage); box-shadow:var(--shadow)}
.pdp-shot img{width:100%; height:100%; object-fit:cover}
.pdp-info h1{font-size:clamp(1.9rem,3.6vw,2.7rem); line-height:1.1}
.pdp-info .when{font-size:1rem}
.pdp-price{display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 14px}
.pdp-price .price{font-family:var(--display); font-size:1.8rem; color:var(--fir)}
.pdp-price .seats{font-size:.85rem; color:var(--straw); font-weight:600}
.pdp-price .seats.out{color:var(--muted)}
.pdp-copy{display:flex; flex-direction:column; gap:12px}
.pdp-note{font-size:.9rem; color:var(--muted)}
.pdp-missing{padding-block:clamp(30px,6vw,70px)}
@media (max-width:820px){ .pdp{grid-template-columns:1fr} .pdp-shot{aspect-ratio:4/3} }
.tile .tile-link{display:flex; flex-direction:column; gap:14px; color:inherit; text-decoration:none}
.tile .tile-link:hover h3{text-decoration:underline; text-underline-offset:3px}
.pdp-dates{display:flex; flex-direction:column; gap:8px}
.pdp-dates ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px}
.pdp-dates li{padding-left:16px; position:relative}
.pdp-dates li::before{content:"·"; position:absolute; left:4px; color:var(--fir); font-weight:700}
.pdp-dates li.out{color:var(--muted); text-decoration:line-through}
.pdp-dates .seats{font-size:.82rem; color:var(--straw); font-weight:600; text-decoration:none}
.pdp-gallery{display:flex; flex-direction:column; gap:10px}
.pdp-thumbs{display:flex; flex-wrap:wrap; gap:8px}
.pdp-thumbs button{padding:0; border:2px solid transparent; border-radius:2px; background:none; cursor:pointer; width:72px; height:72px; overflow:hidden}
.pdp-thumbs button[aria-current="true"]{border-color:var(--fir)}
.pdp-thumbs img{width:100%; height:100%; object-fit:cover; display:block}
