/* =========================================================
   Agropecuaria San Antonio — Agrosaad
   ========================================================= */

:root {
  --green-950: #0c1f14;
  --green-900: #12301f;
  --green-800: #1a4a2e;
  --green-700: #22603b;
  --green-600: #2d7a4b;
  --green-500: #3f9a5f;
  --green-100: #e3efe5;
  --wheat-500: #e3a73c;
  --wheat-400: #f0bd5c;
  --wheat-100: #fbf1dc;
  --blue-700: #2a5098;
  --cream: #f8f5ee;
  --paper: #ffffff;
  --ink: #17221b;
  --muted: #5d6b62;
  --line: rgba(23, 34, 27, 0.1);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(12, 31, 20, 0.06);
  --shadow: 0 12px 32px -12px rgba(12, 31, 20, 0.22);
  --shadow-lg: 0 30px 60px -20px rgba(12, 31, 20, 0.35);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--wheat-500);
  border-radius: 2px;
}
.eyebrow.light { color: var(--wheat-400); }

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--wheat-500);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--wheat-500); color: var(--green-950); box-shadow: 0 10px 24px -10px rgba(227, 167, 60, 0.8); }
.btn-primary:hover { background: var(--wheat-400); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--green-900); }
.btn-dark { background: var(--green-800); color: #fff; }
.btn-dark:hover { background: var(--green-700); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s, box-shadow 0.4s, height 0.4s;
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(248, 245, 238, 0.88);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; transition: color 0.3s; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { line-height: 1.1; }
.brand-text strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.brand-text span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.scrolled .brand, .solid .brand { color: var(--green-900); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.25s, color 0.25s;
  background: none; border: 0;
}
.nav-link svg { width: 14px; height: 14px; transition: transform 0.3s; }
.nav-link:hover, .nav-link.active { background: rgba(255, 255, 255, 0.14); color: #fff; }
.scrolled .nav-link, .solid .nav-link { color: var(--ink); }
.scrolled .nav-link:hover, .solid .nav-link:hover,
.scrolled .nav-link.active, .solid .nav-link.active { background: var(--green-100); color: var(--green-800); }

.has-drop { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  min-width: 260px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-drop:hover .dropdown,
.has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-drop:hover .nav-link svg { transform: rotate(180deg); }
.dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.2s;
}
.dropdown a:hover { background: var(--cream); }
.dropdown a small { display: block; font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.dropdown .ico {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); flex-shrink: 0;
}
.dropdown .ico svg { width: 18px; height: 18px; }

.header-cta { padding: 11px 20px; font-size: 0.88rem; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  place-items: center;
}
.scrolled .menu-toggle, .solid .menu-toggle { background: var(--green-100); color: var(--green-900); }
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--green-950);
  color: #fff;
  padding: 24px 20px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}
.mobile-nav.open { transform: none; }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.mobile-nav .brand { color: #fff; }
.mobile-nav .menu-toggle { display: grid; }
.mobile-nav h4 {
  font-family: var(--font-body);
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--wheat-400); margin: 24px 0 8px;
}
.mobile-nav a { display: block; padding: 10px 0; font-size: 1.1rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav .btn { margin-top: 28px; justify-content: center; width: 100%; border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--green-950);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}
.hero-slide.active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 31, 20, 0.55) 0%, rgba(12, 31, 20, 0.1) 30%, rgba(12, 31, 20, 0.35) 60%, rgba(12, 31, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(12, 31, 20, 0.6) 0%, rgba(12, 31, 20, 0) 65%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: calc(var(--header-h) + 60px) 0 clamp(48px, 7vw, 90px);
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 26px;
}
.hero-tag span {
  background: var(--wheat-500); color: var(--green-950);
  padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 800;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 500;
  max-width: 14ch;
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--wheat-400); font-weight: 400; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 560px; opacity: 0.9; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-top: clamp(40px, 7vw, 80px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-caption { max-width: 420px; min-height: 64px; }
.hero-caption strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; }
.hero-caption p { margin: 4px 0 0; opacity: 0.75; font-size: 0.95rem; }
.hero-caption > * { transition: opacity 0.5s, transform 0.5s var(--ease); }
.hero-caption.swap > * { opacity: 0; transform: translateY(8px); }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button {
  width: 46px; height: 4px; border: 0; padding: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden; position: relative;
}
.hero-dots button::after {
  content: ""; position: absolute; inset: 0;
  background: var(--wheat-400);
  transform: scaleX(0); transform-origin: left;
}
.hero-dots button.active::after { animation: progress 6s linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }

