/* style.css — Heavenly Soufflé Component Styles */

/* ===== UTILITY ===== */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-default);
}

/* ===== GOLD DIVIDER ===== */
.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding-block: var(--space-2);
}

.gold-divider::before,
.gold-divider::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.gold-divider svg {
  color: var(--color-gold);
  flex-shrink: 0;
}

/* ===== SECTION HEADINGS ===== */
.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s;
}

[data-theme="dark"] .header {
  background: rgba(26, 18, 16, 0.92);
}

.header--hidden {
  transform: translateY(-100%);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-6);
  max-width: var(--content-wide);
  margin-inline: auto;
}

.header__logo img {
  height: 56px;
  width: auto;
}

/* Logo light/dark mode switching */
.logo-dark {
  display: none;
}
.logo-light {
  display: inline-block;
}
[data-theme="dark"] .logo-dark {
  display: inline-block;
}
[data-theme="dark"] .logo-light {
  display: none;
}

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

.header__nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-5);
}

.header__nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.header__nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header__nav-links a:hover::after,
.header__nav-links a.active::after {
  width: 100%;
}

.header__nav-links a:hover {
  color: var(--color-primary);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-text);
  border: 1px solid var(--color-divider);
  cursor: pointer;
  transition: all var(--transition-interactive);
}

.theme-toggle:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  z-index: 1001;
  position: relative;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

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

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

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

@media (max-width: 900px) {
  .hamburger { display: flex; }

  .header__nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100dvh;
    flex-direction: column;
    background: var(--color-bg);
    padding: var(--space-20) var(--space-8) var(--space-8);
    gap: var(--space-4);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-xl);
    z-index: 999;
  }

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

  .header__nav-links a {
    font-size: var(--text-lg);
    padding: var(--space-2) 0;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
  }

  .mobile-overlay.active {
    display: block;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1a1210;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('assets/media/hero-bg.png') center/cover no-repeat;
  opacity: 0.5;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(26,18,16,0.3) 0%, rgba(26,18,16,0.8) 70%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-32) var(--space-6) var(--space-16);
  max-width: 900px;
}

.hero__photo-wrapper {
  position: relative;
  margin-bottom: var(--space-10);
}

.hero__photo-wrapper::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 150, 50, 0.35) 0%, rgba(255, 100, 20, 0.15) 40%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
  animation: warmGlow 4s ease-in-out infinite alternate;
}

@keyframes warmGlow {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.05); }
}

.hero__photo {
  position: relative;
  z-index: 1;
  width: clamp(280px, 40vw, 420px);
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 80px rgba(255,150,50,0.2);
  border: 3px solid rgba(201,169,110,0.3);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

.hero__subtitle {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.8);
  max-width: 50ch;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 62, 150, 0.3);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* ===== PRODUCTS ===== */
.products {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  background: var(--color-bg);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.product-card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6) var(--space-6);
  text-align: center;
  border: 1px solid var(--color-divider);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-gold-light) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-gold);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card__badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: var(--color-gf-green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.product-card__img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto var(--space-5);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card__img {
  transform: scale(1.05);
}

.product-card__name {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-2);
}

.product-card__desc {
  position: relative;
  z-index: 1;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .products__grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }
}

/* ===== ABOUT ===== */
.about {
  position: relative;
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  background: var(--color-surface-2);
  overflow: hidden;
}

.about__bg {
  position: absolute;
  inset: 0;
  background: url('assets/media/kitchen-scene.png') center/cover no-repeat;
  opacity: 0.08;
}

[data-theme="dark"] .about__bg {
  opacity: 0.05;
}

.about__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.about__text h2 {
  text-align: left;
  margin-bottom: var(--space-6);
}

.about__text p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.about__image-wrapper {
  position: relative;
}

.about__image-wrapper img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.about__image-wrapper::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: 10px;
  bottom: 10px;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-xl);
  z-index: -1;
}

@media (max-width: 768px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .about__text h2 {
    text-align: center;
  }
}

/* ===== FIND US / MAP ===== */
.find-us {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  background: var(--color-espresso);
  color: var(--color-text-inverse);
}

[data-theme="dark"] .find-us {
  background: #0f0a08;
}

.find-us .section-heading {
  color: #fff;
}

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

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

.map-controls input,
.map-controls select {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: var(--text-sm);
  min-width: 200px;
}

.map-controls input::placeholder {
  color: rgba(255,255,255,0.5);
}

.map-controls select option {
  background: var(--color-espresso);
  color: #fff;
}

.map-controls .btn {
  padding: var(--space-2) var(--space-5);
}

.store-count {
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-4);
}

.map-wrapper {
  display: flex;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

#map {
  flex: 1;
  min-width: 0;
  height: 500px;
}

.map-sidebar {
  width: 320px;
  flex-shrink: 0;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border, rgba(0,0,0,0.1));
  display: flex;
  flex-direction: column;
  height: 500px;
  overflow: hidden;
}

.map-sidebar__header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border, rgba(0,0,0,0.1));
  background: var(--color-surface);
}

.map-sidebar__header h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-heading);
  margin: 0;
}

