/* ============================================================
   GEORGIA SWEET PEACH — small-town orchard bakery & vendor market
   A sunny, hand-lettered farm-stand page.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --void: #f2e4c8;
  --bg: #fffaf0;
  --bg2: #fbf0dc;
  --ink: #5b3a29;
  --ink-dim: #a1826a;
  --ink-bright: #3d2418;
  --accent: #e8845a;
  --accent2: #7c9a5e;
  --glow: rgba(232, 132, 90, 0.28);
  --border: rgba(120, 80, 50, 0.18);
  --font-display: 'Caveat', 'Segoe Script', cursive;
  --font-body: 'Lora', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--void);
  font-family: var(--font-body);
  color: var(--ink);
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: clamp(10px, 3vw, 36px);
  background:
    repeating-linear-gradient(45deg, rgba(232,132,90,0.05) 0 22px, transparent 22px 44px),
    repeating-linear-gradient(-45deg, rgba(124,154,94,0.05) 0 22px, transparent 22px 44px),
    var(--void);
  position: relative;
  overflow-x: hidden;
}

/* ---------- ambient: falling peach-blossom petals ---------- */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.petals span {
  position: absolute; top: -8%; width: 10px; height: 8px; border-radius: 60% 40% 60% 40%;
  background: var(--accent); opacity: 0.5;
  animation: petal-fall linear infinite;
}
.petals span:nth-child(odd) { background: #f4c9a8; }
@keyframes petal-fall {
  from { transform: translate(0, -10vh) rotate(0deg); }
  to   { transform: translate(-10vw, 115vh) rotate(300deg); }
}
body.fx-off .petals { display: none; }

/* ---------- the page ---------- */
#page {
  position: relative; z-index: 1;
  width: min(880px, 100%);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 2px 0 var(--border), 0 18px 40px rgba(90, 58, 30, 0.18);
  padding: clamp(18px, 3.5vw, 40px);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .petals span { animation: none; }
}

/* ---------- masthead ---------- */
.masthead { text-align: center; margin-bottom: 8px; border-bottom: 2px dashed var(--border); padding-bottom: 14px; }
.masthead h1 {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2em, 6vw, 3.2em); letter-spacing: 0.5px;
  color: var(--accent);
}
.masthead-meta { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.masthead-meta span:first-child { color: var(--ink-dim); font-style: italic; font-size: 0.95em; }
.dim { color: var(--ink-dim); }

/* ---------- menu bar ---------- */
.menubar {
  display: flex; flex-wrap: wrap; gap: 4px; justify-content: center;
  border-bottom: 2px dashed var(--border);
  padding: 10px 0 14px; margin: 10px 0 16px;
}
.menu-btn {
  background: transparent; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  color: var(--ink-dim); font-family: var(--font-body); font-weight: 600;
  font-size: 0.92em; padding: 6px 14px; letter-spacing: 0.2px; transition: all .15s;
}
.menu-btn:hover { color: var(--ink-bright); background: rgba(232,132,90,0.10); }
.menu-btn.active { color: #fff; background: var(--accent); border-color: var(--accent); }

/* ---------- panels ---------- */
.panel { display: none; animation: fade-in .3s ease; }
.panel.active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }

.box { position: relative; }
.box-title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.3px;
  color: var(--accent); font-size: 2em; margin: 0 0 14px;
  border-bottom: 2px dashed var(--border); padding-bottom: 8px;
}
.box p { margin: 0 0 10px; line-height: 1.65; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink-bright); }
.lbl { color: var(--ink-dim); }

/* ---------- main menu list ---------- */
.welcome { color: var(--ink-bright); min-height: 1.4em; font-style: italic; font-size: 1.1em; }
.menu-list { list-style: none; padding: 0; margin: 16px 0 0; }
.menu-list li {
  padding: 10px 12px; cursor: pointer; transition: background .15s; border-radius: 10px;
  border-bottom: 1px dashed var(--border);
}
.menu-list li:hover { background: rgba(232,132,90,0.08); }
.menu-list .num { color: var(--accent); margin-right: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2em; }
.menu-list .arrow { float: right; color: var(--ink-dim); }

.ticker {
  margin-top: 18px; border-top: 2px dashed var(--border); border-bottom: 2px dashed var(--border);
  padding: 8px 4px; overflow: hidden; white-space: nowrap; color: var(--accent2); font-weight: 600;
}

