
:root {
  --dark: #0f4a5a;
  --dark-2: #0c3e4b;
  --light: #ffffff;
  --card: #ffffff;
  --accent: #c89a6a;
  --accent-light: #e4c5a0;
  --text: #0b2e38;
  --muted: #5c7680;
  --bg-light: #f8fafb;
  --border: #e1e8eb;
}

* { 
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px; /* Base font size - allows user browser settings to scale */
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem; /* 16px base, scales with user preferences */
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  padding-top: 80px; /* Account for fixed nav */
}

@media (max-width: 991px) {
  body {
    padding-top: 70px; /* Account for fixed nav height on mobile */
  }
}

/* ---------- NAV ---------- */

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .4s ease, transform .4s ease;
  z-index: 100;
  flex-wrap: wrap;
  gap: 16px;
}

.nav.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav img {
  height: 32px;
}

.nav-branding {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-branding a {
  display: flex;
  align-items: center;
}

.nav-branding .branding-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  display: block;
  flex-shrink: 0;
}

.nav-branding .branding-text {
  font-size: 1rem; /* 16px */
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Ensure full branding is visible on mobile */
@media (max-width: 767px) {
  .nav-branding {
    gap: 12px;
    min-width: 0;
    flex: 0 1 auto;
  }
  
  .nav-branding .branding-divider {
    display: block;
    flex-shrink: 0;
  }
  
  .nav-branding .branding-text {
    font-size: 0.875rem; /* 14px */
    display: block;
    white-space: nowrap;
    overflow: visible;
  }
  
  .nav-branding img {
    flex-shrink: 0;
  }
}

@media (min-width: 768px) {
  .nav-branding .branding-divider {
    display: block;
  }

  .nav-branding .branding-text {
    font-size: 1.0625rem; /* 17px */
  }
}

/* Bootstrap Navbar within S0 */
.nav .navbar {
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: flex-end;
}

/* Desktop Navigation */
.nav .navbar-nav-desktop {
  display: none; /* Hidden by default, shown on desktop */
  align-items: center;
}

.nav .navbar-nav-desktop .navbar-nav {
  gap: 8px;
  align-items: center;
  flex-direction: row;
}

.nav .nav-link {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem; /* 15px */
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

/* Navigation CTA Button */
.nav-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.9375rem; /* 15px */
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(200, 154, 106, 0.25);
  margin-left: 8px;
}

.nav-cta-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 154, 106, 0.35);
  color: #1a1a1a;
}

.nav .nav-link:hover {
  color: var(--accent);
  background: rgba(200, 154, 106, 0.1);
}

.nav .nav-link.active {
  color: var(--accent);
  font-weight: 600;
  background: rgba(200, 154, 106, 0.15);
}

/* Dropdown Menu Styling */
.nav .dropdown-toggle {
  cursor: pointer;
}

.nav .dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  margin-top: 8px;
  min-width: 220px;
}

.nav .dropdown-item {
  padding: 10px 20px;
  font-size: 0.9375rem; /* 15px */
  color: var(--text);
  transition: all 0.2s ease;
}

.nav .dropdown-item:hover {
  background: rgba(200, 154, 106, 0.1);
  color: var(--accent);
}

.nav .dropdown-item.active {
  background: rgba(200, 154, 106, 0.15);
  color: var(--accent);
  font-weight: 600;
}

.nav .dropdown-divider {
  margin: 8px 0;
  border-color: rgba(0, 0, 0, 0.1);
}

/* Mobile dropdown styling */
.offcanvas-body .collapse .nav-link {
  font-size: 0.9375rem;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.9);
}

.offcanvas-body .collapse .nav-link.active {
  background: rgba(200, 154, 106, 0.2);
  color: var(--accent-light);
}

/* Mobile Hamburger Button */
.nav .navbar-toggler {
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  background: transparent;
  margin: 0;
  display: none;
}

.nav .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(200, 154, 106, 0.25);
}

.nav .navbar-toggler i {
  font-size: 1.5rem; /* 24px */
  color: var(--text);
  display: inline-block;
  line-height: 1;
}

/* Mobile Offcanvas Styles - Slide from right */
.offcanvas {
  z-index: 1050;
  background: rgba(15, 74, 90, 0.75);
  backdrop-filter: blur(30px) saturate(250%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
}

.offcanvas-end {
  width: 280px;
  max-width: 85vw;
}

.offcanvas-backdrop {
  z-index: 1040;
  background-color: rgba(0, 0, 0, 0.8);
}

.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offcanvas-title {
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.offcanvas-body {
  padding: 24px;
}

.offcanvas-body .navbar-nav {
  flex-direction: column;
  gap: 8px;
}

.offcanvas-body .nav-item {
  width: 100%;
}

.offcanvas-body .nav-link {
  display: block;
  padding: 14px 16px;
  width: 100%;
  text-align: left;
  border-radius: 8px;
  font-size: 1rem; /* 16px */
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}

.offcanvas-body .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Mobile Navigation CTA Button */
.nav-cta-btn-mobile {
  display: block;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1rem; /* 16px */
  padding: 14px 20px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(200, 154, 106, 0.3);
  margin-top: 8px;
}

.nav-cta-btn-mobile:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 154, 106, 0.4);
  color: #1a1a1a;
}

.offcanvas-body .nav-link.active {
  background: rgba(200, 154, 106, 0.2);
  color: var(--accent-light);
}

/* Close button styling for teal background */
.offcanvas-header .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.offcanvas-header .btn-close:hover {
  opacity: 1;
}

/* Mobile styles */
@media (max-width: 991px) {
  .nav {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  
  .nav-branding {
    flex: 0 1 auto;
    min-width: 0;
    overflow: visible;
  }
  
  .nav .navbar {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
  }
  
  /* Show hamburger on mobile */
  .nav .navbar-toggler {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0;
  }
  
  /* Hide desktop nav on mobile - override Bootstrap utilities if needed */
  .nav .navbar-nav-desktop,
  .nav .navbar-nav-desktop .navbar-nav,
  .nav .d-lg-flex {
    display: none !important;
  }
  
  /* Ensure offcanvas is visible when opened */
  .offcanvas.show {
    visibility: visible;
  }
}

/* Desktop styles */
@media (min-width: 992px) {
  .nav .navbar-toggler {
    display: none !important;
  }
  
  .nav .navbar-nav-desktop {
    display: flex !important;
  }
  
  /* Hide offcanvas backdrop on desktop */
  .offcanvas-backdrop {
    display: none !important;
  }
}

/* ---------- GLOBAL ---------- */

section {
  padding: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  letter-spacing: -0.03em;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Highlight styling - replaces underline emphasis */
.highlight {
  background: linear-gradient(120deg, rgba(200, 154, 106, 0.3) 0%, rgba(200, 154, 106, 0.2) 100%);
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 500;
  text-decoration: none;
  display: inline;
}

/* ---------- SECTION INDICATORS (DEV ONLY - REMOVE BEFORE LAUNCH) ---------- */
.section-indicator {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(200, 154, 106, 0.9);
  color: #fff;
  font-size: 0.75rem; /* 12px */
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 1;
  font-family: 'Courier New', monospace;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  user-select: none;
}

section,
footer {
  position: relative;
}

.nav .section-indicator {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1;
}

/* ---------- BRANDING BANNER ---------- */

.branding-banner {
  background: var(--light);
  padding: 0;
  min-height: 0;
  position: relative;
  z-index: 10;
  /* Empty section placeholder - maintains section numbering */
}

/* ---------- STATIC BANNER (S1) ---------- */

.static-banner {
  background: var(--accent-light);
  color: #1a1a1a;
  padding: 0;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.static-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 40px;
  flex-wrap: wrap;
}

.static-banner-text {
  font-size: 0.9375rem; /* 15px */
  font-weight: 500;
  color: #1a1a1a;
  text-align: center;
}

.static-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 26, 26, 0.1);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.875rem; /* 14px */
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid rgba(26, 26, 26, 0.2);
}

