/* ============================================================
   Salad Wrap Biz — Brand Stylesheet
   Palette: fresh greens (#2D6A4F primary, #40916C light green,
   #52B788 accent green) + warm citrus accent (#F48C06 orange)
   ============================================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Brand palette */
  --sw-green-deep: #1B4332;
  --sw-green-primary: #2D6A4F;
  --sw-green-mid: #40916C;
  --sw-green-light: #52B788;
  --sw-green-pale: #95D5B2;
  --sw-orange: #F48C06;
  --sw-orange-light: #FFB703;
  --sw-cream: #FFFDF7;
  --sw-white: #FFFFFF;
  --sw-charcoal: #1A1A2E;
  --sw-gray-600: #6B7280;
  --sw-gray-400: #9CA3AF;
  --sw-gray-200: #E5E7EB;
  --sw-gray-100: #F3F4F6;

  /* Typography */
  --sw-font-heading: 'Poppins', sans-serif;
  --sw-font-body: 'Inter', sans-serif;
  --sw-font-accent: 'Fredoka One', cursive;

  /* Spacing scale */
  --sw-space-xs: 0.25rem;
  --sw-space-sm: 0.5rem;
  --sw-space-md: 1rem;
  --sw-space-lg: 1.5rem;
  --sw-space-xl: 2rem;
  --sw-space-2xl: 3rem;
  --sw-space-3xl: 4rem;
  --sw-space-4xl: 6rem;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sw-font-body);
  color: var(--sw-charcoal);
  background: var(--sw-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sw-font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* --- Navbar --- */
.navbar {
  background: var(--sw-white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 0.75rem 0;
  transition: box-shadow 0.3s ease;
  z-index: 1030;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-family: var(--sw-font-accent);
  font-size: 1.5rem;
  color: var(--sw-green-primary) !important;
  letter-spacing: 0.01em;
}

.navbar-brand span {
  color: var(--sw-orange);
}

.nav-link {
  font-family: var(--sw-font-body);
  font-weight: 500;
  color: var(--sw-charcoal) !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
  font-size: 0.925rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sw-green-primary) !important;
}

.navbar .btn {
  font-family: var(--sw-font-body);
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.875rem;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  width: 1.5em;
  height: 1.5em;
}

/* --- Buttons --- */
.btn-primary {
  background: var(--sw-green-primary);
  border-color: var(--sw-green-primary);
  font-family: var(--sw-font-body);
  font-weight: 600;
  border-radius: 50px;
  padding: 0.625rem 1.75rem;
  transition: all 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--sw-green-deep);
  border-color: var(--sw-green-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

.btn-outline-light {
  border-radius: 50px;
  font-weight: 600;
  padding: 0.625rem 1.75rem;
  transition: all 0.25s ease;
}

.btn-outline-light:hover {
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--sw-orange);
  border-color: var(--sw-orange);
  color: var(--sw-white);
  font-family: var(--sw-font-body);
  font-weight: 600;
  border-radius: 50px;
  padding: 0.625rem 1.75rem;
  transition: all 0.25s ease;
}

.btn-accent:hover,
.btn-accent:focus {
  background: #E07C00;
  border-color: #E07C00;
  color: var(--sw-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 140, 6, 0.3);
}

.btn-outline-accent {
  background: transparent;
  border: 2px solid var(--sw-orange);
  color: var(--sw-orange);
  border-radius: 50px;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  transition: all 0.25s ease;
}

.btn-outline-accent:hover {
  background: var(--sw-orange);
  color: var(--sw-white);
  transform: translateY(-2px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--sw-green-deep);
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 67, 50, 0.92) 0%,
    rgba(45, 106, 79, 0.75) 50%,
    rgba(27, 67, 50, 0.88) 100%
  );
  z-index: 1;
}

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

.hero h1 {
  font-family: var(--sw-font-heading);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--sw-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--sw-orange-light);
}

.hero .lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  line-height: 1.6;
  font-weight: 400;
}

.hero .btn-group-gap {
  gap: 1rem;
}

/* Floating leaf decoration */
.hero-decoration {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(82, 183, 136, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

/* --- Section headings --- */
.section-heading {
  font-family: var(--sw-font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--sw-green-deep);
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--sw-gray-600);
  max-width: 600px;
  font-size: 1.05rem;
}

/* --- Section padding --- */
.section-pad {
  padding: var(--sw-space-4xl) 0;
}

/* --- Featured Menu --- */
.menu-section {
  background: var(--sw-white);
}

.menu-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--sw-space-2xl);
}