/* ---------- our story ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.about-dossier { border: 1px dashed var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 4px; }
.about-dossier div { padding: 3px 0; }
.about-dossier .k { color: var(--ink-dim); display: inline-block; min-width: 110px; font-weight: 600; }

/* ---------- menu (baked goods) ---------- */
.filelist { width: 100%; border-collapse: collapse; margin-top: 10px; }
.filelist th, .filelist td { text-align: left; padding: 8px 10px; }
.filelist thead th { color: var(--accent); border-bottom: 2px solid var(--border); font-weight: 600; }
.filelist tbody tr { cursor: pointer; border-bottom: 1px dashed var(--border); }
.filelist tbody tr:hover { background: rgba(232,132,90,0.08); }
.filelist tbody tr.open { background: rgba(232,132,90,0.14); }
.file-detail { border: 1px dashed var(--border); border-radius: 12px; margin-top: 14px; padding: 16px; animation: fade-in .2s ease; }
.file-detail h3 { margin: 0 0 8px; color: var(--ink-bright); font-family: var(--font-display); font-weight: 700; font-size: 1.5em; }
.file-detail .tag { color: var(--ink-dim); margin: 10px 0 4px; font-style: italic; }
.attach-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.attach-imgs img {
  height: 96px; width: 96px; object-fit: cover; cursor: pointer; border-radius: 10px;
  border: 1px solid var(--border);
  transition: border-color .15s, box-shadow .15s;
}
.attach-imgs img:hover { border-color: var(--accent); box-shadow: 0 0 10px var(--glow); }
.attach-files { list-style: none; padding: 0; margin: 4px 0 0; }
.attach-files li { padding: 2px 0; }

/* ---------- vendors ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 12px; }
.vendor-card { border: 1px dashed var(--border); border-radius: 14px; padding: 14px 16px; }
.vendor-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.vendor-card h3 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.5em; color: var(--ink-bright); }
.vendor-card .specialty { color: var(--accent2); font-weight: 600; margin: 0 0 8px; }
.vendor-card p { margin: 0; }

/* ---------- visit us ---------- */
.visit-grid { display: grid; gap: 10px; }
.visit-row { border: 1px dashed var(--border); border-radius: 12px; padding: 12px 16px; }
.visit-row .k { color: var(--accent); font-weight: 600; display: block; margin-bottom: 3px; font-family: var(--font-display); font-size: 1.2em; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(61,36,24,0.85); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-img { max-width: 90vw; max-height: 82vh; object-fit: contain; border-radius: 12px; box-shadow: 0 0 30px rgba(0,0,0,0.4); }
.lb-btn {
  position: absolute; background: rgba(255,250,240,0.9); border: 1px solid var(--border); border-radius: 999px;
  color: var(--ink); font-family: var(--font-body); cursor: pointer; transition: all .15s; line-height: 1;
}
.lb-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.lb-close { top: 16px; right: 18px; font-size: 20px; padding: 6px 12px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 30px; padding: 6px 16px; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-caption { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font-size: 0.9em; padding: 0 60px; }

/* ---------- reviews ---------- */
.sub-h {
  color: var(--accent); margin: 24px 0 4px; font-size: 1.6em; letter-spacing: 0.3px;
  border-top: 2px dashed var(--border); padding-top: 16px;
  font-family: var(--font-display); font-weight: 700;
}
.testimonial { border-left: 3px solid var(--accent2); margin: 0 0 16px; padding: 4px 0 4px 16px; }
.testimonial .tq { margin: 0 0 6px; color: var(--ink-bright); font-style: italic; }
.testimonial footer { color: var(--ink-dim); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- form ---------- */
.guestform { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.guestform label { display: flex; flex-direction: column; gap: 4px; color: var(--ink-dim); font-weight: 600; }
.guestform input, .guestform textarea {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--ink); font-family: var(--font-body); font-size: inherit; padding: 9px; resize: vertical;
}
.guestform input:focus, .guestform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 8px var(--glow); }
.send-btn, .theme-toggle {
  background: var(--accent); border: 1px solid var(--accent); border-radius: 999px;
  color: #fff; font-family: var(--font-body); font-weight: 600; font-size: inherit;
  padding: 9px 18px; cursor: pointer; letter-spacing: 0.3px; align-self: flex-start; transition: all .15s;
}
.send-btn:hover, .theme-toggle:hover { background: var(--ink-bright); border-color: var(--ink-bright); }
.form-status { color: var(--accent2); min-height: 1.2em; font-weight: 600; }

/* ---------- status bar ---------- */
.statusbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  border-top: 2px dashed var(--border); margin-top: 20px; padding-top: 12px; font-size: 0.9em;
}
.theme-toggle { padding: 5px 14px; margin-left: auto; }
.adminlink { color: var(--ink-dim); text-decoration: none; }
.adminlink:hover { color: var(--accent); }

.gallery-empty { border: 1px dashed var(--border); border-radius: 12px; padding: 24px; text-align: center; margin-top: 12px; color: var(--ink-dim); font-style: italic; }