.static-banner-cta:hover {
  background: rgba(26, 26, 26, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #1a1a1a;
}

.static-banner-cta i {
  font-size: 0.875rem;
  transition: transform 0.2s ease;
}

.static-banner-cta:hover i {
  transform: translateX(2px);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .static-banner-content {
    padding: 10px 24px;
    gap: 16px;
  }
  
  .static-banner-text {
    font-size: 0.875rem; /* 14px */
  }
  
  .static-banner-cta {
    font-size: 0.8125rem; /* 13px */
    padding: 5px 12px;
  }
}

.branding-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.branding-logo {
  height: 40px;
  opacity: 0.95;
}

.branding-text {
  font-size: 1rem; /* 16px */
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.branding-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  display: none;
}

/* Bootstrap Navbar in S1 */
.branding-banner .navbar {
  margin-top: 20px;
  padding: 0;
}

.branding-banner .navbar-nav {
  gap: 8px;
}

.branding-banner .nav-link {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem; /* 15px */
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.branding-banner .nav-link:hover {
  color: var(--accent);
  background: rgba(200, 154, 106, 0.1);
}

.branding-banner .nav-link.active {
  color: var(--accent);
  font-weight: 600;
  background: rgba(200, 154, 106, 0.15);
}

.branding-banner .navbar-toggler {
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  background: transparent;
  margin: 0 auto;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto;
  height: auto;
}

.branding-banner .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(200, 154, 106, 0.25);
}

.branding-banner .navbar-toggler i {
  font-size: 1.5rem; /* 24px */
  color: var(--text);
  display: inline-block;
  line-height: 1;
}

.branding-banner .navbar-collapse {
  margin-top: 16px;
}

/* Ensure hamburger is visible on mobile and menu is collapsed */
@media (max-width: 991px) {
  .branding-banner .navbar-toggler {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Hide navbar menu by default on mobile (Bootstrap's collapse class should handle this, but ensure it) */
  .branding-banner .navbar-collapse:not(.show) {
    display: none !important;
  }
  
  /* Show menu when toggled */
  .branding-banner .navbar-collapse.show {
    display: block !important;
    margin-top: 16px;
  }
}

@media (min-width: 768px) {
  .branding-divider {
    display: block;
  }
  
  .branding-text {
    font-size: 1.0625rem; /* 17px */;
  }
}

@media (min-width: 992px) {
  .branding-banner .navbar-toggler {
    display: none !important;
  }
  
  .branding-banner .navbar-collapse {
    margin-top: 0;
    display: flex !important;
  }
  
  .branding-banner .navbar-nav {
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }
}

/* ---------- HERO ---------- */

.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  /* Update 'hero-background.jpg' with your actual restaurant ambiance photo filename */
  background-image: url('../images/hero-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 74, 90, 0.85) 0%, rgba(12, 62, 75, 0.90) 100%);
  z-index: 1;
}

.hero .container-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(200, 154, 106, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(48px, 7vw, 72px);
  margin-bottom: 24px;
  line-height: 1.1;
  font-weight: 800;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero .tagline {
  font-size: clamp(20px, 2.5vw, 28px);
  margin-bottom: 16px;
  color: #e2f1f5;
  font-weight: 500;
}

.hero .subtext {
  font-size: 1.125rem; /* 18px */
  color: #b8d8e0;
  margin-bottom: 40px;
  max-width: 560px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Hero feature links - standard text links with custom colors */
.hero-feature-link {
  color: #c38f5d;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.hero-feature-link:hover {
  color: #c27b38;
  text-decoration-color: #c27b38;
}

.cta-primary {
  display: inline-block;
  background: var(--accent);
  padding: 18px 40px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.0625rem; /* 17px */
  color: #1a1a1a;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 16px rgba(200, 154, 106, 0.25);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(200, 154, 106, 0.35);
}

.hero-visual {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-visual > img {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  display: block;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: scrollIndicatorPulse 2s ease-in-out infinite;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 0.8;
}

.scroll-indicator-text {
  font-size: 0.875rem; /* 14px */
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.scroll-indicator-arrow {
  color: rgba(255, 255, 255, 0.9);
  animation: scrollIndicatorBounce 1.5s ease-in-out infinite;
}

@keyframes scrollIndicatorPulse {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes scrollIndicatorBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

.scroll-indicator:hover .scroll-indicator-arrow {
  transform: translateY(4px);
}

/* Metric ticker */
.metric-ticker {
  margin-top: 40px;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}

.metric-ticker::before,
.metric-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.metric-ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--dark-2), transparent);
}

.metric-ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--dark-2), transparent);
}

.metric-ticker-track {
  display: flex;
  gap: 16px;
  animation: scroll 20s linear infinite;
  width: fit-content;
}

.metric-ticker-track:hover {
  animation-play-state: paused;
}

.metric-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px 22px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  min-width: 150px;
  flex-shrink: 0;
}

.metric-value {
  font-size: 1.75rem; /* 28px */
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--accent);
}

