/* ==========================================================================
   Cotton Bug Bakery — Shared Styles
   Warm cream / bakery tan / chocolate brown / golden pastry palette
   ========================================================================== */

:root {
  --cream:      #fbf6ec;
  --soft-white: #fffdf8;
  --tan:        #e7d3b1;
  --tan-deep:   #d8bd93;
  --gold:       #c8912f;
  --gold-soft:  #e6b95c;
  --choco:      #3d2a1d;
  --choco-soft: #5b4433;
  --coffee:     #24160e;
  --text:       #34271d;
  --muted:      #7a6552;
  --line:       rgba(61, 42, 29, 0.12);
  --shadow-sm:  0 4px 14px rgba(61, 42, 29, 0.08);
  --shadow-md:  0 12px 34px rgba(61, 42, 29, 0.14);
  --shadow-lg:  0 26px 60px rgba(61, 42, 29, 0.22);
  --serif:      "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:       "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius:     18px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--choco);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

p  { margin: 0 0 1rem; }
a  { color: var(--gold); text-decoration: none; }

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

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.9rem;
  display: inline-block;
}

.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.btn-primary { background: var(--gold); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--choco); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--choco); border-color: var(--choco); }
.btn-ghost:hover { background: var(--choco); color: #fff; transform: translateY(-3px); }
.btn-light { background: rgba(255,255,255,0.92); color: var(--choco); }
.btn-light:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 236, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease),
              background 0.3s var(--ease);
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
  background: rgba(251, 246, 236, 0.95);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--choco);
}
.brand .mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.brand span small { display: block; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--choco-soft);
  font-weight: 500;
  font-size: 0.96rem;
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--gold);
  transition: width 0.28s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--choco); font-weight: 600; }
.nav-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 0;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; margin: 5px auto;
  background: var(--choco); transition: 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; z-index: 120; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto;
    width: min(320px, 82vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    background: var(--soft-white);
    padding: 6rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.15rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s var(--ease), transform 7s linear;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,22,14,0.45) 0%, rgba(36,22,14,0.35) 40%, rgba(36,22,14,0.72) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 2rem; max-width: 820px; }
