/*
Theme Name: George Solar
Theme URI: https://georgesolar.com
Author: George Solar
Author URI: https://georgesolar.com
Description: Custom classic PHP theme for George Solar — solar products exporter (panels, inverters, MPPT controllers, batteries, off-grid/on-grid systems, mounting accessories). Mobile-first, zero jQuery, canvas scroll-driven hero.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: georgesolar
Tags: custom-theme, solar, export, responsive
*/

/* ===== Tokens ===== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('assets/fonts/inter-var-latin.woff2') format('woff2');
}

:root {
  --navy: #0F1923;
  --blue: #5B9BD5;
  --blue-dark: #3D7EB5;
  --light: #F7F8FA;
  --text: #1A1A1A;
  --muted: #555555;
  --white: #ffffff;
  --green: #25D366;
  --green-dark: #1da851;
  --radius: 8px;
  --line: #E5E0D8;
  --forest: #0F1923;
  --pine: #5B9BD5;
  --pine-dark: #3D7EB5;
  --shadow: 0 8px 30px rgba(15, 25, 35, 0.10);
  --font: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gold: #C9953A;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "IBM Plex Mono", "Liberation Mono", monospace;
  --container: 1200px;
}

/* ===== Reset / Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.18; color: var(--navy); margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--blue); font-weight: 600; }
h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  width: auto; height: auto;
  clip: auto;
  margin: 0;
  padding: 8px 14px;
  background: var(--navy);
  color: var(--white);
  z-index: 100000;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.btn-primary {
  background: var(--pine);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--pine-dark); border-color: var(--pine-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(91,155,213,0.35); }
.btn-outline {
  background: var(--white);
  color: var(--text);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--pine); color: var(--pine); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(91,155,213,0.35); }
.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover { background: var(--light); border-color: var(--light); color: var(--navy); }
.btn-whatsapp {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-whatsapp:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }
.btn .arr { display: inline-block; margin-left: 8px; transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* ===== Top bar ===== */
.topbar {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 6px 0;
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: var(--white); }
.topbar a:hover { color: var(--green); }
@media (max-width: 639px) {
  .topbar-email { display: none; }
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(10, 31, 68, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.site-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.site-logo .logo-mark {
  width: 30px; height: 30px;
  flex: 0 0 auto;
  border-radius: 6px;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a {
  color: var(--blue);
  background: var(--light);
}
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 959px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    border-top: 1px solid var(--light);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .main-nav.nav-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 20px 20px; }
  .main-nav a { padding: 12px 8px; border-bottom: 1px solid var(--light); border-radius: 0; }
}
@media (min-width: 960px) {
  .menu-toggle { display: none; }
}

/* ===== Hero (front page) — split layout: copy left, stage right ===== */
.hero-scroll {
  position: relative;
  height: 250vh; /* scroll track: drives the 48-frame sequence */
}
/* specificity must beat the plain `position: relative` in .hero (below),
 * otherwise the sticky scroll-track never engages */
.hero.hero-sticky {
  position: sticky;
  top: 0;
}
.hero {
  position: relative;
  height: 100vh;
  min-height: 660px;
  overflow: hidden;
  background: linear-gradient(180deg, #F7F8FA 0%, #FFFFFF 100%);
  color: var(--text);
}

.hero-v2-split { position: relative; z-index: 2; display: flex; align-items: center; width: 100%; height: 100%; margin-top: 0; }
.hero-copy { width: min(43%, 620px); }

/* ---- left copy column: two crossfading states ---- */
.hero-copy {
  display: grid; /* stack both states in the same grid cell */
}
.copy-state {
  grid-area: 1 / 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.state-parts {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.hero-scroll.is-parts .state-intro {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.hero-scroll.is-parts .state-parts {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-v2-badge { display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: #555555; margin-bottom: 24px; }
.hero-v2-badge::before { content: ""; width: 26px; height: 2px; background: var(--pine); margin-right: 12px; }
.hero-v2 h1 { font-family: var(--serif); font-size: clamp(40px, 5vw, 68px); font-weight: 800; line-height: 1.06; letter-spacing: -0.015em; color: var(--navy); margin-bottom: 24px; }
.hero-v2 h1 .l2 { display: block; font-weight: 300; color: #555555; }
.hero-v2 h1 .l2 em { font-style: italic; color: var(--blue); font-weight: 600; }
.hero-v2 h2 { color: var(--navy); letter-spacing: -0.5px; }
.hero-v2 .lede { color: var(--muted); font-size: clamp(1.1rem, 1.5vw, 1.2rem); max-width: 520px; margin-bottom: 24px; }
.hero-v2-spec { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.hero-v2-spec li { background: #FFFFFF; border: 1px solid var(--line); color: #555555; font-size: .78rem; font-weight: 600; padding: 6px 13px; border-radius: 999px; }
.hero-v2-trust { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font-size: .85rem; color: #9B958A; }
.hero-v2-trust .dots { display: inline-flex; }
.hero-v2-trust .dots i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(15,25,35,.15); }
.hero-v2-trust .dots i + i { margin-left: -7px; }
.hero-v2-trust .dots i { background: #9B958A; }

/* parts register — frosted glass card */
.parts-table {
  width: 100%;
  max-width: 520px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.98rem;
  margin: 4px 0 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(15, 25, 35, 0.06);
  overflow: hidden;
}
.parts-table td {
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  vertical-align: baseline;
}
.parts-table tbody tr:first-child td { border-top: none; }
.parts-table tbody tr { transition: background 0.15s ease; }
.parts-table tbody tr:hover { background: #EDE9E1; }
.parts-table .num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--blue);
  width: 40px;
  letter-spacing: 0.08em;
}
.parts-table .part { color: var(--navy); font-weight: 600; }
.parts-table .mat {
  text-align: right;
  color: #9B958A;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ---- right stage column ---- */
.hero-v2-stage { position: absolute; top: 0; bottom: 0; right: 0; width: 56%; margin: 0; z-index: 1; }
/* thin concentric rings behind the panel — static, navy 8% */
.hero-v2-stage::before { content: ""; position: absolute; inset: -12%;
  background: repeating-radial-gradient(circle at 50% 50%, rgba(15,25,35,0.08) 0 1px, transparent 1px 78px);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 72%); }
/* small dot-matrix patch, top-right */
.hero-v2::after { content: ""; position: absolute; top: 9%; right: 6%; width: 180px; height: 130px; z-index: 0;
  background-image: radial-gradient(circle, rgba(15,25,35,0.06) 1px, transparent 1.6px);
  background-size: 20px 20px; }
.hero-canvas,
.hero-poster,
.hero-static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* stage has the frames' aspect ratio: no crop */
}
.hero-canvas { display: block; }
.hero-poster { z-index: 1; transition: opacity 0.4s ease; }
.hero-poster.is-hidden { opacity: 0; pointer-events: none; }
.hero-static {
  opacity: 0;
  animation: heroFadeIn 1s ease forwards;
}
/* the theme-wide `img { display:block }` otherwise defeats the hidden
 * attribute and the static fallback paints over the canvas forever */
.hero-static[hidden] { display: none; }
@keyframes heroFadeIn { to { opacity: 1; } }
.stage-hint {
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #9B958A;
  white-space: nowrap;
  transition: opacity 0.5s ease;
}
.hero-scroll.is-parts .stage-hint { opacity: 0; }

/* ---- entrance: copy elements rise + fade in, staggered ---- */
@keyframes heroFromLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroFromRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}
.hero-scroll.is-ready .state-intro > * {
  opacity: 0;
  animation: heroFromLeft 0.5s ease forwards;
}
.hero-scroll.is-ready .state-intro > .hero-actions,
.hero-scroll.is-ready .state-intro > .hero-v2-trust {
  animation-name: heroFromRight;
}
.hero-scroll.is-ready .state-intro > *:nth-child(1) { animation-delay: 0ms; }
.hero-scroll.is-ready .state-intro > *:nth-child(2) { animation-delay: 150ms; }
.hero-scroll.is-ready .state-intro > *:nth-child(3) { animation-delay: 300ms; }
.hero-scroll.is-ready .state-intro > *:nth-child(4) { animation-delay: 450ms; }
.hero-scroll.is-ready .state-intro > *:nth-child(5) { animation-delay: 600ms; }
.hero-scroll.is-ready .state-intro > *:nth-child(6) { animation-delay: 750ms; }
@media (prefers-reduced-motion: reduce) {
  .hero-scroll.is-ready .state-intro > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* gentle transition from the hero tint into the first content section */
.hero-scroll + .section {
  background: linear-gradient(180deg, #F7F8FA 0%, #FFFFFF 160px);
}

/* ---- stacked / degraded layout (mobile, reduced motion) ---- */
@media (max-width: 899px) {
  .hero {
    height: auto;
    min-height: 0;
    padding: 56px 0 72px;
    overflow: visible;
  }
  .hero-v2 h1 { font-size: clamp(34px, 9.5vw, 46px); }
  .hero-v2-split { flex-direction: column; align-items: stretch; height: auto; gap: 44px; }
  .hero-copy { width: 100%; }
  .hero-v2::after { display: none; }
  .hero-v2-stage { position: relative; top: auto; bottom: auto; right: auto; width: 100%; max-width: 580px; margin: 0 auto; aspect-ratio: 1400 / 1200; }
  .hero-copy .copy-state {
    grid-area: auto; /* states flow normally, both always visible */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .state-parts { margin-top: 40px; }
  .hero-v2-stage { width: 100%; max-width: 580px; margin: 0 auto; }
  .stage-hint { display: none; }
}
@media (max-width: 640px) {
  .hero-v2 h1 { letter-spacing: -1px; }
}
/* ===== About lead (front page) ===== */
.about-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-lead-media img, .about-lead-media svg { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.about-lead-badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.about-lead-badges li { font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
@media (max-width: 899px) { .about-lead { grid-template-columns: 1fr; gap: 28px; } }

/* Sections */
.section { padding: 64px 0; }
.section-light { background: var(--light); }
.section-navy { background: var(--forest); color: rgba(255,255,255,0.9); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2::after { content: ""; display: block; width: 40px; height: 3px; background: var(--navy); margin-top: 14px; }
.section-head.center h2::after { margin-left: auto; margin-right: auto; }
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
  display: block;
}
.section-lead { color: var(--muted); font-size: 1.05rem; }

/* ===== Category cards ===== */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }

/* Featured products (FL-haus style: full-width dark section, white cards, full-bleed photo) */
.fl-section { background: #24272B; }
.fl-section .section-head h2 { color: var(--white); }
.fl-section .section-head h2::after { background: rgba(255,255,255,.85); }
.fl-section .section-lead { color: rgba(255,255,255,.62); }
.fl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) { .fl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .fl-grid { grid-template-columns: repeat(3, 1fr); } }
.fl-section .container { max-width: 1360px; }
.fl-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.fl-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,.35); }
.fl-top {
  padding: 24px 24px 20px;
}
.fl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.fl-title { margin: 0; font-size: 1.25rem; font-weight: 800; line-height: 1.25; }
.fl-title a { color: var(--navy); text-decoration: none; }
.fl-arrow {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  background: #23262B;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  transition: background .25s ease, transform .25s ease;
}
.fl-arrow svg { width: 16px; height: 16px; }
.fl-card:hover .fl-arrow { background: var(--blue); transform: rotate(45deg); }
.fl-desc {
  color: var(--muted); font-size: .88rem; margin: 10px 0 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fl-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.fl-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--light);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .75rem;
  color: var(--muted);
  white-space: nowrap;
}
.fl-chip svg { width: 13px; height: 13px; color: var(--muted); flex: 0 0 auto; }
.fl-chip b { font-weight: 700; font-size: .8rem; color: var(--navy); }
.fl-media {
  position: relative; display: block; margin-top: auto;
  aspect-ratio: 4 / 3;
  background: #fff;
  overflow: hidden;
}
.fl-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.fl-card:hover .fl-media img { transform: scale(1.05); }
.fl-badge {
  position: absolute; left: 16px; bottom: 16px;
  background: var(--blue);
  color: #fff; font-weight: 700; font-size: .9rem;
  padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(15,25,35,.25);
}
.fl-more { text-align: center; margin-top: 40px; }
.cat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(15,25,35,0.14); }
.cat-card .cat-media { aspect-ratio: 4 / 2.7; background: var(--light); overflow: hidden; }
.cat-card .cat-media img, .cat-card .cat-media svg { transition: transform 0.4s ease; }
.cat-card:hover .cat-media img { transform: scale(1.05); }
.cat-card .cat-media img, .cat-card .cat-media svg { width: 100%; height: 100%; object-fit: cover; }
.cat-body { padding: 20px; flex: 1; display: flex; flex-direction: column; text-align: center; align-items: center; }
.cat-body h3 { font-family: var(--serif); }
.cat-body h3 { margin-bottom: 6px; }
.cat-body p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.cat-link {
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ===== Stats ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 960px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat-num {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.section-navy .stat-num { color: #5B9BD5; font-family: var(--serif); font-weight: 700; }
.section-navy .feature-card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.section-navy .feature-card h3 { color: var(--white); }
.section-navy .feature-card p { color: rgba(255,255,255,0.62); }
.section-navy .feature-icon { color: #5B9BD5; }
.section-navy .stat-label { color: rgba(255,255,255,0.6); }
.stat-label { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }
.section-navy .stat-label { color: rgba(255,255,255,0.75); }

/* ===== Feature cards (Why choose us) ===== */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(15,25,35,0.14); }
.feature-icon {
  width: 44px; height: 44px;
  color: var(--blue);
  margin-bottom: 14px;
}
.feature-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }

/* ===== Product / Case cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card, .case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover, .case-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(15,25,35,0.14); }
.card-media { aspect-ratio: 4 / 2.7; background: var(--light); overflow: hidden; }
.case-card:hover .card-media img { transform: scale(1.03); }
.card-media img, .card-media svg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card .card-media { background: var(--white); }
.product-card:hover .card-media img, .case-card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; text-align: center; align-items: center; }
.card-title { font-family: var(--serif); }
.card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.card-title { font-size: 1.1rem; margin-bottom: 8px; }
.card-title a { color: var(--navy); }
.card-title a:hover { color: var(--blue); }
.card-excerpt { color: var(--muted); font-size: 0.92rem; flex: 1; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--light);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-navy { background: var(--forest); color: var(--white); }
.badge-green { background: rgba(37, 211, 102, 0.15); color: var(--green-dark); }

/* ===== Cert marquee (infinite scroll, georgebeyond style) ===== */
.cert-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.cert-track {
  display: flex;
  width: max-content;
  animation: cert-scroll 38s linear infinite;
}
.cert-marquee:hover .cert-track { animation-play-state: paused; }
@keyframes cert-scroll { to { transform: translateX(-50%); } }
.cert-subhead {
  font-family: var(--sans);
  font-size: .85rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin: 34px 0 18px;
  display: flex; align-items: center; gap: 16px;
}
.cert-subhead::before, .cert-subhead::after {
  content: ""; flex: 1; height: 1px; background: rgba(15,25,35,.1);
}
.cert-slide {
  flex: 0 0 auto;
  margin-right: 20px;
  background: var(--white);
  border: 1px solid rgba(15,25,35,0.08);
  border-radius: 16px;
  display: grid; place-items: center;
  transition: box-shadow .25s ease, transform .25s ease;
}
.cert-slide:hover { box-shadow: 0 12px 30px rgba(15,25,35,.12); transform: translateY(-3px); }
.cert-slide img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.cert-slide-doc { width: 180px; height: 250px; padding: 10px; }
.cert-track-docs { animation-duration: 32s; }
.cert-marks-static {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 28px 64px;
}
.cert-mark-logo {
  height: 44px; width: auto; display: block;
  transition: transform .3s ease;
}
.cert-mark-logo:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .cert-track { animation: none; } }

/* ===== CTA ===== */
.cta-section {
  background-image: linear-gradient(rgba(15,25,35,0.55), rgba(15,25,35,0.55)), url("assets/img/factory/hero-rooftop-solar-array.webp");
  background-size: cover;
  background-position: center;
  color: var(--white);
  border-radius: var(--radius);
  padding: 84px 28px;
  text-align: center;
}
.cta-section .btn-white { background: transparent; border-color: rgba(255,255,255,0.65); color: var(--white); }
.cta-section .btn-white:hover { background: rgba(255,255,255,0.12); border-color: var(--white); color: var(--white); }
.cta-section h2 { color: var(--white); font-family: var(--serif); }
.cta-section p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 26px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ===== Footer ===== */
.site-footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.75);
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 56px 0 32px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 255, 255, 0.75); }
.site-footer a:hover { color: var(--green); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-brand { color: var(--white); font-weight: 800; font-size: 1.15rem; margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 14px 0 0;
}
.breadcrumbs ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: rgba(15,25,35,0.3);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }

/* ===== Page hero (interior pages) ===== */
.page-hero {
  background: var(--light);
  padding: 48px 0 40px;
  border-bottom: 1px solid rgba(15,25,35,0.06);
}
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0; }

/* ===== Filter bar ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}
.filter-bar a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(15,25,35,0.15);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}
.filter-bar a:hover { border-color: var(--blue); color: var(--blue); }
.filter-bar a.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* ===== Param table ===== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.spec-table th, .spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--light);
  font-size: 0.95rem;
}
.spec-table th {
  width: 40%;
  background: var(--light);
  color: var(--navy);
  font-weight: 600;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* ===== Detail layout ===== */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 32px 0;
}
@media (min-width: 960px) { .detail-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.detail-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--light);
  aspect-ratio: 4 / 3;
}
.detail-media img, .detail-media svg { width: 100%; height: 100%; object-fit: cover; }
.product .detail-media { background: var(--white); }

/* ===== Timeline (About) ===== */
.timeline {
  position: relative;
  margin: 40px 0;
  padding-left: 26px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: rgba(11, 95, 255, 0.25);
}
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.18);
}
.timeline-year {
  font-weight: 800;
  color: var(--blue);
  font-size: 1.05rem;
}
.timeline-item h3 { margin: 4px 0 6px; }
.timeline-item p { color: var(--muted); margin: 0; }

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin: 40px 0;
}
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(15,25,35,0.15);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.15);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
}
.form-notice {
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-weight: 600;
}
.form-notice.success { background: rgba(37, 211, 102, 0.12); color: var(--green-dark); }
.form-notice.error { background: rgba(220, 53, 69, 0.10); color: #b3261e; }
.contact-aside .aside-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}
.contact-aside h3 { margin-bottom: 12px; }
.contact-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text);
}
.contact-line svg { width: 20px; height: 20px; color: var(--blue); flex: 0 0 auto; margin-top: 3px; }
.btn-whatsapp-full { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; }

