/* ========== Reset & Base ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: Arial, Helvetica, sans-serif; color: #333; background: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ========== Global Elements ========== */
section { padding: 60px 20px; max-width: 1200px; margin: auto; }
h2 { text-align: center; margin-bottom: 40px; font-size: 2rem; color: #a0522d; }
.btn {
  display: inline-block;
  background: #a0522d;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 700;
  transition: background .2s ease, transform .15s ease;
}
.btn:hover { background: #7a3c21; transform: translateY(-1px); }

/* ========== Header ========== */
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 40px; background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  position: sticky; top: 0; z-index: 1000;
}
header img.logo { height: 50px; }
nav ul { display: flex; gap: 25px; font-weight: 700; }
nav ul li a { color: #333; }
nav ul li a:hover { color: #a0522d; }
.cta-btn {
  background: #a0522d; color: #fff; padding: 10px 18px; border-radius: 6px;
  transition: background .2s ease;
}
.cta-btn:hover { background: #7a3c21; }

/* ========== Carousel ========== */
.carousel { position: relative; overflow: hidden; height: 80vh; }
.carousel-slide {
  display: none; position: absolute; inset: 0;
  background-size: cover; background-position: center;
  color: #fff; text-align: center;
}
.carousel-slide.active { display: flex; align-items: center; justify-content: center; }
.carousel-slide::before {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.5);
}
.carousel-content { position: relative; z-index: 2; max-width: 760px; padding: 0 16px; }
.carousel h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; text-shadow: 1px 1px 4px rgba(0,0,0,0.7); }
.carousel p { font-size: clamp(1rem, 2.2vw, 1.2rem); margin-bottom: 22px; }
.carousel-dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; opacity: .5; cursor: pointer;
}
.dot.active { opacity: 1; background: #a0522d; }
.arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 2rem; color: #fff;
  background: rgba(0,0,0,0.4); padding: 10px; border-radius: 50%;
  cursor: pointer; z-index: 3;
}
.arrow.left { left: 20px; }
.arrow.right { right: 20px; }

/* ========== Fan Favorites ========== */
.drinks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.drink {
  text-align: center; padding: 20px;
  border: 1px solid #eee; border-radius: 10px; background: #fafafa;
  transition: transform .15s ease, box-shadow .2s ease;
}
.drink img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.drink h3 { margin-bottom: 8px; }
.drink:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,.06); }

/* ========== Stickman Block (Upgraded) ========== */
.stickman-block {
  padding: 70px 20px;
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(160,82,45,0.08), transparent 60%),
    linear-gradient(#fff, #f9f6f3 60%, #fff);
}
.sm-inner{
  max-width: 1200px; margin: 0 auto;
  display: grid; gap: 40px;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}