/* ---------- Page hero (internal pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(60px, 9vw, 110px)) 0 clamp(60px, 8vw, 100px);
  color: #fff;
  overflow: hidden;
  background: var(--green-950);
}
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; animation: kenburns 14s ease-out forwards; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12, 31, 20, 0.95) 10%, rgba(12, 31, 20, 0.4) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 500; margin-bottom: 16px; }
.page-hero p { max-width: 620px; font-size: 1.12rem; opacity: 0.88; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; margin-bottom: 22px; opacity: 0.8; }
.breadcrumb a:hover { color: var(--wheat-400); }
.breadcrumb span { opacity: 0.5; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.about-media { position: relative; }
.about-media .main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.about-media .main img { width: 100%; height: 100%; object-fit: cover; }
.about-media .float {
  position: absolute;
  right: -28px; bottom: 40px;
  width: 46%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid var(--cream);
  box-shadow: var(--shadow-lg);
}
.about-media .float img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; left: -24px; top: 36px;
  background: var(--wheat-500); color: var(--green-950);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  line-height: 1.1;
}
.about-badge strong { font-family: var(--font-display); font-size: 2.4rem; display: block; }
.about-badge span { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.about-text h2 { font-size: clamp(2rem, 4vw, 3rem); }
.about-text .lead { font-size: 1.15rem; color: var(--ink); font-weight: 500; }
.about-text p { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; padding: 0; list-style: none; }
.chips li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.85rem; font-weight: 600; color: var(--green-800);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.stat { background: var(--paper); padding: 22px 20px; }
.stat strong { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--green-700); display: block; line-height: 1; margin-bottom: 6px; }
.stat span { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

/* ---------- Category cards ---------- */
.bg-paper { background: var(--paper); }
.bg-dark { background: var(--green-950); color: #fff; }
.bg-dark .section-head p { color: rgba(255, 255, 255, 0.7); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  isolation: isolate;
  grid-column: span 4;
  box-shadow: var(--shadow);
}
.cat-card.wide { grid-column: span 6; min-height: 400px; }
.cat-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1s var(--ease);
}
.cat-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12, 31, 20, 0) 30%, rgba(12, 31, 20, 0.88) 100%);
  transition: background 0.5s;
}
.cat-card:hover img { transform: scale(1.08); }
.cat-card:hover::before { background: linear-gradient(180deg, rgba(26, 74, 46, 0.25) 0%, rgba(12, 31, 20, 0.92) 100%); }
.cat-card .count {
  position: absolute; top: 22px; left: 22px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-size: 0.78rem; font-weight: 700;
}
.cat-card .arrow {
  position: absolute; top: 20px; right: 20px;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--green-900);
  display: grid; place-items: center;
  transform: rotate(-45deg) scale(0.85);
  opacity: 0;
  transition: all 0.45s var(--ease);
}
.cat-card .arrow svg { width: 20px; height: 20px; }
.cat-card:hover .arrow { opacity: 1; transform: rotate(0) scale(1); background: var(--wheat-500); }
.cat-card h3 { font-size: 1.7rem; font-weight: 500; margin-bottom: 6px; }
.cat-card p { margin: 0; opacity: 0.85; font-size: 0.95rem; max-width: 40ch; }
.cat-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cat-card .tags span {
  font-size: 0.74rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Machinery list cards (dark section) */
.mach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mach-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease), background 0.3s, border-color 0.3s;
  display: flex; flex-direction: column;
}
.mach-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.08); border-color: rgba(240, 189, 92, 0.5); }
.mach-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.mach-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.mach-card:hover .thumb img { transform: scale(1.07); }
.mach-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.mach-card h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 4px; }
.mach-card p { font-size: 0.86rem; color: rgba(255, 255, 255, 0.6); margin: 0 0 14px; }
.mach-card .more { margin-top: auto; font-size: 0.85rem; font-weight: 700; color: var(--wheat-400); display: inline-flex; align-items: center; gap: 6px; }
.mach-card .more svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.mach-card:hover .more svg { transform: translateX(4px); }

/* ---------- Partners ---------- */
.partners {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 56px;
}
.partner {
  display: flex; align-items: center; gap: 22px;
  padding: 24px 28px;
  background: #fff;
  border-radius: var(--radius);
  color: var(--ink);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.partner:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5); }
.partner img { height: 54px; width: auto; max-width: 180px; object-fit: contain; }
.partner div { flex: 1; }
.partner strong { display: block; font-size: 1.05rem; }
.partner span { font-size: 0.85rem; color: var(--muted); }
.partner svg { width: 20px; height: 20px; color: var(--green-600); }

