:root {
  --bg: #fff9ef;
  --bg-alt: #fff2df;
  --ink: #23313c;
  --ink-soft: #4a5e6f;
  --brand: #d9653b;
  --brand-deep: #b74722;
  --accent: #1f8c7a;
  --card: #fffefb;
  --line: #f0d8ba;
  --ok: #f8edd8;
  --shadow: 0 12px 35px rgba(83, 43, 22, 0.12);
  --radius: 18px;
}

body.theme-garden {
  --bg: #f5fbf2;
  --bg-alt: #eaf6e8;
  --ink: #24443d;
  --ink-soft: #527068;
  --brand: #e36b49;
  --brand-deep: #b94a31;
  --accent: #398c68;
  --card: #fbfffa;
  --line: #c8e0c5;
  --ok: #e5f3d9;
  --shadow: 0 12px 35px rgba(38, 91, 62, 0.14);
}

body.theme-pencil {
  --bg: #fffdf4;
  --bg-alt: #fff6d9;
  --ink: #303b52;
  --ink-soft: #667087;
  --brand: #e45564;
  --brand-deep: #b52f48;
  --accent: #3b82a0;
  --card: #fffef8;
  --line: #f0d18d;
  --ok: #fff0bc;
  --shadow: 0 12px 35px rgba(91, 72, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background:
    radial-gradient(circle at 0% 0%, #ffe9ca 0, transparent 40%),
    radial-gradient(circle at 100% 100%, #ffe7d6 0, transparent 40%),
    var(--bg);
}

body.theme-garden {
  background:
    radial-gradient(circle at 8% 8%, #dff2d8 0, transparent 32%),
    radial-gradient(circle at 92% 86%, #ffe2c9 0, transparent 35%),
    var(--bg);
}

body.theme-pencil {
  background:
    radial-gradient(circle at 12% 12%, #fff0bd 0, transparent 30%),
    radial-gradient(circle at 88% 88%, #ffd9df 0, transparent 34%),
    var(--bg);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 249, 239, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  max-width: 400px;
}

.brand-logo {
  width: min(100%, 380px);
  max-height: 76px;
  object-fit: contain;
  display: block;
}

.brand-fallback {
  font-family: "Baloo 2", cursive;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1;
  display: none;
}

.theme-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.theme-picker select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  color: var(--ink);
  background: var(--card);
  font: inherit;
  cursor: pointer;
}

.main-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.93rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: #ffe2bf;
  outline: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--ink);
  border-radius: 4px;
}

.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.hero-logo {
  width: min(100%, 650px);
  max-height: 220px;
  object-fit: contain;
  display: block;
  margin-bottom: 0.8rem;
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-size: 0.86rem;
  padding: 0.35rem 0.7rem;
  background: #e0f5f1;
  border-radius: 999px;
}

h1,
h2,
h3,
h4 {
  font-family: "Baloo 2", cursive;
  line-height: 1.15;
  margin: 0 0 0.7rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: var(--brand-deep);
  margin-top: 0.9rem;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: #9f3513;
}

h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: #334b5e;
}

.lead {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 800;
}

.hero-card,
.info-card,
.download-box,
.quote-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.4rem;
}

.hero-card h2 {
  margin-bottom: 0.8rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.section {
  padding: 4rem 0;
}

.section.alt {
  background: linear-gradient(180deg, #fff6e8 0%, #fff0dc 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

body.theme-garden .section.alt {
  background: linear-gradient(180deg, #eff9eb 0%, #e3f2e0 100%);
}

body.theme-pencil .section.alt {
  background: linear-gradient(180deg, #fff9e8 0%, #fff0d4 100%);
}

.highlight {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--brand-deep);
}

.pending {
  background: var(--ok);
  border: 1px dashed #d5a264;
  border-radius: 10px;
  padding: 0.15rem 0.45rem;
  font-weight: 700;
}

.note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 0.9rem 1rem;
  border-left: 4px solid #db9746;
  background: #fff3dd;
  border-radius: 10px;
}

.feature-list {
  columns: 2;
  gap: 1.5rem;
  padding-left: 1.15rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.info-card {
  padding: 1.1rem 1rem;
}

.food-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.download-box {
  margin: 1.2rem 0 1rem;
  padding: 1.2rem;
}

.button {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.25rem;
  box-shadow: 0 8px 20px rgba(183, 71, 34, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(183, 71, 34, 0.38);
}

.button.ghost {
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid #e4b27a;
  box-shadow: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
}

.form-card {
  align-self: start;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, #fff1db 0, transparent 45%),
    #fffef9;
  box-shadow: var(--shadow);
}

.visit-form {
  display: grid;
  gap: 1rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.visit-form fieldset {
  border: 1px solid #efcfab;
  border-radius: 14px;
  padding: 0.9rem;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.visit-form legend {
  font-family: "Baloo 2", cursive;
  color: #9f3513;
  font-size: 1.15rem;
  padding: 0 0.3rem;
}

.visit-form label {
  font-weight: 700;
  color: #2f4353;
}

.visit-form input {
  width: 100%;
  border: 1px solid #d6b48b;
  border-radius: 10px;
  padding: 0.65rem 0.72rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.visit-form input:focus-visible {
  outline: 2px solid #f2a75f;
  outline-offset: 1px;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 700;
}

.check-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.18rem;
  flex: 0 0 18px;
}

.form-message {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}

.form-message.success {
  color: #1f8c7a;
}

.form-message.error {
  color: #b74722;
}

.quote-card {
  align-self: start;
  padding: 1.4rem;
  background:
    radial-gradient(circle at 100% 0%, #fff1db 0, transparent 45%),
    #fffef9;
}

.quote-title {
  font-family: "Baloo 2", cursive;
  font-size: 1.5rem;
  color: var(--brand-deep);
  margin-top: 0;
}

.site-footer {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  background: #fff3df;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-link {
  font-weight: 800;
  color: var(--brand-deep);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid #e4b27a;
  border-radius: 999px;
  background: #fff;
}

.footer-link:hover,
.footer-link:focus-visible {
  outline: none;
  background: #ffe7ca;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.delay-1 {
  transition-delay: 0.15s;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .food-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .feature-list {
    columns: 1;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    background: #fff7ea;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 4%;
    display: none;
    flex-direction: column;
    gap: 0.4rem;
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .theme-picker {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 3.3rem;
  }

  h1 {
    font-size: 2.05rem;
  }

  .brand {
    max-width: 240px;
  }

  .brand-logo {
    max-height: 58px;
  }

  .theme-picker span {
    display: none;
  }

  .hero-logo {
    max-height: 140px;
  }
}