.hero h1 { color: #fff; text-shadow: 0 3px 30px rgba(0,0,0,0.35); }
.hero .lead { color: rgba(255,255,255,0.92); margin-inline: auto; font-size: 1.2rem; }
.hero .eyebrow { color: var(--gold-soft); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); cursor: pointer; padding: 0; transition: 0.3s; }
.hero-dots button.active { background: #fff; width: 28px; border-radius: 6px; }

/* ---------- Page banner (subpages) ---------- */
.page-banner {
  position: relative;
  min-height: 44vh;
  display: grid; place-items: center; text-align: center;
  color: #fff;
  background-size: cover; background-position: center;
}
.page-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,22,14,0.4), rgba(36,22,14,0.7)); }
.page-banner-inner { position: relative; z-index: 2; padding: 2rem; }
.page-banner h1 { color: #fff; margin-bottom: 0.3rem; }
.page-banner p { color: rgba(255,255,255,0.9); }
.crumbs { font-size: 0.85rem; color: rgba(255,255,255,0.8); letter-spacing: 0.05em; }
.crumbs a { color: var(--gold-soft); }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--soft-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .card-img img { transform: scale(1.08); }
.card-body { padding: 1.4rem 1.5rem 1.6rem; }
.card-body h3 { margin-bottom: 0.35rem; }
.card-body .price { color: var(--gold); font-weight: 700; }
.card-body p { color: var(--muted); font-size: 0.96rem; margin-bottom: 0; }

/* photo feature card (real image instead of emoji icon) */
.feature {
  background: var(--soft-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature .feature-img { aspect-ratio: 16 / 10; overflow: hidden; }
.feature .feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.feature:hover .feature-img img { transform: scale(1.07); }
.feature .feature-body { padding: 1.6rem 1.6rem 1.8rem; }
.feature h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.feature p { color: var(--muted); margin-bottom: 0; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.reverse .split-media { order: 2; }
@media (max-width: 900px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-media .stamp {
  position: absolute; bottom: -22px; right: -14px;
  background: var(--gold); color: #fff;
  border-radius: 50%; width: 118px; height: 118px;
  display: grid; place-items: center; text-align: center;
  font-family: var(--serif); font-weight: 700; line-height: 1.1;
  box-shadow: var(--shadow-md); font-size: 0.95rem;
  transform: rotate(-8deg);
}
@media (max-width: 900px) { .split-media .stamp { right: 8px; } }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat .num { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold); font-weight: 700; }
.stat .lbl { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- Image divider ---------- */
.divider {
  position: relative;
  min-height: 42vh;
  background-size: cover; background-position: center; background-attachment: fixed;
  display: grid; place-items: center; text-align: center; color: #fff;
}
.divider::after { content: ""; position: absolute; inset: 0; background: rgba(36,22,14,0.6); }
.divider-inner { position: relative; z-index: 2; padding: 2rem; max-width: 760px; }
.divider h2 { color: #fff; }
.divider p { color: rgba(255,255,255,0.9); }
@media (max-width: 760px) { .divider { background-attachment: scroll; } }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--soft-white);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  height: 100%;
  display: flex; flex-direction: column;
}
.quote .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 0.8rem; }
.quote p { font-size: 1.02rem; color: var(--choco-soft); font-style: italic; }
.quote .who { margin-top: auto; display: flex; align-items: center; gap: 0.75rem; padding-top: 1rem; }
.quote .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--tan); color: var(--choco); display: grid; place-items: center; font-weight: 700; font-family: var(--serif); }
.quote .who b { color: var(--choco); }
.quote .who small { display: block; color: var(--muted); }

/* ---------- Gallery / Masonry ---------- */
.masonry { columns: 3 260px; column-gap: 1rem; }
.masonry figure { margin: 0 0 1rem; break-inside: avoid; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; position: relative; }
.masonry img { width: 100%; transition: transform 0.6s var(--ease); }
.masonry figure:hover img { transform: scale(1.06); }
.masonry figure::after {
  content: "🔍"; position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(36,22,14,0.35); color: #fff; font-size: 1.6rem;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.masonry figure:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,12,7,0.92);
  display: none; place-items: center;
  padding: 4vw;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
  display: grid; place-items: center; transition: background 0.25s;
}
.lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: rgba(255,255,255,0.28); }
.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Footer gallery strip ---------- */
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.strip img { aspect-ratio: 1; object-fit: cover; filter: saturate(1.05); }
@media (max-width: 700px) { .strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Visit / map ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 0.9rem; padding: 0.85rem 0; border-bottom: 1px dashed var(--line); }
.info-list li:last-child { border-bottom: none; }
.info-list .ico { color: var(--gold); font-size: 1.25rem; flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(200,145,47,0.12); border-radius: 50%; }
.info-list .ico svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-list b { color: var(--choco); display: block; }
.info-list span { color: var(--muted); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); min-height: 380px; height: 100%; }
.map-embed iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.hours li.today { color: var(--gold); font-weight: 700; }
.hours li:last-child { border-bottom: none; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--choco); font-size: 0.9rem; }
.field input, .field textarea {
  width: 100%; padding: 0.85rem 1rem;
  border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 1rem; background: var(--soft-white); color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200,145,47,0.14); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.86rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--choco); color: #fff; border-radius: var(--radius); padding: clamp(2.5rem, 6vw, 4rem); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 56ch; margin-inline: auto; }
.cta-band .hero-actions { margin-top: 1.8rem; }
.cta-band::before { content: "🥐"; position: absolute; font-size: 12rem; opacity: 0.06; top: -1rem; right: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--coffee); color: rgba(255,255,255,0.78); padding-top: clamp(3rem,6vw,4.5rem); }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--gold-soft); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: 0.95rem; }
.socials { display: flex; gap: 0.7rem; margin-top: 1rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); display: grid; place-items: center; transition: background 0.25s, transform 0.25s; }
.socials a:hover { background: var(--gold); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 3rem; padding: 1.4rem 0; text-align: center; font-size: 0.85rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* float accent */
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