.map-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.map-sidebar__item {
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-border, rgba(0,0,0,0.06));
  cursor: pointer;
  transition: background 0.2s;
}

.map-sidebar__item:hover {
  background: rgba(255, 62, 150, 0.06);
}

.map-sidebar__item-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-heading);
  margin-bottom: 2px;
}

.map-sidebar__item-address {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

.map-sidebar__item-distance {
  font-size: var(--text-xs);
  font-weight: 600;
  color: #ff3e96;
  margin-top: 2px;
}

.map-sidebar__empty {
  padding: var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  font-style: italic;
}

/* Hide sidebar on mobile — not enough space */
@media (max-width: 768px) {
  .map-wrapper {
    flex-direction: column;
  }

  .map-sidebar {
    width: 100%;
    height: auto;
    max-height: 280px;
    border-left: none;
    border-top: 1px solid var(--color-border, rgba(0,0,0,0.1));
  }

  #map {
    height: 350px;
  }
}

@media (max-width: 520px) {
  #map {
    height: 300px;
  }

  .map-sidebar {
    max-height: 240px;
  }
}

/* ===== PRIVATE LABEL ===== */
.private-label {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  background: var(--color-bg);
}

.private-label__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.private-label__text h2 {
  text-align: left;
  margin-bottom: var(--space-6);
}

.private-label__text p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.private-label__logo {
  max-width: 200px;
  margin-bottom: var(--space-6);
}

.private-label__products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.private-label__products img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s;
}

.private-label__products img:hover {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .private-label__inner {
    grid-template-columns: 1fr;
  }

  .private-label__text h2 {
    text-align: center;
  }

}

/* ===== TESTIMONIALS ===== */
.testimonials {
  position: relative;
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  overflow: hidden;
}

.testimonials__bg {
  position: absolute;
  inset: 0;
  background: url('assets/media/texture-bg.png') center/cover no-repeat;
  opacity: 0.12;
}

[data-theme="dark"] .testimonials__bg {
  opacity: 0.06;
}

.testimonials__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-surface-2);
  opacity: 0.9;
}

[data-theme="dark"] .testimonials__bg::after {
  background: var(--color-bg);
}

.testimonials__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-divider);
  position: relative;
  transition: all 0.3s;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

.testimonial-card__quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--space-2);
  opacity: 0.5;
}

.testimonial-card__text {
  font-size: var(--text-base);
  color: var(--color-text);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.testimonial-card__author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-heading);
}

.testimonial-card__location {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FAQ ===== */
.faq {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  background: var(--color-bg);
}

.faq__intro {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  text-align: center;
  max-width: 65ch;
  margin: 0 auto var(--space-10);
  line-height: 1.7;
}

.faq__intro a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq__list {
  max-width: 800px;
  margin-inline: auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-divider);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
}

.faq__question:hover {
  color: var(--color-primary);
}

.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  transition: transform 0.3s;
}

.faq__item.active .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.3s;
}

.faq__item.active .faq__answer {
  max-height: 600px;
  padding-bottom: var(--space-5);
}

.faq__answer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* FAQ Subsections */
.faq__subsection {
  margin-top: var(--space-12);
  max-width: 800px;
  margin-inline: auto;
}

.faq__subsection-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-heading);
  margin-bottom: var(--space-6);
  text-align: center;
}

.faq__subsection-content {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.faq__subsection-content p {
  margin-bottom: var(--space-3);
}

.faq__subsection-content strong {
  color: var(--color-text);
  font-weight: 600;
}

.faq__subsection-content a {
  color: var(--color-primary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-espresso);
  color: rgba(255,255,255,0.8);
  padding: var(--space-16) var(--space-6) var(--space-8);
}

[data-theme="dark"] .footer {
  background: #0f0a08;
}

.footer__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-10);
}

.footer__brand h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #fff;
  margin-bottom: var(--space-2);
}

.footer__brand p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-4);
}

.footer__links h4,
.footer__contact h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: #fff;
  margin-bottom: var(--space-4);
}

.footer__links ul {
  list-style: none;
}

.footer__links a {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  padding: var(--space-1) 0;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--color-primary);
}

.footer__contact p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer__contact a {
  color: rgba(255,255,255,0.6);
}

.footer__contact a:hover {
  color: var(--color-primary);
}

.footer__bottom {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  margin-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__bottom p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}

.footer__bottom a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}

.footer__bottom a:hover {
  color: var(--color-primary);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  clip-path: inset(10% 0 10% 0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

.reveal-left {
  opacity: 0;
  clip-path: inset(0 20% 0 0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

.reveal-right {
  opacity: 0;
  clip-path: inset(0 0 0 20%);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

/* Stagger delay for children */
.reveal-stagger > * {
  opacity: 0;
  clip-path: inset(10% 0 10% 0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              clip-path 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.55s; }

.reveal-stagger.visible > * {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

/* ===== LEAFLET OVERRIDES ===== */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
}

.leaflet-popup-content {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin: 12px 16px !important;
}

.leaflet-popup-content strong {
  color: var(--color-heading);
  font-family: var(--font-display);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 900;
  cursor: pointer;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--color-primary-hover);
  transform: translateY(-3px);
}