.sm-inner::after{
  content:""; position:absolute; right:-80px; bottom:-80px; width:380px; height:380px;
  background:
    radial-gradient(closest-side, rgba(160,82,45,.25), transparent 70%),
    radial-gradient(closest-side, rgba(160,82,45,.15), transparent 72%);
  filter: blur(2px);
  border-radius:50%; opacity:.35;
}
.sm-media{ display:flex; justify-content:center; }
.sm-media img{
  width: 100%; max-width: 420px; height: auto;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.12));
  animation: floaty 6s ease-in-out infinite alternate;
}
@keyframes floaty{ from{ transform: translateY(0);} to{ transform: translateY(-8px);} }
.sm-copy .eyebrow{
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; color:#7a3c21; margin-bottom: 6px; font-weight:700;
}
.sm-copy h2{
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color:#7a3c21; margin-bottom: 12px;
}
.sm-copy .lead{ font-size: 1.05rem; color:#444; margin-bottom: 18px; }
.sm-points{ margin: 0 0 22px 0; padding-left: 0; }
.sm-points li{
  list-style: none; position: relative; padding-left: 28px; margin: 8px 0;
}
.sm-points li::before{
  content:""; position:absolute; left:0; top:.45em;
  width:12px; height:12px; border-radius:50%;
  background: #a0522d;
  box-shadow: 0 0 0 6px rgba(160,82,45,.12);
}
.sm-cta{ border-radius:8px; }

/* ========== Why Quick Detour ========== */
.why-block { text-align:center; padding:70px 20px; background:#fafafa; }
.why-grid {
  display:grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap:30px; margin-top:30px;
}
.why-card {
  background:#fff; border:1px solid #eee; border-radius:12px;
  padding:30px 20px; box-shadow:0 6px 18px rgba(0,0,0,0.05);
  transition:transform .2s ease, box-shadow .2s ease;
}
.why-card i {
  font-size:2.5rem; color:#a0522d; margin-bottom:12px;
}
.why-card h3 { margin-bottom: 8px; }
.why-card:hover { transform:translateY(-5px); box-shadow:0 12px 22px rgba(0,0,0,0.08); }

/* ========== Our Story Preview ========== */
.story-preview { padding:80px 20px; background:#fff; }
.story-box {
  max-width:1200px; margin:auto; display:grid;
  grid-template-columns:1.2fr 1fr; gap:40px; align-items:center;
}
.story-text h2{ color:#a0522d; margin-bottom:12px; }
.story-text p{ margin-bottom:20px; }
.story-img img{ width:100%; border-radius:12px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
@media(max-width:900px){ .story-box{ grid-template-columns:1fr; } }

/* ========== Locations Preview ========== */
.locations-block { padding:70px 20px; background:#fafafa; text-align:center; }
.loc-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:25px; margin:30px auto; max-width:1000px;
}
.loc-card {
  background:#fff; border:1px solid #eee; border-radius:10px; padding:25px;
  transition:transform .2s; box-shadow:0 6px 18px rgba(0,0,0,.05);
}
.loc-card i{ font-size:2rem; color:#a0522d; margin-bottom:10px; }
.loc-card h3 { margin-bottom: 6px; }
.loc-card.open{ border:2px solid #a0522d; }
.loc-card:hover{ transform:translateY(-4px); }

/* ========== Testimonials ========== */
.testimonials-block { padding:80px 20px; background:#fff; text-align:center; }
.testimonials {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:25px; margin-top:30px;
}
.testimonial {
  background:#fafafa; border-radius:12px; padding:25px;
  box-shadow:0 6px 16px rgba(0,0,0,.05);
  font-size:.95rem; line-height:1.55;
}
.testimonial i{ font-size:1.2rem; color:#a0522d; margin-bottom:10px; }
.testimonial span{ display:block; margin-top:12px; font-weight:700; font-size:.9rem; }

/* ===== Franchise CTA (Upgraded) ===== */
.franchise-cta {
  background: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
  padding: 90px 20px;
}
.franchise-inner {
  max-width: 1100px; margin: auto;
  background: #fff; border-radius: 16px; padding: 50px;
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}
.franchise-text { text-align: left; }
.franchise-text i {
  font-size: 2.5rem; color: #a0522d; margin-bottom: 12px;
}
.franchise-text h2 {
  font-size: 2rem; color: #7a3c21; margin-bottom: 16px;
}
.franchise-text p {
  font-size: 1.05rem; margin-bottom: 24px; color: #444;
}
.franchise-img img {
  max-width: 100%; border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.franchise-cta .btn {
  background: #a0522d; color: #fff; border-radius: 8px;
}
.franchise-cta .btn:hover {
  background: #7a3c21;
}

/* Mobile */
@media(max-width: 900px){
  .franchise-inner { grid-template-columns: 1fr; text-align: center; }
  .franchise-text { text-align: center; }
  .franchise-text i { margin-bottom: 8px; }
}

/* ========== Menu Page Grid ========== */
.menu-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.menu-item {
  padding: 20px; border: 1px solid #eee; border-radius: 8px;
  background: #fafafa; text-align: center;
  transition: transform .15s ease, box-shadow .2s ease;
}
.menu-item:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,.06); }
.menu-item img {
  width: 100%; height: 160px; object-fit: cover;
  border-radius: 6px; margin-bottom: 12px;
}
.menu-item h3 { margin-bottom: 8px; color: #333; }
.menu-item p { font-size: .9rem; color: #555; }
.signature { border: 2px solid #a0522d; background: #fff8f3; }

/* ========== Footer ========== */
footer {
  background: #111; color: #ddd; padding: 40px 20px; text-align: center; margin-top: 60px;
}
footer img.logo { height: 40px; margin-bottom: 15px; }
footer p { font-size: 0.9rem; margin-top: 10px; }

/* ========== Responsive Tweaks ========== */
@media (max-width: 768px){
  .carousel { height: 65vh; }
  header { padding: 12px 16px; }
  nav ul { gap: 16px; font-weight: 600; }
}


/* ===== Locations Page (fixed) ===== */
.loc-hero { padding: 70px 20px; background: linear-gradient(135deg,#fdfcfb 0%,#e2d1c3 100%); }
.loc-hero-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.loc-hero h1 { color: #7a3c21; font-size: 2rem; margin-bottom: 8px; }
.loc-hero p { color: #444; margin-bottom: 16px; }
.loc-filters { display: inline-flex; gap: 10px; flex-wrap: wrap; }

.chip {
  border: 1px solid #e2c8b7; color: #7a3c21; background: #fff;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 700;
}
.chip.active, .chip:hover { background: #a0522d; color: #fff; border-color: #a0522d; }

.locations-page { padding: 40px 20px 10px; }
.loc-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px;
}

.loc-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 22px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .2s ease;
}
.loc-card:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(0,0,0,.09); }

.loc-card-top { margin-bottom: 12px; }
.loc-card h3 { color: #2d2d2d; margin: 6px 0 6px; }
.loc-address { color: #555; display: flex; align-items: center; gap: 10px; }
.loc-address i { color: #a0522d; }

.badge {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .02em;
  padding: 6px 10px; border-radius: 999px; margin-bottom: 8px;
}
.badge.open { background: #e8f6ee; color: #1f7a55; border: 1px solid #bfe7d2; }
.badge.soon { background: #fff3da; color: #7a4c0f; border: 1px solid #f4d9a6; }

.loc-meta { margin: 10px 0 14px; }
.loc-meta li {
  margin: 6px 0; color: #444;
  display: flex; align-items: center; gap: 10px;   /* keeps icon + text aligned */
}
.loc-meta i { color: #a0522d; min-width: 18px; text-align: center; }

.loc-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.loc-cta .btn { flex: 1 0 180px; }
.btn.ghost { background: #fff; color: #a0522d; border: 1px solid #a0522d; }
.btn.ghost:hover { background: #fff8f3; }

/* Notify form (coming-soon cards) */
.notify-form {
  margin: 8px 0 14px;
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
}
.notify-form input[type="email"]{
  border: 1px solid #e2c8b7; border-radius: 8px; padding: 10px 12px; font: inherit;
}
.notify-form .notify-msg{ color:#1f7a55; margin-top:6px; grid-column: 1 / -1; }
@media (max-width: 520px){
  .notify-form { grid-template-columns: 1fr; }
}

/* Map */
.map-wrap { padding: 40px 20px 80px; background: #fafafa; }
.map-inner { max-width: 1100px; margin: 0 auto; }


/* ===== Our Story Page ===== */
.story-hero {
  background: url('/assets/images/story-hero-bg.png') center/cover no-repeat;
  padding: 100px 20px;
  text-align: center;
  color: #fff;
}
.story-hero h1 { font-size: 2.5rem; margin-bottom: 10px; }
.story-hero p { font-size: 1.2rem; }

.our-story .container {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px;
  max-width: 1100px; margin: 0 auto; padding: 80px 20px;
  align-items: center;
}
.story-text h2 { color: #7a3c21; margin-bottom: 16px; }
.story-text p { margin-bottom: 16px; line-height: 1.6; color: #444; }
.story-text blockquote {
  margin: 24px 0; padding: 16px 20px; font-size: 1.1rem;
  background: #faf3eb; border-left: 4px solid #a0522d; color: #7a3c21;
}
.story-img img { width: 100%; border-radius: 14px; box-shadow: 0 8px 22px rgba(0,0,0,.08); }

.our-values { background: #fafafa; padding: 80px 20px; }
.our-values h2 { text-align: center; margin-bottom: 40px; color: #7a3c21; }
.values-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px;
  max-width: 1100px; margin: 0 auto;
}
.value-card {
  background: #fff; padding: 30px; text-align: center; border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.value-card i { font-size: 2rem; color: #a0522d; margin-bottom: 14px; }
.value-card h3 { margin-bottom: 10px; color: #333; }

.story-cta {
  padding: 80px 20px; text-align: center;
  background: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
}
.story-cta h2 { margin-bottom: 12px; color: #7a3c21; }
.story-cta p { margin-bottom: 22px; color: #444; }



/* ===== Franchise Page ===== */
.franchise-hero {
  background: url('/assets/images/story-hero-bg.png') center/cover no-repeat;
  padding: 120px 20px; text-align: center; color: #fff;
}
.franchise-hero h1 { font-size: 2.5rem; margin-bottom: 12px; }
.franchise-hero p { font-size: 1.2rem; margin-bottom: 20px; }
.franchise-hero .btn { background: #a0522d; }

.franchise-why { padding: 80px 20px; background: #fafafa; }
.franchise-why h2 { text-align: center; margin-bottom: 40px; color: #7a3c21; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px; }
.why-card {
  background: #fff; border-radius: 12px; padding: 30px; text-align: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
}
.why-card i { font-size: 2rem; color: #a0522d; margin-bottom: 12px; }

.franchise-investment { padding: 80px 20px; text-align: center; }
.investment-box {
  background: #fff8f3; border: 1px solid #f1d2bf; padding: 30px; border-radius: 12px;
  max-width: 600px; margin: 0 auto; font-size: 1.1rem;
}

.franchise-process { padding: 80px 20px; background: #fafafa; }
.franchise-process h2 { text-align: center; margin-bottom: 40px; color: #7a3c21; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 20px; }
.step {
  background: #fff; padding: 20px; border-radius: 12px; text-align: center;
  box-shadow: 0 6px 14px rgba(0,0,0,.05);
}
.step-num {
  display: inline-block; background: #a0522d; color: #fff;
  width: 36px; height: 36px; border-radius: 50%;
  line-height: 36px; font-weight: 700; margin-bottom: 10px;
}

.franchise-faq { padding: 80px 20px; }
.franchise-faq h2 { text-align: center; margin-bottom: 30px; color: #7a3c21; }
.faq-item { max-width: 700px; margin: 10px auto; border-bottom: 1px solid #eee; }
.faq-q {
  width: 100%; text-align: left; padding: 14px; background: none;
  border: none; font-size: 1.05rem; font-weight: 600; cursor: pointer;
}
.faq-a { display: none; padding: 0 14px 14px; color: #555; }

.franchise-form { padding: 80px 20px; background: #fafafa; text-align: center; }
.franchise-form h2 { margin-bottom: 20px; color: #7a3c21; }
.form-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 16px; max-width: 700px; margin: 0 auto;
}
.form-grid input {
  padding: 12px 14px; border: 1px solid #ccc; border-radius: 8px; font: inherit;
}

.form-msg {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ===== Fancy Hero ===== */
.fancy-hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(160,82,45,.65), rgba(122,60,33,.55)),
    url('/assets/images/story-hero-bg.png') center/cover no-repeat;
  padding: 130px 20px 90px;
  color: #fff; text-align: center; overflow: hidden;
}
.fancy-hero .hero-inner { max-width: 900px; margin: 0 auto; }
.fancy-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 12px; }
.fancy-hero p { font-size: 1.15rem; margin-bottom: 20px; opacity: .95; }

.hero-stats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.pill {
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25);
  padding: 8px 12px; border-radius: 999px; backdrop-filter: blur(6px);
  font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
}

/* floating shapes */
.shape { position: absolute; pointer-events: none; opacity: .25; filter: blur(1px); }
.bean-1 { width: 140px; height: 140px; background: radial-gradient(closest-side,#fff,transparent 70%); top: -30px; left: -20px; border-radius: 50% 40% 60% 50%/50% 60% 40% 60%; }
.bean-2 { width: 180px; height: 180px; background: radial-gradient(closest-side,#fff,transparent 70%); bottom: -40px; right: -20px; border-radius: 50% 50% 40% 60%/60% 40% 60% 40%; }
.ring-1 { width: 360px; height: 360px; border-radius: 50%; border: 28px solid rgba(255,255,255,.08); top: 10%; right: 8%; }

/* ===== Why ===== */
.franchise-why { padding: 80px 20px; background: #fafafa; }
.franchise-why h2 { text-align: center; margin-bottom: 40px; color: #7a3c21; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px; }
.why-card {
  background: #fff; border-radius: 16px; padding: 28px; text-align: center;
  box-shadow: 0 10px 18px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 16px 28px rgba(0,0,0,.1); }
.why-card i { font-size: 2rem; color: #a0522d; margin-bottom: 12px; }

/* ===== Investment (glass) ===== */
.franchise-investment { padding: 80px 20px; text-align: center; }
.investment-box.glass {
  max-width: 680px; margin: 0 auto; padding: 30px;
  border-radius: 16px; background: rgba(255,255,255,.7);
  border: 1px solid rgba(160,82,45,.25);
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}

/* ===== Process timeline ===== */
.franchise-process { padding: 80px 20px; background: #fff; }
.franchise-process h2 { text-align: center; margin-bottom: 40px; color: #7a3c21; }
.process-grid {
  position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 20px; max-width: 1100px; margin: 0 auto;
}
.step {
  background: #fafafa; padding: 22px; border-radius: 14px; text-align: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
}
.step .icon {
  display:inline-flex; align-items:center; justify-content:center;
  width:48px; height:48px; border-radius:50%;
  background:#a0522d; color:#fff; margin-bottom:10px;
  box-shadow: 0 6px 14px rgba(160,82,45,.35);
}
.timeline-line {
  content:""; position:absolute; left: 50%; transform: translateX(-50%);
  top: -10px; bottom: -10px; width: 3px; background: linear-gradient(#f1d2bf,#a0522d,#f1d2bf);
  border-radius: 3px; opacity: .25; display: none;
}
@media (min-width: 900px){
  .process-grid { grid-template-columns: repeat(5, 1fr); }
  .timeline-line { display: block; top: 40px; bottom: 40px; }
}

/* ===== FAQ ===== */
.franchise-faq { padding: 80px 20px; }
.franchise-faq h2 { text-align: center; margin-bottom: 30px; color: #7a3c21; }
.faq-item { max-width: 800px; margin: 10px auto; border-bottom: 1px solid #eee; }
.faq-q {
  width: 100%; text-align: left; padding: 16px; background: none; border: none;
  font-size: 1.05rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.faq-q i { transition: transform .2s ease; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 16px 16px; color: #555; }

/* ===== Form ===== */
.franchise-form { padding: 80px 20px; background: #fafafa; text-align: center; }
.franchise-form h2 { margin-bottom: 20px; color: #7a3c21; }
.form-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 16px; max-width: 800px; margin: 0 auto; padding: 24px;
  background: #fff; border-radius: 16px; border: 1px solid #eee; box-shadow: 0 10px 22px rgba(0,0,0,.06);
}
.form-grid input, .form-grid select {
  padding: 12px 14px; border: 1px solid #d9d9d9; border-radius: 10px; font: inherit;
}
.form-grid .btn { grid-column: 1 / -1; }
.hp-field { display: none; } /* honeypot hidden */
.form-msg { margin-top: 12px; font-size: .95rem; font-weight: 500; }

/* ===== AOS-lite (simple fade-up) ===== */
.aos { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.aos.aos-in { opacity: 1; transform: translateY(0); }


/* ===== Franchise Opportunity Block ===== */
.franchise-opportunity {
  background: linear-gradient(135deg, #fdfcfb 0%, #f5e2d1 100%);
  padding: 80px 20px;
}
.franchise-opportunity h2 {
  text-align: center;
  margin-bottom: 50px;
  color: #7a3c21;
  font-size: 2rem;
}

/* Top section: Investment Snapshot + Why QDC */
.opp-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto 60px;
}
@media (max-width: 900px) {
  .opp-top { grid-template-columns: 1fr; }
}

.snap-grid {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}
.snap-card {
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 14px rgba(0,0,0,.06);
}
.snap-card i {
  font-size: 1.6rem;
  color: #a0522d;
}
.snap-label { font-size: 0.9rem; color: #666; }
.snap-value { font-size: 1.2rem; font-weight: 700; color: #333; }
.snap-note { font-size: 0.9rem; color: #555; }

.opp-whyqdc h3 {
  margin-bottom: 14px;
  color: #7a3c21;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: #444;
}
.checklist i {
  color: #a0522d;
  margin-top: 2px;
}

/* Middle section: Why Coffee + Requirements */
.opp-mid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 60px;
}
@media (max-width: 900px) {
  .opp-mid { grid-template-columns: 1fr; }
}
.opp-col h3 {
  margin-bottom: 14px;
  color: #7a3c21;
}

/* CTA */
.opp-cta {
  text-align: center;
}
.opp-cta .btn {
  background: #a0522d;
  color: #fff;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.opp-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(160,82,45,.3);
}

/* FAQ animated panel */
.faq-a {
  display: none;            /* hidden until opened first time */
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 16px 0;        /* padding-bottom added when open below */
}
.faq-item.open .faq-a {
  display: block;
  padding: 0 16px 16px;     /* restore bottom padding when open */
}

/* ===== Franchise Form (updated background like opportunity) ===== */
.franchise-form {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #fdfcfb 0%, #f5e2d1 100%);
}

.franchise-form h2 {
  margin-bottom: 20px;
  color: #7a3c21;
  font-size: 2rem;
}

.franchise-form .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  padding: 28px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eee;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
}

.franchise-form input,
.franchise-form select {
  padding: 12px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  font: inherit;
}

.franchise-form .btn {
  grid-column: 1 / -1;
  background: #a0522d;
  color: #fff;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}

.franchise-form .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(160, 82, 45, .3);
}

.franchise-form .form-msg {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: .95rem;
  font-weight: 500;
}

/* ===== Footer ===== */
.site-footer {
  background: #2a1a14;
  color: #f9f7f5;
  font-size: 0.95rem;
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  padding: 60px 20px;
}
.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #f5e2d1;
}
.footer-col p, .footer-col a {
  color: #ddd;
  margin-bottom: 10px;
  text-decoration: none;
}
.footer-col a:hover { color: #fff; }

/* Newsletter */
.newsletter-form {
  display: flex;
  margin-top: 10px;
}
.newsletter-form input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px 0 0 8px;
  font: inherit;
}
.newsletter-form button {
  padding: 0 16px;
  border: none;
  background: #a0522d;
  color: #fff;
  font-size: 1rem;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}
.newsletter-form button:hover {
  background: #7a3c21;
}
.newsletter-msg {
  margin-top: 6px;
  font-size: 0.85rem;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  padding: 20px;
}
.footer-bottom .socials {
  margin-bottom: 10px;
}
.footer-bottom .socials a {
  margin: 0 8px;
  color: #f5e2d1;
  font-size: 1.2rem;
}
.footer-bottom .socials a:hover { color: #fff; }


/* ===== Hero Carousel ===== */
.hero-carousel { position: relative; }
.carousel {
  position: relative;
  overflow: hidden;
  background: #000;           /* fallback while images load */
  color: #fff;
}
.carousel-track {
  display: flex;
  transition: transform .5s ease-in-out;
}
.slide {
  position: relative;
  min-width: 100%;
  height: clamp(360px, 60vw, 640px);
}
.slide picture, .slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.slide::after {               /* warm overlay for legibility */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.25), rgba(160,82,45,.25));
}
.slide-overlay {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto;
  padding: 20px; height: 100%;
  display: grid; align-content: center;
}
.slide-overlay h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 8px; }
.slide-overlay p { font-size: clamp(1rem, 2vw, 1.2rem); margin-bottom: 16px; }

/* Controls */
.nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.35); color:#fff; border: 1px solid rgba(255,255,255,.35);
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s ease;
}
.nav:hover { background: rgba(0,0,0,.55); }
.nav.prev { left: 12px; }
.nav.next { right: 12px; }

/* Dots */
.dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; gap: 8px; justify-content: center; }
.dots button {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.45); border: none; cursor: pointer;
}
.dots button.is-active { background: #fff; }

/* Buttons on hero (reuse your .btn styles if present) */
.hero-carousel .btn { background:#a0522d; color:#fff; }
.hero-carousel .btn.ghost { background:transparent; border:1px solid #fff; color:#fff; }

/* Prefers-reduced-motion: pause autoplay */
@media (prefers-reduced-motion: reduce) {
  .carousel[aria-busy="true"] .carousel-track { transition: none; }
}

/* ===== Hero Carousel Overlay Fix ===== */
.slide-overlay {
  position: relative;
  z-index: 2;
  max-width: 600px;        /* limit text width */
  margin: 0 auto;          /* center horizontally */
  padding: 40px 20px;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* keep text aligned left */
  text-align: left;
  color: #fff;
}

.slide-overlay h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.slide-overlay p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 20px;
  font-weight: 400;
}

.slide-overlay .btn {
  background: #a0522d;
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  transition: background .2s, transform .2s;
}
.slide-overlay .btn:hover {
  background: #7a3c21;
  transform: translateY(-2px);
}

/* ===== Base: fluid images & containers ===== */
img, picture, video, canvas { max-width: 100%; height: auto; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== Hero Carousel (responsive) ===== */
.hero-carousel { position: relative; }
.carousel { position: relative; overflow: hidden; background: #000; color: #fff; }
.carousel-track { display: flex; transition: transform .5s ease-in-out; will-change: transform; }
.slide { position: relative; min-width: 100%; height: clamp(340px, 62vw, 640px); }
.slide picture, .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.slide::after { content:""; position:absolute; inset:0; background: linear-gradient(135deg, rgba(0,0,0,.28), rgba(160,82,45,.22)); }

/* Overlay block: keep it narrow and readable on small screens */
.slide-overlay {
  position: relative; z-index: 2;
  max-width: 640px; margin: 0 auto; padding: 40px 20px; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left;
}
.slide-overlay h1 { font-size: clamp(1.8rem, 5vw, 3.4rem); line-height: 1.15; margin-bottom: 10px; }
.slide-overlay p  { font-size: clamp(1rem, 2.4vw, 1.25rem); margin-bottom: 18px; }

/* Hero buttons */
.hero-carousel .btn { background:#a0522d; color:#fff; padding: 12px 28px; border-radius: 999px; font-weight: 600; border: none; }
.hero-carousel .btn.ghost { background: transparent; border: 1px solid #fff; color: #fff; }

/* Arrow controls scale down on mobile */
.nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.35); color:#fff; border: 1px solid rgba(255,255,255,.35);
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
}
.nav:hover { background: rgba(0,0,0,.55); }
.nav.prev { left: 12px; }
.nav.next { right: 12px; }

/* Dots: larger tap targets on mobile */
.dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; gap: 8px; justify-content: center; }
.dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45); border: none; }
.dots button.is-active { background: #fff; }

/* ===== Fan Favorites (cards) ===== */
.favorites { padding: 60px 0; }
.fav-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.fav-card { background:#fff; border:1px solid #eee; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 18px rgba(0,0,0,.05); }
.fav-card img { width:100%; height: 220px; object-fit: cover; }
.fav-card .content { padding: 14px; }
.fav-card h3 { margin-bottom: 6px; }

/* ===== Why QDC (icon cards) ===== */
.why { padding: 70px 0; background: #fafafa; }
.why-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.why-card { background:#fff; border:1px solid #eee; border-radius:14px; padding: 24px; text-align:center; box-shadow: 0 8px 18px rgba(0,0,0,.05); }
.why-card i { font-size: 2rem; color:#a0522d; margin-bottom: 10px; }

/* ===== Testimonials ===== */
.testimonials { padding: 70px 0; }
.testimonials-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.testimonial { background:#fff; border:1px solid #eee; border-radius:14px; padding: 20px; box-shadow: 0 8px 18px rgba(0,0,0,.05); }

/* ===== CTA banner (Own a Franchise, etc.) ===== */
.cta-banner { position: relative; padding: clamp(40px, 8vw, 80px) 20px; color:#fff; text-align:center; }
.cta-banner .btn { background:#a0522d; color:#fff; padding:12px 26px; border-radius:999px; }

/* ===== Responsive Breakpoints ===== */

/* <= 1024px: reduce hero padding & grid columns to 3->2 */
@media (max-width: 1024px) {
  .slide { height: clamp(320px, 58vw, 560px); }
  .fav-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .testimonials-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* <= 768px: single-column cards; arrows smaller; overlay tighter */
@media (max-width: 768px) {
  .slide { height: clamp(300px, 64vw, 520px); }
  .slide-overlay { max-width: 520px; padding: 28px 18px; }
  .nav { width: 36px; height: 36px; }
  .fav-grid,
  .why-grid,
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* <= 520px: tighter text, bigger dots for thumbs, full-width buttons */
@media (max-width: 520px) {
  .slide-overlay h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .slide-overlay p  { font-size: 0.98rem; }
  .dots button { width: 11px; height: 11px; }
  .hero-carousel .btn { width: auto; }
}

/* Accessibility: prefers reduced motion disables transitions */
@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none !important; }
}


/* ===== Header/nav responsiveness & CTA overflow fix ===== */

/* Layout container */
.site-header .header-inner,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap; /* allow second row when space is tight */
}

/* Logo */
.site-header .logo {
  display: inline-flex;
  align-items: center;
  max-height: 56px;
}

/* Nav links row */
.primary-nav,
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* Individual links */
.primary-nav a,
.site-nav a {
  display: inline-block;
  padding: 10px 6px;
  font-weight: 600;
  white-space: nowrap;
}

/* CTA button: make position static so it doesn't overflow */
.cta-primary,
.header-cta,
.nav-cta,
.own-franchise-btn {
  position: static !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #a0522d;
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 4px 10px rgba(160,82,45,.18);
}
.cta-primary:hover,
.header-cta:hover,
.nav-cta:hover,
.own-franchise-btn:hover {
  background: #7a3c21;
}

/* Keep the CTA as the last item in nav rows */
.nav-right { margin-left: auto; }

/* ========== Breakpoints ========== */

/* Tablet: tighten gaps & fonts so everything fits in one row */
@media (max-width: 1024px) {
  .primary-nav, .site-nav { gap: 18px; }
  .primary-nav a, .site-nav a { font-size: 16px; }
  .cta-primary, .header-cta, .nav-cta, .own-franchise-btn { padding: 9px 14px; font-size: 14px; }
  .site-header .logo { max-height: 50px; }
}

/* Phone: collapse links and show hamburger (CSS hooks below) */
.nav-toggle {
  display: none;
  border: 0; background: transparent; color: #333; font-size: 28px; line-height: 1;
}
@media (max-width: 768px) {
  .nav-toggle { display: inline-block; }
  /* hide the nav by default on mobile; we'll toggle it with JS */
  .primary-nav,
  .site-nav {
    display: none;
    width: 100%;
    order: 3;                 /* push below logo row */
    background: #fff;
    border-top: 1px solid #eee;
    padding: 10px 0;
  }
  .primary-nav.open,
  .site-nav.open { display: flex; flex-direction: column; gap: 10px; }
  .primary-nav a, .site-nav a { padding: 10px 20px; }
  .cta-primary, .header-cta, .nav-cta, .own-franchise-btn {
    align-self: flex-start;
    margin-left: 20px;
  }
}

/* ===== Sticky header so menu anchors from the top ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
}

/* ===== Mobile menu: slide-down panel + overlay ===== */
@media (max-width: 768px) {
  /* overlay behind the drawer */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 999; /* just below the panel */
  }
  body.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
  }

  /* the menu panel itself */
  .primary-nav,
  .site-nav {
    position: fixed;
    left: 0; right: 0;
    top: var(--header-h, 64px); /* fallback if we can't measure */
    height: calc(100vh - var(--header-h, 64px));
    background: #fff;
    display: flex !important;
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    border-top: 1px solid #eee;
    box-shadow: 0 14px 28px rgba(0,0,0,.12);
    transform: translateY(-110%);
    transition: transform .28s ease;
    z-index: 1001; /* above overlay */
  }
  .primary-nav.open,
  .site-nav.open {
    transform: translateY(0);
  }

  /* big, comfy tap targets */
  .primary-nav a,
  .site-nav a {
    display: block;
    padding: 14px 20px;
    font-size: 18px;
    border-bottom: 1px solid #f4f4f4;
    color: #222;
  }

  /* CTA inside panel */
  .primary-nav .own-franchise-btn,
  .site-nav .own-franchise-btn,
  .primary-nav .nav-cta,
  .site-nav .nav-cta,
  .primary-nav .header-cta,
  .site-nav .header-cta {
    margin: 12px 20px;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
  }

  /* lock page scroll when menu open */
  body.nav-open { overflow: hidden; }
}


/* ===== Header layout ===== */
header.site-header,
header:not(.site-header) { /* support if you didn't move the class */
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

header.site-header,
header:not(.site-header) {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
}

header .logo { height: 48px; width: auto; display: block; }
header .cta-btn {
  margin-left: auto;
  background: #a0522d;
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
header .cta-btn:hover { background: #7a3c21; }

/* nav row */
.primary-nav { order: 2; }
.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 26px;
}
.primary-nav a {
  text-decoration: none; color: #222; font-weight: 600; padding: 10px 4px;
}

/* hamburger */
.nav-toggle {
  margin-left: auto; /* sits before nav on desktop, but we hide it */
  display: none;
  border: 0; background: transparent; color: #333; font-size: 28px; line-height: 1;
}

/* ===== Mobile drawer & overlay ===== */
@media (max-width: 768px) {
  .nav-toggle { display: inline-block; order: 2; }
  header .cta-btn { order: 4; }

  /* full-width drawer under header */
  .primary-nav {
    position: fixed;
    left: 0; right: 0;
    top: calc(var(--header-h, 64px));
    height: calc(100vh - var(--header-h, 64px));
    background: #fff;
    transform: translateY(-110%);
    transition: transform .28s ease;
    box-shadow: 0 14px 28px rgba(0,0,0,.12);
    z-index: 1001;
  }
  .primary-nav.open { transform: translateY(0); }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0;
    overflow-y: auto;
    height: 100%;
  }
  .primary-nav li a {
    display: block;
    padding: 14px 20px;
    font-size: 18px;
    border-bottom: 1px solid #f4f4f4;
    color: #222;
  }

  /* CTA inside panel for better UX on phones */
  header .cta-btn {
    position: fixed;
    left: 20px; right: 20px;
    bottom: 20px;
    z-index: 1002;
    text-align: center;
  }

  /* overlay behind drawer */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 999;
  }
  body.nav-open .nav-overlay {
    opacity: 1; visibility: visible;
  }

  /* lock scroll when menu open */
  body.nav-open { overflow: hidden; }
}

/* Tablet tweaks */
@media (max-width: 1024px) {
  header .logo { height: 44px; }
  .primary-nav ul { gap: 18px; }
}

/* Mobile CTA should NOT be fixed by default */
@media (max-width: 768px) {
  header .cta-btn {
    position: static;        /* reset */
    width: auto;             /* no full-width pill */
    align-self: center;      /* sits nicely in header row */
    margin-left: 0;
    z-index: 1;
  }

  /* Only float the CTA when the nav drawer is open */
  body.nav-open header .cta-btn {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: auto;
    text-align: center;
    z-index: 1002;           /* above overlay/panel */
  }
}

/* Reset the page edge + prevent hairline gaps */
html, body {
  margin: 0;
  padding: 0;
  background: #fff;              /* same as header bg */
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Make layout math predictable */
*, *::before, *::after { box-sizing: border-box; }

/* Images shouldn't create inline gaps */
img { display: block; }

/* Ensure sticky/fixed header doesn't show a 1px seam on iOS */
header.site-header, header {
  background: #fff;
}
@supports (-webkit-touch-callout: none) {
  header.site-header, header {
    transform: translateZ(0);    /* promote to its own layer (prevents hairline) */
  }
}

/* When the mobile drawer is open, be sure the overlay truly covers from 0 */
.nav-overlay { top: 0; }

/* If you still see a sliver when the drawer is open, make the panel start at 0 then offset inner list */
@media (max-width: 768px) {
  .primary-nav {
    top: 0;                      /* remove potential subpixel gap */
    height: 100vh;
  }
  /* we keep the header visible by adding top padding equal to header height */
  .primary-nav ul {
    padding-top: var(--header-h, 64px);
  }
}

/* Toggle icons: show burger by default, X when menu open */
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-burger { display: none; }
body.nav-open .nav-toggle .icon-close  { display: inline; }

/* Menu CTA inside the drawer */
.primary-nav .cta-li { display: none; }          /* hidden on desktop */
.primary-nav .menu-cta {
  display: inline-block;
  background: #a0522d; color: #fff;
  padding: 12px 16px; border-radius: 12px;
  font-weight: 700; text-align: center; width: 100%;
}

/* Mobile behavior */
@media (max-width: 768px) {
  /* Show ONLY logo + toggle in header bar */
  header .cta-btn { display: none; }             /* hide desktop CTA on mobile */
  .primary-nav .cta-li { display: block; }       /* show menu CTA as last item */

  /* Make the menu CTA stand out with spacing inside panel */
  .primary-nav .cta-li { padding: 12px 20px; }
  .primary-nav .menu-cta { width: 100%; }
}

/* ===== Header toggle icon swap ===== */
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-burger { display: none; }
body.nav-open .nav-toggle .icon-close { display: inline; }

/* Ensure overlay truly covers the page and drawer starts from top on mobile */
.nav-overlay { top: 0; } /* safety */
@media (max-width: 768px) {
  .primary-nav {
    top: 0;                  /* start at viewport top */
    height: 100vh;           /* full height; header remains visible because content shifts under it */
    /* add inner spacing so links don’t hide under header */
    padding-top: calc(var(--header-h, 64px) + 8px);
  }
}

/* --- FORCE FIX: mobile toggle icon visibility & stacking --- */

/* Make sure the toggle sits on top */
.nav-toggle{
  position: relative;
  z-index: 1003;           /* above overlay and drawer */
  appearance: none;
  background: transparent;
  border: 0;
  width: 44px;             /* tap target */
  height: 44px;
  display: inline-block;
  cursor: pointer;
}

/* If you had old burger bars or pseudo-elements, neutralize them */
.nav-toggle .bar { display: none !important; }
.nav-toggle::before,
.nav-toggle::after { content: none !important; }

/* Position icons exactly on top of each other */
.nav-toggle .icon-burger,
.nav-toggle .icon-close{
  position: absolute;
  inset: 0;                        /* top:0; right:0; bottom:0; left:0 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;                 /* visible size */
  line-height: 1;
  color: #1b1b1b !important;       /* ensure not white-on-white */
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;            /* clicks go to button, not spans */
}

/* Swap using aria-expanded so it’s independent of body classes */
.nav-toggle[aria-expanded="false"] .icon-burger{ opacity: 1; }
.nav-toggle[aria-expanded="true"]  .icon-close { opacity: 1; }

/* Ensure overlay/drawer are below the toggle */
.nav-overlay{ z-index: 1000; }
.primary-nav{ z-index: 1001; }

/* --- Mobile menu clickability & stacking fix --- */

/* Overlay always below the menu */
.nav-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.54);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
body.nav-open .nav-overlay{
  opacity: 1;
  visibility: visible;
}

/* Menu panel ABOVE overlay and positioned */
.primary-nav{
  position: fixed;          /* critical: enables z-index */
  inset: 0;                 /* full-screen panel (you can turn this into a drawer later) */
  background: #fff;
  z-index: 1002;            /* > overlay (1000) */
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform .25s ease;
  pointer-events: none;     /* off until open */
}
.primary-nav.open{
  transform: translateY(0);
  pointer-events: auto;     /* links now receive clicks */
}

/* Ensure the toggle stays on top */
.nav-toggle{ z-index: 1003; position: relative; }

/* Add top padding so content isn't under the header */
.primary-nav .nav-list{ padding-top: calc(var(--header-h, 64px) + 12px); }


/* ===== FINAL STACKING FIX (put at very end of CSS) ===== */

/* 1) Ensure the header creates a high stacking context */
.site-header{
  position: relative;
  z-index: 10000;   /* header + its children sit above overlay */
}

/* 2) Overlay BELOW header/menu */
.nav-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.54);
  z-index: 9000;    /* lower than .site-header */
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
body.nav-open .nav-overlay{
  opacity: 1;
  visibility: visible;
}

/* 3) Mobile panel ABOVE overlay and clickable */
.primary-nav{
  position: fixed;        /* fixed to viewport (independent of other flows) */
  inset: 0;               /* full-screen panel; change to a drawer if you want */
  background: #fff;
  z-index: 10001;         /* above overlay (9000) and header base (10000) */
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform .25s ease;
  pointer-events: none;   /* off until open */
}
.primary-nav.open{
  transform: translateY(0);
  pointer-events: auto;   /* links get clicks */
}

/* 4) Toggle (the “X”) sits on top of everything */
.nav-toggle{
  position: relative;
  z-index: 10002;
}

/* 5) Icon swap that doesn't depend on body class */
.nav-toggle .icon-burger,
.nav-toggle .icon-close{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; line-height: 1;
  color: #1b1b1b !important;
  opacity: 0; transition: opacity .2s ease;
  pointer-events: none;
}
.nav-toggle[aria-expanded="false"] .icon-burger{ opacity: 1; }
.nav-toggle[aria-expanded="true"]  .icon-close { opacity: 1; }

/* 6) Neutralize any old bars/pseudo elements that may cover the X */
.nav-toggle .bar{ display: none !important; }
.nav-toggle::before, .nav-toggle::after{ content: none !important; }

/* 7) Padding so links aren't under the header */
.primary-nav .nav-list{ padding-top: calc(var(--header-h, 64px) + 12px); }

.nav-overlay{
    display:none;
}



/* --- Carousel: fix black gap, force full-bleed images --- */
.carousel{
  position: relative;
  width: 100%;
  max-height: 70vh;              /* keeps it from growing too tall */
  aspect-ratio: 16 / 9;          /* default aspect */
  background: transparent;       /* no black backdrop */
  overflow: hidden;              /* hide edges when sliding */
}


/* Track should be a flex strip; each slide = 100% width of viewport */
.carousel-track{
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .35s ease;
}

/* Each slide occupies the full viewport */
.carousel-slide{
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}

/* Make images actually fill the slide */
.carousel-slide img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;     /* <-- stretches to fill without squish */
  object-position: center;
}

/* Optional: ensure nav buttons/dots sit on top */
.carousel .nav,
.carousel .dots{ position: absolute; z-index: 2; }

@media (max-width: 768px){
  .carousel { margin: 0 !important; }
  .carousel:where(.container, .wrapper, .section) { padding: 0 !important; }
}

/* Stickman feature block */
.stickman-block{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
  margin: 1.5rem auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  max-width: 900px;
}

/* Stickman image */
.stickman-block img{
  flex: 0 0 160px;
  max-width: 160px;
  height: auto;
  display: block;
}

/* Text content */
.stickman-content{
  flex: 1 1 300px;
}

/* Typography tweaks */
.stickman-content h3{
  font-size: 1.4rem;
  font-weight: 700;
  color: #4b2e1e; /* brand brown */
  margin-bottom: .5rem;
}
.stickman-content p{
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #333;
}

/* List with icons */
.stickman-content ul{
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.stickman-content li{
  margin-bottom: .6rem;
  position: relative;
  padding-left: 1.6rem;
}
.stickman-content li::before{
  content: "•";
  color: #a35224;   /* coffee accent */
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: 0;
}

/* CTA button */
.stickman-content .btn{
  display: inline-block;
  background: #7a3e21;
  color: #fff;
  padding: .6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.stickman-content .btn:hover{
  background: #5a2d18;
}



/* Carousel: intrinsic height, no forced vh on mobile */
.carousel{ 
  position: relative;
  width: 100%;
  height: auto;                 /* let content define height */
  background: #000;             /* avoid white flash during load */
  overflow: hidden;
  margin: 0;                    /* no extra outer space */
}
.carousel-track{ display:flex; width:100%; transition:transform .35s ease; }
.carousel-track, .carousel-slide{ height:auto; }
.carousel-slide{ flex:0 0 100%; position:relative; }
.carousel-slide img{ display:block; width:100%; height:auto; object-fit:cover; }

/* Remove any padding on the hero wrapper that creates a gap */
.hero, .hero *[class*="hero"]{ padding-bottom:0 !important; }

/* Kill large top padding on the section after the hero (mobile) */
@media (max-width: 768px){
  .hero + section, .hero + .section, .hero + .home-section{
    margin-top: 0 !important;
    padding-top: 12px !important;
  }
}

/* --- HERO CAROUSEL FINAL PATCH --- */

/* Kill the old 80vh and absolute-slide system */
.carousel { height: auto !important; background: transparent !important; }
.carousel-slide, .carousel-slide.active { display: none !important; }  /* not used by current markup */

/* Make the current system authoritative */
.carousel-track{
  display: flex;
  width: 100%;
  height: auto !important;
  transition: transform .35s ease;
}
.slide{
  position: relative;
  min-width: 100%;
  height: clamp(340px, 62vw, 640px);   /* keep one height rule only */
  margin: 0;
}
.slide picture, .slide img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

/* Ensure the section after the hero doesn't add big spacing */
.hero-carousel + section,
.hero-carousel + .section,
.hero-carousel + .home-section{
  margin-top: 0 !important;
  padding-top: 12px !important;
}

/* Optional: if you see a black bar while loading, set a neutral bg */
.hero-carousel { background: #fff; }

/* Centered Stickman block */
.stickman-block{
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.stickman-block img{
  margin: 0 auto 1rem;
}

.stickman-content{
  flex: unset;
  max-width: 600px;
}

/* Center list items */
.stickman-content ul{
  text-align: left;       /* keep bullets aligned left */
  display: inline-block;  /* but center the whole list */
}

/* Center button */
.stickman-content .btn{
  margin: 1rem auto 0;
}


/* ===== Franchise Page (responsive) ===== */
.section-pad{ padding: 48px 0; }
.section-pad.alt{ background: #faf8f6; }
.center{ text-align: center; }
.muted{ color: #6b6b6b; }

/* Hero */
.franchise-hero{
  position: relative;
  background: linear-gradient(180deg, rgba(15,23,42,.65), rgba(15,23,42,.35)), url('/assets/images/story-hero-bg.png') center/cover no-repeat;
  color: #fff;
  padding: clamp(56px, 10vw, 120px) 0 clamp(32px, 6vw, 64px);
}
.franchise-hero .sub{ max-width: 56ch; margin: 8px 0 20px; }
.franchise-hero .hero-stats{
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px;
}
.franchise-hero .pill{
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.22);
  padding: 8px 12px; border-radius: 999px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}

/* Why grid */
.why-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}
@media (min-width: 640px){
  .why-grid{ grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 992px){
  .why-grid{ grid-template-columns: repeat(3,1fr); }
}
.why-card{
  background: #fff; border-radius: 14px; padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.why-card i{ color: #7a3e21; font-size: 22px; }
.why-card h3{ margin: 8px 0 6px; }

/* Process: horizontal scroll on mobile, grid on desktop */
.process-steps{
  display: grid; grid-template-columns: repeat(6, minmax(220px,1fr));
  gap: 12px; overflow-x: auto; padding: 8px 2px; scroll-snap-type: x mandatory;
}
.process-steps .step{
  background: #fff; border:1px solid #eee; border-radius: 12px; padding: 14px;
  scroll-snap-align: start; min-height: 120px;
}
.process-steps .num{
  width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center;
  background: #7a3e21; color:#fff; font-weight: 700; margin-bottom: 6px;
}
@media (min-width: 992px){
  .process-steps{ grid-template-columns: repeat(6, 1fr); overflow: visible; }
}

/* Requirements */
.reqs-grid{
  display: grid; gap: 14px; margin-top: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 992px){
  .reqs-grid{ grid-template-columns: repeat(3,1fr); }
}
.req{
  background:#fff; border-radius:12px; padding:16px; box-shadow:0 8px 24px rgba(0,0,0,.05);
}

/* FAQ */
.faq{ max-width: 900px; margin: 0 auto; }
.faq-item{ border-bottom:1px solid #eee; }
.faq-q{
  width:100%; text-align:left; padding:14px 0; font-weight:700; cursor:pointer;
  background:none; border:none;
}
.faq-a{ padding: 0 0 12px; }

/* Form */
.form-card{
  background:#fff; border-radius:16px; box-shadow:0 12px 28px rgba(0,0,0,.08);
  padding: 16px; margin-top: 18px;
}
.form-card .grid{
  display:grid; gap:12px; grid-template-columns: 1fr;
}
@media (min-width: 768px){
  .form-card .grid{ grid-template-columns: repeat(2,1fr); }
  .form-card .grid .field:nth-child(5){ grid-column: 1 / -1; } /* textarea spans two columns */
}
.field label{ display:block; font-weight:600; margin-bottom:6px; }
.field input, .field select, .field textarea{
  width:100%; border:1px solid #ddd; border-radius:10px; padding:10px 12px; font:inherit;
  background:#fff;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: 2px solid #7a3e21; outline-offset: 1px; border-color:#7a3e21;
}
.hp-field{ position:absolute; left:-9999px; }

/* Buttons */
.btn{ display:inline-block; padding:.6rem 1.1rem; border-radius:999px; font-weight:700; text-decoration:none; }
.btn-primary{ background:#7a3e21; color:#fff; }
.btn-primary:hover{ background:#5a2d18; }


/* ===== Our Story page ===== */

/* Hero */
.story-hero{
  position: relative;
  min-height: clamp(300px, 48vw, 560px);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}
.story-hero .hero-inner{ position: relative; z-index: 2; }
.story-hero .hero-inner h1{ font-size: clamp(28px, 6vw, 48px); margin-bottom: 8px; }
.story-hero .hero-inner p{ max-width: 60ch; margin: 0 auto 14px; }
.story-hero .hero-bg{ position:absolute; inset:0; z-index:1; }
.story-hero .hero-bg img{ width:100%; height:100%; object-fit:cover; filter: brightness(.65); }

/* Origin block */
.origin-grid{
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px){
  .origin-grid{ grid-template-columns: 320px 1fr; }
}
.origin-visual img{
  width: 100%;
  max-width: 260px;
  display: block;
  margin: 0 auto;
}
.origin-copy h2{ margin-bottom: 8px; }
.bullets{ list-style: none; padding: 0; margin: 10px 0 14px; }
.bullets li{ padding-left: 1.2rem; position: relative; margin-bottom: 6px; }
.bullets li::before{
  content: "";
  width: .5rem; height: .5rem; border-radius: 999px;
  background: #7a3e21; position: absolute; left: 0; top: .45rem;
}

/* Timeline */
.story-timeline.alt{ background: #faf8f6; }
.timeline{
  margin: 20px auto 0; max-width: 900px; position: relative;
}
.timeline::before{
  content: ""; position: absolute; left: 12px; top: 0; bottom: 0;
  width: 2px; background: #e9e4df;
}
.t-item{ display: grid; grid-template-columns: 32px 1fr; gap: 12px; margin-bottom: 16px; }
.t-dot{
  width: 12px; height: 12px; border-radius: 999px; background: #7a3e21; margin-top: 6px;
}
.t-card{
  background:#fff; border:1px solid #eee; border-radius:12px; padding:12px 14px; box-shadow:0 8px 20px rgba(0,0,0,.05);
}
@media (min-width: 768px){
  .timeline::before{ left: 50%; transform: translateX(-50%); }
  .t-item{ grid-template-columns: 1fr 1fr; }
  .t-item:nth-child(odd) .t-card{ grid-column: 1; }
  .t-item:nth-child(odd) .t-dot{ grid-column: 2; justify-self: center; }
  .t-item:nth-child(even) .t-card{ grid-column: 2; }
  .t-item:nth-child(even) .t-dot{ grid-column: 1; justify-self: center; }
}

/* Values */
.values-grid{
  display:grid; gap:14px; grid-template-columns:1fr;
  margin-top: 14px;
}
@media (min-width: 780px){
  .values-grid{ grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 1100px){
  .values-grid{ grid-template-columns: repeat(4,1fr); }
}
.v-card{
  background:#fff; border:1px solid #eee; border-radius:14px; padding:16px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
  text-align:left;
}
.v-card i{ color:#7a3e21; font-size:22px; }

/* Photos band */
.photos-grid{
  display:grid; gap:10px; grid-template-columns:1fr 1fr; align-items:stretch;
}
.photos-grid .ph{ border-radius:14px; overflow:hidden; }
.photos-grid img{ width:100%; height:100%; object-fit:cover; display:block; }
@media (min-width: 900px){
  .photos-grid{ grid-template-columns: 2fr 1fr 1fr; }
}

/* CTA */
.story-cta .cta-card{
  background:#fff; border-radius:16px; padding:24px; text-align:center;
  box-shadow:0 12px 28px rgba(0,0,0,.08); max-width:960px; margin:0 auto;
}
.story-cta .cta-actions{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }

/* Utilities already present on your site */
.section-pad{ padding:48px 0; }
.section-pad.alt{ background:#faf8f6; }
.center{ text-align:center; }
.btn{ display:inline-block; padding:.6rem 1.1rem; border-radius:999px; font-weight:700; text-decoration:none; background:#ececec; color:#222; }
.btn-primary{ background:#7a3e21; color:#fff; }
.btn-primary:hover{ background:#5a2d18; }


/* Default: desktop shows nav, hides burger */
.primary-nav {
  display: block;
}
.nav-toggle {
  display: none;
}

/* Mobile: hide nav, show burger */
@media (max-width: 768px) {
  .primary-nav {
    display: none;
  }
  .primary-nav.open {
    display: block;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
  }
}

/* === DESKTOP HEADER RESET (override mobile overlay) === */
@media (min-width: 992px){
  /* show full nav; hide burger */
  .nav-toggle{ display:none !important; }

  /* turn off the overlay-style panel */
  .primary-nav{
    position: static !important;
    inset: auto !important;
    transform: none !important;
    height: auto !important;
    background: transparent !important;
    display: block !important;
    z-index: auto !important;
    pointer-events: auto !important;
    overflow: visible !important;
  }

  /* inline list */
  .primary-nav > ul{
    display: flex !important;
    align-items: center;
    gap: 24px;
    padding: 0;
    margin: 0;
  }

  /* remove any mobile borders/spacers */
  .primary-nav li{ border: 0 !important; }

  /* hide the menu CTA duplicate on desktop; keep the header CTA */
  .primary-nav .cta-li{ display:none !important; }
  .cta-btn{ display:inline-flex !important; }

  /* optional: keep overlay inert on desktop */
  .nav-overlay{ display:none !important; }
}