/* ===== Content (blog) ===== */
.post-list { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 32px 0; }
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.post-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.entry-content { max-width: 760px; margin: 24px 0; }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }
.entry-content ul { margin: 0.6em 0 1.2em; padding: 0; list-style: none; }
.entry-content ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.6;
}
.entry-content ul li::before {
  content: "";
  position: absolute; left: 2px; top: 0.62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.entry-content ul li strong { color: var(--navy); }
.entry-content img { border-radius: var(--radius); }
.entry-meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 16px; }
.nav-links { display: flex; justify-content: space-between; gap: 16px; margin: 32px 0; flex-wrap: wrap; }

/* Pagination */
.pagination { margin: 36px 0; text-align: center; }
.pagination .page-numbers {
  display: inline-block;
  min-width: 40px;
  padding: 8px 12px;
  margin: 0 3px;
  border-radius: 8px;
  border: 1.5px solid rgba(15,25,35,0.15);
  color: var(--text);
  font-weight: 600;
}
.pagination .page-numbers.current {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* ===== 404 / search ===== */
.notfound-hero { text-align: center; padding: 90px 0; }
.notfound-code { font-size: clamp(4rem, 16vw, 8rem); font-weight: 800; color: var(--blue); line-height: 1; }
.search-form-inline { display: flex; gap: 10px; max-width: 480px; margin: 24px auto 0; }
.search-form-inline input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid rgba(10,31,68,0.2);
  border-radius: 10px;
  font-size: 1rem;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; color: var(--white); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ===== Stage annotation labels (DOM overlay, driven by hero-animation.js) ===== */
.stage-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.stage-label { position: absolute; left: 0; top: 0; display: flex; align-items: center; opacity: 0; transform: translate(12px, -50%); white-space: nowrap; }
.stage-label i.dot { width: 6px; height: 6px; border-radius: 50%; background: #5B9BD5; flex: none; }
.stage-label i.line { width: 20px; height: 1px; background: #D8D2C6; flex: none; }
.stage-label span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; color: #0F1923; background: rgba(255,255,255,0.9); border: 1px solid #E5E0D8; border-radius: 4px; padding: 2px 7px; }
.stage-labels.is-static .stage-label { transition: none; }

/* ===== Hero frame progress bar ===== */
.hero-progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 5; background: rgba(15,25,35,0.06); }
.hero-progress i { display: block; height: 100%; width: 0; background: #5B9BD5; transition: width 0.1s linear; }
.hero-scroll.is-degraded .hero-progress { display: none; }

/* ===== Scroll fade-up reveal (classes applied by main.js) ===== */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ===== Keyboard focus ===== */
a:focus-visible, .btn:focus-visible, button:focus-visible { outline: 2px solid #5B9BD5; outline-offset: 2px; }

/* ===== About page: problems & process ===== */
.split-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 960px) { .split-2 { grid-template-columns: 1fr 1fr; } }
.solve-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.solve-card h3 { margin-top: 0; }
.solve-list { list-style: none; padding: 0; margin: 0; }
.solve-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.solve-list li:first-child { border-top: none; padding-top: 0; }
.solve-list strong { color: var(--navy); }
.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.step-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 14px;
}

/* ===== Dark showcase section (About process) ===== */
.section-dark { background: #24272B; color: rgba(255,255,255,.78); }
.section-dark .section-head h2 { color: var(--white); }
.section-dark .section-head h2::after { background: rgba(255,255,255,.85); }
.section-dark .step-card { background: #2D3138; border-color: rgba(255,255,255,.08); }
.section-dark .step-card h3 { color: var(--white); }
.section-dark .step-card p { color: rgba(255,255,255,.62); }

/* ===== Stat chips (About hero) ===== */
.stat-chips { display: flex; flex-wrap: wrap; gap: 22px 56px; list-style: none; margin: 30px 0 8px; padding: 0; }
.stat-chips li { color: var(--muted); font-size: 0.88rem; }
.stat-chips strong { display: block; font-family: var(--serif); font-weight: 800; font-size: 2.1rem; color: var(--navy); line-height: 1.1; margin-bottom: 2px; }

/* ===== Factory photo strip ===== */
.photo-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
@media (min-width: 960px) { .photo-strip { grid-template-columns: repeat(4, 1fr); } }

/* ===== Factory section (About): roomier cards ===== */
.factory-section .feature-card { padding: 34px 30px; }
.factory-section .feature-card h3 { margin-bottom: 10px; }

/* ===== Person block (About solutions) ===== */
.person-line { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.person-line img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); flex: 0 0 auto; }
.person-line strong { display: block; font-size: 1.05rem; color: var(--navy); }
.person-line small { color: var(--muted); }

/* ===== Product detail: spec chips + trust row ===== */
.p-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; padding: 0; }
.p-chips li {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.78rem;
  color: var(--muted);
}
.p-chips li strong { font-size: 0.92rem; color: var(--navy); }
.trust-row { list-style: none; margin: 20px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust-row li { display: inline-flex; align-items: center; gap: 7px; font-size: 0.83rem; color: var(--muted); }
.trust-row svg { width: 15px; height: 15px; color: var(--green-dark, #1DA851); flex: 0 0 auto; }

/* ===== Homepage quote form ===== */
.form-split { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: start; }
@media (min-width: 960px) { .form-split { grid-template-columns: 5fr 6fr; } }
.form-intro h2 { margin-top: 6px; }
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

/* ===== Homepage form: compact ===== */
@media (min-width: 960px) {
  .section:has(.form-split) { padding-top: 40px; padding-bottom: 40px; }
}
.form-split { gap: 26px; }
.form-intro h2 { font-size: 1.65rem; }
.form-intro .section-lead { font-size: 0.93rem; margin-bottom: 10px; }
.form-intro .solve-list li { padding: 7px 0; font-size: 0.86rem; line-height: 1.45; }
.form-intro .btn { padding: 9px 18px; font-size: 0.9rem; }
.form-panel { padding: 14px; }
.form-panel .contact-form { box-shadow: none; padding: 8px; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.form-panel .form-row { flex: 1 1 42%; margin-bottom: 0; }
.form-panel .form-row:has(textarea) { flex-basis: 100%; }
.form-panel .form-row label { font-size: 0.78rem; margin-bottom: 3px; }
.form-panel .form-row input[type="text"],
.form-panel .form-row input[type="email"],
.form-panel .form-row input[type="tel"],
.form-panel .form-row textarea { padding: 8px 11px; font-size: 0.9rem; }
.form-panel .form-row textarea { min-height: 70px; }
.form-panel .contact-form button { width: 100%; padding: 10px 18px; font-size: 0.95rem; }
