/* ============================================================
   Bilvista Hardware — bilvistahardware.co.ke
   Single stylesheet. No external fonts or CDNs (CSP-safe).
   ============================================================ */

:root {
  --bg:        #0d1016;
  --bg-2:      #131822;
  --bg-3:      #1a212e;
  --line:      #263042;
  --line-soft: #1e2634;

  --text:      #e8edf5;
  --text-2:    #a7b3c6;
  --text-3:    #6f7d92;

  --brand:     #f59e0b;   /* amber - hardware / tools */
  --brand-2:   #fbbf24;
  --brand-ink: #2a1a02;
  --accent:    #38bdf8;   /* sky - gutters / water */
  --accent-2:  #a78bfa;   /* violet - flooring */
  --green:     #25d366;   /* whatsapp */
  --danger:    #ef4444;

  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow:    0 10px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
  --maxw:      1180px;
  --header-h:  72px;

  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.16rem; }
p  { margin: 0 0 1rem; color: var(--text-2); }
ul { margin: 0 0 1rem; padding-left: 1.15rem; color: var(--text-2); }
li { margin-bottom: .4rem; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout ---------- */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .75rem;
}
.lead { font-size: 1.06rem; color: var(--text-2); }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: var(--brand-ink); box-shadow: 0 8px 22px rgba(245,158,11,.28); }
.btn-primary:hover { color: var(--brand-ink); box-shadow: 0 12px 28px rgba(245,158,11,.4); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-2); background: rgba(245,158,11,.06); }
.btn-wa { background: var(--green); color: #042a12; box-shadow: 0 8px 22px rgba(37,211,102,.25); }
.btn-wa:hover { color: #042a12; }
.btn-sm { padding: .55rem 1rem; font-size: .87rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: rgba(13,16,22,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header.scrolled { background: rgba(13,16,22,.96); box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: var(--brand-ink);
  font-weight: 800; font-size: 1.24rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.06rem; letter-spacing: -.02em; }
.brand-text small { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); }
.nav { display: flex; gap: .35rem; margin-left: auto; }
.nav a {
  padding: .5rem .8rem; border-radius: 8px; color: var(--text-2);
  font-size: .93rem; font-weight: 550;
}
.nav a:hover { color: var(--text); background: var(--bg-3); }
.nav a.active { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.cart-link { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--text-2); border: 1px solid var(--line); }
.cart-link:hover { color: var(--brand); border-color: var(--brand); }
.cart-link svg { width: 20px; height: 20px; }
.cart-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--brand); color: var(--brand-ink);
  font-size: .7rem; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--bg); transform: scale(0); transition: transform .2s cubic-bezier(.2,1.4,.5,1);
}
.cart-badge.show { transform: scale(1); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 11px; background: transparent; border: 1px solid var(--line); cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 3px auto; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem; margin: 0;
    transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: .85rem .5rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
}

