/* ============================================================
   Blooming Forward — Eufloria Gardens & Sculpture Park
   Built to the FA artwork (mobile design width 375px).
   Tweakables are grouped in :root.
   ============================================================ */

:root{
  /* palette — sampled from the FA */
  --green:      #213C2B;
  --green-soft: #3A5444;
  --yellow:     #FFC807;
  --cream:      #F6F3DA;
  --ink:        #1A1A1A;
  --muted:      #4D4D4D;
  --field:      #EFEFEF;
  --placeholder:#8D8D8D;
  --req:        #F43434;

  /* layout */
  --page:  430px;   /* max column width on desktop */
  --gutter: 26px;   /* cream-edge → white card */
  --pad:    28px;   /* inside the white cards */
  --torn:   13px;   /* transparent ragged border inside the frame PNGs —
                       content must be inset past this or it looks cropped */
  --radius: 14px;

  /* artwork tuning — adjust these once the final exports are in */
  --band-height:    27%;   /* where the sunflower band in bg.jpg ends (% of width) */
  --header-top:     0px;   /* nudge header.png up/down if needed */
  --kv-width:       86%;   /* main.png */
  --flower-width:  100%;   /* sunflower.png — full bleed */
  --flower-rise:    62%;   /* how far it sits above the green edge */
  --flower-clear:   84px;  /* top padding inside green so text clears it */
}

*,*::before,*::after{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size:14.5px;
  line-height:1.42;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; border:0; }

.page{
  max-width:var(--page);
  margin:0 auto;
  background:var(--cream);
  overflow-x:clip;
}

.wrap{ padding:0 var(--gutter); }

/* honeypot */
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* ---------- state switching ---------- */
.state--done{ display:none; }
body.is-done .state--form{ display:none; }
body.is-done .state--done{ display:block; }

/* ============================================================
   TOP — bg.jpg
   bg.jpg is painted at 100% width from the top, so it works
   whether the export is just the sunflower band or the full
   textured background. Cream fills whatever is left.
   ============================================================ */
.top{
  position:relative;
  background:url('../../img/bg.jpg') top center / 100% auto no-repeat, var(--cream);
  padding-bottom:100px;
}

/* header.png sits on top of bg.jpg — the sunflowers run up behind it */
.top__header{
  position:absolute;
  top:var(--header-top);
  left:0;
  width:100%;
  height:auto;
  display:block;
  z-index:2;
}

/* spacer: reserves just enough height for the sunflower band under the header,
   because bg.jpg is painted as a CSS background and has no layout height */
.top__band{
  width:100%;
  padding-top:var(--band-height);
}

/* main.png key visual */
.kv{
  display:block;
  width:var(--kv-width);
  margin:12px auto 0;
  height:auto;
}

/* ---------- intro copy on cream ---------- */
.intro{
  margin:16px 0 0;
  text-align:center;
  font-size:15px;
  line-height:1.44;
  font-weight:400;
}
.intro b{ font-weight:700; }
.intro--done{ margin:34px 0 0; }

.refline{
  margin:18px 0 0;
  text-align:center;
  font-size:13px;
  color:var(--muted);
  letter-spacing:.2px;
}
.refline b{ color:var(--green); letter-spacing:1px; }

.mailnote{
  margin:10px 0 0;
  text-align:center;
  font-size:12px;
  color:var(--muted);
}

/* ============================================================
   WHITE CARDS
   ============================================================ */
/* Torn-paper frames — stretched PNG, same technique as
   book.eufloriagardens.com (.box-large / .box-small). */
.card{
  background:url('../../img/bg-large.png') no-repeat center;
  background-size:100% 100%;
  border-radius:0;
  padding:calc(var(--pad) + var(--torn)) calc(var(--pad) + 6px);
  margin-top:18px;
  box-shadow:none;
}

.card__lead{
  margin:0 0 22px;
  text-align:center;
  font-size:14.5px;
  line-height:1.45;
}
.card__lead b{ font-weight:700; }

/* ---------- fields ---------- */
.field{ margin-bottom:18px; }
.field:last-child{ margin-bottom:0; }

