/* Little Lake Bakes — shared styles
   Minimal + cute: cream paper, lake navy ink, soft shore blue, rounded everything. */

:root {
  --navy: #0a2443;
  --navy-2: #1b3a60;
  --cream: #fcfaf0;
  --tint: #eef3f8;        /* soft lake wash */
  --shore: #b9cfe6;
  --shore-ink: #5b84b1;
  --tan: #cebb96;
  --tan-soft: #f3ecdc;
  --ink: #2b3b52;
  --ink-soft: #66748a;
  --line: #e6e0cf;
  --error: #b2443b;

  --font: "Nunito", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1040px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --radius-sm: 14px;
  --header-h: 68px;

  --sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0c.6 5 4.4 9.4 10 10-5.6.6-9.4 5-10 10-.6-5-4.4-9.4-10-10 5.6-.6 9.4-5 10-10z' fill='%23cebb96'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-color: var(--shore); text-decoration-thickness: 2px; }
a:hover { color: var(--shore-ink); }

:focus-visible { outline: 3px solid var(--shore-ink); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 {
  font-family: var(--font);
  color: var(--navy);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 62ch; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--cream); padding: 10px 16px; border-radius: 999px;
}
.skip-link:focus { top: 12px; }

/* little four-point sparkle from the logo, used beside section titles */
.sparkle::before {
  content: ""; display: inline-block; width: 0.6em; height: 0.6em; margin-right: 0.4em;
  background: var(--sparkle) no-repeat center / contain; vertical-align: 0.15em;
}

.section-head { text-align: center; margin: 0 auto 2.5rem; }
.section-head p { margin: 0 auto; color: var(--ink-soft); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: inherit; font-weight: 800; font-size: 1rem;
  text-decoration: none; line-height: 1;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: var(--cream);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); color: var(--cream); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn-small { font-size: 0.92rem; padding: 0.7em 1.2em; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(252, 250, 240, 0.94);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--navy); margin-right: auto;
}
.brand img { width: auto; height: 40px; }

.site-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; font-weight: 700; font-size: 0.98rem;
  text-decoration: none; color: var(--navy);
  padding: 0.45rem 0.85rem; border-radius: 999px;
}
.site-nav a:hover { background: var(--tint); color: var(--navy); }
.site-nav a[aria-current="page"] { background: var(--tint); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy);
  border-radius: 999px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .header-cta { order: 2; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0.5rem var(--gutter) 1rem; }
  .site-nav a { padding: 0.8rem 1rem; font-size: 1.1rem; }
}
@media (max-width: 420px) {
  .brand img { height: 34px; }
  .header-inner { gap: 0.5rem; }
}

/* ---------- Hero ---------- */

/* Flat-lay photo with an open wood center; a cream glow keeps the copy readable */
.hero {
  text-align: center;
  display: flex; align-items: center;
  min-height: min(86vh, 760px);
  padding: clamp(3rem, 8vw, 5rem) 0;
  background:
    radial-gradient(ellipse 46% 52% at 50% 50%, rgba(252, 250, 240, 0.9) 0%, rgba(252, 250, 240, 0.72) 55%, rgba(252, 250, 240, 0) 100%),
    url("../assets/img/hero.jpg") center / cover no-repeat,
    var(--tan-soft);
}
.hero-inner { position: relative; }
.hero-logo { width: clamp(200px, 28vw, 300px); height: auto; margin: 0 auto 1.25rem; }
.hero h1 { max-width: 16ch; margin: 0 auto 0.4em; }
.hero-tagline { margin: 0 auto; color: var(--ink); font-size: 1.15rem; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.75rem; }
.hero .btn-ghost { background: rgba(252, 250, 240, 0.85); }
.hero .btn-ghost:hover { background: var(--navy); }
@media (max-width: 760px) {
  .hero {
    /* fill the screen below the sticky header; svh ignores the browser bar */
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    background:
      radial-gradient(ellipse 80% 48% at 50% 50%, rgba(252, 250, 240, 0.92) 0%, rgba(252, 250, 240, 0.78) 60%, rgba(252, 250, 240, 0.35) 100%),
      url("../assets/img/hero-900.jpg") center / cover no-repeat,
      var(--tan-soft);
  }
}

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-tint { background: var(--tint); }

