:root{
  --bg:#1a1512;
  --card:rgba(45,36,30,.72);
  --ink:#fbf7f0;
  --muted:#e5d6c4;
  --accent:#c08a5a;      /* warm caramel */
  --accent2:#3a2f27;     /* dark cocoa */
  --line:rgba(255,255,255,.14);
  --shadow: 0 12px 34px rgba(0,0,0,.42);
  --radius: 18px;
  --max: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--font);
  color:var(--ink);
  background: radial-gradient(1200px 800px at 10% 0%, rgba(192,138,90,.28), transparent 55%),
              radial-gradient(900px 600px at 85% 10%, rgba(255,227,193,.14), transparent 50%),
              var(--bg);
  line-height:1.55;
}
a{color:inherit}
.container{max-width:var(--max);margin:0 auto;padding:0 18px}
header{
  position:sticky; top:0; z-index:50;
  background: rgba(11,16,32,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
}
.logo{
  width:38px; height:38px; border-radius:12px;
  background: linear-gradient(135deg, var(--accent), #ec4899);
  box-shadow: var(--shadow);
}
.brand span{font-weight:800; letter-spacing:.2px}
.navlinks{display:flex; gap:14px; flex-wrap:wrap; justify-content:flex-end}
.navlinks a{
  text-decoration:none;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
  color:var(--muted);
}
.navlinks a:hover, .navlinks a[aria-current="page"]{
  border-color: var(--line);
  background: rgba(255,255,255,.06);
  color: var(--ink);
}
.hero{
  padding:46px 0 18px;
}
.heroGrid{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap:18px;
}
@media (max-width: 860px){
  .heroGrid{grid-template-columns:1fr}
}
.card{
  background: rgba(17,26,51,.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.heroCard{padding:28px}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  font-weight:700; color:var(--muted);
}
.kicker:before{
  content:"";
  width:8px; height:8px; border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(59,130,246,.18);
}
h1{margin:10px 0 10px; font-size: clamp(30px, 4vw, 46px); line-height:1.1}
p{margin:10px 0}
.actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  text-decoration:none;
  font-weight:700;
}
.btn.primary{
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  border-color: rgba(255,255,255,.18);
  color: #081027;
}
.btn.primary:hover{filter:brightness(1.05)}
.btn.ghost{
  background: rgba(255,255,255,.06);
  color: var(--ink);
}
.btn.ghost:hover{background: rgba(255,255,255,.10)}
.sideCard{padding:22px}
.list{margin:12px 0 0; padding:0; list-style:none}
.list li{padding:10px 0; border-top:1px solid var(--line); color: var(--muted)}
.section{padding:18px 0 46px}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:18px}
@media (max-width: 860px){.grid2{grid-template-columns:1fr}}
.section h2{margin:0 0 6px; font-size:26px}
.section .muted{color:var(--muted)}
.menuCat{padding:18px}
.menuItem{padding:12px 0; border-top:1px solid var(--line)}
.menuItem .top{display:flex; justify-content:space-between; gap:10px}
.menuItem .name{font-weight:800}
.menuItem .price{color:var(--muted); font-weight:800}
.gallery{display:grid; grid-template-columns: repeat(4, 1fr); gap:10px}
@media (max-width: 900px){.gallery{grid-template-columns: repeat(2, 1fr)}}
.gallery img{
  width:100%; height:210px; object-fit:cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
}
.footer{
  padding:26px 0;
  border-top:1px solid var(--line);
  color: var(--muted);
}
.footer a{color: var(--muted)}
.small{font-size:14px}
.form{
  display:grid; gap:12px;
}
label{font-weight:700}
input, textarea, select{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--ink);
  font: inherit;
}
textarea{min-height:120px; resize:vertical}
.note{
  padding:12px 14px;
  border-radius: 14px;
  border:1px dashed rgba(255,255,255,.20);
  color: var(--muted);
  background: rgba(255,255,255,.04);
}
hr.sep{border:0;border-top:1px solid var(--line); margin:18px 0}

.brand img{box-shadow: var(--shadow);}

/* Home hero banner */
.heroBanner{
  position: relative;
  border-bottom: 1px solid var(--line);
}
.heroBanner img{
  width: 100%;
  height: min(44vh, 360px); /* slightly shorter above the fold */
  object-fit: cover;
  display: block;
}
.heroCtas{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom: 18px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(26,21,18,.55); /* fade overlay behind buttons */
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

/* Buttons to match palette */
.btn.primary{
  background: linear-gradient(135deg, var(--accent), #e3b287);
  border-color: rgba(255,255,255,.18);
  color: #1a1512;
}
.btn.ghost{
  background: rgba(255,255,255,.08);
  color: var(--ink);
}

/* Gallery figures + captions */
.galleryFigure{
  margin:0;
}
.galleryFigure img{
  width:100%;
  height:210px;
  object-fit:cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
}
.galleryCaption{
  margin-top:8px;
  font-size:14px;
  color: var(--muted);
}

/* Subtle load animations (respect reduced motion) */
@media (prefers-reduced-motion: no-preference){
  .animate-in{
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp .55s ease-out forwards;
  }
  .animate-in.delay-1{ animation-delay: .08s; }
  .animate-in.delay-2{ animation-delay: .16s; }
  .animate-in.delay-3{ animation-delay: .24s; }
  .animate-in.delay-4{ animation-delay: .32s; }

  @keyframes fadeUp{
    to { opacity: 1; transform: translateY(0); }
  }
  .heroCtas{ opacity:0; transform: translateX(-50%) translateY(6px); animation: fadeUp .6s ease-out .08s forwards; }
}


/* Header rebalance for longer brand name */
.brand{
  gap:12px;
}
.nav{
  padding:12px 0;
}
.navlinks a{
  padding:9px 10px;
}
@media (max-width: 520px){
  .navlinks a{ padding:8px 9px; }
}


/* Form status (brand-matched) */
#formStatus{
  border-style: solid;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
#submitBtn:disabled{
  cursor: not-allowed;
}


/* Index: Meet Allison split sections + FB embed */
.stackSection{display:block}
.fbEmbedWrap{
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow:hidden;
  background: rgba(255,255,255,.04);
}


/* Testimonials polish: subtle stagger + lift */
#testimonialHost .card{
  position: relative;
  transition: transform .18s ease, filter .18s ease;
}
#testimonialHost .card:hover{
  transform: translateY(-2px);
  filter: brightness(1.02);
}
@media (prefers-reduced-motion: no-preference){
  #testimonialHost .card:nth-child(1){ transform: translateY(-2px); }
  #testimonialHost .card:nth-child(2){ transform: translateY(6px); }
  #testimonialHost .card:nth-child(3){ transform: translateY(-1px); }
  #testimonialHost .card:nth-child(4){ transform: translateY(8px); }
}