/* ---------- Marquee of brands ---------- */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  padding: 8px 0;
}
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  height: 92px; width: 180px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  padding: 16px 22px;
  flex-shrink: 0;
}
.marquee-item img { max-height: 58px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 0.3s, opacity 0.3s; }
.marquee-item:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--green-900);
  border: 0; padding: 0;
  box-shadow: var(--shadow);
  color: #fff;
  text-align: left;
}
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), opacity 0.4s; opacity: 0.85; }
.video-card:hover img { transform: scale(1.06); opacity: 1; }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(12,31,20,0.75)); }
.video-card .play {
  position: absolute; z-index: 2;
  top: 50%; left: 50%; translate: -50% -50%;
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--green-800);
  display: grid; place-items: center;
  transition: transform 0.4s var(--ease), background 0.3s;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.2);
}
.video-card .play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-card:hover .play { transform: scale(1.1); background: var(--wheat-500); }
.video-card .label { position: absolute; z-index: 2; left: 20px; bottom: 16px; font-weight: 700; font-size: 0.9rem; }

/* ---------- Branches / Contact ---------- */
.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.branch {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.branch-map { aspect-ratio: 16 / 9; position: relative; background: var(--green-100); }
.branch-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.85); }
.branch-body { padding: 28px 30px 30px; }
.branch-body h3 { font-size: 1.6rem; font-weight: 500; }
.branch-body ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.branch-body li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.branch-body li svg { width: 20px; height: 20px; color: var(--green-600); flex-shrink: 0; margin-top: 3px; }
.branch-body li a { color: var(--ink); font-weight: 700; }
.branch-body li a:hover { color: var(--green-600); }
.branch-photo { height: 76px; width: 76px; border-radius: 14px; object-fit: cover; float: right; margin-left: 16px; border: 3px solid var(--cream); box-shadow: var(--shadow-sm); }

.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px);
  color: #fff;
  background: var(--green-800);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  isolation: isolate;
}
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.35; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, var(--green-900) 30%, rgba(26, 74, 46, 0.6)); }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 500; }
.cta-band p { opacity: 0.85; margin: 0; }
.cta-links { display: grid; gap: 12px; }
.cta-link {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  transition: background 0.3s, transform 0.3s var(--ease);
}
.cta-link:hover { background: rgba(255, 255, 255, 0.18); transform: translateX(4px); }
.cta-link .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--wheat-500); color: var(--green-950); display: grid; place-items: center; flex-shrink: 0; }
.cta-link .ico svg { width: 20px; height: 20px; }
.cta-link small { display: block; font-size: 0.78rem; opacity: 0.7; }
.cta-link strong { font-size: 1.05rem; word-break: break-word; }

