/* ─── FRANCHISE PAGE — hero + stats + why + support + investment + process + form ─── */

/* Geo float keyframes (page hero decorations) */
@keyframes heroGeoFloat1 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-25px) rotate(5deg); } }
@keyframes heroGeoFloat2 { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-18px) scale(1.05); } }
@keyframes heroGeoFloat3 { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(-15px) rotate(55deg); } }
@keyframes heroGeoSpin { to { transform: rotate(360deg); } }
@keyframes heroSlideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes badgePulse {
  0%, 100% { border-color: rgba(238,178,5,0.2); box-shadow: 0 0 0 0 rgba(238,178,5,0); }
  50% { border-color: rgba(238,178,5,0.5); box-shadow: 0 0 20px rgba(238,178,5,0.1); }
}

/* ─── PAGE HERO ─── */
.page-hero {
  min-height: 60vh; padding-top: 130px; padding-bottom: 5rem;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--dark);
}
.page-hero-bg-photo {
  position: absolute; inset: 0; z-index: 0;
  background: url('/photos/backgrounds/Rectangle 116.webp') center/cover no-repeat;
}
.page-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.78) 50%, rgba(0,0,0,0.88) 100%);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse 60% 50% at 20% 50%, rgba(238,178,5,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(238,178,5,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238,178,5,0.02) 1px, transparent 1px);
  background-size: 72px 72px; pointer-events: none;
}
.page-hero-geo { position: absolute; pointer-events: none; z-index: 3; }
.page-hero-geo svg { width: 100%; height: 100%; fill: none; stroke: var(--yellow); stroke-width: 1.5; }
.page-hero-geo-ring { border: 2px solid var(--yellow); border-radius: 50%; }
.page-hero-geo-diamond { border: 2px solid var(--yellow); }
.page-hero-inner {
  max-width: 860px; margin: 0 auto; padding: 0 2.5rem; width: 100%;
  position: relative; z-index: 5;
  animation: heroSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(238,178,5,0.1); border: 1px solid rgba(238,178,5,0.2);
  color: var(--yellow); font-family: var(--heading); font-weight: 600;
  font-size: 0.7rem; letter-spacing: 0.06em;
  padding: 0.55rem 1.1rem; margin-bottom: 1.75rem; border-radius: 50px;
  animation: badgePulse 3s ease-in-out infinite;
}
.page-eyebrow .dot { width: 7px; height: 7px; background: var(--yellow); border-radius: 50%; }
.page-hero h1 {
  font-family: var(--heading); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--white); margin-bottom: 1.25rem; letter-spacing: -0.04em;
  line-height: 1.1;
}
.page-hero h1 .yl { color: var(--yellow); }
.page-hero-sub {
  font-size: 1.1rem; color: var(--text-muted); max-width: 580px;
  line-height: 1.7; margin-bottom: 2.5rem;
}
.page-hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── STATS BAR ─── */
.stats-bar { background: var(--yellow); padding: 3.5rem 0; }
.stats-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 2.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  text-align: center;
}
.stat-val {
  font-family: var(--heading); font-size: 2.4rem; font-weight: 700;
  color: var(--dark); line-height: 1;
}
.stat-label {
  font-family: var(--heading); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(0,0,0,0.55); margin-top: 0.4rem;
}

/* ─── SECTION SHARED ─── */
.fr-sec { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }
.fr-eyebrow {
  font-family: var(--heading); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem;
}
.eye-yellow { color: var(--yellow); }
.eye-charcoal { color: var(--text-dark-secondary); }

