/* ============================================
   LELINO — Design Tokens
   ============================================ */
:root {
  /* Color — matched to real Lelino brand */
  --cream-50:  #F7F3EA;
  --cream-100: #F0EADB;
  --cream-200: #E8DFC9;
  --stone-400: #9C9587;
  --stone-700: #4A4640;
  --stone-900: #1A1714;

  --green-900: #0F3D33;
  --green-700: #15584A;
  --green-600: #1B6B59;
  --green-500: #1F7A66;

  --gold-500:  #C9A063;
  --gold-600:  #B68A4A;

  --rust-500:  #D6722E;
  --rust-600:  #B85D20;

  --wood-600:  #B68A4A;
  --wood-700:  #8C6936;

  /* Back-compat aliases so the rest of the stylesheet keeps working */
  --stone-50:  var(--cream-50);
  --stone-100: var(--cream-100);
  --stone-200: var(--cream-200);
  --white:     #FFFFFF;

  /* Type */
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --maxw: 1200px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--stone-900);
  background: var(--stone-50);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--stone-900);
}
p { margin: 0 0 1em; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
:focus-visible {
  outline: 2px solid var(--rust-500);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============================================
   Top utility bar
   ============================================ */
.topbar {
  background: var(--green-900);
  color: var(--cream-200);
  font-size: 12.5px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}
.topbar-contacts { display: flex; gap: 20px; }
.topbar-contacts a:hover { color: var(--white); }
.lang-switch { position: relative; }
.lang-switch summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch[open] summary { color: var(--white); }
.lang-menu {
  position: absolute;
  right: 0;
  top: 28px;
  background: var(--white);
  color: var(--stone-900);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  width: 200px;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.lang-menu a {
  display: block;
  padding: 6px 8px;
  font-size: 12.5px;
  border-radius: var(--radius);
}
.lang-menu a:hover { background: var(--stone-100); }

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
  background: var(--cream-50);
  border-bottom: 1px solid var(--cream-200);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--green-900);
}
.logo .cn { font-size: 13px; font-weight: 500; color: var(--stone-400); }
.logo .mark { color: var(--rust-500); }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > ul { display: flex; gap: 4px; }
.nav-item { position: relative; }
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  color: var(--stone-700);
}
.nav-item > a:hover,
.nav-item.active > a { border-bottom-color: var(--green-600); color: var(--green-900); }
.nav-item .caret { font-size: 10px; opacity: 0.5; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--cream-200);
  min-width: 240px;
  padding: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 9px 12px;
  font-size: 13.5px;
  border-radius: var(--radius);
  color: var(--stone-700);
}
.dropdown a:hover { background: var(--cream-100); color: var(--green-700); }

.cta-btn {
  background: var(--green-700);
  color: var(--white);
  padding: 12px 24px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.cta-btn:hover { background: var(--green-600); }
.cta-ghost {
  border: 1.5px solid var(--stone-900);
  padding: 10.5px 22px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
}
.cta-ghost:hover { background: var(--stone-900); color: var(--white); }

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  background: var(--stone-100);
  font-size: 13px;
  color: var(--stone-700);
}
.breadcrumb .container { height: 44px; display: flex; align-items: center; gap: 8px; }
.breadcrumb a:hover { color: var(--rust-600); }
.breadcrumb .sep { opacity: 0.5; }

/* ============================================
   Hero
   ============================================ */
.hero {
  background: var(--green-900);
  padding: 72px 0 64px;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 26px);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--rust-500); }
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--gold-500); }
.hero p.lead { color: var(--cream-200); }
.hero .cta-ghost { border-color: var(--white); color: var(--white); }
.hero .cta-ghost:hover { background: var(--white); color: var(--green-900); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust-600);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1.5px;
  background: var(--rust-500);
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.08;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; }
.hero-visual {
  background: var(--green-700);
  border-radius: 8px;
  aspect-ratio: 4/3.1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-visual::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15,61,51,0.05) 0%, rgba(15,61,51,0.05) 45%, rgba(10,38,32,0.92) 100%);
}
.hero-visual .tag {
  position: relative;
  z-index: 2;
  margin: 18px;
  background: rgba(255,255,255,0.92);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: var(--radius);
}

/* spec strip — signature element */
.spec-strip {
  display: flex;
  border-top: 1px solid var(--stone-200);
  border-bottom: 1px solid var(--stone-200);
  background: var(--white);
}
.spec-strip .container { display: flex; }
.spec-item {
  flex: 1;
  padding: 18px 24px;
  border-right: 1px solid var(--stone-200);
}
.spec-item:last-child { border-right: none; }
.spec-item .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone-400);
  margin-bottom: 4px;
}
.spec-item .value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--stone-900);
}

/* ============================================
   Section headers
   ============================================ */
.section { padding: 72px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--stone-200); border-bottom: 1px solid var(--stone-200); }
.section-head { margin-bottom: 40px; max-width: 640px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 10px; }
.section-head p { color: var(--stone-700); font-size: 15.5px; }