/* ---------- topbar ---------- */
.topbar { background: var(--bg-3); border-bottom: 1px solid var(--line-soft); font-size: .82rem; }
.topbar-inner { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center; padding: .5rem 0; color: var(--text-3); }
.topbar a { color: var(--text-2); }
.topbar a:hover { color: var(--brand); }
.topbar-items { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.topbar-items span { display: inline-flex; align-items: center; gap: .4rem; }
@media (max-width: 620px) { .topbar { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 620px; z-index: 0;
  background:
    radial-gradient(46% 46% at 18% 30%, rgba(245,158,11,.16), transparent 68%),
    radial-gradient(44% 44% at 82% 18%, rgba(56,189,248,.14), transparent 66%),
    radial-gradient(40% 40% at 60% 80%, rgba(167,139,250,.10), transparent 70%);
  filter: blur(6px); pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2);
  font-size: .8rem; color: var(--text-2); margin-bottom: 1.25rem;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(37,211,102,.15); }
.hero h1 span { background: linear-gradient(120deg, var(--brand-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.1rem; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); }
.hero-stats div strong { display: block; font-size: 1.5rem; color: var(--text); letter-spacing: -.02em; }
.hero-stats div span { font-size: .82rem; color: var(--text-3); }

/* hero collage */
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.art-card {
  border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden;
  min-height: 150px; padding: 1.1rem; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow); position: relative;
}
.art-card span { font-weight: 650; font-size: .93rem; }
.art-card small { color: rgba(255,255,255,.72); font-size: .76rem; }
.art-card:nth-child(1) { background: linear-gradient(150deg, #0c4a6e, #075985 55%, #0ea5e9); grid-row: span 2; min-height: 320px; }
.art-card:nth-child(2) { background: linear-gradient(150deg, #431407, #7c2d12 60%, #b45309); }
.art-card:nth-child(3) { background: linear-gradient(150deg, #052e16, #14532d 60%, #16a34a); }
.art-card::after {
  content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 1px, transparent 1px 14px);
}
@media (max-width: 900px) { .art-card:nth-child(1) { min-height: 200px; } }

/* ---------- cards ---------- */
.card {
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.5rem; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; }
.card p { font-size: .93rem; margin-bottom: 0; }
.card ul { font-size: .9rem; margin-top: .75rem; margin-bottom: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 1rem; background: rgba(245,158,11,.12); color: var(--brand);
}
.icon svg { width: 23px; height: 23px; }
.icon.sky    { background: rgba(56,189,248,.12);  color: var(--accent); }
.icon.violet { background: rgba(167,139,250,.12); color: var(--accent-2); }
.icon.green  { background: rgba(37,211,102,.12);  color: var(--green); }

/* ---------- product catalogue ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip {
  padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text-2); font-size: .87rem; cursor: pointer; transition: .18s;
}
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 650; }
.search-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.25rem; }
.search-row input { flex: 1 1 260px; }
.result-count { color: var(--text-3); font-size: .87rem; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.product {
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .2s;
}
.product:hover { border-color: var(--line); transform: translateY(-3px); box-shadow: var(--shadow); }
.product-media {
  height: 158px; position: relative; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--bg-3), #0b0f16);
}
.product-media::after {
  content: ""; position: absolute; inset: 0; opacity: .2;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 1px, transparent 1px 12px);
}
.product-media svg { width: 62px; height: 62px; position: relative; z-index: 1; opacity: .95; }
.tag {
  position: absolute; top: .7rem; left: .7rem; z-index: 2; padding: .22rem .6rem;
  border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; background: rgba(0,0,0,.55); color: var(--text-2); backdrop-filter: blur(4px);
}
.tag.hot { background: var(--brand); color: var(--brand-ink); }
.product-body { padding: 1.05rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1rem; margin-bottom: .3rem; }
.product-desc { font-size: .84rem; color: var(--text-3); margin-bottom: .9rem; flex: 1; }
.price { display: flex; align-items: baseline; gap: .35rem; margin-bottom: .9rem; }
.price b { font-size: 1.15rem; color: var(--brand-2); letter-spacing: -.02em; }
.price span { font-size: .78rem; color: var(--text-3); }
.product-actions { display: flex; gap: .5rem; }
.product-actions .btn { flex: 1; padding: .6rem .8rem; font-size: .85rem; }
.icon-btn {
  width: 40px; flex: none !important; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  color: var(--green); cursor: pointer; transition: .18s;
}
.icon-btn:hover { border-color: var(--green); background: rgba(37,211,102,.1); }
.icon-btn svg { width: 17px; height: 17px; }

/* ---------- forms ---------- */
.field { margin-bottom: 1rem; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-2); margin-bottom: .4rem; }
input, select, textarea {
  width: 100%; padding: .8rem .95rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font: inherit; font-size: .93rem; transition: border-color .18s, box-shadow .18s;
}
textarea { min-height: 128px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(245,158,11,.14);
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 19px) 51%, calc(100% - 14px) 51%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .8rem; color: var(--text-3); }
.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .88rem; margin-bottom: 1rem; border: 1px solid; }
.alert-ok   { background: rgba(37,211,102,.08); border-color: rgba(37,211,102,.35); color: #86efac; }
.alert-err  { background: rgba(239,68,68,.08);  border-color: rgba(239,68,68,.35);  color: #fca5a5; }
.alert-info { background: rgba(56,189,248,.08); border-color: rgba(56,189,248,.3);  color: #7dd3fc; }
.hidden { display: none !important; }

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr .9fr; gap: 1.75rem; align-items: start; }
@media (max-width: 880px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 1rem; align-items: center;
  padding: 1rem; border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--bg-2); margin-bottom: .85rem;
}
.cart-thumb { width: 62px; height: 62px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-3); }
.cart-thumb svg { width: 30px; height: 30px; }
.cart-item h4 { margin: 0 0 .2rem; font-size: .96rem; }
.cart-item small { color: var(--text-3); font-size: .8rem; }
.cart-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 30px; height: 30px; background: transparent; border: 0; color: var(--text-2); cursor: pointer; font-size: 1.05rem; line-height: 1; }
.qty button:hover { background: var(--bg-3); color: var(--brand); }
.qty input { width: 46px; height: 30px; text-align: center; border: 0; background: transparent; padding: 0; font-size: .88rem; border-inline: 1px solid var(--line); border-radius: 0; }
.qty input:focus { box-shadow: none; }
.line-total { font-weight: 700; font-size: .95rem; }
.link-remove { background: none; border: 0; color: var(--text-3); font-size: .78rem; cursor: pointer; padding: 0; text-decoration: underline; }
.link-remove:hover { color: var(--danger); }
.summary { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: calc(var(--header-h) + 20px); }
.summary-row { display: flex; justify-content: space-between; padding: .55rem 0; font-size: .92rem; color: var(--text-2); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: 1rem; font-size: 1.2rem; font-weight: 700; color: var(--text); }
.empty-state { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state svg { width: 54px; height: 54px; color: var(--text-3); margin: 0 auto 1rem; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--bg-2); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .89rem; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { background: var(--bg-3); color: var(--text-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.02); }
.badge { display: inline-block; padding: .18rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 650; background: var(--bg-3); color: var(--text-2); border: 1px solid var(--line); }
.badge.new { background: rgba(245,158,11,.14); color: var(--brand-2); border-color: rgba(245,158,11,.3); }

/* ---------- coverage / misc ---------- */
.town-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.town {
  display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--bg-2); font-size: .92rem;
}
.town svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--brand); font-weight: 800;
}
.step h3 { margin-bottom: .25rem; font-size: 1.02rem; }
.step p { font-size: .9rem; margin: 0; }
.quote {
  border-left: 3px solid var(--brand); padding: .25rem 0 .25rem 1.25rem; margin: 0 0 1rem;
  font-style: italic; color: var(--text-2);
}
.cta-band {
  background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(56,189,248,.09));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.25rem); text-align: center;
}
.faq { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--bg-2); margin-bottom: .75rem; overflow: hidden; }
.faq summary { padding: 1.1rem 1.25rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq[open] summary::after { content: "\2013"; }
.faq p { padding: 0 1.25rem 1.15rem; margin: 0; font-size: .92rem; }

/* ---------- page hero ---------- */
.page-hero { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line-soft); background: var(--bg-2); }
.crumbs { font-size: .82rem; color: var(--text-3); margin-bottom: .75rem; }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--brand); }

