:root {
  --green: #2e7d32;
  --green-2: #66bb6a;
  --brown: #6d4c41;
  --gold: #d4af37;
  --ink: #222222;
  --muted: #66706a;
  --paper: #ffffff;
  --soft: #f5f5f5;
  --line: rgba(34, 34, 34, 0.12);
  --shadow: 0 18px 50px rgba(34, 34, 34, 0.12);
  --radius: 8px;
  --max: 1180px;
}

[data-theme="dark"] {
  --ink: #f7f7f2;
  --muted: #c9d0c9;
  --paper: #141715;
  --soft: #20251f;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid rgba(212, 175, 55, 0.75); outline-offset: 3px; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.section { padding: 86px 0; }
.section.soft { background: var(--soft); }
.eyebrow {
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
}
h1, h2, h3, h4 {
  font-family: Poppins, Inter, sans-serif;
  line-height: 1.08;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2.35rem, 6vw, 5rem); max-width: 780px; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); max-width: 760px; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 18px; color: var(--muted); }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 999;
  background: var(--green);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-shell {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Poppins, sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
}
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand span span:first-child { color: var(--green); }
.brand span span:last-child { color: var(--brown); }
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 0.95rem; }
.nav-links a[aria-current="page"], .nav-links a:hover { color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn, .menu-toggle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.primary { background: var(--green); color: white; }
.btn.secondary { background: var(--brown); color: white; }
.btn.ghost { background: transparent; color: var(--green); border-color: var(--green); }

.hero {
  position: relative;
  min-height: clamp(520px, 52vw, 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.93) 0%, rgba(255,255,255,0.78) 44%, rgba(255,255,255,0.34) 100%), url("../images/cocoedge-banner.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero > .container { padding: clamp(58px, 7vw, 92px) 0 clamp(86px, 9vw, 118px); }
.hero p { max-width: 620px; font-size: 1.12rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--green) 93%, black);
  color: white;
  padding: 10px 0;
}
.hero-strip .container, .trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.mini-proof { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 0.95rem; }
.mini-proof p { color: rgba(255,255,255,0.82); margin: 0; font-size: 0.78rem; line-height: 1.25; }
.mini-proof i { width: 24px; height: 24px; color: var(--gold); flex: 0 0 auto; }

.page-hero {
  padding: 86px 0 64px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--green) 11%, var(--paper)), var(--paper));
  border-bottom: 1px solid var(--line);
}
.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; }

.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }
.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: color-mix(in srgb, var(--green-2) 18%, transparent);
  border-radius: 50%;
  margin-bottom: 18px;
}
.category-card, .product-card { padding: 0; overflow: hidden; }
.category-card img, .product-card img { width: 100%; height: 230px; object-fit: cover; background: var(--soft); }
.category-card .card-body, .product-card .card-body { padding: 22px; }
.rating { color: var(--gold); font-weight: 900; }
.price { color: var(--green); font-weight: 900; font-size: 1.25rem; }
.product-meta { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 14px 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag { background: var(--soft); border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; color: var(--muted); font-size: 0.85rem; }

.stats {
  background: var(--ink);
  color: var(--paper);
}
.stats p { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.stat-number { font-family: Poppins, sans-serif; font-size: clamp(2rem, 5vw, 3.7rem); font-weight: 900; color: var(--gold); }

.video-box {
  min-height: 420px;
  display: grid;
  place-items: center;
  background: linear-gradient(rgba(34,34,34,0.45), rgba(34,34,34,0.45)), url("../images/cocoedge-banner.png") center/cover;
  color: white;
  border-radius: var(--radius);
  overflow: hidden;
}
.video-box p { color: rgba(255,255,255,0.82); }

.masonry { columns: 3 280px; column-gap: 18px; }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 18px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}
.gallery-item img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.78);
}
.lightbox.active { display: flex; }
.lightbox img { max-height: 86vh; border-radius: var(--radius); }

.testimonial-shell { position: relative; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.45s ease; }
.testimonial { flex: 0 0 100%; padding: 8px; }
.testimonial .card { min-height: 260px; }
.avatar { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; background: var(--soft); }

.form {
  display: grid;
  gap: 14px;
}
.form .split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 12px 13px;
}
.field textarea { min-height: 130px; resize: vertical; }
.form-message { min-height: 24px; font-weight: 800; color: var(--green); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.faq-answer p { padding-bottom: 18px; }
.faq-item.open .faq-answer { max-height: 220px; }

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 28px;
}
.filters input, .filters select {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 46px;
}
.filter-btn.active { background: var(--green); color: white; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }

.detail-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 38px; align-items: start; }
.product-gallery-main { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.thumbs button { border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden; cursor: pointer; background: var(--paper); }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.spec-table td { padding: 13px; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { font-weight: 900; }

.timeline { position: relative; display: grid; gap: 18px; }
.milestone { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: start; }
.milestone strong { color: var(--green); font-family: Poppins, sans-serif; font-size: 1.2rem; }

.blog-card img { height: 210px; object-fit: cover; width: 100%; border-radius: var(--radius); margin-bottom: 18px; }
.map {
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--soft);
}
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

.site-footer {
  background: #171a17;
  color: white;
  padding: 62px 0 28px;
}
.site-footer p, .site-footer a { color: rgba(255,255,255,0.72); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 34px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: grid;
  gap: 10px;
}
.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: var(--green);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.float-btn.call { background: var(--brown); }
.float-btn.top { background: var(--gold); color: #171a17; display: none; }
.float-btn.top.visible { display: grid; }

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-animate].is-visible { opacity: 1; transform: translateY(0); }
