:root {
  --color-bg: #faf7f2;
  --color-bg-alt: #f1ebe1;
  --color-surface: #ffffff;
  --color-text: #2b2420;
  --color-text-muted: #6b6058;
  --color-border: #e7ded1;
  --color-primary: #234d3e;
  --color-primary-dark: #16332a;
  --color-primary-light: #e9f1ec;
  --color-accent: #c1673b;
  --color-accent-dark: #a34f29;
  --color-gold: #c9a24b;
  --shadow-sm: 0 2px 10px rgba(43, 36, 32, 0.06);
  --shadow-md: 0 10px 30px rgba(43, 36, 32, 0.1);
  --shadow-lg: 0 20px 50px rgba(43, 36, 32, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --header-h: 76px;
  --flash-h: 44px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-name {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: #fbe9de;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 14px;
}
.section-head p {
  color: var(--color-text-muted);
  font-size: 17px;
  margin: 0;
}

section { padding: 88px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

/* Header */
.site-header {
  position: fixed;
  top: var(--flash-h);
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 200;
  transition: top 0.3s ease;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 19px; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-size: 20px; color: var(--color-primary-dark); letter-spacing: -0.01em; }
.brand-sub { font-size: 10.5px; color: var(--color-text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: -2px; }

.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
  transition: background 0.2s ease, color 0.2s ease;
}
.main-nav a:hover, .main-nav a.active { background: var(--color-primary-light); color: var(--color-primary-dark); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.lang-btn svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.lang-switcher.open .lang-btn svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 190px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 300;
}
.lang-switcher.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 14px;
  text-align: left;
  color: var(--color-text);
}
.lang-menu button:hover { background: var(--color-primary-light); }
.lang-menu button.active { color: var(--color-primary-dark); font-weight: 700; background: var(--color-primary-light); }
.lang-flag { font-size: 17px; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--color-border);
  width: 42px; height: 42px; border-radius: 10px;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* Flash banner */
.flash-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--flash-h);
  z-index: 210;
  background: linear-gradient(90deg, var(--color-accent-dark), var(--color-accent), var(--color-accent-dark));
  background-size: 200% 100%;
  animation: flashGradient 6s ease infinite;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
}
.flash-banner .flash-track {
  white-space: nowrap;
  padding-left: 100%;
  animation: flashScroll 18s linear infinite;
}
@keyframes flashScroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes flashGradient { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) {
  .flash-banner .flash-track { animation: none; padding-left: 24px; }
  .flash-banner { animation: none; }
}

main { padding-top: calc(var(--header-h) + var(--flash-h)); }

/* Hero */
.hero {
  padding-top: 72px;
  background:
    radial-gradient(circle at 85% 15%, rgba(193, 103, 59, 0.12), transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(35, 77, 62, 0.1), transparent 45%),
    var(--color-bg);
  position: relative;
  overflow: hidden;
}
.hero-inner { text-align: center; max-width: 780px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(38px, 6.5vw, 64px);
  color: var(--color-primary-dark);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  padding-top: 40px; border-top: 1px solid var(--color-border);
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-family: "Poppins", sans-serif; font-size: 30px; color: var(--color-primary); }
.hero-stat span { font-size: 13px; color: var(--color-text-muted); }

/* About */
.about { background: var(--color-surface); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { font-size: clamp(28px, 4vw, 36px); color: var(--color-primary-dark); margin-bottom: 22px; }
.about-copy p { color: var(--color-text-muted); font-size: 16.5px; margin-bottom: 18px; }
.about-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--color-primary-light); color: var(--color-primary-dark);
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  margin-bottom: 20px;
}

/* Factory */
.factory { background: var(--color-bg-alt); }
.factory-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.factory-video {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  aspect-ratio: 16/10;
}
.factory-video video { width: 100%; height: 100%; object-fit: cover; }
.factory-copy h2 { font-size: clamp(26px, 4vw, 34px); color: var(--color-primary-dark); margin-bottom: 18px; }
.factory-copy p { color: var(--color-text-muted); font-size: 16.5px; margin: 0; }

