/* ── Grand Opening Giveaway — ribbon-cutting ceremony ───────────────
   White storefront, forest-green striped awning with scallops,
   satin red ribbon banner, brass key, dignified serif. */

:root {
  --white: #fbfaf7;
  --green: #23533c;
  --green-deep: #1a3f2e;
  --red: #b3352e;
  --red-deep: #8c2823;
  --brass: #b98a2f;
  --ink: #29322c;
  --ink-soft: #7d867f;
  --line: #e5e3dc;
  --err: #b3352e;
  --font-serif: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.hidden { display: none !important; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.page { display: flex; flex-direction: column; min-height: 100vh; }

.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 20px; }

main { flex: 1 0 auto; padding-bottom: 70px; }

/* ── Awning ───────────────────────────────────────────────────────── */
.awning { position: relative; }

.awning-stripes {
  height: 46px;
  background: repeating-linear-gradient(90deg, var(--green) 0 52px, #fff 52px 104px);
}

.awning-scallops { display: flex; }

.awning-scallops span {
  flex: 1;
  height: 24px;
  border-radius: 0 0 999px 999px;
}

.awning-scallops span:nth-child(odd) { background: var(--green); }
.awning-scallops span:nth-child(even) { background: #fff; box-shadow: inset 0 2px 3px rgba(41, 50, 44, 0.12); }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 44px 0 10px; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 4rem);
  line-height: 1.05;
  color: var(--green-deep);
  margin-top: 10px;
}

.open-date { font-weight: 600; font-size: 1.08rem; margin-top: 10px; }

.address { color: var(--ink-soft); font-size: 0.95rem; margin-top: 2px; }

/* ── Ribbon ───────────────────────────────────────────────────────── */
.ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0 20px;
  position: relative;
}

.ribbon-band {
  background: linear-gradient(180deg, #c8443c, var(--red) 45%, var(--red-deep));
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  padding: 12px 36px;
  box-shadow: 0 10px 24px rgba(179, 53, 46, 0.35);
  position: relative;
  z-index: 2;
}

.ribbon-tail {
  width: 46px;
  height: 34px;
  background: var(--red-deep);
  position: relative;
  z-index: 1;
}

.ribbon-tail-l {
  margin-right: -12px;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 34% 50%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 34% 50%);
  transform: translateY(6px);
}

.ribbon-tail-r {
  margin-left: -12px;
  -webkit-clip-path: polygon(0 0, 100% 0, 66% 50%, 100% 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, 66% 50%, 100% 100%, 0 100%);
  transform: translateY(6px);
}

.prize-line { max-width: 460px; margin: 0 auto; font-weight: 500; }

/* ── Notes ────────────────────────────────────────────────────────── */
.note {
  margin: 18px 0;
  padding: 15px 18px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
}

/* ── Card ─────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 12px;
  padding: 30px 28px 32px;
  margin-top: 22px;
  box-shadow: 0 18px 40px rgba(41, 50, 44, 0.1);
}

.card h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--green-deep);
  text-align: center;
}

.card-sub { color: var(--ink-soft); text-align: center; margin: 6px 0 22px; }

/* Fields */
.field { margin-bottom: 15px; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 13px 15px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(35, 83, 60, 0.1);
}

input.error { border-color: var(--err); }
input::placeholder { color: var(--ink-soft); opacity: 0.7; }

.fine { margin-top: 12px; text-align: center; color: var(--ink-soft); font-size: 0.84rem; }

.rules-link {
  background: none;
  border: none;
  color: var(--red);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.form-error { color: var(--err); font-weight: 600; text-align: center; margin-top: 12px; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  line-height: 1.2;
}

.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.btn-primary {
  background: linear-gradient(180deg, #2c6549, var(--green));
  color: #fff;
  box-shadow: 0 10px 24px rgba(35, 83, 60, 0.3);
}

.btn-block { width: 100%; }

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Done ─────────────────────────────────────────────────────────── */
.done-card { text-align: center; }

.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d4a94a, var(--brass) 70%);
  font-size: 1.9rem;
  box-shadow: 0 10px 24px rgba(185, 138, 47, 0.4);
  margin-bottom: 14px;
}

/* ── Rules modal ──────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(26, 63, 46, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-card {
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  max-width: 620px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1.5px solid var(--line);
}

.modal-head h3 { font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; }

.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  font-size: 0.92rem;
  white-space: pre-wrap;
}

/* ── Toast ────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--green-deep);
  color: #fff;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 400;
  max-width: 92vw;
  text-align: center;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.footer {
  flex-shrink: 0;
  text-align: center;
  padding: 24px 20px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  border-top: 1.5px solid var(--line);
}

#wbx-powered-by-slot { margin-top: 12px; }

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