/* =====================================================
   SPECIALTEA LOUNGE & CAFE - Component Styles
   ===================================================== */

/* ===================
   RESET & BASE
   =================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--color-chalk);
  background-color: var(--color-chalkboard);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

body.no-webgl {
  background: url('/assets/images/bg.jpg') center center / cover fixed no-repeat;
  background-color: var(--color-chalkboard);
}

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

a {
  color: var(--color-tea-green-light);
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-default);
}

a:hover {
  color: var(--color-tea-green);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  color: var(--color-chalk);
}

h2 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
  color: var(--color-chalk-dim);
}

/* ===================
   ACCESSIBILITY
   =================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-tea-green);
  color: var(--color-chalkboard-dark);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  z-index: 10000;
  transition: top var(--duration-fast) var(--ease-default);
}

.skip-link:focus {
  top: var(--space-4);
  color: var(--color-chalkboard-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===================
   UTILITY CLASSES
   =================== */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.text-accent {
  font-family: var(--font-accent);
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
}

.text-green {
  color: var(--color-tea-green);
}

.text-amber {
  color: var(--color-amber);
}

.text-muted {
  color: var(--color-chalk-faint);
}

.font-accent {
  font-family: var(--font-accent);
}

.font-display {
  font-family: var(--font-display);
}

/* ===================
   CHALK DECORATIVE ELEMENTS
   =================== */

.chalk-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin: var(--space-6) auto;
  max-width: 300px;
}

.chalk-line::before,
.chalk-line::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-chalk-faint),
    transparent
  );
  opacity: 0.5;
}

.chalk-leaf {
  display: inline-block;
  width: 16px;
  height: 16px;
  position: relative;
}

.chalk-leaf::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--color-tea-green);
  border-radius: 50% 0 50% 0;
  transform: rotate(-45deg);
  top: 2px;
  left: 2px;
  opacity: 0.8;
}

.chalk-leaf::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 1px;
  background: var(--color-tea-green-dark);
  top: 9px;
  left: 4px;
  transform: rotate(-45deg);
}

/* ===================
   WEBGL CANVAS
   =================== */

.webgl-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--z-behind);
  pointer-events: none;
}

/* ===================
   CHALKBOARD ENTRY GATE
   =================== */

.chalkboard-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--z-gate);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url('/assets/images/bg.jpg') center center / cover no-repeat;
  background-color: var(--color-chalkboard-dark);
  cursor: pointer;
}

.gate-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.gate-logo-wrapper {
  position: relative;
  z-index: 2;
  opacity: 0;
  clip-path: circle(0% at 50% 50%);
}

.gate-logo {
  max-width: 85%;
  width: 500px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(240, 236, 228, 0.1));
}

.gate-subtitle {
  font-family: var(--font-accent);
  font-size: var(--text-3xl);
  color: var(--color-chalk-dim);
  margin-top: var(--space-4);
  opacity: 0;
}

.gate-instruction {
  position: absolute;
  bottom: var(--space-16);
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  color: var(--color-chalk-faint);
  letter-spacing: var(--tracking-wider);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* ===================
   MAIN CONTENT
   =================== */

.main-content {
  opacity: 0;
  visibility: hidden;
}

.main-content.visible {
  opacity: 1;
  visibility: visible;
}

/* ===================
   SECTIONS (shared)
   =================== */

.section {
  padding: var(--space-24) 0;
  position: relative;
}

.section--dark {
  background-color: var(--color-chalkboard-dark);
}

.section .text-accent {
  text-align: center;
}

.section h2 {
  text-align: center;
}

/* ===================
   HERO
   =================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.45) 0%,
    rgba(26, 26, 26, 0.6) 50%,
    rgba(43, 43, 43, 0.95) 100%
  );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-8);
  max-width: var(--container-md);
}

.hero-tagline {
  font-family: var(--font-accent);
  font-size: var(--text-3xl);
  color: var(--color-tea-green-light);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
}

.hero-title {
  font-size: var(--text-hero);
  color: var(--color-chalk);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
  text-shadow: 0 0 40px rgba(240, 236, 228, 0.1);
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: var(--text-4xl);
  color: var(--color-chalk-dim);
  margin-bottom: var(--space-6);
}

.hero-description {
  font-size: var(--text-xl);
  color: var(--color-chalk-dim);
  line-height: var(--leading-relaxed);
  max-width: 550px;
  margin: 0 auto var(--space-8);
}

.hero-cta-group {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================
   ORDER BANNER (below hero)
   =================== */

.order-banner {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, var(--color-terracotta) 0%, #c0392b 50%, var(--color-terracotta-light) 100%);
  padding: var(--space-4) var(--space-6);
  overflow: hidden;
}

.order-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.03) 10px,
    rgba(255,255,255,0.03) 20px
  );
}

