/* Group Biomass — Premium Industrial Theme */
:root {
  --red: #e31e24;
  --red-glow: rgba(227, 30, 36, 0.45);
  --green: #00a86b;
  --green-dark: #1b5e3a;
  --green-glow: rgba(0, 168, 107, 0.35);
  --taupe: #a69076;
  --taupe-light: #c4b5a0;
  --charcoal: #0a0a0a;
  --charcoal-2: #121212;
  --charcoal-3: #1a1a1a;
  --charcoal-4: #242424;
  --white: #f5f5f5;
  --glass: rgba(18, 18, 18, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--green) var(--charcoal-2);
}

section[id] {
  scroll-margin-top: 5.5rem;
}

body {
  font-family: var(--font-body);
  background: var(--charcoal);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--green);
  color: var(--charcoal);
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--green));
  z-index: 9999;
  transform-origin: left;
  transform: scaleX(0);
}

/* Loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-ring {
  width: 64px;
  height: 64px;
  border: 3px solid var(--charcoal-4);
  border-top-color: var(--red);
  border-right-color: var(--green);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: var(--charcoal-4);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--green));
  animation: loadBar 1.8s ease forwards;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loadBar { to { width: 100%; } }

/* Typography */
.font-display { font-family: var(--font-display); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--white) 0%, var(--taupe-light) 50%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-red {
  background: linear-gradient(135deg, var(--red) 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass cards */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

.glass-card:hover {
  border-color: rgba(0, 168, 107, 0.25);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4),
              0 0 40px var(--green-glow);
  transform: translateY(-6px);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--red) 0%, #c41920 100%);
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 24px var(--red-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--red-glow);
}

.btn-primary:hover::before { opacity: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 24px var(--green-glow);
}

.btn-green {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  box-shadow: 0 4px 24px var(--green-glow);
}

.btn-green:hover { box-shadow: 0 8px 32px var(--green-glow); }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  padding: 0.65rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--glass-border);
}

.nav-link {
  color: rgba(245,245,245,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active { color: var(--white); }

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Hero */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.72) 45%, rgba(27,94,58,0.2) 100%),
    url('../images/banner.jpg') center/cover no-repeat;
  background-color: var(--charcoal);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(227,30,36,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(0,168,107,0.1) 0%, transparent 40%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(166, 144, 118, 0.4);
  border-radius: 50%;
  filter: blur(1px);
  animation: floatParticle 8s ease-in-out infinite;
}

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.2; }
  50% { transform: translateY(-80px) translateX(20px); opacity: 0.6; }
}

.smoke-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(10,10,10,0.9), transparent);
  pointer-events: none;
}

/* Section styling */
.section-padding { padding: 6rem 0; }

@media (min-width: 768px) {
  .section-padding { padding: 8rem 0; }
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--red);
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), var(--green), var(--glass-border), transparent);
  margin: 0 auto;
  max-width: 600px;
}

/* Counter */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, var(--white), var(--taupe));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Product cards */
.product-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover img { transform: scale(1.08); }

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background 0.4s ease;
}

.product-card:hover .product-card-overlay {
  background: linear-gradient(to top, rgba(10,10,10,0.98) 0%, rgba(27,94,58,0.4) 60%, transparent 100%);
}

/* World map */
.export-map {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.export-map svg {
  width: 100%;
  height: auto;
  opacity: 0.35;
}

.map-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--red-glow);
  animation: pinPulse 2s ease infinite;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.map-pin::after {
  content: attr(data-country);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  white-space: nowrap;
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--charcoal-3);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.map-pin:hover::after { opacity: 1; }

@keyframes pinPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--red-glow); }
  50% { box-shadow: 0 0 0 12px transparent; }
}

/* Cert badges */
.cert-badge {
  padding: 2rem;
  text-align: center;
  border-radius: 1rem;
  background: linear-gradient(145deg, var(--charcoal-3), var(--charcoal-2));
  border: 1px solid var(--glass-border);
  transition: all 0.4s ease;
}

.cert-badge:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,168,107,0.15);
}

.cert-badge .cert-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  font-size: 1.5rem;
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--charcoal-4);
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red-glow);
}

.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }

/* Testimonials */
.testimonial-slider { overflow: hidden; }

.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-card {
  min-width: 100%;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .testimonial-card { min-width: 50%; }
}

@media (min-width: 1024px) {
  .testimonial-card { min-width: 33.333%; }
}

/* CTA banner */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--charcoal-3) 0%, var(--green-dark) 50%, var(--charcoal-3) 100%);
  border: 1px solid var(--glass-border);
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: ctaBgMove 20s linear infinite;
}

@keyframes ctaBgMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* Footer */
.footer {
  background: var(--charcoal-2);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
}

.footer-link {
  color: rgba(245,245,245,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-link:hover { color: var(--green); }

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
  margin-top: 3rem;
}

.footer-copyright {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .footer-copyright {
    flex-direction: row;
    align-items: center;
  }
}

.footer-copyright-text p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(245, 245, 245, 0.45);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-copyright-text p {
    text-align: left;
  }
}