.metric-label {
  font-size: 0.75rem; /* 12px */;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.metric-location {
  font-size: 0.625rem; /* 10px */;
  opacity: 0.7;
  margin-top: 4px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.metric-location.warning {
  color: #ffa500;
  opacity: 1;
  font-weight: 500;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Partner Logos Marquee */
.partner-logos-section {
  margin-top: 40px;
  width: 100%;
  max-width: 500px;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: hidden;
}

/* Override any parent container styles that might clip logos */
.key-benefits-visual .partner-logos-section {
  overflow: hidden; /* Keep section constrained */
}

.key-benefits-visual .partner-logos-marquee,
.key-benefits-visual .partner-logos-track,
.key-benefits-visual .partner-logo-item,
.key-benefits-visual .partner-logo {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.key-benefits-visual .partner-logo-item {
  overflow: visible !important; /* Allow logos to show fully */
}

.partner-logos-title {
  font-size: 1rem; /* 16px */
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* Partner Logos Tag Cloud */
.partner-logos-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 40px;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Data Sources Section */
.data-sources-section {
  margin-top: 40px;
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.data-sources-title {
  font-size: 1.125rem; /* 18px */
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 1;
}

.data-sources-intro {
  font-size: 0.9375rem; /* 15px */
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.6;
}

.data-sources-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}

.data-source-category {
  font-size: 0.9375rem; /* 15px */
  color: var(--text);
  line-height: 1.7;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.data-source-category:last-of-type {
  border-bottom: none;
}

.data-source-label {
  color: var(--text);
  font-weight: 700;
  text-align: right;
  min-width: 160px;
  flex-shrink: 0;
}

.data-source-pill {
  display: inline-block;
  background: rgba(200, 154, 106, 0.15);
  color: var(--text);
  padding: 3px 6px;
  border-radius: 10px;
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  border: 1px solid rgba(200, 154, 106, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.data-source-pill:hover {
  background: rgba(200, 154, 106, 0.25);
  border-color: rgba(200, 154, 106, 0.5);
  transform: translateY(-1px);
}

.data-sources-note {
  font-size: 0.875rem; /* 14px */
  color: var(--muted);
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-style: italic;
  opacity: 0.9;
}

.partner-logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  padding: 10px 15px;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
  transition: transform 0.3s ease;
  position: relative;
  cursor: pointer;
}

.partner-logo-item:hover {
  transform: translateY(-3px);
}

/* Tooltip */
.partner-logo-item::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(15, 74, 90, 0.95);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.partner-logo-item::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-2px);
  border: 6px solid transparent;
  border-top-color: rgba(15, 74, 90, 0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.partner-logo-item:hover::before,
.partner-logo-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.partner-logo {
  max-height: 70px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 1;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  transition: all 0.3s ease;
}

.partner-logo-item:hover .partner-logo {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Animation handled by JavaScript for precise control */

/* ---------- PRODUCT SHOWCASE ---------- */

.showcase {
  padding: 80px 0 120px;
  background: var(--bg-light);
}

.showcase-header {
  text-align: center;
  margin-bottom: 80px;
}

.showcase-header h2 {
  font-size: clamp(40px, 5vw, 56px);
  margin-bottom: 20px;
  color: var(--text);
}

.showcase-header p {
  font-size: 1.25rem; /* 20px */
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 0 20px;
  box-sizing: border-box;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.showcase-item {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform .3s ease, box-shadow .3s ease;
}

.showcase-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.showcase-item.large {
  grid-column: span 2;
}

.showcase-item img {
  width: 100%;
  display: block;
}

.showcase-caption {
  padding: 24px;
  font-size: 1rem; /* 16px */;
  color: var(--muted);
  font-weight: 500;
}

.showcase-item.large .showcase-caption {
  font-size: 1.125rem; /* 18px */;
  padding: 32px;
}

/* ---------- KEY BENEFITS (Automated Closing & Tips) ---------- */

.key-benefits {
  padding: 120px 0;
  background: var(--light);
  min-height: 200px; /* Ensure section is visible even when content is animating */
}

.key-benefits-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.key-benefits-text h2 {
  font-size: clamp(40px, 5vw, 56px);
  margin-bottom: 24px;
  color: var(--text);
}

.key-benefits-text p {
  font-size: 1.25rem; /* 20px */
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.key-benefits-text p strong {
  color: var(--text);
  font-weight: 700;
  background: linear-gradient(120deg, rgba(200, 154, 106, 0.2) 0%, rgba(200, 154, 106, 0.1) 100%);
  padding: 2px 4px;
  border-radius: 4px;
}

.key-benefits-visual {
  position: relative;
}

/* ---------- REUSABLE OVERLAPPING IMAGE EFFECT ---------- */
/*
  USAGE:
  Wrap images in .image-stack container:
  
  <div class="image-stack">
    <img src="base-image.jpg" class="overlap-base clickable-image" alt="Base image">
    <img src="overlap-image.jpg" class="overlap-layer clickable-image" alt="Overlap image">
  </div>
  
  OPTIONAL POSITION CLASSES (add to .overlap-layer):
  - .overlap-top-right (default: bottom-right)
  - .overlap-top-left
  - .overlap-bottom-left
  
  OPTIONAL SIZE CLASSES (add to .overlap-layer):
  - .overlap-small (18% width, max 180px)
  - .overlap-medium (22% width, max 220px) - DEFAULT
  - .overlap-large (28% width, max 300px)
  
  EXAMPLE:
  <div class="image-stack">
    <img src="desktop.jpg" class="overlap-base clickable-image">
    <img src="mobile.jpg" class="overlap-layer overlap-top-right overlap-small clickable-image">
  </div>
*/

.image-stack {
  position: relative;
  width: 100%;
}

/* Base image - the main/larger image */
.overlap-base {
  display: block;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Overlapping image - the smaller image that overlaps */
.overlap-layer {
  display: block;
  position: relative;
  width: 50%;
  max-width: 250px;
  margin: 24px auto 0;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transform: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Desktop: Create overlapping effect */
@media (min-width: 1024px) {
  .image-stack {
    position: relative;
  }

  .overlap-base {
    position: relative;
    z-index: 1;
  }

  .overlap-layer {
    position: absolute;
    right: -5%;
    bottom: -5%;
    width: 22%;
    max-width: 220px;
    margin: 0;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.9);
    transform: rotate(2deg);
  }

  .overlap-layer:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    z-index: 3;
  }
}

@media (min-width: 1200px) {
  .overlap-layer {
    right: -4%;
    bottom: -4%;
    width: 24%;
    max-width: 260px;
  }
}

/* Position variants - add these classes to .overlap-layer to change position */
@media (min-width: 1024px) {
  .overlap-layer.overlap-top-right {
    right: -5%;
    top: -5%;
    bottom: auto;
    z-index: 2;
    transform: rotate(-2deg);
  }

  .overlap-layer.overlap-top-left {
    left: -5%;
    top: -5%;
    right: auto;
    bottom: auto;
    z-index: 2;
    transform: rotate(2deg);
  }

  .overlap-layer.overlap-bottom-left {
    left: -5%;
    bottom: -5%;
    right: auto;
    z-index: 3;
    transform: rotate(-1.5deg);
  }

  .overlap-layer.overlap-bottom-right {
    right: -5%;
    bottom: -8%;
    left: auto;
    top: auto;
    z-index: 3;
    transform: rotate(1.5deg);
  }

  /* S4 specific: Larger landscape screenshot and adjusted portrait positioning */
  .time-savings-visual .overlap-base {
    max-width: 700px;
  }

  .time-savings-visual .overlap-layer.overlap-bottom-right {
    bottom: -5%;
    top: auto;
    width: 18%;
    max-width: 200px;
  }

  /* Multiple layers - ensure proper stacking */
  .image-stack .overlap-layer:nth-of-type(2) {
    z-index: 2;
  }

  .image-stack .overlap-layer:nth-of-type(3) {
    z-index: 3;
  }

  .image-stack .overlap-layer:nth-of-type(4) {
    z-index: 4;
  }

  .overlap-layer:hover {
    z-index: 10 !important;
  }

  /* Larger overlap layers for landscape images (like in S3) */
  .key-benefits-visual .overlap-layer {
    width: 30%;
    max-width: 350px;
  }

  .key-benefits-visual .overlap-layer.overlap-top-right {
    width: 32%;
    max-width: 380px;
  }

  .key-benefits-visual .overlap-layer.overlap-bottom-left {
    width: 32%;
    max-width: 380px;
  }
}

/* Size variants - add these classes to .overlap-layer to change size */
@media (min-width: 1024px) {
  .overlap-layer.overlap-small {
    width: 18%;
    max-width: 180px;
  }

  .overlap-layer.overlap-medium {
    width: 22%;
    max-width: 220px;
  }

  .overlap-layer.overlap-large {
    width: 28%;
    max-width: 300px;
  }
}

@media (min-width: 1200px) {
  .overlap-layer.overlap-small {
    width: 20%;
    max-width: 200px;
  }

  .overlap-layer.overlap-medium {
    width: 24%;
    max-width: 260px;
  }

  .overlap-layer.overlap-large {
    width: 30%;
    max-width: 320px;
  }

  /* Larger overlap layers for landscape images at larger screens */
  .key-benefits-visual .overlap-layer {
    width: 32%;
    max-width: 400px;
  }

  .key-benefits-visual .overlap-layer.overlap-top-right {
    width: 34%;
    max-width: 420px;
  }

  .key-benefits-visual .overlap-layer.overlap-bottom-left {
    width: 34%;
    max-width: 420px;
  }

  /* S4: Even larger landscape screenshot at larger screens */
  .time-savings-visual .overlap-base {
    max-width: 800px;
  }

  .time-savings-visual .overlap-layer.overlap-bottom-right {
    bottom: -5%;
    width: 20%;
    max-width: 220px;
  }
}

/* Legacy classes for backward compatibility - keep existing functionality */
.desktop-screenshot {
  display: block;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.hero-visual .desktop-screenshot {
  max-width: 600px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.portrait-screenshot {
  display: block;
  position: relative;
  width: 50%;
  max-width: 250px;
  margin: 24px auto 0;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transform: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 1024px) {
  .desktop-screenshot {
    position: relative;
    z-index: 1;
  }

  .portrait-screenshot {
    position: absolute;
    right: -5%;
    bottom: -5%;
    width: 22%;
    max-width: 220px;
    margin: 0;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.9);
    transform: rotate(2deg);
  }

  .portrait-screenshot:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    z-index: 3;
  }
}

@media (min-width: 1200px) {
  .portrait-screenshot {
    right: -4%;
    bottom: -4%;
    width: 24%;
    max-width: 260px;
  }
}

.key-benefits-visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Dark borders and intensified shadows for S3 screenshots (light background) */
.key-benefits-visual .overlap-base {
  border: 2px solid rgba(60, 60, 60, 0.3);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.key-benefits-visual .overlap-layer {
  border: 2px solid rgba(60, 60, 60, 0.3);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1024px) {
  .key-benefits-visual .overlap-layer {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  }

  .key-benefits-visual .overlap-layer:hover {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  }
}

/* Stacked screenshots for S3 */
.screenshot-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.stacked-screenshot {
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  display: block;
}

.image-caption {
  margin-top: 16px;
  padding: 20px;
  font-size: 1rem; /* 16px */;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  background: var(--bg-light);
  border-radius: 8px;
}

.image-caption-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #b8d8e0;
  backdrop-filter: blur(10px);
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 32px;
}

.benefits-list li {
  font-size: 1.125rem; /* 18px */
  color: var(--text);
  margin-bottom: 16px;
  padding-left: 32px;
  position: relative;
  line-height: 1.6;
}

.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.5rem; /* 24px */
}

/* ---------- TIME SAVINGS SECTION ---------- */

.time-savings {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  /* Update 'toast-background.jpg' with your actual toast/celebration photo filename */
  background-image: url('../images/toast-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.time-savings::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 74, 90, 0.85) 0%, rgba(12, 62, 75, 0.90) 100%);
  z-index: 1;
}
.time-savings::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 154, 106, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.time-savings .container {
  position: relative;
  z-index: 2;
}

.time-savings-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.time-savings-text h2 {
  font-size: clamp(40px, 5vw, 56px);
  margin-bottom: 24px;
  color: #fff;
}

.time-savings-text p {
  font-size: 1.25rem; /* 20px */
  color: #b8d8e0;
  margin-bottom: 24px;
  line-height: 1.7;
}

.time-savings-visual {
  position: relative;
  z-index: 2;
  padding-top: 20px;
}

.time-savings-visual .image-stack {
  padding-top: 30px;
  margin-top: -30px;
}

.time-savings-visual .image-caption {
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .time-savings-visual {
    padding-top: 40px;
  }

  .time-savings-visual .image-stack {
    padding-top: 50px;
    margin-top: -50px;
  }

  .time-savings-visual .image-caption {
    margin-top: 50px;
  }
}

.time-savings-text {
  position: relative;
  z-index: 2;
}

.time-savings-visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}

/* S4: Light borders and intensified shadows for screenshots */
.time-savings-visual .overlap-base {
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.time-savings-visual .overlap-layer {
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

@media (min-width: 1024px) {
  .time-savings-visual .overlap-base {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  }

  .time-savings-visual .overlap-layer {
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.55);
  }

  .time-savings-visual .overlap-layer:hover {
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  }
}

/* Testimonial Cards */
.testimonial-cards {
  margin-top: 40px;
  position: relative;
  min-height: 200px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  user-select: none;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.testimonial-photo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(200, 154, 106, 0.3);
}

.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-content {
  flex: 1;
}

.testimonial-quote {
  font-size: 1rem; /* 16px */;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 12px;
  font-style: italic;
}

.testimonial-role {
  font-size: 0.875rem; /* 14px */;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Manager card - base layer */
.testimonial-manager {
  position: relative;
  z-index: 1;
  transition: z-index 0.3s ease, transform 0.3s ease;
}

/* Server card - overlapping layer */
.testimonial-server {
  position: relative;
  margin-top: -60px;
  margin-left: 40px;
  z-index: 2;
  transform: rotate(-1deg);
  transition: z-index 0.3s ease, transform 0.3s ease;
}

.testimonial-server:hover {
  transform: rotate(0deg) translateY(-4px);
}

/* S4: Straight testimonial with no hover */
.time-savings-visual .testimonial-cards {
  margin-top: 30px;
}

.time-savings-visual .testimonial-card {
  transform: none;
  margin-top: 0;
  margin-left: 0;
}

.time-savings-visual .testimonial-card:hover {
  transform: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Swapped state - manager card on top */
.testimonial-cards.cards-swapped .testimonial-manager {
  z-index: 2;
  transform: rotate(1deg);
}

.testimonial-cards.cards-swapped .testimonial-manager:hover {
  transform: rotate(0deg) translateY(-4px);
}

.testimonial-cards.cards-swapped .testimonial-server {
  z-index: 1;
  transform: rotate(0deg);
}

@media (min-width: 1024px) {
  .testimonial-cards {
    margin-top: 50px;
  }

  .testimonial-card {
    padding: 28px;
  }

  .testimonial-photo {
    width: 90px;
    height: 90px;
  }

  .testimonial-quote {
    font-size: 1.0625rem; /* 17px */;
  }

  .testimonial-server {
    margin-top: -80px;
    margin-left: 60px;
    transform: rotate(-2deg);
  }

  /* S4: Straight testimonial at desktop */
  .time-savings-visual .testimonial-cards {
    margin-top: 40px;
  }

  .time-savings-visual .testimonial-card {
    margin-top: 0;
    margin-left: 0;
    transform: none;
  }

  .time-savings-visual .testimonial-card:hover {
    transform: none;
  }

  .testimonial-cards.cards-swapped .testimonial-manager {
    transform: rotate(2deg);
  }

  .testimonial-cards.cards-swapped .testimonial-manager:hover {
    transform: rotate(0deg) translateY(-4px);
  }

  .testimonial-cards.cards-swapped .testimonial-server {
    transform: rotate(0deg);
  }
}

@media (max-width: 768px) {
  .testimonial-cards {
    margin-top: 30px;
  }

  .testimonial-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .testimonial-photo {
    margin: 0 auto;
    width: 70px;
    height: 70px;
  }

  .testimonial-server {
    margin-top: 20px;
    margin-left: 0;
    transform: none;
  }

  .testimonial-quote {
    font-size: 0.9375rem; /* 15px */;
  }
}

/* ---------- MULTI-UNIT SECTION ---------- */

.multi-unit {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  /* Update 'multi-unit-background.jpg' with your actual multi-unit/restaurant overview photo filename */
  background-image: url('../images/multi-unit-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.multi-unit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 74, 90, 0.85) 0%, rgba(12, 62, 75, 0.90) 100%);
  z-index: 1;
}

.multi-unit::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 154, 106, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.multi-unit .container {
  position: relative;
  z-index: 2;
}

.multi-unit-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.multi-unit-text h2 {
  font-size: clamp(40px, 5vw, 56px);
  margin-bottom: 24px;
  color: #fff;
}

.multi-unit-text p {
  font-size: 1.25rem; /* 20px */;
  color: #b8d8e0;
  margin-bottom: 24px;
  line-height: 1.7;
}

.multi-unit .benefits-list li {
  color: #fff;
}

/* White background variant for multi-unit page */
.multi-unit-white {
  background: var(--light) !important;
  background-image: none !important;
  color: var(--text) !important;
}

.multi-unit-white::before,
.multi-unit-white::after {
  display: none;
}

.multi-unit-white .multi-unit-text h2 {
  color: var(--text);
}

.multi-unit-white .multi-unit-text p {
  color: var(--text);
}

.multi-unit-white .benefits-list li {
  color: var(--text);
}

.multi-unit-white .image-caption-dark {
  color: var(--text);
}

/* Feature page styling - white backgrounds for all content sections */
.feature-page .key-benefits,
.feature-page .showcase,
.feature-page .time-savings,
.feature-page .features,
.feature-page .personas,
.feature-page .ai-showcase {
  background: var(--light) !important;
  background-image: none !important;
  color: var(--text) !important;
}

.feature-page .key-benefits::before,
.feature-page .key-benefits::after,
.feature-page .showcase::before,
.feature-page .time-savings::before,
.feature-page .time-savings::after,
.feature-page .features::before,
.feature-page .personas::before,
.feature-page .ai-showcase::before {
  display: none;
}

.feature-page .key-benefits-text h2,
.feature-page .time-savings-text h2,
.feature-page .showcase-header h2,
.feature-page .features-header h2,
.feature-page .personas-header h2,
.feature-page .ai-text h2 {
  color: var(--text);
}

.feature-page .key-benefits-text p,
.feature-page .time-savings-text p,
.feature-page .showcase-header p,
.feature-page .features-header p,
.feature-page .personas-header p,
.feature-page .ai-text p {
  color: var(--text);
}

.feature-page .key-benefits .benefits-list li,
.feature-page .time-savings .benefits-list li {
  color: var(--text);
}

.feature-page .image-caption,
.feature-page .image-caption-dark {
  color: var(--text);
}

.feature-page .data-sources-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-page .data-source-label {
  color: var(--text);
}

.feature-page .highlight {
  color: var(--accent);
  background: rgba(200, 154, 106, 0.1);
}

.feature-page .testimonial-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
}

.feature-page .testimonial-quote,
.feature-page .testimonial-role {
  color: var(--text);
}

/* Screenshot placeholders */
.screenshot-placeholder {
  border-radius: 8px;
  transition: all 0.2s ease;
}

.screenshot-placeholder:hover {
  border-color: var(--accent);
  background: rgba(200, 154, 106, 0.05);
}

.multi-unit-visual {
  position: relative;
}

.multi-unit-visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ---------- VERTICAL SCROLLING SCREENSHOT ---------- */

.screenshot-scroll-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 500px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  background: #000;
  margin: 0 auto;
  z-index: 1;
}

/* When scrolling container is inside image-stack, ensure it works as base */
.image-stack .screenshot-scroll-container {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Ensure overlapping images appear above the scrolling container */
.image-stack .overlap-layer {
  z-index: 3;
}

/* Fade gradients at top/bottom for smooth edges */
.screenshot-scroll-container::before,
.screenshot-scroll-container::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 2;
  pointer-events: none;
}

.screenshot-scroll-container::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

.screenshot-scroll-container::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

/* The scrolling image */
.screenshot-scroll-image {
  width: 100%;
  height: auto;
  display: block;
  animation: scrollVertical 20s linear infinite;
}

.screenshot-scroll-image:hover {
  animation-play-state: paused;
}

/* Make scrolling container clickable */
.screenshot-scroll-container.clickable-image {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-scroll-container.clickable-image:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 80px rgba(0,0,0,0.4);
}

.screenshot-scroll-container.clickable-image:hover .screenshot-scroll-image {
  animation-play-state: paused;
}

@keyframes scrollVertical {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(-100% + 500px)); /* 500px matches container height */
  }
}

/* ---------- FEATURES ---------- */

.features {
  padding: 120px 0;
  background: var(--light);
}

.features-header {
  text-align: center;
  margin-bottom: 80px;
}

.features-header h2 {
  font-size: clamp(40px, 5vw, 56px);
  margin-bottom: 20px;
  color: var(--text);
}

.features-header p {
  font-size: 1.25rem; /* 20px */;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.feature-card-summary {
  max-width: 900px;
  margin: 0 auto 48px;
  text-align: center;
  background: linear-gradient(135deg, var(--card) 0%, rgba(200, 154, 106, 0.05) 100%);
  border: 2px solid var(--accent);
}

.feature-card-summary h3 {
  font-size: 2rem; /* 32px */;
  margin-bottom: 20px;
  color: var(--text);
}

.feature-card-summary p {
  font-size: 1.25rem; /* 20px */;
  line-height: 1.8;
  color: var(--text);
}

.feature-card-summary .summary-words {
  font-size: 2.25rem; /* 36px */;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .feature-card-summary .summary-words {
    font-size: 1.75rem; /* 28px */;
  }
}

.feature-card {
  background: var(--card);
  padding: 40px;
  border-radius: 16px;
  border: 2px solid var(--border);
  transition: all .3s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.feature-card h3 {
  font-size: 1.75rem; /* 28px */;
  margin-bottom: 16px;
  color: var(--text);
}

.feature-card p {
  font-size: 1.125rem; /* 18px */;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- USER PERSONAS ---------- */

.personas {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  /* Update 'personas-background.jpg' with your actual restaurant team/operators photo filename */
  background-image: url('../images/personas-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.personas::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 74, 90, 0.85) 0%, rgba(12, 62, 75, 0.90) 100%);
  z-index: 1;
}

.personas::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 154, 106, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.personas .container {
  position: relative;
  z-index: 2;
}

.personas-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.personas-header h2 {
  font-size: clamp(40px, 5vw, 56px);
  margin-bottom: 20px;
  color: #fff;
}

.personas-header p {
  font-size: 1.25rem; /* 20px */;
  color: #b8d8e0;
  max-width: 720px;
  margin: 0 auto;
}

.personas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.persona-card {
  background: var(--card);
  padding: 40px;
  border-radius: 16px;
  border: 2px solid var(--border);
  transition: all .3s ease;
}

.persona-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.persona-card h3 {
  font-size: 1.75rem; /* 28px */;
  margin-bottom: 12px;
  color: var(--text);
}

.persona-card .persona-role {
  font-size: 1rem; /* 16px */;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.persona-card p {
  font-size: 1.125rem; /* 18px */;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- AI CHAT SHOWCASE ---------- */

.ai-showcase {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  background-image: url('../images/personas-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.ai-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 74, 90, 0.85) 0%, rgba(12, 62, 75, 0.90) 100%);
  z-index: 1;
}

.ai-showcase::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 154, 106, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.ai-showcase .container-wide {
  position: relative;
  z-index: 2;
}

.ai-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.ai-text h2 {
  font-size: clamp(40px, 5vw, 56px);
  margin-bottom: 24px;
  color: #e2f1f5;
}

.ai-text p {
  font-size: 1.25rem; /* 20px */;
  color: #b8d8e0;
  margin-bottom: 32px;
  line-height: 1.7;
}

.ai-visual {
  position: relative;
}

.ai-visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
}

.ai-visual .image-caption {
  color: #b8d8e0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Darken AI caption on feature pages */
.feature-page .ai-visual .image-caption {
  color: var(--text);
  background: var(--bg-light);
  border: 1px solid var(--border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ---------- CTA SECTION ---------- */

.cta-section {
  padding: 120px 0;
  background: var(--light);
  color: var(--text);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  display: none;
}

.cta-section::after {
  display: none;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: clamp(40px, 5vw, 56px);
  margin-bottom: 24px;
  color: var(--text);
}

.cta-section p {
  font-size: 1.25rem; /* 20px */;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- FOOTER ---------- */

.footer {
  background: var(--dark-2);
  color: #fff;
  padding: 60px 0 40px;
  text-align: center;
}

.footer-main {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 32px;
  margin-bottom: 24px;
  opacity: 0.9;
}

.footer-tagline {
  color: #b8d8e0;
  font-size: 1rem; /* 16px */
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer Navigation */
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.footer-link {
  color: #b8d8e0;
  text-decoration: none;
  font-size: 0.875rem; /* 14px */
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-light);
}

.footer-link-active {
  color: var(--accent-light);
}

/* Footer CTA Button */
.footer-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.875rem; /* 14px */
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(200, 154, 106, 0.25);
  margin-left: 12px;
}

.footer-cta-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 154, 106, 0.35);
  color: #1a1a1a;
}

.footer-divider {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 8px;
}

/* Footer Legal */
.footer-legal {
  padding-top: 24px;
}

.footer-legal-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem; /* 12px */
  line-height: 1.6;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-legal-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-disclaimer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem; /* 14px */
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.footer-disclaimer em {
  font-style: italic;
  display: block;
  margin-bottom: 8px;
}

.footer-disclaimer em:last-child {
  font-size: 0.85em;
  margin-bottom: 0;
}

/* Legal Pages (Terms & Privacy) */
.legal-page {
  padding: 120px 0 80px;
  background: var(--light);
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: clamp(40px, 5vw, 56px);
  margin-bottom: 16px;
  color: var(--text);
  text-align: center;
}

.legal-page h2 {
  font-size: clamp(28px, 3.5vw, 36px);
  margin-top: 48px;
  margin-bottom: 24px;
  color: var(--text);
}

.legal-page h3 {
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text);
}

.legal-page h4 {
  font-size: 1rem; /* 16px */
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-page p {
  font-size: 1rem; /* 16px */
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-page ul,
.legal-page ol {
  font-size: 1rem; /* 16px */
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-page a:hover {
  color: var(--accent-light);
}

.legal-intro {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-intro p {
  font-size: 1.125rem; /* 18px */
  max-width: 800px;
  margin: 0 auto 24px;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-table-contents {
  background: var(--bg-light);
  padding: 32px;
  border-radius: 8px;
  margin-bottom: 48px;
}

.legal-table-contents h4 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 16px;
}

.legal-table-contents ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.legal-table-contents li {
  margin-bottom: 8px;
}

.legal-table-contents a {
  font-size: 0.875rem; /* 14px */
}

/* Cookie Consent Overlay */
.cookie-consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 74, 90, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  z-index: 9999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cookie-consent-text {
  flex: 1;
}

.cookie-consent-text h3 {
  font-size: 1.125rem; /* 18px */
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}

.cookie-consent-text p {
  font-size: 0.9375rem; /* 15px */
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.6;
}

.cookie-consent-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-consent-text a:hover {
  color: var(--accent-light);
}

.cookie-consent-actions {
  flex-shrink: 0;
}

.cookie-btn {
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.9375rem; /* 15px */
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(200, 154, 106, 0.25);
}

.cookie-btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 154, 106, 0.35);
}

/* Cookie Consent Responsive */
@media (max-width: 767px) {
  .cookie-consent {
    padding: 16px 0;
  }

  .cookie-consent-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0 20px;
  }

  .cookie-consent-text h3 {
    font-size: 1rem; /* 16px */
  }

  .cookie-consent-text p {
    font-size: 0.875rem; /* 14px */
  }

  .cookie-consent-actions {
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
  }
}

/* Footer Responsive */
@media (max-width: 767px) {
  .footer {
    padding: 40px 0 30px;
  }

  .footer-main {
    margin-bottom: 30px;
    padding-bottom: 30px;
  }

  .footer-tagline {
    font-size: 0.9375rem; /* 15px */
    margin-bottom: 24px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .footer-nav .footer-link {
    margin: 0;
  }

  .footer-nav .footer-divider {
    display: none;
  }

  .footer-cta-btn {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    text-align: center;
  }

  .footer-legal-text {
    flex-direction: column;
    gap: 4px;
    font-size: 0.6875rem; /* 11px */
  }

  .footer-legal-text .footer-divider {
    display: none;
  }
}

/* ---------- FLOATING ACTION BUTTON (FAB) ---------- */
.fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1a1a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(200, 154, 106, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

.fab.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.fab:hover {
  background: var(--accent-light);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(200, 154, 106, 0.5);
}

.fab:active {
  transform: scale(0.95);
}

.fab i {
  font-size: 1.5rem; /* 24px */
  line-height: 1;
}

/* FAB Responsive */
@media (max-width: 767px) {
  .fab {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }

  .fab i {
    font-size: 1.25rem; /* 20px */
  }
}

/* ---------- WALKTHROUGH REQUEST MODAL ---------- */
#walkthroughModal .modal-dialog {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

#walkthroughModal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#walkthroughModal .modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 24px 30px;
  flex-shrink: 0;
}

#walkthroughModal .modal-title {
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
  color: var(--text);
}

#walkthroughModal .modal-body {
  padding: 30px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

#walkthroughModal .form-label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 0.9375rem; /* 15px */
}

#walkthroughModal .form-control,
#walkthroughModal .form-select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 1rem; /* 16px */
  transition: all 0.2s ease;
}

#walkthroughModal .form-control:focus,
#walkthroughModal .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 154, 106, 0.1);
  outline: none;
}

#walkthroughModal .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 12px;
  padding-right: 40px;
  appearance: none;
}

#walkthroughModal .form-select.is-invalid {
  border-color: #dc3545;
}

#walkthroughModal .form-select.is-valid {
  border-color: #28a745;
}

#walkthroughModal .form-control.is-invalid {
  border-color: #dc3545;
}

#walkthroughModal .form-control.is-valid {
  border-color: #28a745;
}

#walkthroughModal .invalid-feedback {
  display: none; /* Hidden by default - Bootstrap shows it when field is invalid */
  font-size: 0.875rem; /* 14px */
  color: #dc3545;
  margin-top: 4px;
}

/* Show invalid feedback only when form is validated and field is invalid */
#walkthroughModal .was-validated .form-control:invalid ~ .invalid-feedback,
#walkthroughModal .was-validated .form-select:invalid ~ .invalid-feedback,
#walkthroughModal .form-control.is-invalid ~ .invalid-feedback,
#walkthroughModal .form-select.is-invalid ~ .invalid-feedback {
  display: block;
}

#walkthroughModal .text-danger {
  color: #dc3545;
}

#walkthroughModal .form-text {
  font-size: 0.8125rem; /* 13px */
  color: var(--muted);
}

#walkthroughModal .btn-primary {
  background: var(--accent);
  border: none;
  color: #1a1a1a;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem; /* 16px */
  transition: all 0.2s ease;
}

#walkthroughModal .btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 154, 106, 0.3);
}

#walkthroughModal .btn-primary:active {
  transform: translateY(0);
}

#walkthroughModal #captcha-container {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px dashed var(--border);
  text-align: center;
}