.order-banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  max-width: var(--container-xl);
  margin: 0 auto;
  flex-wrap: wrap;
}

.order-banner-text {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-chalk-bright);
}

.order-banner-emoji {
  font-size: var(--text-3xl);
}

.order-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  background: var(--color-chalk-bright);
  color: var(--color-terracotta) !important;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-default);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.order-banner-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  color: var(--color-terracotta) !important;
  background: #fff;
}

.order-banner-btn svg {
  transition: transform var(--duration-normal) var(--ease-default);
}

.order-banner-btn:hover svg {
  transform: translateX(3px);
}

/* ===================
   BUTTONS
   =================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-default);
  min-height: 48px;
  min-width: 48px;
  text-decoration: none;
  border: var(--border-medium) solid transparent;
}

.btn-primary {
  background: var(--color-terracotta);
  color: var(--color-chalk-bright);
  border-color: var(--color-terracotta);
}

.btn-primary:hover {
  background: var(--color-terracotta-light);
  border-color: var(--color-terracotta-light);
  color: var(--color-chalk-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--color-chalk);
  border-color: var(--color-chalk-faint);
}

.btn-outline:hover {
  background: var(--color-chalk-dust);
  border-color: var(--color-chalk);
  color: var(--color-chalk-bright);
  transform: translateY(-2px);
}

.btn-ubereats {
  background: #06C167;
  color: #fff;
  border-color: #06C167;
}

.btn-ubereats:hover {
  background: #05a357;
  border-color: #05a357;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-doordash {
  background: #FF3008;
  color: #fff;
  border-color: #FF3008;
}

.btn-doordash:hover {
  background: #e02b07;
  border-color: #e02b07;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===================
   ABOUT SECTION
   =================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  max-width: var(--container-xl);
  margin: 0 auto var(--space-10);
}

.about-text {
  text-align: left;
}

.about-text p {
  margin-bottom: var(--space-4);
  color: var(--color-chalk-dim);
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
}

.about-photos {
  position: relative;
  min-height: 350px;
}

.about-photo--main img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-slate);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.about-photo--accent {
  position: absolute;
  bottom: -20px;
  right: -15px;
  width: 160px;
}

.about-photo--accent img {
  border-radius: var(--radius-lg);
  border: 3px solid var(--color-chalkboard);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transform: rotate(3deg);
}

.about-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  max-width: var(--container-lg);
  margin: 0 auto;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  border: var(--border-thin) solid var(--color-slate);
  border-radius: var(--radius-lg);
  background: var(--color-chalk-dust);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-default);
}

.badge:hover {
  border-color: var(--color-tea-green);
  box-shadow: var(--shadow-green-glow);
}

.badge-icon {
  font-size: var(--text-4xl);
  line-height: 1;
}

.badge-label {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-chalk-dim);
  letter-spacing: var(--tracking-wide);
}

/* ===================
   MENU SECTION
   =================== */

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
  border-bottom: var(--border-thin) solid var(--color-slate);
  padding-bottom: var(--space-4);
}

.menu-tab {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-chalk-faint);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2) var(--space-4);
  position: relative;
  transition: color var(--duration-normal) var(--ease-default);
  min-height: 44px;
}

.menu-tab::after {
  content: '';
  position: absolute;
  bottom: calc(-1 * var(--space-4) - 1px);
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-tea-green);
  transform: scaleX(0);
  transition: transform var(--duration-normal) var(--ease-default);
}

.menu-tab:hover {
  color: var(--color-chalk);
}

.menu-tab.active {
  color: var(--color-chalk);
}

.menu-tab.active::after {
  transform: scaleX(1);
}