/* ─── WHY SECTION (light) ─── */
.why-section {
  background: var(--off-white, #FAFAF8); color: var(--text-dark);
  padding: 6rem 0;
}
.why-section h2 {
  font-family: var(--heading); font-weight: 700;
  color: var(--text-dark); margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.1;
  letter-spacing: -0.03em;
}
.why-section .section-sub {
  color: var(--text-dark-secondary); font-size: 1.05rem;
  max-width: 540px; line-height: 1.7; margin-bottom: 3.5rem;
}
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why-card {
  background: var(--white); border: 1px solid var(--light-border); border-radius: 12px;
  padding: 2rem; transition: box-shadow 0.3s, transform 0.3s;
}
.why-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); transform: translateY(-4px); }
.why-icon {
  width: 48px; height: 48px; background: rgba(238,178,5,0.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
  font-size: 1.4rem;
}
.why-card h3 {
  font-family: var(--heading); font-weight: 700;
  color: var(--text-dark); font-size: 1.05rem; margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.why-card p { color: var(--text-dark-secondary); font-size: 0.9rem; line-height: 1.65; }

/* ─── SUPPORT SECTION (dark) ─── */
.support-section { background: var(--dark); padding: 6rem 0; }
.support-section h2 {
  font-family: var(--heading); font-weight: 700;
  color: var(--white); margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.1;
  letter-spacing: -0.03em;
}
.support-section .section-sub {
  color: var(--text-muted); font-size: 1.05rem;
  max-width: 540px; line-height: 1.7; margin-bottom: 3.5rem;
}
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.support-card {
  background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 12px;
  padding: 2rem; display: flex; gap: 1.25rem; align-items: flex-start;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.support-card:hover {
  border-color: rgba(238,178,5,0.25);
  box-shadow: 0 8px 30px rgba(238,178,5,0.06);
}
.support-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: rgba(238,178,5,0.08);
  border: 1px solid rgba(238,178,5,0.15); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.support-card h3 {
  font-family: var(--heading); font-weight: 700;
  color: var(--white); font-size: 0.98rem; margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.support-card p { color: var(--text-muted); font-size: 0.87rem; line-height: 1.6; }

/* ─── INVESTMENT SECTION (warm bg) ─── */
.investment-section {
  background: var(--warm-bg, #F5F2EC); padding: 6rem 0; color: var(--text-dark);
}
.investment-section h2 {
  font-family: var(--heading); font-weight: 700;
  color: var(--text-dark); margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.1;
  letter-spacing: -0.03em;
}
.investment-section .section-sub {
  color: var(--text-dark-secondary); font-size: 1.05rem;
  max-width: 540px; line-height: 1.7; margin-bottom: 3.5rem;
}
.invest-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-bottom: 3rem;
}
.invest-card {
  background: var(--white); border: 1px solid var(--light-border); border-radius: 12px;
  padding: 2rem; text-align: center;
}
.invest-label {
  font-family: var(--heading); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dark-muted); margin-bottom: 0.75rem;
}
.invest-value {
  font-family: var(--heading); font-size: 2rem; font-weight: 700;
  color: var(--yellow); line-height: 1; margin-bottom: 0.5rem;
}
.invest-note { font-size: 0.82rem; color: var(--text-dark-secondary); line-height: 1.5; }
.invest-disclaimer {
  font-size: 0.82rem; color: var(--text-dark-muted); line-height: 1.6;
  padding: 1.25rem; background: rgba(0,0,0,0.04); border-radius: 8px;
  border-left: 3px solid var(--yellow);
}

/* ─── PROCESS SECTION (dark) ─── */
.process-section { background: var(--dark-deep, #0f0f0f); padding: 6rem 0; }
.process-section h2 {
  font-family: var(--heading); font-weight: 700;
  color: var(--white); margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.1;
  letter-spacing: -0.03em;
}
.process-section .section-sub {
  color: var(--text-muted); font-size: 1.05rem;
  max-width: 540px; line-height: 1.7; margin-bottom: 3.5rem;
}
.process-steps { display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: grid; grid-template-columns: 64px 1fr; gap: 2rem; align-items: flex-start;
  padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
}
.process-step:last-child { border-bottom: none; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(238,178,5,0.08);
  border: 1.5px solid rgba(238,178,5,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--heading); font-weight: 700; font-size: 1rem;
  color: var(--yellow); flex-shrink: 0;
}
.step-content h3 {
  font-family: var(--heading); font-weight: 700;
  color: var(--white); font-size: 1.05rem; margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.step-content p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }
.step-tag {
  display: inline-block; font-family: var(--heading); font-size: 0.65rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.04);
  padding: 0.25rem 0.6rem; border-radius: 4px; margin-bottom: 0.5rem;
}

/* ─── FORM SECTION (brand concrete backdrop) ─── */
/* Matches the textured-concrete treatment on .deli, .menu-section--dark,
   the about page, and other dark sections so the franchise page reads as
   part of the same site. */
.form-section {
  padding: 6rem 0;
  position: relative; overflow: hidden; isolation: isolate;
  background:
    linear-gradient(rgba(46,45,50,0.2), rgba(46,45,50,0.2)),
    url('/photos/backgrounds/brand-concrete.jpg') center/cover no-repeat;
  background-color: var(--dark);
  border-top: 1px solid rgba(253,196,4,0.22);
  border-bottom: 1px solid rgba(253,196,4,0.22);
}
/* Soft yellow honey-glow vignettes on top of the concrete texture. */
.form-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(253,196,4,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(253,196,4,0.06) 0%, transparent 70%);
}
.form-section .fr-sec { position: relative; z-index: 2; }

/* Standalone variant: extra top space so it sits below the fixed nav comfortably
   when it's the only section on the page (no hero above). */
.form-section--standalone { padding-top: 9rem; min-height: calc(100vh - 4rem); }

/* Mega "FRANCHISE" watermark text behind the form (same pattern as .drinks-mega-bg). */
.franchise-mega-bg {
  position: absolute; top: 6rem; right: -3%; z-index: 0;
  font-family: var(--display); font-size: clamp(8rem, 20vw, 22rem);
  font-weight: 400; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(253,196,4,0.08);
  pointer-events: none; line-height: 0.85; text-transform: uppercase;
  user-select: none;
}

/* Animated hex / ring decorations to match the home + about geometric vibe. */
.franchise-geo {
  position: absolute; z-index: 0; pointer-events: none;
  display: inline-block;
}
.franchise-geo--hex svg {
  width: 100%; height: 100%;
  fill: rgba(253,196,4,0.07);
}
.franchise-geo--ring {
  border: 1.5px solid rgba(253,196,4,0.07);
  border-radius: 50%;
}
.form-layout {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 5rem; align-items: flex-start;
}
.form-intro h2 {
  font-family: var(--heading); font-weight: 700;
  color: var(--white); margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.1;
  letter-spacing: -0.03em;
}
.form-intro p {
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem;
}
.form-contact-info {
  display: flex; flex-direction: column; gap: 0.9rem; margin-top: 2rem;
}
.form-contact-item {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.88rem; color: var(--text-muted);
}
.form-contact-item svg { color: var(--yellow); flex-shrink: 0; }
.form-contact-item a { color: var(--text-muted); }
.form-contact-item a:hover { color: var(--yellow); }

.inquiry-form {
  background: var(--dark-card); border: 1px solid var(--dark-border);
  border-radius: 16px; padding: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group {
  display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem;
}
.form-group label {
  font-family: var(--heading); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--text-muted); text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark-surface, #242424);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: 0.85rem 1rem;
  font-family: var(--body); font-size: 0.9rem;
  color: var(--white); outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%; -webkit-appearance: none; appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem; cursor: pointer;
}
.form-group select option {
  background: var(--dark-surface, #242424); color: var(--white);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.25);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(238,178,5,0.4);
  box-shadow: 0 0 0 3px rgba(238,178,5,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-check {
  display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.5rem;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px; min-width: 18px;
  accent-color: var(--yellow); margin-top: 2px; cursor: pointer;
}
.form-check label {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; cursor: pointer;
}
.form-check label a { color: var(--yellow); }

.form-submit-btn {
  width: 100%; padding: 1rem 2rem;
  background: var(--yellow); color: var(--dark);
  font-family: var(--heading); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.02em; border-radius: 8px; cursor: pointer; border: none;
  transition: all 0.3s; min-height: 52px;
}
.form-submit-btn:hover {
  background: #d9a004; transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(238,178,5,0.35);
}
.form-note {
  font-size: 0.78rem; color: rgba(255,255,255,0.35);
  text-align: center; margin-top: 1rem; line-height: 1.5;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .invest-grid { grid-template-columns: repeat(2, 1fr); }
  .form-layout { grid-template-columns: 1fr; gap: 3rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .page-hero { min-height: 50vh; padding-bottom: 3rem; }
  .page-hero-inner { padding: 0 1.25rem; }
  .why-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .invest-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .fr-sec { padding: 0 1.25rem; }
  .why-section,
  .support-section,
  .investment-section,
  .process-section,
  .form-section { padding: 4rem 0; }
  /* Standalone form is the FIRST section on /franchise/ — needs extra
     top padding to clear the nav (~80px) + ticker (~36px) on mobile. */
  .form-section--standalone { padding-top: 8rem; }
}
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .inquiry-form { padding: 1.5rem; }
  .page-hero-ctas { flex-direction: column; }
  .page-hero-ctas .btn { width: 100%; }
}
