/* ============================================================
   Lemook Gardens — public/guest-facing stylesheet
   Separate from admin.css: guest pages get a lighter, airier
   treatment while sharing the green/gold/ivory family.

   REVISION NOTE: evolved for more depth/hierarchy/warmth.
   Same selectors, same HTML contract, same palette family —
   values deepened, layered, and given a consistent botanical
   signature (the leaf mark) rather than new elements.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,680;1,9..144,500&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #26332B;
  --ink-muted: #5B6A5F;
  --forest: #33513F;
  --forest-dark: #22362A;
  --forest-deep: #182720;   /* NEW: for shadow tint + gradients */
  --gold: #B8862E;
  --gold-light: #E4C878;
  --gold-deep: #8C6220;     /* NEW: for gradients + pressed states */
  --ivory: #FBF8F1;
  --paper: #FFFFFF;
  --line: #DED4BA;
  --line-soft: #ECE6D4;
  --error: #A63D2F;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 9px;
  --radius-lg: 18px;

  /* NEW: layered, forest-tinted shadow scale replaces flat single-shadow look */
  --shadow-xs: 0 1px 2px rgba(24, 39, 32, 0.06);
  --shadow-sm: 0 2px 6px -2px rgba(24, 39, 32, 0.10), 0 1px 2px rgba(24, 39, 32, 0.05);
  --shadow-md: 0 14px 32px -16px rgba(24, 39, 32, 0.28), 0 4px 10px -4px rgba(24, 39, 32, 0.10);
  --shadow-lg: 0 30px 60px -24px rgba(24, 39, 32, 0.34), 0 10px 24px -12px rgba(24, 39, 32, 0.14);
  --ring-gold: 0 0 0 3px rgba(184, 134, 46, 0.18);

  --ease: cubic-bezier(0.4, 0.1, 0.2, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 3rem 1.25rem 4.5rem;
  background: var(--ivory);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(184, 134, 46, 0.08), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(51, 81, 63, 0.07), transparent 48%),
    radial-gradient(circle at 50% 45%, rgba(51, 81, 63, 0.025), transparent 60%);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Chrome: wordmark + leaf divider + back link ---------- */

.site-chrome {
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

.site-chrome__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  margin-bottom: 1.75rem;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.site-chrome__back:hover { color: var(--forest); transform: translateX(-2px); }

.wordmark {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.wordmark-sub {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  font-size: 0.95rem;
  margin-top: 0.2rem;
  letter-spacing: 0.01em;
}

.leaf-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.75rem 0 0;
  color: var(--line);
}
.leaf-divider::before,
.leaf-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}
.leaf-divider::before { background: linear-gradient(to left, var(--line), transparent); }
.leaf-divider::after { background: linear-gradient(to right, var(--line), transparent); }
.leaf-divider__mark {
  width: 0.85em;
  height: 1.2em;
  background: linear-gradient(160deg, var(--gold-light), var(--gold));
  border-radius: 0 100% 0 100%;
  transform: rotate(-8deg);
  flex: none;
  box-shadow: 0 2px 5px -1px rgba(140, 98, 32, 0.35);
}

/* ---------- Page shell / card ---------- */

.booking-shell {
  max-width: 640px;
  margin: 0 auto;
}

.card {
  position: relative;
  background: var(--paper);
  background-image: linear-gradient(180deg, rgba(251, 248, 241, 0.6), transparent 12rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 2.75rem clamp(1.4rem, 5vw, 3.25rem) 3rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Botanical signature: a soft leaf mark tucked in the card's top corner,
   quiet enough to read as texture rather than decoration. */
.card::before {
  content: "";
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  width: 8rem;
  height: 8rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(184, 134, 46, 0.10), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Slim gradient rule along the top edge of the card — the one accent
   line that ties every booking page together. */
.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--forest) 0%, var(--gold) 50%, var(--forest) 100%);
  opacity: 0.9;
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.15;
  color: var(--forest);
  letter-spacing: -0.01em;
  margin: 0 0 0.55rem;
}

.page-intro {
  color: var(--ink-muted);
  margin: 0 0 2.5rem;
  font-size: 1rem;
  max-width: 46ch;
}

/* ---------- Flash messages ---------- */

.flash {
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, var(--ivory), rgba(251, 248, 241, 0.4));
  padding: 0.75rem 1.1rem;
  margin: 0 0 1.75rem;
  font-size: 0.9rem;
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow-xs);
}
.flash strong { color: var(--forest); text-transform: capitalize; }

