/* ==========================================================================
   The Smart Cookies Club — Stylesheet
   ========================================================================== */

:root {
  --yellow: #FFD400;
  --yellow-dark: #F2C200;
  --gold: #C9A227;
  --ink: #1A1610;
  --ink-soft: #4A4438;
  --cream: #FFFDF6;
  --cream-2: #FFF6DE;
  --white: #FFFFFF;
  --line: #EEE4C8;
  --success: #2E7D32;
  --error: #C0392B;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(26, 22, 16, 0.10);
  --shadow-sm: 0 4px 14px rgba(26, 22, 16, 0.08);
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
  background: var(--cream-2);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 640px;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--ink);
  color: var(--yellow);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-yellow:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--yellow); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 246, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
}
.brand img { height: 44px; width: 44px; border-radius: 12px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--cream-2); color: var(--ink); }
.main-nav a.active { background: var(--ink); color: var(--yellow); }
.main-nav .btn { margin-left: 6px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    display: none;
    gap: 6px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { text-align: center; }
  .main-nav .btn { margin-left: 0; margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(ellipse at top right, var(--yellow) 0%, var(--cream) 62%);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-art { justify-self: center; }
.hero-art img {
  width: min(360px, 100%);
  border-radius: 50%;
  box-shadow: var(--shadow);
  border: 8px solid var(--white);
}
.hero-badges { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-badge {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-art { order: -1; }
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.activity-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.activity-card .price {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--gold);
  margin-top: 8px;
}
.activity-card .duration {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.activity-card .card-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 800;
  color: var(--ink);
  border-bottom: 2px solid var(--yellow);
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding-left: 56px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Banner ---------- */
.banner {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.banner h3 { color: var(--yellow); margin-bottom: 6px; }
.banner p { color: rgba(255,253,246,0.82); margin: 0; max-width: 520px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,253,246,0.78);
  padding: 56px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 { color: var(--yellow); font-size: 1rem; margin-bottom: 14px; }
.site-footer a { display: block; padding: 4px 0; color: rgba(255,253,246,0.78); }
.site-footer a:hover { color: var(--yellow); }
.site-footer .brand { color: var(--yellow); margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,253,246,0.15);
  margin-top: 40px;
  padding-top: 22px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
th { font-family: 'Baloo 2', sans-serif; background: var(--cream-2); }
tr:last-child td { border-bottom: none; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
  font-size: 0.92rem;
}
.form-row .hint { font-size: 0.82rem; color: var(--ink-soft); margin-top: 6px; }
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }

input[type=text], input[type=tel], input[type=date], select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
  font-size: 1rem;
  font-family: inherit;
  background: var(--cream);
  color: var(--ink);
}
input:focus, select:focus {
  outline: none;
  border-color: var(--yellow-dark);
  background: var(--white);
}
input.invalid, select.invalid { border-color: var(--error); }

.people-stepper {
  display: flex;
  align-items: center;
  gap: 16px;
}
.people-stepper button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
}
.people-stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.people-stepper .count { font-family: 'Baloo 2', sans-serif; font-size: 1.4rem; font-weight: 800; min-width: 28px; text-align: center; }

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.slot-btn {
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
  background: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}
.slot-btn:hover:not(:disabled) { border-color: var(--yellow-dark); }
.slot-btn.selected { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.slot-btn:disabled {
  background: var(--cream-2);
  color: var(--ink-soft);
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.7;
}
.slots-hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }

.price-summary {
  background: var(--cream-2);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin: 26px 0;
}
.price-summary .row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.95rem;
}
.price-summary .row.total {
  border-top: 2px dashed var(--line);
  margin-top: 10px;
  padding-top: 14px;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
}
.price-summary .row.total span:last-child { color: var(--gold); }

.form-msg {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-bottom: 20px;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.error { background: #FDECEA; color: var(--error); border: 1px solid #F5C6C0; }
.form-msg.success { background: #E9F6EA; color: var(--success); border: 1px solid #C3E6C5; }

.confirmation-panel {
  text-align: center;
  padding: 20px 0;
}
.confirmation-panel .stamp {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  margin: 0 auto 20px;
}
.confirmation-details {
  text-align: left;
  background: var(--cream-2);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.confirmation-details .row {
  display: flex; justify-content: space-between; padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.confirmation-details .row:last-child { border-bottom: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---------- Location ---------- */
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  height: 420px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.address-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.address-card .line { font-size: 1.05rem; margin-bottom: 4px; }
.address-card .line.strong { font-weight: 800; font-family: 'Baloo 2', sans-serif; font-size: 1.2rem; }

.hours-table td:first-child { font-weight: 700; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); margin: 8px 0; }
.tag {
  display: inline-block;
  background: var(--yellow);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 800;
}