/* Modal Responsive */
@media (max-width: 767px) {
  #walkthroughModal .modal-dialog {
    margin: 20px;
    max-height: calc(100vh - 40px);
  }

  #walkthroughModal .modal-content {
    max-height: calc(100vh - 40px);
  }

  #walkthroughModal .modal-header,
  #walkthroughModal .modal-body {
    padding: 20px;
  }

  #walkthroughModal .modal-title {
    font-size: 1.25rem; /* 20px */
  }
}

/* ---------- ABOUT PAGE ---------- */

/* ---------- ABOUT PAGE ---------- */

/* About Intro Section */
.about-intro {
  padding: 120px 0 80px;
  background: var(--light);
}

.about-intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-intro h1 {
  font-size: clamp(48px, 6vw, 64px);
  margin-bottom: 24px;
  color: var(--text);
}

.about-tagline {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 40px;
  font-style: italic;
}

.about-intro-text {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.about-intro-text p {
  font-size: 1.25rem; /* 20px */
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* Founders Section */
.founders-section {
  padding: 100px 0;
  background: var(--dark);
}

.founders-heading {
  text-align: center;
  font-size: clamp(40px, 5vw, 56px);
  margin-bottom: 80px;
  color: #e2f1f5;
}

.founder-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 120px;
  position: relative;
}

.founder-card:last-of-type {
  margin-bottom: 60px;
}

/* Founders Closing Statement */
.founders-closing {
  text-align: center;
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
}

.founders-closing-text {
  font-size: 1.125rem; /* 18px */
  color: #b8d8e0;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  font-style: italic;
}

.founder-left .founder-visual {
  order: 1;
}

.founder-left .founder-content {
  order: 2;
}

.founder-right .founder-visual {
  order: 2;
}

.founder-right .founder-content {
  order: 1;
}

.founder-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.founder-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  z-index: 1;
  margin-bottom: -15px;
}