/* ---------- Fieldsets ---------- */

fieldset {
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(236, 230, 212, 0.16), transparent 6rem);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 2rem;
  margin: 0 0 2rem;
}

legend {
  display: flex;
  align-items: center;
  padding: 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--forest);
  letter-spacing: 0.01em;
}

legend::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.95em;
  background: linear-gradient(160deg, var(--gold-light), var(--gold));
  border-radius: 0 100% 0 100%;
  transform: rotate(-8deg);
  margin-right: 0.55em;
  flex: none;
  box-shadow: 0 1px 3px -1px rgba(140, 98, 32, 0.4);
}

/* ---------- Fields ---------- */

fieldset p,
form > p {
  margin: 0 0 1.4rem;
}
fieldset p:last-child { margin-bottom: 0; }

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.78rem 0.95rem;
  box-shadow: inset 0 1px 2px rgba(38, 51, 43, 0.04);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

textarea { resize: vertical; min-height: 6.5rem; }

input:hover,
select:hover,
textarea:hover {
  border-color: #C9BC98;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--paper);
  box-shadow: var(--ring-gold), inset 0 1px 2px rgba(38, 51, 43, 0.03);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2333513F' d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.4rem;
}

.field-error {
  display: block;
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

/* ---------- Buttons & links ---------- */

button[type="submit"] {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ivory);
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-dark) 100%);
  border: none;
  border-radius: 8px;
  padding: 0.95rem 2.1rem;
  cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(24, 39, 32, 0.55), 0 1px 2px rgba(24, 39, 32, 0.2);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s var(--ease);
}
button[type="submit"]:hover {
  background: linear-gradient(160deg, var(--forest-dark) 0%, var(--forest-deep) 100%);
  box-shadow: 0 14px 28px -12px rgba(24, 39, 32, 0.6), 0 2px 4px rgba(24, 39, 32, 0.25);
  transform: translateY(-1px);
}
button[type="submit"]:active { transform: translateY(0); box-shadow: 0 4px 10px -6px rgba(24, 39, 32, 0.5); }
button[type="submit"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.form-actions { margin-top: 0.75rem; }

.link-row {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
}

a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(184, 134, 46, 0.35);
  text-underline-offset: 3px;
  transition: color 0.15s var(--ease), text-decoration-color 0.15s var(--ease);
}
a:hover { color: var(--forest); text-decoration-color: currentColor; }

.link-row--muted a { color: var(--ink-muted); }
.link-row--muted a:hover { color: var(--forest); }

/* ---------- Booking index (choice page) ---------- */

.choice-list {
  list-style: none;
  padding: 0;
  margin: 2.25rem 0 0;
  display: grid;
  gap: 1rem;
}

.choice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.choice-card:hover {
  border-color: var(--gold);
  background: linear-gradient(90deg, var(--paper), rgba(228, 200, 120, 0.06));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.choice-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--forest);
}
.choice-card__hint {
  display: block;
  font-family: var(--font-body);
  font-size: 0.83rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}
.choice-card__arrow {
  color: var(--gold);
  font-size: 1.25rem;
  flex: none;
  transition: transform 0.2s var(--ease);
}
.choice-card:hover .choice-card__arrow { transform: translateX(3px); }

/* ---------- Booking success ---------- */

.confirm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: var(--ivory);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 18px -8px rgba(24, 39, 32, 0.5), 0 0 0 5px rgba(184, 134, 46, 0.12);
}

.booking-ref {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--gold-deep);
  background: rgba(228, 200, 120, 0.18);
  padding: 0.1rem 0.5rem;
  border-radius: 5px;
  letter-spacing: 0.03em;
}

dl.booking-details {
  margin: 1.75rem 0 0;
  border-top: 1px solid var(--line-soft);
}
dl.booking-details > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.25rem;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.15s var(--ease);
}
dl.booking-details > div:hover {
  background: rgba(236, 230, 212, 0.35);
}
dl.booking-details dt {
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
dl.booking-details dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  body { padding: 1.75rem 0.9rem 3rem; }
  .card { padding: 1.85rem 1.25rem 2.25rem; border-radius: 14px; }
  .card::before { width: 5.5rem; height: 5.5rem; }
  fieldset { padding: 1.25rem 1.1rem 1.5rem; }
  dl.booking-details > div { flex-direction: column; gap: 0.2rem; }
  dl.booking-details dd { text-align: left; }
}

/* ---------- Reduced motion ---------- */

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