/* ---------- Menu cards ---------- */

.menu-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
@media (max-width: 860px) { .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .menu-grid { grid-template-columns: 1fr; } }

.menu-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.3rem;
  transition: border-color 0.15s, transform 0.15s;
}
.menu-card:hover { border-color: var(--shore); transform: translateY(-2px); }
.menu-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--tint); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 0.9rem;
}
.menu-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu-card h3 { margin: 0 0 0.2rem; }
.menu-card p { color: var(--ink-soft); font-size: 0.97rem; margin: 0 0 1.1rem; flex: 1; }
.menu-card .btn { margin-top: auto; }

.menu-extras { text-align: center; color: var(--ink-soft); margin: 2rem auto 0; }
.menu-extras p { margin: 0 auto; }

/* ---------- Steps ---------- */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: var(--cream); border-radius: var(--radius); padding: 1.5rem 1.4rem;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--cream); font-weight: 800;
  margin-bottom: 0.8rem;
}
.steps p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Gallery + follow card ---------- */

.gallery-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin-bottom: 2.5rem;
}
.gallery-grid:empty { display: none; }
@media (max-width: 620px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery-grid button {
  padding: 0; border: 0; background: var(--tint); cursor: zoom-in;
  border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1 / 1;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-grid button:hover img { transform: scale(1.04); }

.follow-card {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.25rem, 4vw, 2.5rem);
}
.follow-icons { display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 1rem; }
.follow-icon {
  width: 60px; height: 60px; border-radius: 18px;
  display: grid; place-items: center; background: var(--tint); color: var(--navy);
}
.follow-icon svg { width: 30px; height: 30px; }
.follow-card h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.follow-card p { color: var(--ink-soft); margin: 0 auto 1.5rem; max-width: 40ch; }
.follow-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
@media (max-width: 420px) { .follow-actions .btn { width: 100%; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); overflow: visible; }
.lightbox::backdrop { background: rgba(10, 36, 67, 0.8); }
.lightbox img { max-height: 85vh; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute; top: -14px; right: -14px;
  background: var(--cream); color: var(--navy); border: 0; border-radius: 999px;
  width: 40px; height: 40px; font-size: 1.5rem; line-height: 1; cursor: pointer;
}

/* ---------- License note ---------- */

.license {
  display: flex; gap: 1.25rem; align-items: center;
  max-width: 760px; margin: 0 auto;
  background: var(--tan-soft); border-radius: var(--radius); padding: 1.5rem 1.75rem;
}
.license-badge {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  background: var(--cream); color: var(--navy);
  display: grid; place-items: center;
}
.license-badge svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.license h2 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.license p { margin: 0 0 0.35rem; font-size: 0.97rem; }
.license p:last-child { margin: 0; }
.license small { color: var(--ink-soft); font-size: 0.9rem; }
@media (max-width: 560px) { .license { flex-direction: column; align-items: flex-start; } }

/* ---------- Inner page header ---------- */

.page-head { text-align: center; padding: clamp(2.5rem, 7vw, 4rem) 0 1rem; }
.page-head p { margin: 0 auto; color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Allergens ---------- */

.contains {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  list-style: none; padding: 0; margin: 1.5rem 0 0;
}
.contains li {
  background: var(--navy); color: var(--cream); border-radius: 999px;
  padding: 0.35rem 1rem; font-weight: 800; font-size: 0.95rem;
}
.card {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2rem);
  margin-bottom: 16px;
}
.card h2 { font-size: 1.5rem; }
.card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--shore-ink); margin: 1.25rem 0 0.35rem; }
.card p { font-size: 0.98rem; }
.label-statement { color: var(--ink-soft); font-style: italic; }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0.5rem 0 0; padding: 0; }
.pill-list li { background: var(--tint); border-radius: 999px; padding: 0.25rem 0.8rem; font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .cards-2 { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { padding: 3rem 0 2.5rem; text-align: center; border-top: 1px solid var(--line); }
.site-footer img { width: 92px; margin: 0 auto 1rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.25rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.footer-links a { font-weight: 700; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-small { color: var(--ink-soft); font-size: 0.88rem; margin: 0 auto 0.3rem; }

/* ---------- Inquiry drawer ---------- */

.inquiry {
  margin: 0 0 0 auto;
  width: min(540px, 100vw); max-width: 100vw;
  height: 100dvh; max-height: 100dvh;
  padding: 0; border: 0;
  background: var(--cream); color: var(--ink);
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: -16px 0 48px rgba(10, 36, 67, 0.18);
}
@media (max-width: 560px) { .inquiry { border-radius: 0; } }
.inquiry::backdrop { background: rgba(10, 36, 67, 0.45); }
.inquiry[open] { animation: drawer-in 0.26s ease-out; }
@keyframes drawer-in { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }

.inquiry-inner { display: flex; flex-direction: column; height: 100%; }
.inquiry-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem var(--gutter) 0.5rem;
}
.inquiry-head h2 { font-size: 1.6rem; margin: 0; }
.inquiry-close {
  background: var(--tint); border: 0; color: var(--navy);
  width: 40px; height: 40px; border-radius: 999px; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.inquiry-close:hover { background: var(--shore); }
.inquiry form { overflow-y: auto; padding: 0.5rem var(--gutter) 2rem; flex: 1; }
.inquiry-lead { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 1.25rem; }

.form-group { border: 0; margin: 0 0 1.5rem; padding: 0; min-width: 0; }
.form-group > legend { font-weight: 800; font-size: 1.05rem; color: var(--navy); padding: 0; margin-bottom: 0.65rem; }

.product-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .product-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.product-picks label {
  position: relative; display: block; text-align: center; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.7rem 0.4rem; background: #fff;
  font-weight: 700; font-size: 0.95rem; color: var(--navy); line-height: 1.2;
}
.product-picks label:hover { border-color: var(--shore); }
.product-picks input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.product-picks label:has(input:checked) { border-color: var(--navy); background: var(--navy); color: var(--cream); }
.product-picks label:has(input:focus-visible) { outline: 3px solid var(--shore-ink); outline-offset: 2px; }

.product-fields {
  border: 0; border-radius: var(--radius-sm); background: var(--tint);
  padding: 1rem 1.1rem 0.3rem; margin: 0 0 1rem; min-width: 0;
}
.product-fields[hidden] { display: none; }
.product-fields > legend {
  float: left; width: 100%; font-weight: 800; color: var(--navy); padding: 0; margin-bottom: 0.75rem;
}
.product-fields > legend + * { clear: both; }

.field { margin-bottom: 0.9rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 0.8rem; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }
.field label,
.field .label { display: block; font-weight: 700; font-size: 0.92rem; color: var(--navy); margin-bottom: 0.3rem; }
.field .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.84rem; }
.field label + .hint { margin: -0.2rem 0 0.3rem; }
/* visually hidden, but read by screen readers and used as Netlify's field label */
.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.req { color: var(--error); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 0.6rem 0.8rem; min-height: 46px;
}
.field textarea { min-height: 84px; resize: vertical; }
.field { min-width: 0; }
/* iOS Safari gives date inputs an intrinsic min-width that ignores width: 100% */
.field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  min-width: 0;
  max-width: 100%;
  line-height: 1.4;
}
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--shore); }
.field [aria-invalid="true"] { border-color: var(--error); }

.upload {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  border: 1.5px dashed var(--shore); border-radius: 12px; padding: 0.7rem; background: #fff;
}
.upload input[type="file"] { font: inherit; font-size: 0.88rem; max-width: 100%; }
.upload-preview { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
.upload-preview[hidden] { display: none; }

.choice-row { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; min-height: 46px; align-items: center; }
.choice-row label { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--ink); margin: 0; }
.choice-row input { width: 18px; height: 18px; accent-color: var(--navy); }

.form-error { color: var(--error); font-weight: 700; margin: 0 0 1rem; }
.form-error[hidden] { display: none; }
.form-actions .btn { width: 100%; }
.form-fineprint { font-size: 0.84rem; color: var(--ink-soft); margin-top: 1rem; }

.inquiry-done { padding: 2rem var(--gutter); }
.inquiry-done[hidden] { display: none; }
.inquiry-done h3 { font-size: 1.6rem; }