.field label{
  display:block;
  margin:0 0 8px;
  font-size:14px;
  font-weight:700;
  color:var(--ink);
}
.field label i{ color:var(--req); font-style:normal; font-weight:400; }

.field input{
  display:block;
  width:100%;
  padding:10px 15px;
  border:none;
  border-radius:.375rem;
  background-color:var(--field);
  color:var(--placeholder);
  font-family:inherit;
  font-size:16px;          /* 16px stops iOS zooming on focus */
  line-height:1.5;
  outline:none;
  appearance:none;
  transition:box-shadow .15s ease;
}
.field input::placeholder{ color:var(--placeholder); opacity:1; }
.field input:focus{ box-shadow:0 0 0 2px var(--green-soft); }
.field input.err{ box-shadow:0 0 0 2px var(--req); }

/* ============================================================
   DATE CARD
   ============================================================ */
/* Collapsed: short frame. bg-small.png has a ~17% ragged band top and
   bottom, so it only works while the card stays short. */
.card--date{
  background:url('../../img/bg-small.png') no-repeat center;
  background-size:100% 100%;
  margin-top:26px;
  padding-top:30px;
  padding-bottom:30px;
}

/* Open: the card grows tall, which would stretch bg-small.png's ragged band
   into a huge distorted edge — swap to the large frame (~3.5% band). */
.card--date.is-open{
  background-image:url('../../img/bg-large.png');
  padding-top:calc(var(--pad) + var(--torn));
  padding-bottom:calc(var(--pad) + var(--torn));
}

.daterow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  padding:0;
  border:0;
  background:none;
  font-family:inherit;
  text-align:left;
  cursor:pointer;
  min-height:24px;
}
.daterow__label{ font-size:15px; color:var(--muted); }
.daterow__value{
  font-size:15px;
  font-weight:700;
  color:var(--green-soft);
  white-space:nowrap;
}
.daterow__value.is-set{ color:var(--green); }

.daterow__heading{
  display:none;
  margin:0;
  font-family:'Coinage Caps Kruger Gray','Inter',serif;
  font-size:21px;
  font-weight:400;
  letter-spacing:.4px;
  color:var(--ink);
}

/* open state: heading replaces the row, as per page 2 of the FA */
.card--date.is-open .daterow{ display:none; }
.card--date.is-open .daterow__heading{ display:block; }

/* ---------- calendar ---------- */
.cal{ margin-top:16px; }

.cal__dow{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  background:#F4F4F4;
  border-radius:8px;
  padding:11px 0;
}
.cal__dow span{
  text-align:center;
  font-size:14px;
  color:#9A9A9A;
}

.cal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:20px 0 6px;
}
.cal__month{ font-size:18px; font-weight:700; color:var(--ink); }
.cal__nav{ display:flex; gap:6px; }
.cal__nav button{
  width:30px; height:30px;
  border:0; border-radius:50%;
  background:#F4F4F4;
  color:var(--green);
  font-size:18px; line-height:1;
  cursor:pointer;
}
.cal__nav button:disabled{ opacity:.35; cursor:default; }