.footer-copyright-text a {
  color: rgba(245, 245, 245, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-copyright-text a:hover {
  color: var(--green);
}

.footer-copyright-logo {
  flex-shrink: 0;
}

.footer-copyright-logo img {
  display: block;
  width: 120px;
  height: auto;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.footer-copyright-logo a:hover img {
  opacity: 1;
}

/* Floating buttons */
.float-whatsapp {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease;
  text-decoration: none;
}

.float-whatsapp:hover { transform: scale(1.1); }

.scroll-top {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  background: var(--charcoal-3);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--green);
  border-color: var(--green);
}

/* Mobile sticky CTA */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 850;
  padding: 0.75rem 1rem;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 0.75rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.mobile-sticky-cta.visible { transform: translateY(0); }

@media (min-width: 768px) {
  .mobile-sticky-cta { display: none; }
}

/* Feature icon cards */
.feature-card {
  padding: 2rem;
  border-radius: 1.25rem;
  background: linear-gradient(160deg, var(--charcoal-3) 0%, var(--charcoal-2) 100%);
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  height: 100%;
}

.feature-card:hover {
  border-color: rgba(0, 168, 107, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(227,30,36,0.15), rgba(0,168,107,0.15));
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

/* Manufacturing stats */
.mfg-stat {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 1rem;
  background: var(--charcoal-3);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.mfg-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--green));
}

/* Product detail page */
.product-hero {
  min-height: 50vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid var(--glass-border);
}

.spec-table td {
  padding: 1rem 0;
  font-size: 0.9375rem;
}

.spec-table td:first-child {
  color: var(--taupe);
  font-weight: 500;
  width: 40%;
}

.gallery-thumb {
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
  aspect-ratio: 1;
}

.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--green); }

.gallery-main {
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Form */
.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: var(--charcoal-3);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.form-input::placeholder { color: rgba(245,245,245,0.35); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* 3 columns = 3 rows of 9 images on tablet and desktop */
@media (max-width: 639px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 400px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--charcoal-3);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.85) 0%, rgba(27, 94, 58, 0.35) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 168, 107, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 30px var(--green-glow);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.gallery-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 300;
  background: rgba(227, 30, 36, 0.2);
  transition: background 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-item-icon {
  background: var(--red);
  transform: rotate(90deg);
}

/* Gallery lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.gallery-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox-inner {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.gallery-lightbox-inner img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox-caption {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--white);
}

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  background: var(--charcoal-3);
  border: 1px solid var(--glass-border);
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  z-index: 2;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  background: var(--green);
  border-color: var(--green);
}

.gallery-lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.25rem;
}

.gallery-lightbox-prev { left: 1.5rem; }
.gallery-lightbox-next { right: 1.5rem; }

@media (max-width: 640px) {
  .gallery-lightbox-prev { left: 0.5rem; }
  .gallery-lightbox-next { right: 0.5rem; }
  .gallery-lightbox-close { top: 1rem; right: 1rem; }
}

/* Mission & Vision */
.mission-vision-card {
  position: relative;
  padding: 2.5rem 2rem;
  border-radius: 1.25rem;
  background: linear-gradient(160deg, var(--charcoal-3) 0%, var(--charcoal) 100%);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

.mission-vision-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.mission-card:hover {
  border-color: rgba(227, 30, 36, 0.35);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 40px var(--red-glow);
}

.vision-card:hover {
  border-color: rgba(0, 168, 107, 0.35);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 40px var(--green-glow);
}

.mission-vision-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.mission-card .mission-vision-accent {
  background: linear-gradient(90deg, var(--red), #ff6b6b);
}

.vision-card .mission-vision-accent {
  background: linear-gradient(90deg, var(--green-dark), var(--green));
}

.mission-vision-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.mission-card .mission-vision-icon {
  background: rgba(227, 30, 36, 0.12);
  color: var(--red);
  border: 1px solid rgba(227, 30, 36, 0.2);
}

.vision-card .mission-vision-icon {
  background: rgba(0, 168, 107, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 168, 107, 0.2);
}

.mission-vision-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.mission-card .mission-vision-label { color: var(--red); }
.vision-card .mission-vision-label { color: var(--green); }

.mission-vision-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.mission-vision-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(245, 245, 245, 0.55);
}

.mission-vision-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.mission-card .mission-vision-list li::before { background: var(--red); }
.vision-card .mission-vision-list li::before { background: var(--green); }

/* Contact section */
.contact-section {
  scroll-margin-top: 5rem;
}

.contact-map {
  aspect-ratio: 16 / 9;
  max-height: 450px;
}

.contact-form .form-input {
  background: var(--charcoal);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-color: var(--charcoal-3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a69076' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: 1rem;
  background: linear-gradient(160deg, var(--charcoal-3) 0%, var(--charcoal-2) 100%);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: rgba(0, 168, 107, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 24px var(--green-glow);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--green);
}

.faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--red);
  border-radius: 1px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-icon::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.faq-question[aria-expanded="true"] .faq-icon {
  background: rgba(0, 168, 107, 0.15);
  border-color: var(--green);
  transform: rotate(180deg);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-question[aria-expanded="true"] .faq-icon::before {
  background: var(--green);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-answer.open {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  color: rgba(245, 245, 245, 0.65);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-answer strong {
  color: var(--green);
  font-weight: 600;
}

/* Wood texture subtle bg */
.wood-texture {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23a69076' fill-opacity='0.03' d='M0 50 Q25 30 50 50 T100 50'/%3E%3C/svg%3E");
}

/* Animation safety — content visible by default */
.gsap-reveal,
.gsap-stagger > *,
.product-card,
.gallery-item,
.mission-vision-card {
  opacity: 1;
  visibility: visible;
}

/* AOS: visible until library initializes (prevents blank sections) */
html:not(.aos-init) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

[data-aos] {
  pointer-events: auto;
}

/* If AOS fails to animate in-viewport elements */
[data-aos].aos-animate {
  opacity: 1 !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Mobile nav */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu .nav-link { font-size: 1.25rem; }

.hamburger {
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }
