/* ==========================================================================
   Outdoor Garden Sheds — Global Styles
   Local-only resources. No external CDN.
   ========================================================================== */

:root {
  --green-900: #14341f;
  --green-700: #1e5a3a;
  --green-600: #2a7a4b;
  --green-100: #e8f2ec;
  --ink: #1f2933;
  --ink-soft: #4b5a52;
  --paper: #ffffff;
  --mist: #f5f7f5;
  --line: #dfe5e0;
  --metal: #5c7a99;
  --resin: #4c8c4a;
  --wpc: #8b6f47;
  --shadow-sm: 0 1px 3px rgba(20, 52, 31, 0.08);
  --shadow-md: 0 6px 24px rgba(20, 52, 31, 0.1);
  --radius: 14px;
  --maxw: 1200px;
  --font: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--green-900); font-size: 19px; letter-spacing: 0.2px; }
.brand svg { flex: none; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-soft); letter-spacing: 1.2px; text-transform: uppercase; }

.main-nav ul { display: flex; list-style: none; gap: 4px; align-items: center; }
.main-nav a {
  display: block; padding: 10px 14px; font-size: 15px; font-weight: 600;
  color: var(--ink); border-radius: 8px; transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { color: var(--green-700); background: var(--green-100); }

.dropdown { position: relative; }
.dropdown > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; vertical-align: 2px; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 210px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-md); padding: 8px; z-index: 50;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a { padding: 9px 12px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.dropdown-menu .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.nav-cta { margin-left: 10px; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  font-weight: 700; font-size: 15px; border: none; cursor: pointer;
  background: var(--green-700); color: #fff; transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--green-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-dark { background: #1b1f1c; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--green-700); border: 2px solid var(--green-700); }
.btn-ghost:hover { background: var(--green-100); }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.main-nav .btn, .main-nav .btn:hover { color: #fff; }
.main-nav .btn:hover { background: var(--green-600); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #eaf2ec 0%, #dbe9df 55%, #cfe3d4 100%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 72px 0 64px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--green-700);
  background: rgba(255,255,255,0.7); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: 46px; line-height: 1.12; color: var(--green-900); letter-spacing: -0.5px; }
.hero h1 em { font-style: normal; color: var(--green-700); }
.hero p.lead { margin: 18px 0 28px; font-size: 18px; color: var(--ink-soft); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img { position: relative; }
.hero-img img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.hero-badge {
  position: absolute; bottom: 18px; left: 18px; background: rgba(255,255,255,0.94);
  padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 13px; box-shadow: var(--shadow-sm);
}

.material-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 26px 0; }
.material-chip {
  display: flex; align-items: center; gap: 12px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 700; font-size: 14px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.material-chip:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.material-chip .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--mist); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .kicker { font-size: 13px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--green-600); }
.section-head h2 { font-size: 34px; color: var(--green-900); margin: 8px 0 12px; letter-spacing: -0.3px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* Material cards (home) */
.material-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.mat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.25s, transform 0.25s;
}
.mat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.mat-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.mat-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.mat-card-body .badge { align-self: flex-start; margin-bottom: 12px; }
.mat-card-body h3 { font-size: 21px; color: var(--green-900); margin-bottom: 8px; }
.mat-card-body p { color: var(--ink-soft); font-size: 14.5px; flex: 1; margin-bottom: 16px; }
.mat-card-body .link { font-weight: 700; font-size: 14.5px; }

.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: #fff; }
.badge-metal { background: var(--metal); }
.badge-resin { background: var(--resin); }
.badge-wpc { background: var(--wpc); }

/* Feature grid (6 cards) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 14px; align-items: flex-start;
}
.feature .ic {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700);
}
.feature h4 { font-size: 16px; color: var(--green-900); margin-bottom: 4px; }
.feature p { font-size: 13.5px; color: var(--ink-soft); }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.spec-table th { background: var(--green-700); color: #fff; text-align: left; padding: 12px 16px; font-size: 14px; }
.spec-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec-table tr:nth-child(even) td { background: #f9fbf9; }
.spec-table td:first-child { font-weight: 700; color: var(--green-900); white-space: nowrap; }

/* Category page product list */
.cat-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-product { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.cat-product:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cat-product img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.cat-product .info { padding: 16px 18px; }
.cat-product .info h3 { font-size: 16.5px; color: var(--green-900); }
.cat-product .info p { font-size: 13px; color: var(--ink-soft); margin: 4px 0 10px; }

/* ---------- Product detail page ---------- */
.crumb { font-size: 13.5px; color: var(--ink-soft); padding: 18px 0 0; }
.crumb a { color: var(--ink-soft); }
.crumb a:hover { color: var(--green-700); }
.crumb span { color: var(--ink-soft); margin: 0 6px; }

.product-top { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 36px; padding: 28px 0 20px; align-items: start; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery .main { grid-column: 1 / -1; }
.gallery .main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.gallery .thumb { cursor: pointer; }
.gallery .thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; border: 2px solid transparent; transition: border-color 0.2s, opacity 0.2s; opacity: 0.85; }
.gallery .thumb img:hover { border-color: var(--green-600); opacity: 1; }

.product-info h1 { font-size: 30px; color: var(--green-900); line-height: 1.2; margin: 8px 0 12px; }
.product-info .badge { margin-bottom: 10px; }
.product-info .desc { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 20px; }
.info-rows { border-top: 1px solid var(--line); margin: 18px 0 22px; }
.info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.info-row dt { color: var(--ink-soft); font-weight: 600; }
.info-row dd { font-weight: 700; color: var(--green-900); text-align: right; }

.product-tabs { margin-top: 26px; }
.tab-btns { display: flex; gap: 4px; border-bottom: 2px solid var(--line); }
.tab-btn { padding: 12px 22px; font-weight: 700; font-size: 15px; color: var(--ink-soft); background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; }
.tab-btn.active { color: var(--green-700); border-bottom-color: var(--green-700); }
.tab-panel { padding: 26px 4px; }
.tab-panel h3 { color: var(--green-900); font-size: 20px; margin-bottom: 10px; }
.tab-panel p { color: var(--ink-soft); margin-bottom: 12px; }

/* Related products */
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-item { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow 0.2s; }
.related-item:hover { box-shadow: var(--shadow-md); }
.related-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.related-item .t { padding: 12px 14px; font-weight: 700; font-size: 14px; color: var(--green-900); }

/* ---------- Inquiry form ---------- */
.inquiry { background: var(--mist); border-radius: var(--radius); padding: 40px; margin-top: 40px; }
.inquiry h2 { color: var(--green-900); font-size: 26px; margin-bottom: 4px; }
.inquiry .sub { color: var(--ink-soft); margin-bottom: 22px; }
.inquiry .cat-opts { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.inquiry .cat-opts label { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--green-900); margin-bottom: 6px; }
.form-field label .req { color: #c0392b; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 15px; background: var(--paper); color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(42,122,75,0.12); }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Certificates / news / faq ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cert-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.cert-card .mono { font-size: 30px; font-weight: 800; color: var(--green-700); letter-spacing: 1px; }
.cert-card .mono small { display: block; font-size: 13px; color: var(--ink-soft); font-weight: 600; margin-top: 6px; }
.cert-card .cert-logo { display: block; height: 46px; width: auto; max-width: 100%; margin: 0 auto 12px; object-fit: contain; filter: grayscale(1); opacity: 0.88; transition: filter 0.25s ease, opacity 0.25s ease; }
.cert-card .cert-logo-lg { height: 60px; }
.cert-card:hover .cert-logo { filter: grayscale(0); opacity: 1; }
.cert-card .cert-badge { display: block; font-size: 34px; font-weight: 800; color: var(--green-700); letter-spacing: 2px; line-height: 46px; margin-bottom: 12px; }
.cert-card > small { display: block; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.cert-showcase { margin-top: 34px; }
.cert-showcase img { display: block; width: 100%; height: auto; }

.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.news-item .date { font-size: 12.5px; font-weight: 700; color: var(--green-600); letter-spacing: 0.8px; text-transform: uppercase; }
.news-item h3 { font-size: 18px; color: var(--green-900); margin: 8px 0 8px; }
.news-item p { font-size: 14px; color: var(--ink-soft); }

.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 18px 22px; font-size: 16px; font-weight: 700; color: var(--green-900); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q::after { content: "+"; font-size: 22px; color: var(--green-600); font-weight: 400; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { display: none; padding: 0 22px 20px; color: var(--ink-soft); font-size: 15px; }
.faq-item.open .faq-a { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #cfe0d4; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 0 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #cfe0d4; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.site-footer .about-txt { font-size: 14px; color: #9fb8a8; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; font-size: 13px; color: #8fa89a; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 0; gap: 32px; }
  .hero h1 { font-size: 36px; }
  .material-cards, .cat-products, .news-list, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; box-shadow: var(--shadow-md); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .dropdown-menu { position: static; display: none; box-shadow: none; border: none; padding-left: 14px; }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown > a::after { float: right; }
  .nav-cta { margin: 12px 0 0; }
  .material-strip { grid-template-columns: 1fr; }
  .material-cards, .cat-products, .news-list, .cert-grid, .feature-grid, .related-grid { grid-template-columns: 1fr; }
  .product-top { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 28px; }
  .inquiry { padding: 26px 20px; }
  .hero h1 { font-size: 30px; }
}


/* ==========================================================================
   Visual upgrade — glow, motion, glass
   ========================================================================== */

body { overflow-x: hidden; }

/* Hero atmosphere */
.hero { background: linear-gradient(160deg, #e7f1ea 0%, #d8e9de 55%, #c5dfcf 100%); }
.hero::before {
  content: ""; position: absolute; top: -200px; right: -140px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255,255,255,0.7), transparent 64%);
  border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; bottom: -180px; left: 16%; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(30,90,58,0.16), transparent 62%);
  border-radius: 50%; pointer-events: none;
}
.hero-inner, .material-strip { position: relative; z-index: 1; }

.hero h1 em { position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 12px;
  background: linear-gradient(90deg, rgba(42,122,75,0.3), transparent); z-index: -1; border-radius: 4px;
}
.hero-img::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  box-shadow: inset 0 -46px 64px -32px rgba(20,52,31,0.28); pointer-events: none;
}

/* Buttons */
.btn { background: linear-gradient(135deg, var(--green-700), var(--green-600)); box-shadow: 0 4px 14px rgba(30,90,58,0.25); }
.btn:hover { box-shadow: 0 8px 24px rgba(30,90,58,0.35); }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover { box-shadow: 0 6px 18px rgba(30,90,58,0.18); }

/* Glass chips */
.material-chip {
  background: rgba(255,255,255,0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.9); box-shadow: var(--shadow-sm);
}

/* Card interactions */
.mat-card img, .cat-product img, .related-item img { transition: transform 0.45s ease; }
.mat-card:hover img, .cat-product:hover img, .related-item:hover img { transform: scale(1.05); }
.feature { transition: transform 0.2s, box-shadow 0.2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Section heading underline */
.section-head h2 { position: relative; display: inline-block; padding-bottom: 12px; }
.section-head h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--green-600), var(--green-100));
}

/* Entrance motion */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-inner > div { animation: fadeUp 0.7s ease both; }
.hero-inner > div:nth-child(2) { animation-delay: 0.12s; }
.material-strip .material-chip { animation: fadeUp 0.6s ease both; }
.material-strip .material-chip:nth-child(1) { animation-delay: 0.18s; }
.material-strip .material-chip:nth-child(2) { animation-delay: 0.26s; }
.material-strip .material-chip:nth-child(3) { animation-delay: 0.34s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ==========================================================================
   v2 — mega menu, banner hero, gallery, news list, page fills
   ========================================================================== */

/* --- Mega menu: category list + flyout submenu --- */
.dropdown-menu.mega {
  display: none; width: 300px; padding: 10px;
  grid-template-columns: 1fr; gap: 2px; left: -60px;
}
.dropdown:hover .dropdown-menu.mega { display: grid; }
.dropdown-menu.mega .mega-col { position: relative; }
.dropdown-menu.mega .mega-title {
  display: flex; align-items: center; gap: 9px; font-size: 14px;
  color: var(--green-900); margin-bottom: 0; padding: 10px 12px; border-radius: 8px;
}
.dropdown-menu.mega .mega-title::after {
  content: "\203A"; font-size: 16px; line-height: 1; color: var(--ink-soft);
  margin-left: auto; transition: transform 0.2s, color 0.2s;
}
.dropdown-menu.mega .mega-title:hover { background: var(--green-100); }
.dropdown-menu.mega .mega-col:hover .mega-title::after,
.dropdown-menu.mega .mega-col:focus-within .mega-title::after {
  color: var(--green-700); transform: translateX(3px);
}
.dropdown-menu.mega .mega-sub {
  display: none; position: absolute; left: 100%; top: -10px;
  min-width: 250px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-md); padding: 10px;
}
.dropdown-menu.mega .mega-col:hover .mega-sub,
.dropdown-menu.mega .mega-col:focus-within .mega-sub { display: block; }
.dropdown-menu.mega a:not(.mega-title) {
  display: block; padding: 7px 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
}
.dropdown-menu.mega a:not(.mega-title):hover { color: var(--green-700); background: var(--green-100); }
@media (max-width: 760px) {
  .dropdown-menu.mega { width: auto; left: 0; }
  .dropdown-menu.mega .mega-sub {
    position: static; display: block; box-shadow: none; border: none;
    background: transparent; padding: 2px 0 6px 14px;
  }
  .dropdown-menu.mega .mega-title::after { display: none; }
  .dropdown.open .dropdown-menu.mega { display: grid; }
}

/* --- Full-width banner hero --- */
.hero.hero-banner {
  background-size: cover; background-position: center; color: #fff;
}
.hero.hero-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,30,18,0.86) 0%, rgba(10,30,18,0.62) 45%, rgba(10,30,18,0.18) 100%);
}
.hero.hero-banner .hero-inner { position: relative; z-index: 2; padding: 96px 0; }
.hero.hero-banner .hero-kicker {
  background: rgba(255,255,255,0.14); color: #fff;
  border: 1px solid rgba(255,255,255,0.35); backdrop-filter: blur(4px);
}
.hero.hero-banner h1 { color: #fff; }
.hero.hero-banner h1 em { color: #9fd3ae; }
.hero.hero-banner h1 em::after { background: linear-gradient(90deg, rgba(159,211,174,0.4), transparent); }
.hero.hero-banner p.lead { color: rgba(255,255,255,0.88); }
.hero.hero-banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.85); }
.hero.hero-banner .btn-ghost:hover { background: rgba(255,255,255,0.14); }
.hero.hero-banner .hero-img { display: none; }
.hero.hero-banner .material-strip { position: relative; z-index: 2; padding-bottom: 30px; }
@media (max-width: 1024px) { .hero.hero-banner .hero-inner { padding: 64px 0; } }

/* --- Product gallery: big left + 3 thumbs stacked right --- */
.gallery {
  grid-template-columns: 1.5fr 1fr;
  grid-template-areas: "main t1" "main t2" "main t3";
  gap: 12px; align-items: stretch;
}
.gallery .main { grid-area: main; }
.gallery .thumb:nth-child(2) { grid-area: t1; }
.gallery .thumb:nth-child(3) { grid-area: t2; }
.gallery .thumb:nth-child(4) { grid-area: t3; }
.gallery .main img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.gallery .thumb img { height: 100%; aspect-ratio: auto; object-fit: cover; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-areas: "main main" "t1 t2" "t3 t3"; }
  .gallery .main img, .gallery .thumb img { aspect-ratio: 4/3; height: auto; }
}

/* --- News list (one column, 10 per page) --- */
.news-list.list { display: block; }
.news-row {
  display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.news-row:first-of-type { border-top: 1px solid var(--line); }
.news-row img { width: 260px; height: 150px; object-fit: cover; border-radius: 12px; }
.news-row h3 { font-size: 18px; color: var(--green-900); margin: 6px 0 6px; }
.news-row p { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 760px) {
  .news-row { grid-template-columns: 1fr; }
  .news-row img { width: 100%; height: 180px; }
}

/* --- Process 2x2 symmetric --- */
.process-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .process-grid { grid-template-columns: 1fr; } }

/* --- FAQ: grouped + contact card --- */
.faq-group h3 {
  font-size: 15px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--green-600); margin: 34px 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--green-100);
}
.faq-group h3:first-child { margin-top: 0; }
.quick-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.quick-card {
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.quick-card .ic { font-size: 22px; margin-bottom: 8px; }
.quick-card h4 { font-size: 15px; color: var(--green-900); margin-bottom: 4px; }
.quick-card p { font-size: 13.5px; color: var(--ink-soft); }
@media (max-width: 760px) { .quick-cards { grid-template-columns: 1fr; } }

/* --- Contact page fills --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 28px; align-items: start; }
.contact-aside { display: flex; flex-direction: column; gap: 18px; }
.contact-card {
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.contact-card h3 { font-size: 16px; color: var(--green-900); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.contact-card p, .contact-card li { font-size: 14px; color: var(--ink-soft); }
.contact-card ul { list-style: none; }
.contact-card li { padding: 4px 0; }
.contact-card a { font-weight: 700; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }


/* --- v2 fix: kicker on its own line, contact layout --- */
.section-head .kicker { display: block; }
.contact-grid .inquiry { margin-top: 0; }


/* ==========================================================================
   v3 — lighter overlay, click menu, gallery ratio, tab fix, pagination, map
   ========================================================================== */

/* Banner: keep image visible — dark gradient only on the left text zone */
.hero.hero-banner::before {
  background: linear-gradient(90deg, rgba(10,30,18,0.82) 0%, rgba(10,30,18,0.55) 38%, rgba(10,30,18,0.08) 66%, rgba(10,30,18,0.03) 100%);
}
.hero.hero-banner { background-size: cover; background-position: center 42%; }
@media (max-width: 760px) {
  .hero.hero-banner::before {
    background: linear-gradient(180deg, rgba(10,30,18,0.72) 0%, rgba(10,30,18,0.5) 60%, rgba(10,30,18,0.25) 100%);
  }
}

/* Mega menu: click-to-open on desktop (no hover dependency) */
.dropdown-menu.mega { display: none; }
.dropdown:hover .dropdown-menu.mega { display: none; }
.dropdown.open .dropdown-menu.mega { display: grid; }
@media (max-width: 760px) {
  .dropdown.open .dropdown-menu.mega { display: grid; }
}

/* Product gallery: natural ratio, thumbnails proportionally smaller */
.gallery { grid-template-columns: 1.5fr 1fr; grid-template-areas: "main t1" "main t2" "main t3"; gap: 12px; align-items: start; }
.gallery .main img { aspect-ratio: 4/3; height: auto; object-fit: cover; }
.gallery .thumb img { aspect-ratio: 4/3; height: auto; object-fit: cover; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-areas: "main main" "t1 t2" "t3 t3"; }
  .gallery .main img, .gallery .thumb img { aspect-ratio: 4/3; height: auto; }
}

/* Tabs: only active panel visible by default */
.tab-panel { display: none; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination a, .pagination span {
  display: inline-block; min-width: 42px; padding: 9px 15px; border-radius: 8px;
  border: 1px solid var(--line); font-weight: 700; text-align: center; font-size: 14.5px; color: var(--ink-soft);
}
.pagination .cur { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.pagination a:hover { border-color: var(--green-600); color: var(--green-700); }

/* Map block */
.map-block { margin-top: 40px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-head { padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.map-head h3 { color: var(--green-900); font-size: 18px; }
.map-head p { font-size: 13.5px; color: var(--ink-soft); }
.map-frame { width: 100%; height: 340px; border: 0; display: block; background: #e8efe9; }

/* About highlights */
.highlight-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.highlight { background: var(--green-700); color: #fff; border-radius: var(--radius); padding: 22px 18px; text-align: center; }
.highlight .num { font-size: 30px; font-weight: 800; }
.highlight .lbl { font-size: 13px; color: #cfe0d4; margin-top: 4px; }
@media (max-width: 760px) { .highlight-strip { grid-template-columns: repeat(2, 1fr); } }


/* ==========================================================================
   v4 — hover menu back, hero text panel, gallery equal-height, contact, map
   ========================================================================== */

/* Mega menu: hover to open on desktop, click on mobile */
.dropdown:hover .dropdown-menu.mega { display: grid; }
@media (max-width: 760px) {
  .dropdown:hover .dropdown-menu.mega { display: none; }
  .dropdown.open .dropdown-menu.mega { display: grid; }
}

/* Hero: text panel for readability, lighter overlay, full house visible */
.hero.hero-banner::before {
  background: linear-gradient(90deg, rgba(10,30,18,0.45) 0%, rgba(10,30,18,0.18) 45%, rgba(10,30,18,0.03) 72%, rgba(10,30,18,0) 100%);
}
.hero.hero-banner .hero-inner > div:first-child {
  background: rgba(9, 27, 17, 0.52);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 26px 28px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.16);
  max-width: 640px;
}
@media (max-width: 760px) {
  .hero.hero-banner .hero-inner > div:first-child { padding: 20px; }
}

/* Product gallery: flex — big left (intact 4:3), 3 thumbs right, same edge height */
.gallery { display: flex; gap: 12px; align-items: stretch; }
.gallery .main { flex: 1.5; min-width: 0; }
.gallery .main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.gallery .thumbs { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery .thumbs .thumb { flex: 1; min-height: 0; }
.gallery .thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s, opacity 0.2s; opacity: 0.9; }
.gallery .thumbs .thumb img:hover { border-color: var(--green-600); opacity: 1; }
@media (max-width: 760px) {
  .gallery { flex-direction: column; }
  .gallery .main img { aspect-ratio: 4/3; }
  .gallery .thumbs { flex-direction: row; }
  .gallery .thumbs .thumb img { aspect-ratio: 4/3; height: auto; }
}

/* Contact: equal-height columns */
.contact-grid { align-items: stretch; }
.contact-aside { display: flex; flex-direction: column; }
.contact-aside .contact-card { flex: 1; }

/* World map block — 2:1 natural ratio, never cropped */
.map-block .map-frame { width: 100%; height: auto; display: block; background: var(--mist); }


/* ==========================================================================
   v5 — no text panel on hero; bigger type for readability
   ========================================================================== */
.hero.hero-banner .hero-inner > div:first-child {
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  padding: 0; border: 0; border-radius: 0;
  max-width: 760px;
}
.hero.hero-banner::before {
  background: linear-gradient(90deg, rgba(10,30,18,0.72) 0%, rgba(10,30,18,0.42) 40%, rgba(10,30,18,0.06) 70%, rgba(10,30,18,0) 100%);
}
.hero.hero-banner h1 { font-size: 54px; }
.hero.hero-banner p.lead { font-size: 19px; }
@media (max-width: 1024px) { .hero.hero-banner h1 { font-size: 42px; } }
@media (max-width: 760px) {
  .hero.hero-banner h1 { font-size: 32px; }
  .hero.hero-banner p.lead { font-size: 17px; }
  .hero.hero-banner::before {
    background: linear-gradient(180deg, rgba(10,30,18,0.75) 0%, rgba(10,30,18,0.55) 60%, rgba(10,30,18,0.25) 100%);
  }
}


/* ==========================================================================
   v6 — banner shows the FULL image (natural ratio, no cropping); crisp text
   ========================================================================== */
.hero.hero-banner {
  position: relative; background: #14341f; overflow: hidden;
}
.hero.hero-banner .hero-bg {
  display: block; width: 100%; height: auto;
}
.hero.hero-banner::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,30,18,0.85) 0%, rgba(10,30,18,0.55) 34%, rgba(10,30,18,0.08) 64%, rgba(10,30,18,0) 100%);
}
.hero.hero-banner .hero-inner {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; padding: 0 24px;
}
.hero.hero-banner .hero-inner > div:first-child {
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 0; padding: 0; max-width: 740px;
}
.hero.hero-banner h1 { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
.hero.hero-banner p.lead { text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55); }
.hero.hero-banner .hero-actions { margin-top: 4px; }
.hero.hero-banner .material-strip {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; padding: 0 24px;
}
@media (max-width: 1024px) {
  .hero.hero-banner .hero-inner { padding: 0 20px; }
  .hero.hero-banner .material-strip { padding: 0 20px; }
}
@media (max-width: 760px) {
  .hero.hero-banner { height: 480px; }
  .hero.hero-banner .hero-bg {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  }
  .hero.hero-banner .hero-inner { align-items: flex-start; padding: 44px 20px 0; }
  .hero.hero-banner::before {
    background: linear-gradient(180deg, rgba(10,30,18,0.82) 0%, rgba(10,30,18,0.55) 55%, rgba(10,30,18,0.25) 100%);
  }
  .hero.hero-banner .material-strip {
    position: absolute; bottom: 14px; left: 0; right: 0;
    grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 12px;
  }
  .hero.hero-banner .material-chip { padding: 8px 10px; font-size: 12px; }
  .hero.hero-banner .material-chip .dot { width: 8px; height: 8px; }
}

/* ==========================================================================
   v7 — shorter banner on interior pages (about + category pages)
   ========================================================================== */
.hero.hero-banner.hero-short .hero-bg {
  height: 400px; object-fit: cover; object-position: center 42%;
}
.hero.hero-banner.hero-about .hero-bg {
  height: 480px; object-fit: cover; object-position: center 42%;
}
@media (max-width: 760px) {
  .hero.hero-banner.hero-short { height: 400px; }
  .hero.hero-banner.hero-short .hero-bg,
  .hero.hero-banner.hero-about .hero-bg { height: 100%; }
  .hero.hero-banner.hero-about { height: 580px; }
}

/* ==========================================================================
   v8 — product gallery: big square main + 3 square thumbs, exact equal height
   thumb side t = (W - 3*gap) / 4 ; main side = 3t + 2*gap  => columns align
   ========================================================================== */
.gallery {
  display: flex; gap: 12px; align-items: flex-start;
}
.gallery .main { flex: 1; min-width: 0; }
.gallery .main img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); display: block;
}
.gallery .thumbs {
  flex: none; width: calc((100% - 36px) / 4);
  display: flex; flex-direction: column; gap: 12px;
}
.gallery .thumbs .thumb { flex: none; }
.gallery .thumbs .thumb img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 10px; display: block; cursor: pointer;
  border: 2px solid transparent; opacity: 0.9;
  transition: border-color 0.2s, opacity 0.2s;
}
.gallery .thumbs .thumb img:hover { border-color: var(--green-600); opacity: 1; }
@media (max-width: 760px) {
  .gallery { flex-direction: column; }
  .gallery .thumbs { width: 100%; flex-direction: row; }
  .gallery .thumbs .thumb { flex: 1; min-width: 0; }
}
