/* Elitex Solar & Agro Innovations, public site
   Brand: the leaf-and-lightning logo runs lime #78c820 → leaf #48b038 → forest #187840. */
:root {
  --forest: #187840;
  --forest-900: #0f4d2a;
  --leaf: #48b038;
  --lime: #78c820;
  --sun: #f2b705;
  --ink: #15261b;
  --muted: #55665a;
  --line: #dfe8da;
  --paper: #ffffff;
  --mist: #f4f8f0;
  --mist-2: #e9f2e2;
  --danger: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 40, 22, .06), 0 8px 24px rgba(16, 40, 22, .07);
  --brand-grad: linear-gradient(120deg, var(--lime) 0%, var(--leaf) 45%, var(--forest) 100%);
  --display: 'Marcellus', Georgia, 'Times New Roman', serif;
  --body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--forest); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--leaf); font-weight: 800; margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: auto; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 1.32rem; letter-spacing: .06em; display: block; line-height: 1; }
.brand span { font-family: var(--display); color: var(--forest); font-size: .76rem; letter-spacing: .09em; }
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--mist-2); color: var(--forest); }
.cart-link { position: relative; }
.cart-count { position: absolute; top: 0; right: 0; background: var(--sun); color: var(--ink); font-size: .7rem; border-radius: 999px; min-width: 18px; height: 18px; display: grid; place-items: center; font-weight: 800; padding: 0 4px; }
.cart-count:empty { display: none; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-weight: 700; color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .12s, box-shadow .12s, background .12s; min-height: 48px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest); color: #fff; box-shadow: 0 6px 18px rgba(24, 120, 64, .28); }
.btn-primary:hover { background: var(--forest-900); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #ffc81a; }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--forest); }
.btn-light { background: #fff; color: var(--forest); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(120, 200, 32, .28), transparent 60%), linear-gradient(180deg, #f6fbf1 0%, #fff 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 64px 0 56px; }
.hero h1 em { font-style: normal; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-art { width: 100%; height: auto; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 18px 0 26px; padding: 0; list-style: none; color: var(--muted); font-weight: 700; font-size: .95rem; }
.hero-points li::before { content: '✓'; color: var(--leaf); margin-right: 6px; font-weight: 900; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.band { background: var(--mist); }
.band-dark { background: var(--forest-900); color: #eaf5e4; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .muted, .band-dark .lead { color: #bcd8b4; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--mist-2); display: grid; place-items: center; margin-bottom: 14px; color: var(--forest); }
.icon svg { width: 26px; height: 26px; }
.step-num { font-family: var(--display); font-size: 2.4rem; color: var(--lime); line-height: 1; margin-bottom: 8px; }
.stat { font-family: var(--display); font-size: 2.2rem; color: var(--forest); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--mist-2); color: var(--forest); font-size: .78rem; font-weight: 800; }
.tick-list { list-style: none; padding: 0; margin: 0 0 1em; }
.tick-list li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.tick-list li::before { content: ''; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- product cards ---------- */
.family-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.family-card .photo { aspect-ratio: 4/3; background: var(--mist); }
.family-card .photo img { width: 100%; height: 100%; object-fit: contain; }
.family-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.family-card .from { font-weight: 800; color: var(--forest); }
.opt { display: grid; gap: 4px; }
.opt label { font-size: .8rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
select, input, textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid #cbd9c5; border-radius: 10px; padding: 11px 12px; width: 100%; min-height: 46px; }
select:focus, input:focus, textarea:focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 3px rgba(72, 176, 56, .2); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: .9rem; margin: 4px 0; padding: 12px; background: var(--mist); border-radius: 10px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; text-align: right; }
.price { font-family: var(--display); font-size: 1.8rem; color: var(--ink); }
.price small { font-family: var(--body); font-size: .8rem; color: var(--muted); display: block; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty input { width: 76px; text-align: center; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }

/* ---------- cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(10, 30, 15, .45); }
.drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(460px, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0, 0, 0, .15); }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer .items { padding: 12px 20px; overflow: auto; flex: 1; }
.drawer footer { padding: 16px 20px; border-top: 1px solid var(--line); background: var(--mist); }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.line img { width: 56px; height: 42px; object-fit: contain; background: var(--mist); border-radius: 6px; }
.line .name { font-weight: 700; font-size: .92rem; line-height: 1.3; }
.icon-btn { background: none; border: none; color: var(--muted); cursor: pointer; font: inherit; padding: 6px; min-width: 36px; min-height: 36px; }
.total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.1rem; margin: 6px 0 12px; }
.form-grid { display: grid; gap: 12px; }
.form-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--mist-2); color: var(--forest-900); font-size: .93rem; }
.notice.err { background: #fdecea; color: var(--danger); }
.notice.ok { background: #e7f6e3; color: var(--forest-900); }

/* ---------- sizing tool ---------- */
.sizer { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.sizer form { display: grid; gap: 14px; }
.reco { display: grid; gap: 12px; }
.reco .card { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; padding: 14px; }
.reco img { width: 92px; height: 70px; object-fit: contain; background: var(--mist); border-radius: 8px; }
.meter { height: 8px; background: var(--mist-2); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--brand-grad); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery figcaption { padding: 14px 16px; font-size: .93rem; }

/* ---------- footer ---------- */
.foot { background: var(--forest-900); color: #cfe5c8; padding: 48px 0 96px; font-size: .95rem; }
.foot a { color: #fff; }
.foot .grid { grid-template-columns: 1.4fr 1fr 1fr; }
.foot h3 { color: #fff; font-size: 1.1rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 6px; }
.foot .legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 16px; font-size: .82rem; color: #9fbf96; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* phone-first action bar */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0, 0, 0, .06); padding-bottom: env(safe-area-inset-bottom); }
.actionbar a, .actionbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; text-decoration: none; color: var(--forest); font: inherit; font-weight: 800; font-size: .78rem; background: none; border: 0; }
.actionbar svg { width: 22px; height: 22px; }

@media (max-width: 920px) {
  .hero .wrap, .split, .sizer { grid-template-columns: 1fr; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .foot .grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .hero .wrap { padding: 36px 0 40px; }
  .actionbar { display: grid; }
  .form-grid .two { grid-template-columns: 1fr; }
  .reco .card { grid-template-columns: 72px 1fr; }
  .reco .card .price { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- page-specific ---------- */
.cart-fab { position: fixed; right: 18px; bottom: 22px; z-index: 45; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.cart-fab svg { width: 20px; height: 20px; }
.cart-fab [data-cart-count]:empty::before { content: '0'; }
.shop-hero .wrap { grid-template-columns: 1fr; padding-bottom: 24px; }
.shop-section { padding-top: 24px; }
.shop-note { margin-top: 18px; }
.about-logo { width: min(420px, 100%); margin-inline: auto; border-radius: var(--radius); }
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }
.muted-foot { color: #a9c9a0; margin-top: 12px; }
.foot .brand { color: #fff; }
.foot .brand span { color: #b8e08f; }
.btn-on-dark { color: #fff; }
.center-row { justify-content: center; }
.center-lead { margin-inline: auto; }
.drawer-title { font-size: 1.5rem; margin: 0; }
.family-card .blurb { color: var(--muted); font-size: .95rem; }
.family-card .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.family-card .opts .opt:only-child { grid-column: 1 / -1; }
.family-card .buy { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.feat { text-decoration: none; color: inherit; }
.feat .body { padding: 16px 18px; }
.feat h3 { font-size: 1.1rem; }
.empty { padding: 32px; text-align: center; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); grid-column: 1 / -1; }
@media (max-width: 760px) { .cart-fab { bottom: 78px; right: 12px; } .family-card .opts { grid-template-columns: 1fr; } }
.h3-like { font-size: 1.45rem; margin: 0; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: var(--forest); }
.btn svg { width: 20px; height: 20px; flex: none; }
section.hero { padding: 0; }
@media (max-width: 760px) { .cart-fab { padding: 10px 16px; min-height: 42px; } }
.family-card .pill { align-self: flex-start; }

.nav a.staff-link { font-weight: 700; font-size: .85rem; color: var(--muted); border: 1px solid var(--line); }
.nav a.staff-link:hover { color: var(--forest); }

/* shop tabs */
.filters[role="tablist"] { position: sticky; top: 68px; z-index: 20; background: rgba(255, 255, 255, .96); padding: 10px 0; margin-bottom: 18px; border-bottom: 1px solid var(--line); overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.filters[role="tablist"]::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.chip[aria-selected="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
.chip .count { font-size: .75rem; background: var(--mist-2); color: var(--forest); border-radius: 999px; padding: 1px 8px; }
.chip[aria-selected="true"] .count { background: rgba(255, 255, 255, .2); color: #fff; }
.panel-head { margin-bottom: 18px; }
.panel-head h2 { margin-bottom: .3em; }
.tabpanel .family-card .photo { aspect-ratio: 4/3; }
@media (max-width: 760px) { .filters[role="tablist"] { top: 68px; } }
.shop-hero .wrap { padding-top: 40px; padding-bottom: 8px; }
@media (max-width: 760px) { .shop-hero .wrap { padding-top: 20px; } .shop-hero .lead { font-size: 1rem; } }