/* ============================================
   Advantage tiles (ARRIS-style 3up)
   ============================================ */
.tiles-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tile {
  background: var(--white);
  border: 1px solid var(--stone-200);
  padding: 30px 26px;
  border-radius: var(--radius);
}
.tile .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--rust-500);
  margin-bottom: 14px;
}
.tile h3 { font-size: 18px; margin-bottom: 10px; }
.tile p { font-size: 14.5px; color: var(--stone-700); margin: 0; }

/* ============================================
   Product grid
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.product-card:hover { border-color: var(--wood-600); transform: translateY(-2px); }
.product-card .thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--stone-200), var(--stone-100));
  position: relative;
  overflow: hidden;
}
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.product-card:hover .thumb img { transform: scale(1.045); }
.product-card .thumb .swatch {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(139,107,74,0.18) 0 8px, transparent 8px 22px);
}
.product-card .body { padding: 16px 18px; }
.product-card h3 { font-size: 15.5px; margin-bottom: 6px; line-height: 1.3; }
.product-card .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone-400);
}
.product-card .arrow {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rust-600);
}

/* ============================================
   FAQ accordion
   ============================================ */
.faq-list { border-top: 1px solid var(--stone-200); }
.faq-item { border-bottom: 1px solid var(--stone-200); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 15.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .q-mark {
  font-family: var(--font-mono);
  color: var(--rust-500);
  margin-right: 14px;
  font-size: 13px;
}
.faq-item .plus { font-size: 20px; color: var(--stone-400); font-weight: 400; }
.faq-item[open] .plus { transform: rotate(45deg); display: inline-block; }
.faq-item .a {
  padding: 0 0 22px 38px;
  color: var(--stone-700);
  font-size: 14.5px;
  max-width: 720px;
}

/* ============================================
   News / tabs
   ============================================ */
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--stone-200);
  margin-bottom: 32px;
}
.tab {
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  color: var(--stone-700);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab.active { color: var(--rust-600); border-bottom-color: var(--rust-500); }
.news-list { display: grid; gap: 0; }
.news-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--stone-200);
}
.news-row .date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--stone-400);
  line-height: 1.3;
}
.news-row .date b { display: block; font-size: 20px; color: var(--stone-900); }
.news-row h4 { font-size: 15.5px; margin-bottom: 4px; }
.news-row p { font-size: 13.5px; color: var(--stone-700); margin: 0; }
.news-row .tag-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  background: var(--stone-100);
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--stone-700);
  white-space: nowrap;
}

/* ============================================
   Stats band
   ============================================ */
.stats-band {
  background: var(--green-900);
  color: var(--white);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .n {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--gold-500);
}
.stat .l { font-size: 13px; color: var(--cream-200); margin-top: 4px; }

/* ============================================
   CTA band
   ============================================ */
.cta-band {
  background: var(--green-700);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); font-size: clamp(24px, 3vw, 30px); margin-bottom: 10px; }
.cta-band p { color: var(--cream-200); margin-bottom: 26px; }
.cta-band .cta-btn { background: var(--white); color: var(--green-900); }
.cta-band .cta-btn:hover { background: var(--cream-100); }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--green-900);
  color: var(--cream-200);
  padding: 56px 0 0;
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer-grid ul li { margin-bottom: 9px; }
.footer-grid a:hover { color: var(--white); }
.footer-logo { color: var(--white); font-family: var(--font-display); font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 12.5px;
}
.footer-bottom .links { display: flex; gap: 18px; }

/* ============================================
   Generic content page styles
   ============================================ */
.prose h2 { font-size: 26px; margin: 36px 0 14px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p { color: var(--stone-700); font-size: 15.5px; max-width: 720px; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.img-block {
  background: linear-gradient(135deg, var(--stone-200), var(--stone-100));
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  overflow: hidden;
}
.img-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.table-clean { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-clean th, .table-clean td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--stone-200);
  color: var(--stone-900);
}
.table-clean td:first-child { color: var(--stone-700); font-weight: 600; }
.table-clean th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  color: var(--stone-400);
  letter-spacing: 0.04em;
}

.cert-card {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  padding: 24px;
}
.cert-card .badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--green-600);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.cert-card h4 { font-size: 16px; margin-bottom: 8px; }
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kv-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 6px 0; border-bottom: 1px dashed var(--stone-200); }
.kv-row span:first-child { color: var(--stone-700); }
.kv-row span:last-child { font-family: var(--font-mono); font-weight: 600; }

/* ============================================
   Mobile
   ============================================ */
@media (max-width: 980px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .tiles-3, .product-grid, .stats-grid, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .main-nav { display: none; }
  .spec-strip .container { flex-wrap: wrap; }
  .spec-item { flex: 1 1 50%; border-bottom: 1px solid var(--stone-200); }
}
@media (max-width: 620px) {
  .tiles-3, .product-grid, .stats-grid, .cert-grid, .footer-grid { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 60px 1fr; }
  .news-row .tag-pill { display: none; }
}