/* Mobile responsiveness tuning */
img{max-width:100%; height:auto}

/* Header: stack on small screens */
@media (max-width: 820px){
  .nav{flex-wrap:wrap}
  .navlinks{width:100%; justify-content:flex-start}
}
@media (max-width: 560px){
  .nav{gap:10px}
  .brand img{width:42px !important; height:42px !important}
  .navlinks{gap:8px}
  .navlinks a{padding:8px 10px}
}

/* Hero banner CTA cluster: keep it readable on small devices */
@media (max-width: 560px){
  .heroCtas{
    width: calc(100% - 24px);
    left: 12px;
    transform: none;
    bottom: 12px;
  }
  .heroCtas .btn{flex:1; min-width: 180px}
  .heroBanner img{height: min(38vh, 260px);}
}

/* Grids already collapse, but keep spacing comfortable */
@media (max-width: 860px){
  .grid2{gap:14px}
  .heroGrid{gap:14px}
}

/* Gallery: 2 columns on medium, 1 on very small */
@media (max-width: 520px){
  .gallery{grid-template-columns:1fr}
  .galleryFigure img{height: 230px}
}

/* Facebook embed: responsive height */
.fbIframe{
  width:100% !important;
  border:none;
  overflow:hidden;
  height: 520px;
}
@media (max-width: 560px){
  .fbIframe{height: 420px}
}
@media (max-width: 380px){
  .fbIframe{height: 360px}
}

/* Forms: prevent cramped labels */
@media (max-width: 520px){
  input, textarea, select{padding:12px}
  .actions{gap:10px}
}


/* Order page flavor drawers */
.flavorGroup summary{
  list-style: none;
}
.flavorGroup summary::-webkit-details-marker{
  display:none;
}
.flavorGroup summary::after{
  content:"+";
  float:right;
  font-weight:800;
}
.flavorGroup[open] summary::after{
  content:"–";
}


/* Order form smart-drawer polish */
.flavorGroup{
  transition: transform .15s ease, background .15s ease;
}
.flavorGroup[open]{
  background: rgba(255,255,255,.06);
}
@media (max-width: 560px){
  .flavorGroup{
    padding: 10px;
  }
}



/* Featured gallery */
.featuredGallery{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}
.featuredFigure{margin:0}
.featuredFigure img{
  width:100%;
  height:240px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  cursor: zoom-in;
}
.galleryFigure img{cursor: zoom-in}
@media (max-width: 900px){
  .featuredGallery{grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 520px){
  .featuredGallery{grid-template-columns: 1fr;}
  .featuredFigure img{height:230px;}
}

/* Lightbox */
body.lightboxOpen{overflow:hidden}
.galleryLightbox{
  position:fixed;
  inset:0;
  background: rgba(10,8,7,.88);
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  padding:24px;
  z-index:9999;
}
.galleryLightbox.open{display:flex}
.lightboxImage{
  max-width:min(96vw, 1100px);
  max-height:78vh;
  width:auto;
  height:auto;
  border-radius:18px;
  box-shadow: var(--shadow);
}
.lightboxCaption{
  margin-top:14px;
  color: var(--ink);
  text-align:center;
  max-width:900px;
}
.lightboxClose{
  position:absolute;
  top:16px;
  right:18px;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.10);
  color: var(--ink);
  font-size:28px;
  line-height:1;
  cursor:pointer;
}


/* Pickup map */
.pickup-map{
  margin-top:20px;
}
.map-container{
  margin-top:10px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--line);
}
.map-container iframe{
  width:100%;
  height:320px;
  border:0;
}


/* Contact page map + Facebook follow */
.pickup-map{
  margin-top:20px;
}
.map-container{
  margin-top:10px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--line);
}
.map-container iframe{
  width:100%;
  height:320px;
  border:0;
}
.facebook-follow .btn{
  width:100%;
  text-align:center;
}
@media (max-width: 560px){
  .map-container iframe{
    height:260px;
  }
}


/* Popup Farmstand page */
code{
  background: rgba(255,255,255,.08);
  padding: 2px 6px;
  border-radius: 8px;
}
@media (max-width: 980px){
  .navlinks{
    gap:10px;
  }
}
@media (max-width: 860px){
  .navlinks{
    justify-content:flex-start;
  }
}