.menu-filter-btn {
  background: transparent;
  border: 2px solid var(--sw-gray-200);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-family: var(--sw-font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--sw-gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-filter-btn:hover {
  border-color: var(--sw-green-primary);
  color: var(--sw-green-primary);
}

.menu-filter-btn.active {
  background: var(--sw-green-primary);
  border-color: var(--sw-green-primary);
  color: var(--sw-white);
}

.menu-card {
  background: var(--sw-white);
  border: 1px solid var(--sw-gray-200);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

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

.menu-card-body {
  padding: var(--sw-space-lg);
}

.menu-card-title {
  font-family: var(--sw-font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--sw-green-deep);
  margin-bottom: 0.25rem;
}

.menu-card-desc {
  font-size: 0.875rem;
  color: var(--sw-gray-600);
  margin-bottom: var(--sw-space-md);
  line-height: 1.5;
}

.menu-card-price {
  font-family: var(--sw-font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--sw-orange);
}

.menu-card .btn {
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 1.125rem;
}

/* --- Value Props --- */
.value-section {
  background: var(--sw-cream);
}

.value-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--sw-green-pale), var(--sw-green-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sw-space-md);
  color: var(--sw-white);
  font-size: 1.5rem;
}

.value-title {
  font-family: var(--sw-font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--sw-green-deep);
  margin-bottom: 0.25rem;
}

.value-text {
  font-size: 0.925rem;
  color: var(--sw-gray-600);
  line-height: 1.55;
}

/* --- About / Story --- */
.about-section {
  background: var(--sw-white);
}

.about-img {
  border-radius: 20px;
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.story-text {
  font-size: 1rem;
  color: var(--sw-charcoal);
  line-height: 1.7;
}

.story-text .lead {
  font-size: 1.1rem;
  color: var(--sw-green-primary);
  font-weight: 500;
}

/* --- Locations --- */
.locations-section {
  background: var(--sw-gray-100);
}

.location-card {
  background: var(--sw-white);
  border-radius: 16px;
  padding: var(--sw-space-xl);
  border: 1px solid var(--sw-gray-200);
  height: 100%;
  transition: all 0.25s ease;
}

.location-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.location-name {
  font-family: var(--sw-font-heading);
  font-weight: 700;
  color: var(--sw-green-deep);
  font-size: 1.1rem;
}

.location-address {
  font-size: 0.925rem;
  color: var(--sw-gray-600);
  line-height: 1.6;
}

.location-hours {
  font-size: 0.85rem;
  color: var(--sw-gray-600);
}

.location-hours strong {
  color: var(--sw-charcoal);
}

.map-placeholder {
  position: relative;
  background: var(--sw-gray-200);
  border-radius: 16px;
  min-height: 300px;
  overflow: hidden;
}

.map-placeholder iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Testimonials --- */
.testimonials-section {
  background: var(--sw-green-deep);
  color: var(--sw-white);
}

.testimonials-section .section-heading {
  color: var(--sw-white);
}

.testimonials-section .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.testimonial-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: var(--sw-space-xl);
  text-align: center;
  min-height: 220px;
}

.testimonial-stars {
  color: var(--sw-orange-light);
  font-size: 1.125rem;
  margin-bottom: var(--sw-space-md);
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--sw-space-lg);
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--sw-white);
}

.testimonial-role {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
}

/* Carousel controls */
.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: var(--sw-space-xl);
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.testimonial-dot.active {
  background: var(--sw-orange-light);
  width: 32px;
  border-radius: 6px;
}

.testimonial-dot:hover {
  background: rgba(255,255,255,0.5);
}

/* --- CTA / Newsletter --- */
.cta-section {
  background: linear-gradient(135deg, var(--sw-green-mid), var(--sw-green-primary));
}

.cta-section h2 {
  font-family: var(--sw-font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--sw-white);
}

.cta-section p {
  color: rgba(255,255,255,0.8);
}

.newsletter-form .form-control {
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  color: var(--sw-white);
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-form .form-control:focus {
  background: rgba(255,255,255,0.18);
  border-color: var(--sw-orange-light);
  box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.2);
}

.newsletter-form .btn {
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 700;
}

.newsletter-form .alert {
  border-radius: 12px;
  font-size: 0.9rem;
}

/* App badges */
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--sw-charcoal);
  color: var(--sw-white);
  border-radius: 12px;
  padding: 0.625rem 1.25rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.app-badge:hover {
  background: #2a2a3e;
  color: var(--sw-white);
  transform: translateY(-2px);
}

.app-badge-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.app-badge-text small {
  font-size: 0.65rem;
  opacity: 0.7;
  display: block;
  line-height: 1.2;
}

.app-badge-text strong {
  font-size: 0.95rem;
  line-height: 1.2;
  display: block;
}

/* --- Footer --- */
.footer {
  background: var(--sw-charcoal);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-brand {
  font-family: var(--sw-font-accent);
  font-size: 1.35rem;
  color: var(--sw-white);
  text-decoration: none;
}

.footer-brand span {
  color: var(--sw-orange-light);
}

.footer-brand:hover {
  color: var(--sw-white);
}

.footer-heading {
  font-family: var(--sw-font-body);
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--sw-white);
  margin-bottom: var(--sw-space-md);
}

.footer a:not(.footer-brand) {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:not(.footer-brand):hover {
  color: var(--sw-green-light);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  transition: all 0.25s ease;
  font-size: 1.125rem;
}

.footer-social a:hover {
  background: var(--sw-green-primary);
  color: var(--sw-white);
}

.footer-divider {
  border-color: rgba(255,255,255,0.08);
  opacity: 1;
}

.footer-bottom {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* --- Scroll Reveal (applied by JS) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Add to order toast --- */
.order-toast {
  position: fixed;
  bottom: var(--sw-space-xl);
  right: var(--sw-space-xl);
  background: var(--sw-green-deep);
  color: var(--sw-white);
  padding: var(--sw-space-md) var(--sw-space-xl);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.order-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive tweaks --- */
@media (max-width: 991.98px) {
  .hero {
    text-align: center;
    padding-top: 72px;
  }
  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero .btn-group-gap {
    justify-content: center;
  }
  .navbar-brand {
    font-size: 1.3rem;
  }
  .navbar .btn {
    margin-top: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .section-pad {
    padding: var(--sw-space-3xl) 0;
  }
  .about-img {
    min-height: 260px;
    margin-bottom: var(--sw-space-xl);
  }
  .map-placeholder {
    min-height: 200px;
    margin-top: var(--sw-space-lg);
  }
  .testimonial-card {
    min-height: 200px;
    padding: var(--sw-space-lg);
  }
  .order-toast {
    left: var(--sw-space-md);
    right: var(--sw-space-md);
    text-align: center;
    bottom: var(--sw-space-md);
  }
  .menu-card-img {
    height: 160px;
  }
  .footer .row > div {
    margin-bottom: var(--sw-space-xl);
  }
}