.menu-intro {
  text-align: center;
  color: var(--color-chalk-dim);
  font-size: var(--text-xl);
  margin-bottom: var(--space-10);
  font-style: italic;
}

.menu-panel {
  display: none;
}

.menu-panel.active {
  display: block;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-10);
}

.menu-category {
  margin-bottom: var(--space-6);
}

.menu-category h3 {
  font-size: var(--text-3xl);
  color: var(--color-tea-green);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: var(--border-thin) solid var(--color-slate);
}

.category-note {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  color: var(--color-chalk-faint);
  margin-top: calc(-1 * var(--space-2));
  margin-bottom: var(--space-4);
}

.menu-item {
  margin-bottom: var(--space-4);
}

.menu-item-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.menu-item-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-chalk);
  white-space: nowrap;
}

.menu-item-dots {
  flex: 1;
  border-bottom: 2px dotted var(--color-slate);
  min-width: 20px;
  margin-bottom: 4px;
}

.menu-item-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-amber);
  white-space: nowrap;
}

.menu-item-description {
  font-size: var(--text-base);
  color: var(--color-chalk-faint);
  margin-top: var(--space-1);
  line-height: var(--leading-normal);
}

.menu-item-tag {
  display: inline-block;
  font-size: var(--text-xs);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: var(--space-1);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.tag-vegan {
  background: var(--color-tea-green-dark);
  color: var(--color-chalk-bright);
}

.tag-featured {
  background: var(--color-amber-dim);
  color: var(--color-chalkboard-dark);
}

.menu-item.sold-out .menu-item-name,
.menu-item.sold-out .menu-item-price {
  text-decoration: line-through;
  opacity: 0.4;
}

.sold-out-badge {
  display: inline-block;
  font-size: var(--text-xs);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #8b3a3a;
  color: var(--color-chalk);
  margin-left: var(--space-2);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: var(--weight-semibold);
}

.menu-loading {
  text-align: center;
  padding: var(--space-16) 0;
  color: var(--color-chalk-faint);
}

.menu-loading-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-slate);
  border-top-color: var(--color-tea-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: var(--space-4);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.menu-error {
  text-align: center;
  padding: var(--space-10) 0;
  color: var(--color-chalk-faint);
}

.menu-error p {
  margin-bottom: var(--space-4);
}

/* ===================
   ORDER SECTION
   =================== */

.order-intro {
  text-align: center;
  color: var(--color-chalk-dim);
  font-size: var(--text-xl);
  max-width: var(--container-sm);
  margin: 0 auto var(--space-10);
}

.order-buttons {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  flex-wrap: wrap;
  max-width: var(--container-md);
  margin: 0 auto;
}

.order-btn {
  flex: 1;
  min-width: 240px;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-8);
  border: var(--border-medium) solid var(--color-slate);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--color-chalk);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-default);
  min-height: 80px;
}

.order-btn:hover {
  background: var(--color-chalk-dust);
  border-color: var(--color-chalk);
  color: var(--color-chalk-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-chalk-glow);
}

.order-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Uber Eats brand */
.order-btn--ubereats {
  border-color: #06C167;
  background: rgba(6, 193, 103, 0.08);
  color: #06C167;
}

.order-btn--ubereats:hover {
  background: #06C167;
  border-color: #06C167;
  color: #fff;
  box-shadow: 0 8px 25px rgba(6, 193, 103, 0.35);
}

/* DoorDash brand */
.order-btn--doordash {
  border-color: #FF3008;
  background: rgba(255, 48, 8, 0.08);
  color: #FF3008;
}

.order-btn--doordash:hover {
  background: #FF3008;
  border-color: #FF3008;
  color: #fff;
  box-shadow: 0 8px 25px rgba(255, 48, 8, 0.35);
}

