/* BCH - Business Connection Hub
   Brand colours come from admin settings via --brand and --accent. */
:root {
  --brand: #0e7490;
  --accent: #a3e635;
  --accent-ink: #1a2e05;
  --ink: #111827;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --ok: #15803d;
  --err: #b91c1c;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', var(--font);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 100; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .75rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand img { height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; padding: .5rem .85rem; border-radius: 999px; transition: background .2s, color .2s; }
.site-nav a:hover, .site-nav a.active { background: var(--bg-soft); color: var(--brand); }
.cart-link { display: inline-flex; align-items: center; gap: .4rem; background: var(--ink); color: #fff !important; }
.cart-link:hover { background: var(--brand) !important; color: #fff !important; }
.cart-count { background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: .75rem; padding: 0 .45rem; min-width: 1.4rem; text-align: center; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 1rem; border-bottom: 1px solid var(--line); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem 1rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 1rem var(--font); padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px var(--brand); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px -8px var(--accent); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--err); color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent), radial-gradient(800px 400px at -10% 110%, color-mix(in srgb, var(--accent) 18%, transparent), transparent), var(--bg-soft); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; padding: 5rem 0 4.5rem; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2rem; }
.hero-art { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5/4; background: #0f172a; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.stats div strong { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--ink); }
.stats div span { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; padding: 3rem 0; } }

/* Sections */
.section { padding: 5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #e2e8f0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2.25rem; flex-wrap: wrap; }
.section-head p { max-width: 40rem; color: var(--muted); margin: 0; }

/* Cards & grids */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.feature .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); margin-bottom: 1rem; }
.section-dark .card { background: #1e293b; border-color: #334155; }

.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .thumb { aspect-ratio: 1; background: var(--bg-soft); position: relative; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .body { padding: 1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.product-card .cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.product-card h3 { font-size: 1.05rem; margin: 0; }
.price { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.price s { color: var(--muted); font-weight: 500; font-size: .9em; margin-left: .35rem; }
.badge { position: absolute; top: .75rem; left: .75rem; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; }
.badge-bulk { background: var(--ink); color: #fff; left: auto; right: .75rem; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; align-items: center; }
.chip { padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.chip.active, .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.search { margin-left: auto; display: flex; gap: .5rem; }
.search input { min-width: 220px; }

/* Product page */
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; padding: 3rem 0 4rem; }
.gallery-main { border-radius: 20px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .75rem; }
.gallery-thumbs button { width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--bg-soft); }
.gallery-thumbs button.active { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.spec-list { list-style: none; padding: 0; margin: 1.5rem 0; border-top: 1px solid var(--line); }
.spec-list li { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec-list li span:first-child { color: var(--muted); }
.bulk-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.bulk-table th, .bulk-table td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--line); }
.bulk-table th { background: var(--bg-soft); font-weight: 600; }
.qty-row { display: flex; gap: .75rem; align-items: stretch; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 42px; border: 0; background: var(--bg-soft); font-size: 1.2rem; cursor: pointer; }
.qty input { width: 60px; border: 0; text-align: center; font: 600 1rem var(--font); }
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; gap: 2rem; } }

/* Forms */
label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: .35rem; color: var(--ink-2); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; padding: .75rem .9rem; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--ink); transition: border .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
textarea { min-height: 130px; resize: vertical; }
.field { margin-bottom: 1.1rem; }
.field small { color: var(--muted); display: block; margin-top: .3rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.radio-card { display: flex; gap: .75rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; cursor: pointer; margin-bottom: .6rem; font-weight: 400; }
.radio-card:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, #fff); }
.radio-card input { margin-top: .3rem; }
.dropzone { border: 2px dashed #cbd5e1; border-radius: 14px; padding: 2rem; text-align: center; background: var(--bg-soft); cursor: pointer; transition: .2s; }
.dropzone.drag { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); }
.dropzone input { display: none; }
.hp { position: absolute; left: -5000px; }

/* Cart */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .75rem; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 1rem .75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item { display: flex; gap: 1rem; align-items: center; }
.cart-item img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--bg-soft); }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; align-items: start; padding: 2.5rem 0 4rem; }
.summary { position: sticky; top: 96px; }
.summary .row { display: flex; justify-content: space-between; padding: .45rem 0; }
.summary .total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .9rem; font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.link-btn { background: none; border: 0; color: var(--err); cursor: pointer; font: inherit; font-size: .88rem; padding: 0; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } .cart-table thead { display: none; } .cart-table td { display: block; border: 0; padding: .4rem 0; } .cart-table tr { display: block; border-bottom: 1px solid var(--line); padding: 1rem 0; } }

/* Notices */
.notice { padding: .9rem 1.2rem; border-radius: 12px; margin: 1.25rem 0; font-weight: 500; }
.notice-ok { background: #dcfce7; color: #14532d; }
.notice-err { background: #fee2e2; color: #7f1d1d; }
.notice-info { background: #e0f2fe; color: #0c4a6e; }

/* Page header */
.page-head { background: var(--bg-soft); padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); max-width: 44rem; font-size: 1.1rem; margin: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: .75rem; }
.crumbs a { color: var(--muted); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.5rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 1rem var(--display); }

/* Projects */
.project-card { display: flex; flex-direction: column; gap: .75rem; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project-card .ptag { align-self: flex-start; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: .2rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); }
.project-card .ptag.private { background: #f1f5f9; color: var(--muted); }

/* CTA band */
.cta-band { border-radius: 28px; padding: 3rem; background: radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent), linear-gradient(120deg, var(--ink), var(--brand)); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { margin: 0; opacity: .9; }

/* Footer */
.site-footer { background: var(--ink); color: #94a3b8; padding: 4rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-grid a, .footer-grid span { display: block; color: #94a3b8; text-decoration: none; margin-bottom: .5rem; }
.footer-grid a:hover { color: #fff; }
.footer-logo { height: 40px; width: auto; margin-bottom: 1rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid #1e293b; margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.whatsapp { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); z-index: 60; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(150%); background: var(--ink); color: #fff; padding: .85rem 1.4rem; border-radius: 999px; box-shadow: var(--shadow); transition: transform .3s; z-index: 90; }
.toast.show { transform: translateX(-50%) translateY(0); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