.founder-headshot {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
  display: block;
  object-fit: cover;
  aspect-ratio: 1;
}

.founder-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200, 154, 106, 0.1) 0%, rgba(15, 74, 90, 0.1) 100%);
  border-radius: 20px;
  pointer-events: none;
}

.founder-ambient-image {
  position: relative;
  width: 70%;
  max-width: 280px;
  margin: 0 auto;
  margin-top: -15px;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  z-index: 2;
}

.founder-ambient-image:hover {
  opacity: 1;
  transform: translateY(-5px);
}

.founder-ambient-image .ambient-photo {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25), 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: rotate(3deg);
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-ambient-image:hover .ambient-photo {
  transform: rotate(1deg) translateY(-3px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.founder-content {
  padding: 20px;
}

.founder-name {
  font-size: clamp(32px, 4vw, 42px);
  margin-bottom: 8px;
  color: #e2f1f5;
}

.founder-role {
  font-size: 1.125rem; /* 18px */;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.founder-bio p {
  font-size: 1.25rem; /* 20px */
  color: #b8d8e0;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* About Gallery */
.about-gallery {
  padding: 100px 0;
  background: var(--light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-large {
  grid-row: 1 / 3;
}

.gallery-item-wide {
  grid-column: 2 / 4;
}

/* Navigation link styling */
.nav-branding a,
.branding-content a {
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.nav-branding a:hover,
.branding-content a:hover {
  opacity: 0.8;
}

/* ---------- IMAGE MODAL / LIGHTBOX ---------- */

.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1rem; /* 16px */;
  text-align: center;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  max-width: 80%;
  backdrop-filter: blur(10px);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 2.5rem; /* 40px */;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: opacity 0.2s ease;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
  opacity: 0.7;
}

/* Clickable images - desktop only */
@media (min-width: 769px) {
  .clickable-image {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .clickable-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
  }
}

/* Hide clickable behavior on mobile */
@media (max-width: 768px) {
  .clickable-image {
    cursor: default;
  }
  
  .image-modal {
    display: none !important;
  }
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1024px) {
  .hero .container-wide {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .metric-ticker {
    margin-top: 30px;
  }
  
  .metric-card {
    min-width: 160px;
    padding: 18px 24px;
  }
  
  .metric-value {
    font-size: 1.75rem; /* 28px */;
  }
  
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  
  .showcase-item.large {
    grid-column: span 1;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .personas-grid {
    grid-template-columns: 1fr;
  }
  
  .ai-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .key-benefits-content,
  .time-savings-content,
  .multi-unit-content,
  .ai-content,
  .hero .container-wide {
    grid-template-columns: 1fr;
    gap: 40px;
    display: grid;
  }

  /* Make text containers use display: contents so their children become grid items */
  .key-benefits-text,
  .time-savings-text,
  .multi-unit-text,
  .ai-text,
  .hero-content {
    display: contents;
  }

  /* Title first */
  .key-benefits-text h2,
  .time-savings-text h2,
  .multi-unit-text h2,
  .ai-text h2,
  .hero-content h1 {
    order: 1;
    margin-bottom: 0;
  }

  /* S2 (Hero) - Content second, Images third */
  .hero-content p,
  .hero-content .subtext {
    order: 2;
    margin-top: 32px;
    margin-bottom: 32px;
  }

  .hero-content a.cta-primary {
    order: 2;
    margin-top: 0;
    margin-bottom: 48px;
  }

  .hero-visual {
    order: 3;
  }

  /* Other sections - Images second, Content third */
  .key-benefits-visual,
  .time-savings-visual,
  .multi-unit-visual,
  .ai-visual {
    order: 2;
  }

  .key-benefits-text p,
  .key-benefits-text ul,
  .key-benefits-text .benefits-list,
  .time-savings-text p,
  .time-savings-text ul,
  .multi-unit-text p,
  .multi-unit-text ul,
  .ai-text p {
    order: 3;
  }
}

@media (max-width: 768px) {
  .container, .container-wide {
    padding: 0 24px;
  }
  
  .branding-banner {
    padding: 20px 0;
  }
  
  .branding-banner .container {
    padding: 0 20px;
  }
  
  .branding-content {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  
  .branding-logo {
    height: 32px;
  }
  
  .branding-text {
    font-size: 0.8125rem; /* 13px */;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    flex: 0 1 auto;
  }
  
  .branding-divider {
    display: none;
  }

  .branding-banner .navbar {
    margin-top: 16px;
  }

  .branding-banner .nav-link {
    padding: 12px 16px;
    text-align: center;
  }

  .branding-banner .navbar-nav {
    background: var(--card);
    border-radius: 8px;
    padding: 8px;
    margin-top: 12px;
  }
  
  .hero {
    padding: 30px 0 60px; /* Reduced top padding since body accounts for nav */
    overflow: hidden;
  }
  
  .hero .container-wide {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 24px;
  }
  
  .hero h1 {
    word-break: break-word;
    hyphens: auto;
  }
  
  .hero .tagline,
  .hero .subtext {
    word-break: break-word;
    max-width: 100%;
  }
  
  .hero-content {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    padding: 0;
  }
  
  .hero-visual {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  
  .hero-visual > img {
    max-width: 100%;
    width: 100%;
    height: auto;
    box-sizing: border-box;
  }
  
  .metric-ticker {
    margin-top: 24px;
    padding: 16px 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .metric-ticker::before,
  .metric-ticker::after {
    width: 60px;
  }
  
  .metric-card {
    min-width: 130px;
    padding: 14px 18px;
  }
  
  .metric-value {
    font-size: 1.5rem; /* 24px */;
  }
  
  .metric-label {
    font-size: 0.75rem; /* 12px */;
  }
  
  .metric-location {
    font-size: 0.625rem; /* 10px */;
  }
  
  .key-benefits-content,
  .time-savings-content,
  .multi-unit-content {
    gap: 40px;
  }
  
  .showcase, .key-benefits, .time-savings, .multi-unit, .features, .personas, .ai-showcase, .cta-section {
    padding: 80px 0;
  }
  
  /* Vertical scrolling screenshot mobile adjustments */
  .screenshot-scroll-container {
    height: 400px;
    max-width: 100%;
  }
  
  /* Update animation to use mobile height - calc will adjust automatically */
  .screenshot-scroll-image {
    animation: scrollVerticalMobile 20s linear infinite;
  }
  
  @keyframes scrollVerticalMobile {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(calc(-100% + 400px)); /* Match mobile height */
    }
  }

  /* About Page Mobile Styles */
  .about-intro {
    padding: 80px 0 60px;
  }

  .about-intro-content {
    padding: 0 20px;
  }

  .about-intro h1 {
    font-size: 2.5rem; /* 40px */;
  }

  .about-tagline {
    font-size: 1.375rem; /* 22px */;
  }

  .about-intro-text {
    padding: 0;
  }

  .about-intro-text p {
    font-size: 1.125rem; /* 18px */
  }

  .founders-section {
    padding: 60px 0;
  }

  .founders-heading {
    font-size: 2.25rem; /* 36px */;
    margin-bottom: 50px;
    padding: 0 20px;
  }

  .founder-card {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 80px;
    padding: 0 20px;
  }

  .founder-left .founder-visual,
  .founder-right .founder-visual {
    order: 1;
  }

  .founder-left .founder-content,
  .founder-right .founder-content {
    order: 2;
  }

  .founder-image-wrapper {
    max-width: 300px;
  }

  .founder-ambient-image {
    max-width: 200px;
    margin-top: -10px;
  }

  .founder-image-wrapper {
    margin-bottom: -10px;
  }

  .founder-content {
    padding: 0;
    text-align: center;
  }

  .founder-name {
    font-size: 2rem; /* 32px */;
  }

  .founder-role {
    font-size: 1rem; /* 16px */;
  }

  .founder-bio p {
    font-size: 1.125rem; /* 18px */;
    text-align: left;
  }

  .founders-closing {
    margin-top: 40px;
    padding-top: 40px;
  }

  .founders-closing-text {
    font-size: 1rem; /* 16px */
  }

  .about-gallery {
    padding: 60px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
    padding: 0 20px;
  }

  .gallery-item {
    height: 250px;
  }

  .gallery-item-large {
    grid-row: auto;
  }

  .gallery-item-wide {
    grid-column: auto;
  }
  
  .showcase-header, .features-header, .personas-header {
    margin-bottom: 60px;
    padding: 0 20px;
  }
  
  .key-benefits-text h2,
  .time-savings-text h2,
  .multi-unit-text h2 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .key-benefits-text p,
  .time-savings-text p,
  .multi-unit-text p {
    font-size: 1.125rem; /* 18px */;
  }
  
  .showcase-header p,
  .features-header p,
  .personas-header p {
    font-size: 1.125rem; /* 18px */;
    padding: 0;
    max-width: 100%;
  }
  
  .showcase-header h2,
  .features-header h2,
  .personas-header h2 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 10px;
  }
  
  .feature-card {
    padding: 32px;
  }

  .feature-card-summary {
    margin-bottom: 32px;
  }

  .feature-card-summary h3 {
    font-size: 1.75rem; /* 28px */;
  }
  
  .nav {
    padding: 16px 24px;
  }

  .nav-links {
    gap: 16px;
  }
  
  .nav-link {
    font-size: 0.875rem; /* 14px */;
  }
  
  .nav a.cta {
    padding: 10px 20px;
    font-size: 0.875rem; /* 14px */;
  }

  .nav-branding .branding-divider {
    display: none;
  }

  .nav-branding .branding-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .container, .container-wide {
    padding: 0 20px;
  }
  
  .hero {
    padding: 20px 0 50px; /* Reduced top padding since body accounts for nav */
  }
  
  .hero .container-wide {
    padding: 0 20px;
    gap: 30px;
  }
  
  .hero h1 {
    font-size: 2.375rem; /* 38px */;
    line-height: 1.1;
  }
  
  .hero .tagline {
    font-size: 1.125rem; /* 18px */;
  }
  
  .hero .subtext {
    font-size: 1rem; /* 16px */;
  }
  
  .cta-primary {
    padding: 14px 28px;
    font-size: 0.9375rem; /* 15px */;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  
  .hero-visual > img {
    max-width: calc(100vw - 40px);
  }
  
  .metric-ticker {
    max-width: calc(100vw - 40px);
  }
  
  .metric-card {
    min-width: 120px;
    padding: 12px 16px;
  }
  
  .metric-value {
    font-size: 1.375rem; /* 22px */;
  }
  
  .metric-label {
    font-size: 0.6875rem; /* 11px */;
  }
  
  .metric-location {
    font-size: 0.5625rem; /* 9px */;
  }
  
  .branding-text {
    font-size: 0.75rem; /* 12px */;
  }
  
  .showcase-header p,
  .features-header p,
  .personas-header p {
    font-size: 1rem; /* 16px */;
  }
}

/* ---------- BREADCRUMB NAVIGATION ---------- */

.breadcrumb-nav {
  background: var(--bg-light);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  /* No margin-top needed - body padding-top already accounts for fixed nav */
}

.breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 0.875rem; /* 14px */
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--muted);
  padding: 0 8px;
}

.breadcrumb-item a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--accent);
}

.breadcrumb-item.active {
  color: var(--text);
  font-weight: 500;
}

/* ---------- FEATURE PAGE HERO ---------- */

.feature-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  /* Background image is set inline per page - fallback to default if not set */
  background-image: url('../images/hero-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.feature-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 74, 90, 0.85) 0%, rgba(12, 62, 75, 0.90) 100%);
  z-index: 1;
}

.feature-hero .container {
  position: relative;
  z-index: 2;
}

.feature-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.feature-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 16px;
  color: #fff;
  font-weight: 800;
}

.feature-tagline {
  font-size: 1.5rem; /* 24px */
  color: var(--accent-light);
  margin-bottom: 24px;
  font-weight: 600;
}

.feature-intro {
  font-size: 1.125rem; /* 18px */
  color: #fff;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .breadcrumb-nav {
    padding: 12px 0;
  }
  
  .feature-hero {
    padding: 40px 0 60px;
  }
  
  .feature-tagline {
    font-size: 1.25rem; /* 20px */
  }
  
  .feature-intro {
    font-size: 1rem; /* 16px */
  }
}

/* Feature link styling */
.feature-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem; /* 15px */
  transition: all 0.2s ease;
  display: inline-block;
  margin-top: 12px;
}

.feature-link:hover {
  color: var(--accent-light);
  transform: translateX(4px);
}

.cta-secondary {
  margin-top: 24px;
  font-size: 0.9375rem; /* 15px */
}

.cta-secondary a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cta-secondary a:hover {
  color: var(--accent);
}