.cal__grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  row-gap:6px;
}
.cal__grid button,
.cal__grid span{
  display:flex;
  align-items:center;
  justify-content:center;
  height:38px;
  margin:0 auto;
  width:38px;
  border:0;
  border-radius:50%;
  background:none;
  font-family:inherit;
  font-size:15px;
  font-weight:700;
  color:var(--green);
  cursor:pointer;
}
.cal__grid span{ cursor:default; }
.cal__grid .off{
  color:#C6C6C6;
  font-weight:400;
  text-decoration:line-through;
  cursor:default;
}
.cal__grid button:hover{ background:#EDF1EE; }
.cal__grid button.sel{ background:var(--green); color:#fff; }
.cal__grid button.sel:hover{ background:var(--green); }

.cal__note{
  margin:16px 0 0;
  font-size:11.5px;
  color:var(--placeholder);
}

/* ============================================================
   SUBMIT
   ============================================================ */
.formerr{
  margin:16px 0 0;
  text-align:center;
  font-size:13px;
  font-weight:600;
  color:#B32020;
}

.submit{
  display:block;
  width:265px;
  max-width:100%;
  height:52px;
  margin:24px auto 0;
  border:0;
  border-radius:0;
  background:url('../../img/confirm-bg.png') no-repeat center;
  background-size:100% 100%;
  color:#000;
  font-family:'Coinage Caps Kruger Gray','Inter',serif;
  font-size:19px;
  letter-spacing:.6px;
  cursor:pointer;
  transition:transform .12s ease, filter .12s ease;
}
.submit:hover{ filter:brightness(.96); }
.submit:active{ transform:scale(.985); }
.submit[disabled]{ opacity:.6; cursor:default; }

/* ============================================================
   GREEN SECTION + footer.jpg
   ============================================================ */
.green{
  position:relative;
  background:url('../../img/footer.jpg') bottom center / 100% auto no-repeat, var(--green);
}

/* sunflower.png straddling the cream / green edge */
.green__flower{
  position:absolute;
  top:0;
  left:0;
  right:0;
  width:var(--flower-width);
  max-width:none;
  height:auto;
  display:block;
  transform:translateY(calc(var(--flower-rise) * -1));
  pointer-events:none;
  z-index:2;
}

.green__inner{
  position:relative;
  z-index:1;
  padding-top:var(--flower-clear);
  padding-bottom:32px;
  color:#fff;
}

.green__lead{
  margin:0;
  text-align:center;
  font-size:14.5px;
  line-height:1.5;
}
.green__lead b{ color:#fff; font-weight:700; }

.green__tag{
  margin:20px 0 0;
  text-align:center;
  font-size:14.5px;
  font-weight:700;
  line-height:1.5;
}

/* ---------- map card ---------- */
.card--map{ margin-top:30px; color:var(--ink); padding-bottom:calc(var(--pad) + var(--torn)); }

.map__title{
  margin:0 0 12px;
  text-align:center;
  font-size:17px;
  font-weight:700;
  line-height:1.3;
}
.map__sub{
  margin:0 0 18px;
  text-align:center;
  font-size:14px;
  line-height:1.45;
}

.map{
  position:relative;
  display:block;
  border-radius:0;
  overflow:hidden;
  background:#CDF6DD;
  /* torn silhouette, same PNG used as an alpha mask */
  -webkit-mask-image:url('../../img/bg-large.png');
          mask-image:url('../../img/bg-large.png');
  -webkit-mask-size:100% 100%;
          mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat;
          mask-repeat:no-repeat;
  aspect-ratio:1/1;
}
.map img,
.map iframe{
  display:block;
  width:100%;
  height:100%;
  border:0;
  object-fit:cover;
}
.map__shield{ position:absolute; inset:0; }

/* ---------- hours ---------- */
/* Type sizes measured off the FA artwork — the hours block is set
   much smaller than a default heading scale. */
.hours{ margin-top:26px; text-align:center; }
.hours__title{ margin:0; font-size:15px; font-weight:700; line-height:1.3; }
.hours__big{
  margin:14px 0 0;
  font-size:13px;
  font-weight:400;
  line-height:1.25;
}
.hours__big--sm{ margin:0; }
.hours__sm{ margin:0; font-size:13px; font-weight:400; line-height:1.25; }

.more{
  margin:30px 0 0;
  text-align:center;
  font-size:13.5px;
}
.more a{ color:#fff; font-weight:700; text-decoration:none; }
.more a:hover{ text-decoration:underline; }

.tnc{
  margin:13px 0 0;
  text-align:center;
  font-size:7.5px;
  line-height:1.45;
  color:rgba(255,255,255,.9);
}

/* ============================================================
   Misc
   ============================================================ */
:focus-visible{ outline:2px solid var(--green-soft); outline-offset:2px; }
.green :focus-visible{ outline-color:var(--yellow); }

@media (prefers-reduced-motion:reduce){
  *{ transition:none !important; animation:none !important; }
}

/* a touch more breathing room once the column can afford it */
@media (min-width:400px){
  body{ font-size:15px; }
}