/* ---------- Product catalog pages ---------- */
.subnav {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(248, 245, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav .container { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: all 0.25s;
}
.subnav a:hover { color: var(--green-800); border-color: var(--green-500); }
.subnav a.active { background: var(--green-800); color: #fff; border-color: var(--green-800); }

.group { margin-bottom: clamp(56px, 8vw, 88px); }
.group:last-child { margin-bottom: 0; }
.group-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.group-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; font-weight: 500; }
.group-head .n { font-size: 0.85rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.group-head .group-logo { height: 44px; width: auto; max-width: 180px; object-fit: contain; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
  cursor: zoom-in;
  text-align: left;
  padding: 0;
  display: flex; flex-direction: column;
  color: inherit;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product .thumb { aspect-ratio: 4 / 3; background: #fff; overflow: hidden; display: grid; place-items: center; }
.product .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform 0.7s var(--ease); }
.product.cover .thumb img { object-fit: cover; padding: 0; }
.product:hover .thumb img { transform: scale(1.06); }
.product .info { padding: 14px 18px 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.product h3 { font-family: var(--font-body); font-size: 0.98rem; font-weight: 700; margin: 0; }
.product .info small { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.product .zoom { width: 32px; height: 32px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex-shrink: 0; transition: background 0.3s, color 0.3s; }
.product .zoom svg { width: 16px; height: 16px; }
.product:hover .zoom { background: var(--green-700); color: #fff; }

.text-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }

.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.logo-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 110px;
  display: grid; place-items: center;
  padding: 18px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.logo-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.logo-tile img { max-height: 70px; max-width: 100%; object-fit: contain; }

.intro-card {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  border: 1px solid var(--line);
  margin-bottom: clamp(48px, 7vw, 72px);
}
.intro-card .ico { width: 60px; height: 60px; border-radius: 16px; background: var(--wheat-100); color: var(--wheat-500); display: grid; place-items: center; }
.intro-card .ico svg { width: 30px; height: 30px; }
.intro-card p { margin: 0; font-size: 1.1rem; font-weight: 500; }

.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: clamp(48px, 7vw, 72px); padding: 0; list-style: none; }
.feature-list li {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-weight: 700;
}
.feature-list li .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex-shrink: 0; }
.feature-list li .ico svg { width: 20px; height: 20px; }

.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.related a {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; padding-right: 18px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 700;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.related a:hover { transform: translateY(-3px); border-color: var(--green-500); }
.related img { width: 64px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.related svg { width: 18px; height: 18px; margin-left: auto; color: var(--green-600); flex-shrink: 0; }

/* ---------- Info page ---------- */
.info-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.panel {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-sm);
}
.panel h2 { font-size: 1.6rem; font-weight: 500; }
.weather-now { display: flex; align-items: center; gap: 22px; margin: 18px 0 26px; }
.weather-now .icon { font-size: 4rem; line-height: 1; }
.weather-now .temp { font-family: var(--font-display); font-size: 4rem; line-height: 1; font-weight: 500; color: var(--green-800); }
.weather-now .desc strong { display: block; font-size: 1.1rem; }
.weather-now .desc span { color: var(--muted); font-size: 0.9rem; }
.weather-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.weather-meta div { background: var(--cream); border-radius: 12px; padding: 12px 14px; }
.weather-meta small { display: block; color: var(--muted); font-size: 0.76rem; font-weight: 600; }
.weather-meta strong { font-size: 1.05rem; }
.forecast { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.forecast div { text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px; }
.forecast small { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 700; text-transform: capitalize; }
.forecast .fi { font-size: 1.6rem; display: block; margin: 4px 0; }
.forecast strong { font-size: 0.9rem; }
.forecast span { color: var(--muted); font-size: 0.85rem; }
.weather-loading { color: var(--muted); padding: 30px 0; }
.market-link { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 20px 0; background: #fff; padding: 24px; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.market-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.market-link img { margin: 0 auto; max-height: 120px; object-fit: contain; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8, 20, 13, 0.94);
  display: grid; place-items: center;
  padding: 70px 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(1000px, 100%); text-align: center; color: #fff; }
.lightbox figure img { max-height: 72vh; margin: 0 auto; border-radius: var(--radius); background: #fff; transform: scale(0.94); transition: transform 0.45s var(--ease); }
.lightbox.open figure img { transform: none; }
.lightbox figcaption { margin-top: 18px; font-family: var(--font-display); font-size: 1.4rem; }
.lightbox figcaption small { display: block; font-family: var(--font-body); font-size: 0.85rem; opacity: 0.6; }
.lightbox .lb-btn {
  position: absolute;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid; place-items: center;
  transition: background 0.25s;
}
.lightbox .lb-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox .lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lb-next { right: 18px; top: 50%; translate: 0 -50%; }
.lightbox .video-frame { width: min(1000px, 100%); aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.lightbox .video-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, 0.7); padding: 80px 0 28px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer h4 { font-family: var(--font-body); color: #fff; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { transition: color 0.2s; }
.site-footer a:hover { color: var(--wheat-400); }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--wheat-400); flex-shrink: 0; margin-top: 4px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem;
}
.footer-giant {
  font-family: var(--font-display);
  font-size: clamp(4rem, 17vw, 15rem);
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  margin-top: 40px;
  user-select: none;
  letter-spacing: -0.03em;
}

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%;
  border: 0;
  background: var(--wheat-500); color: var(--green-950);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all 0.35s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.06s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.12s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.18s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.36s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.42s; }
.reveal-stagger.in > *:nth-child(n+9) { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: grid; }
  .mach-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cat-card, .cat-card.wide { grid-column: span 6; }
}
@media (max-width: 860px) {
  .about-grid, .branches, .cta-band, .info-grid, .partners { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; margin: 0 auto 30px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  :root { --header-h: 68px; }
  .cat-card, .cat-card.wide { grid-column: span 12; min-height: 300px; }
  .mach-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mach-card .body { padding: 14px; }
  .mach-card h3 { font-size: 1.02rem; }
  .mach-card p { display: none; }
  .video-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat { padding: 16px 12px; }
  .stat strong { font-size: 1.5rem; }
  .about-media .float { right: -8px; }
  .about-badge { left: -8px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product .info { padding: 10px 12px; }
  .product h3 { font-size: 0.86rem; }
  .product .zoom { display: none; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-card { grid-template-columns: 1fr; padding: 22px; }
  .weather-meta { grid-template-columns: 1fr 1fr 1fr; }
  .forecast { grid-template-columns: repeat(3, 1fr); }
  .forecast div:nth-child(n+4) { display: none; }
  .branch-body { padding: 22px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; translate: none; }
  .lb-prev { left: calc(50% - 62px); }
  .lb-next { right: calc(50% - 62px); }
  .group-head { flex-wrap: wrap; }
}