/* ===================
   CONTACT SECTION
   =================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
  max-width: var(--container-xl);
  margin: 0 auto;
}

.contact-block {
  margin-bottom: var(--space-8);
}

.contact-block h3 {
  font-size: var(--text-2xl);
  color: var(--color-tea-green);
  margin-bottom: var(--space-3);
}

.contact-block p {
  color: var(--color-chalk-dim);
  margin-bottom: var(--space-1);
}

.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-6);
  align-items: baseline;
}

.hours-day {
  font-family: var(--font-display);
  color: var(--color-chalk);
  font-size: var(--text-lg);
}

.hours-time {
  color: var(--color-chalk-dim);
  font-size: var(--text-lg);
}

.contact-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-chalk);
  margin-bottom: var(--space-3);
}

.contact-phone:hover {
  color: var(--color-tea-green-light);
}

.contact-instagram {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: var(--text-2xl);
  color: var(--color-tea-green-light);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-medium) solid var(--color-slate);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

/* ===================
   FOOTER
   =================== */

.footer {
  padding: var(--space-12) 0;
  text-align: center;
  border-top: var(--border-thin) solid var(--color-slate);
  background: var(--color-chalkboard-dark);
}

.footer-logo {
  margin-bottom: var(--space-4);
  text-align: center;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  display: inline-block;
  opacity: 0.9;
}

.footer-tagline {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  color: var(--color-chalk-faint);
  margin-bottom: var(--space-6);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: var(--border-thin) solid var(--color-slate);
  border-radius: var(--radius-full);
  color: var(--color-chalk-dim);
  transition: all var(--duration-normal) var(--ease-default);
}

.social-links a:hover {
  border-color: var(--color-tea-green);
  color: var(--color-tea-green);
  box-shadow: var(--shadow-green-glow);
}

.social-links a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.footer-nav a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-chalk-dim);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

.footer-nav a:hover {
  color: var(--color-tea-green);
}

.footer-contact {
  margin-bottom: var(--space-4);
}

.footer-contact p {
  font-size: var(--text-sm);
  color: var(--color-chalk-faint);
  line-height: 1.6;
}

.footer-contact a {
  color: var(--color-chalk-dim);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--color-tea-green);
}

.copyright {
  font-size: var(--text-sm);
  color: var(--color-chalk-faint);
}

/* ===================
   MODAL
   =================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-overlay-heavy);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-default);
  padding: var(--space-4);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-chalkboard-light);
  border: var(--border-medium) solid var(--color-slate);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--duration-normal) var(--ease-bounce);
}

.modal-backdrop.active .modal {
  transform: scale(1) translateY(0);
}

.modal h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-3);
}

.modal-text {
  color: var(--color-chalk-dim);
  margin-bottom: var(--space-6);
  font-size: var(--text-lg);
}

/* Signup Modal */
.modal-signup {
  border-color: var(--color-tea-green);
  background: linear-gradient(165deg, var(--color-chalkboard-light) 0%, var(--color-chalkboard-dark) 100%);
  box-shadow: 0 0 60px rgba(127, 166, 80, 0.15), 0 25px 50px rgba(0, 0, 0, 0.4);
}

.modal-signup-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-4);
  border: 2px solid var(--color-tea-green);
  border-radius: var(--radius-full);
  color: var(--color-tea-green);
  animation: signup-pulse 2s ease-in-out infinite;
}

@keyframes signup-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(127, 166, 80, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(127, 166, 80, 0); }
}

.btn-signup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4) var(--space-8);
  background: linear-gradient(135deg, var(--color-tea-green) 0%, #6b9340 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-default);
  box-shadow: 0 4px 15px rgba(127, 166, 80, 0.3);
  min-height: 56px;
}

.btn-signup-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(127, 166, 80, 0.4);
  background: linear-gradient(135deg, #8fb85a 0%, var(--color-tea-green) 100%);
  color: #fff;
}

.btn-signup-cta svg {
  transition: transform var(--duration-normal) var(--ease-default);
}

.btn-signup-cta:hover svg {
  transform: translateX(4px);
}

.modal-subtext {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-chalk-faint);
  font-family: var(--font-accent);
  font-size: var(--text-base);
}

/* Inline Signup Banner (footer/pages) */
.signup-banner {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: linear-gradient(165deg, rgba(127, 166, 80, 0.08) 0%, rgba(127, 166, 80, 0.02) 100%);
  border: var(--border-thin) solid rgba(127, 166, 80, 0.25);
  border-radius: var(--radius-lg);
  max-width: var(--container-sm);
  margin: 0 auto var(--space-6);
}

.signup-banner h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-chalk);
  margin-bottom: var(--space-2);
}