/* ---------- footer ---------- */
.site-footer { background: #090c11; border-top: 1px solid var(--line-soft); padding: 3.5rem 0 1.5rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: var(--text-2); font-size: .9rem; }
.site-footer a:hover { color: var(--brand); }
.site-footer p { font-size: .9rem; }
.footer-bottom {
  border-top: 1px solid var(--line-soft); padding-top: 1.25rem; display: flex;
  flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .82rem; color: var(--text-3);
}
.footer-bottom a { color: var(--text-3); font-size: .82rem; }

/* ---------- whatsapp bubble ---------- */
.wa-bubble {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--green);
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37,211,102,.4);
  border: 0; cursor: pointer; transition: transform .2s ease;
}
.wa-bubble:hover { transform: scale(1.07); }
.wa-bubble svg { width: 31px; height: 31px; fill: #fff; }
.wa-bubble::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--green); opacity: .55; animation: wa-pulse 2.4s ease-out infinite; z-index: -1;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.85); opacity: 0; } }
.wa-panel {
  position: fixed; right: 20px; bottom: 90px; z-index: 91; width: min(330px, calc(100vw - 40px));
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.96); transform-origin: bottom right;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.wa-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.wa-head { background: #075e54; padding: 1rem 1.15rem; display: flex; align-items: center; gap: .75rem; }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green); display: grid; place-items: center; font-weight: 800; color: #042a12; flex: none; }
.wa-head strong { display: block; font-size: .94rem; color: #fff; }
.wa-head small { font-size: .76rem; color: rgba(255,255,255,.72); }
.wa-body { padding: 1.15rem; background: #0b1119; }
.wa-msg { background: var(--bg-3); border-radius: 3px 12px 12px 12px; padding: .8rem .95rem; font-size: .88rem; color: var(--text-2); margin-bottom: 1rem; }
.wa-quick { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.wa-quick button {
  padding: .4rem .7rem; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text-2); font-size: .78rem; cursor: pointer;
}
.wa-quick button:hover { border-color: var(--green); color: var(--green); }
.wa-close { margin-left: auto; background: none; border: 0; color: rgba(255,255,255,.7); font-size: 1.35rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }

/* ---------- toast ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; }
.toast {
  background: var(--bg-3); border: 1px solid var(--line); color: var(--text);
  padding: .7rem 1.15rem; border-radius: 999px; font-size: .88rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: .55rem; animation: toast-in .25s ease;
}
.toast svg { width: 17px; height: 17px; color: var(--green); flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- admin ---------- */
.admin-shell { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 3rem 0; }
.login-card { width: min(100%, 420px); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.25rem; box-shadow: var(--shadow-lg); }
.login-card .brand-mark { width: 48px; height: 48px; font-size: 1.5rem; margin-bottom: 1.25rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.25rem; }
.stat b { display: block; font-size: 1.9rem; letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: .8rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }

/* ---------- utilities / motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
@media print { .site-header, .wa-bubble, .wa-panel, .site-footer, .topbar { display: none !important; } body { background: #fff; color: #000; } }