/* Vision / Mission */
.vision-mission { background: var(--color-bg-alt); }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vm-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.vm-card .vm-icon {
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 22px;
}
.vm-card.accent .vm-icon { background: var(--color-accent); }
.vm-card h3 { font-size: 22px; margin-bottom: 14px; color: var(--color-primary-dark); }
.vm-card p { color: var(--color-text-muted); font-size: 16px; margin: 0; }

/* Products */
.products { background: var(--color-surface); }
.filter-bar {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  background: var(--color-bg-alt);
  border: 1px solid transparent;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all 0.2s ease;
}
.filter-btn:hover { color: var(--color-primary-dark); }
.filter-btn.active { background: var(--color-primary); color: #fff; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-media {
  aspect-ratio: 1/1;
  background: #fff;
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-cat-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.92);
  color: var(--color-primary-dark);
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.product-thumbs { display: flex; gap: 6px; padding: 10px 14px 0; }
.product-thumbs button {
  width: 36px; height: 36px; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; padding: 0; background: #fff;
}
.product-thumbs button.active { border-color: var(--color-accent); }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 17px; margin-bottom: 8px; color: var(--color-primary-dark); }
.product-body p { font-size: 14px; color: var(--color-text-muted); margin: 0; }
.product-body p + p { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(20, 16, 12, 0.9);
  display: flex; align-items: center; justify-content: center;
  z-index: 500; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
  padding: 40px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.lightbox-close svg { width: 20px; height: 20px; }

/* References */
.references { background: var(--color-primary-dark); color: #fff; }
.references .section-head h2 { color: #fff; }
.references .section-head p { color: rgba(255,255,255,0.7); }
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.ref-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  padding: 26px 20px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ref-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-4px); }
.ref-note { text-align: center; margin-top: 32px; color: rgba(255,255,255,0.55); font-size: 14px; }

/* Contact */
.contact { text-align: center; }
.contact h2 { font-size: clamp(26px, 4vw, 34px); color: var(--color-primary-dark); margin-bottom: 14px; }
.contact > .container > p { color: var(--color-text-muted); max-width: 520px; margin: 0 auto 40px; font-size: 16.5px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}
.contact-card {
  display: block;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.contact-icon.whatsapp { background: #25d366; }
.contact-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.contact-card p { margin: 0; font-size: 15.5px; color: var(--color-text); line-height: 1.5; }
.contact-card a { color: var(--color-text); }
.contact-card-whatsapp p { color: #1a9c4c; font-weight: 700; }

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

/* Footer */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 36px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--color-primary-dark); }
.footer-text { font-size: 13.5px; color: var(--color-text-muted); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; max-width: 420px; margin: 0 auto; width: 100%; }
  .vm-grid { grid-template-columns: 1fr; }
  .factory-grid { grid-template-columns: 1fr; }
}
@media (max-width: 840px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  :root { --header-h: 68px; }
  section { padding: 64px 0; }
  .main-nav.mobile-open {
    display: block;
    position: fixed;
    top: calc(var(--header-h) + var(--flash-h));
    left: 16px; right: 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px;
  }
  .main-nav.mobile-open ul { flex-direction: column; gap: 4px; }
  .main-nav.mobile-open a { padding: 13px 16px; }
  .hero-stats { gap: 28px; }
}
@media (max-width: 480px) {
  .lang-btn span.lang-label { display: none; }
  .lang-btn { padding: 9px 11px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
  .header-inner { gap: 8px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-mark { width: 34px; height: 34px; font-size: 16px; border-radius: 10px; }
  .brand-name { font-size: 15.5px; white-space: nowrap; }
  .brand-sub { display: none; }
  .header-actions { gap: 6px; }
}