.signup-banner p {
  font-size: var(--text-base);
  color: var(--color-chalk-dim);
  margin-bottom: var(--space-4);
}

.signup-banner .btn-signup-cta {
  width: auto;
  font-size: var(--text-lg);
  padding: var(--space-3) var(--space-8);
  min-height: 48px;
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-chalk-faint);
  font-size: var(--text-3xl);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-default);
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-chalk);
}

/* ===================
   FORMS
   =================== */

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-chalkboard-dark);
  border: var(--border-thin) solid var(--color-slate);
  border-radius: var(--radius-md);
  color: var(--color-chalk);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: all var(--duration-normal) var(--ease-default);
  min-height: 44px;
}

.form-input::placeholder {
  color: var(--color-chalk-faint);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-tea-green);
  box-shadow: 0 0 0 3px rgba(127, 166, 80, 0.15);
}

.form-input.error {
  border-color: #8b3a3a;
  box-shadow: 0 0 0 3px rgba(139, 58, 58, 0.15);
}

.capture-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.sms-opt-in {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-chalk-faint);
  cursor: pointer;
  text-align: left;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--color-tea-green);
  min-width: 16px;
  min-height: 16px;
}

.submit-btn {
  width: 100%;
  padding: var(--space-3) var(--space-6);
  background: var(--color-terracotta);
  color: var(--color-chalk-bright);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-default);
  min-height: 48px;
}

.submit-btn:hover {
  background: var(--color-terracotta-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.capture-form.hidden {
  display: none;
}

.form-success {
  display: none;
}

.form-success.show {
  display: block;
}

.form-success p {
  font-size: var(--text-xl);
  color: var(--color-chalk);
  margin-bottom: var(--space-2);
}

/* ===================
   STICKY NAVIGATION
   =================== */

.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-6);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--duration-normal) var(--ease-default),
              border-color var(--duration-normal) var(--ease-default);
}

.sticky-nav.scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--color-slate);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 28px;
  width: auto;
  filter: brightness(1);
  transition: filter var(--duration-fast) var(--ease-default);
}

.nav-logo:hover .nav-logo-img {
  filter: brightness(1.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-links a {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-chalk-dim);
  transition: color var(--duration-fast) var(--ease-default);
}

.nav-links a:hover {
  color: var(--color-chalk);
}

.nav-order-btn {
  padding: var(--space-1) var(--space-4);
  background: var(--color-terracotta);
  color: var(--color-chalk-bright) !important;
  border-radius: var(--radius-md);
  font-size: var(--text-sm) !important;
}

.nav-order-btn:hover {
  background: var(--color-terracotta-light);
  color: var(--color-chalk-bright) !important;
}

/* Hamburger Menu Toggle */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: calc(var(--z-sticky) + 1);
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-chalk-dim);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-default);
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Active nav link */
.nav-links a.active {
  color: var(--color-tea-green);
}

/* ===================
   PARALLAX DIVIDERS
   =================== */

.parallax-divider {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.parallax-divider img {
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: calc(100% + 120px);
  object-fit: cover;
}

.parallax-divider--framed {
  margin: var(--space-10) auto;
  max-width: var(--container-xl);
  border-radius: var(--radius-lg);
  border: 3px solid var(--color-tea-green);
  box-shadow:
    0 0 30px rgba(127, 166, 80, 0.15),
    inset 0 0 60px rgba(0,0,0,0.3);
}

.parallax-divider--framed::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(212, 160, 74, 0.3);
  border-radius: calc(var(--radius-lg) - 4px);
  z-index: 2;
  pointer-events: none;
}

.parallax-divider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.45);
}

/* ===================
   GALLERY VIDEO INTRO
   =================== */

.gallery-video-intro {
  position: relative;
  height: 50vh;
  min-height: 300px;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(43, 43, 43, 0.5) 0%,
    rgba(26, 26, 26, 0.4) 50%,
    rgba(43, 43, 43, 0.7) 100%
  );
}

.gallery-video-text {
  position: relative;
  z-index: 1;
  text-align: center;
}

.gallery-video-text h2 {
  font-size: var(--text-hero);
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

/* ===================
   GALLERY SECTION
   =================== */

.gallery-intro {
  text-align: center;
  color: var(--color-chalk-dim);
  font-size: var(--text-xl);
  max-width: var(--container-md);
  margin: 0 auto var(--space-10);
}

.gallery-3d-wrapper {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1500px;
}

.gallery-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 260px;
  grid-auto-flow: dense;
  gap: var(--space-4);
  max-width: var(--container-xl);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--color-slate);
  background: var(--color-chalkboard-dark);
  transform-style: preserve-3d;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  will-change: transform;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-default);
}

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

.gallery-item:hover {
  border-color: var(--color-tea-green);
  box-shadow: 0 0 15px rgba(127, 166, 80, 0.15);
}

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

.gallery-item--video {
  position: relative;
}

.gallery-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-chalk);
  transition: all var(--duration-normal) var(--ease-default);
  pointer-events: none;
}

.gallery-item--video:hover .gallery-play-indicator {
  background: rgba(127, 166, 80, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}

.gallery-item--video.playing .gallery-play-indicator {
  opacity: 0;
}

/* ===================
   LIGHTBOX
   =================== */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-default);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  color: var(--color-chalk);
  font-size: var(--text-4xl);
  cursor: pointer;
  z-index: 3001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration-fast);
}

.lightbox-close:hover {
  color: var(--color-tea-green);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

/* ===================
   CONTACT PHOTO
   =================== */

.contact-photo {
  display: block;
  margin-bottom: var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-slate);
}

.contact-photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ===================
   SCROLL ANIMATION STATES
   =================== */

/* Only apply scroll-reveal animation on homepage (which uses .main-content wrapper) */
.main-content .section:not(.hero) {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slower) var(--ease-out),
              transform var(--duration-slower) var(--ease-out);
}

.main-content .section.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===================
   RESPONSIVE - TABLET (768px)
   =================== */

@media (max-width: 768px) {
  .section {
    padding: var(--space-16) 0;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta-group .btn {
    width: 100%;
    max-width: 300px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .about-photos {
    min-height: auto;
  }

  .about-photo--accent {
    display: none;
  }

  .about-badges {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery-item--wide {
    grid-column: span 1;
  }

  .parallax-divider {
    height: 200px;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px var(--space-6) var(--space-6);
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 1px solid var(--color-slate);
    transition: right var(--duration-normal) var(--ease-default);
    z-index: var(--z-sticky);
    gap: var(--space-1);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: var(--space-3) 0;
    font-size: var(--text-lg);
    border-bottom: 1px solid var(--color-slate);
  }

  .nav-order-btn {
    margin-top: var(--space-4);
    text-align: center;
    border-bottom: none !important;
  }

  .order-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .order-banner-text {
    font-size: var(--text-lg);
  }

  .gallery-video-intro {
    height: 35vh;
    min-height: 220px;
  }

  .gallery-video-text h2 {
    font-size: var(--text-5xl);
  }

  .parallax-divider--framed {
    margin: var(--space-6) var(--space-4);
    border-width: 2px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-tabs {
    gap: var(--space-4);
  }

  .menu-tab {
    font-size: var(--text-xl);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-map iframe {
    height: 300px;
  }

  .order-buttons {
    flex-direction: column;
    align-items: center;
  }

  .order-btn {
    max-width: 100%;
  }

  .chalk-line {
    max-width: 200px;
  }
}

/* ===================
   RESPONSIVE - MOBILE (480px)
   =================== */

@media (max-width: 480px) {
  .about-badges {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .menu-tabs {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    border-bottom: none;
    padding-bottom: 0;
  }

  .menu-tab {
    width: 100%;
    text-align: center;
    border-bottom: var(--border-thin) solid var(--color-slate);
    padding: var(--space-3) var(--space-4);
  }

  .menu-tab::after {
    bottom: -1px;
  }

  .hero-content {
    padding: var(--space-4);
  }

  .modal {
    padding: var(--space-8) var(--space-6);
  }

  .badge {
    padding: var(--space-4) var(--space-3);
  }

  .order-btn {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-xl);
    min-height: 64px;
  }
}

/* ===================
   REDUCED MOTION
   =================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .section:not(.hero) {
    opacity: 1;
    transform: none;
  }

  .parallax-divider {
    background-attachment: scroll !important;
  }

  .sticky-nav.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
