/*
Theme Name:   BatteryCaliber Child
Theme URI:    https://batterycaliber.com/
Description:  Hello Elementor child theme for BatteryCaliber — global header, footer, 404 and design tokens. Page content is built in Elementor.
Author:       BatteryCaliber
Template:     hello-elementor
Version:      1.0.3
Requires at least: 6.2
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  batterycaliber-child
*/

:root {
  --bc-bg: #101b21; --bc-bg-2: #0c161b; --bc-panel: #19282e; --bc-panel-2: #142228; --bc-border: #34454b;
  --bc-text: #ecf1ed; --bc-muted: #adbbb9; --bc-accent: #c2e982; --bc-warn: #f3c790;
  --bc-result: #dfe8d5; --bc-ink: #0f1a1f;
  --bc-wrap: 1200px; --bc-gutter: 32px; --bc-space: 64px;
  --bc-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (max-width: 1024px) { :root { --bc-gutter: 24px; --bc-space: 48px; } }
@media (max-width: 600px)  { :root { --bc-gutter: 18px; --bc-space: 32px; } }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.bc-site { background: var(--bc-bg); color: var(--bc-text); font-family: var(--bc-font); font-size: 17px; line-height: 1.6; margin: 0; -webkit-font-smoothing: antialiased; }
.bc-site a { color: var(--bc-accent); }
.bc-site a:hover { color: #d9f5ab; }
.bc-site :focus-visible { outline: 3px solid var(--bc-accent); outline-offset: 3px; }
.bc-site h1, .bc-site h2, .bc-site h3, .bc-site h4 { color: var(--bc-text); font-family: var(--bc-font); line-height: 1.12; letter-spacing: -.02em; }
.bc-site img { max-width: 100%; height: auto; }
.bc-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--bc-accent); color: var(--bc-ink) !important; padding: 10px 16px; border-radius: 6px; font-weight: 700; }
.bc-skip:focus { left: 8px; }
.bc-wrap { max-width: calc(var(--bc-wrap) + 2 * var(--bc-gutter)); margin: 0 auto; padding: 0 var(--bc-gutter); }

/* Header */
.bc-header { position: sticky; top: 0; z-index: 50; background: rgba(16,27,33,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bc-border); }
.admin-bar .bc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bc-header { top: 0; position: relative; } }
.bc-header__in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.bc-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bc-text) !important; font-weight: 700; font-size: 23px; letter-spacing: -.02em; }
.bc-logo svg { flex: 0 0 auto; }
.bc-nav ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.bc-nav a { display: inline-block; padding: 10px 14px; color: var(--bc-text) !important; text-decoration: none; font-size: 15px; border-radius: 6px; }
.bc-nav a:hover, .bc-nav .current-menu-item > a { color: var(--bc-accent) !important; }
.bc-menu-btn { display: none; background: transparent; border: 1px solid var(--bc-border); color: var(--bc-text); border-radius: 6px; min-height: 44px; min-width: 44px; padding: 8px 12px; font: inherit; font-size: 15px; cursor: pointer; }
@media (max-width: 860px) {
  .bc-menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .bc-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bc-bg); border-bottom: 1px solid var(--bc-border); }
  .bc-nav.is-open { display: block; }
  .bc-nav ul { flex-direction: column; padding: 8px var(--bc-gutter) 16px; gap: 0; }
  .bc-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--bc-border); }
}

/* Footer */
.bc-footer { border-top: 1px solid var(--bc-border); background: var(--bc-bg-2); margin-top: var(--bc-space); padding: 40px 0 28px; font-size: 14px; color: var(--bc-muted); }
.bc-footer__top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; align-items: start; }
.bc-footer__brand p { margin: 12px 0 0; max-width: 360px; }
.bc-footer__links { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.bc-footer__links a { color: var(--bc-text) !important; text-decoration: none; display: inline-block; padding: 4px 0; }
.bc-footer__links a:hover { color: var(--bc-accent) !important; }
.bc-footer__note { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--bc-border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
.bc-footer__note p { margin: 0; }
@media (max-width: 760px) { .bc-footer__top { grid-template-columns: 1fr; } .bc-footer__links { grid-template-columns: 1fr 1fr; } }

/* ---------- Elementor content building blocks ---------- */
.bc-site .elementor-widget-heading .elementor-heading-title { color: var(--bc-text); font-family: var(--bc-font); }
.bc-site .elementor-widget-text-editor { color: var(--bc-muted); font-family: var(--bc-font); }
.bc-section { padding-top: var(--bc-space) !important; padding-bottom: 0 !important; }
.bc-eyebrow .elementor-heading-title, .bc-eyebrow-text { text-transform: uppercase; letter-spacing: .28em; font-size: 12.5px !important; font-weight: 600 !important; color: var(--bc-accent) !important; }
.bc-hero-title .elementor-heading-title { font-size: clamp(40px, 4.7vw, 64px) !important; font-weight: 800 !important; letter-spacing: -.035em !important; line-height: 1.02 !important; }
.bc-hero-title .bc-accent, .bc-banner-title .bc-accent { color: var(--bc-accent); display: block; }
.bc-h2 .elementor-heading-title { font-size: clamp(32px, 4.4vw, 52px) !important; font-weight: 800 !important; letter-spacing: -.03em !important; }
.bc-lead { font-size: 19px; color: var(--bc-text) !important; max-width: 560px; }
.bc-lead p { margin: 0 0 4px; }

.bc-btn .elementor-button { background: var(--bc-accent) !important; color: var(--bc-ink) !important; font-weight: 700 !important; font-size: 16px !important; border-radius: 6px !important; padding: 14px 24px !important; font-family: var(--bc-font) !important; }
.bc-btn .elementor-button:hover { background: #d4f59c !important; }
.bc-link-arrow a { color: var(--bc-accent) !important; text-decoration: none; border-bottom: 1px solid var(--bc-accent); padding-bottom: 4px; font-weight: 600; }

/* Hero */
.bc-hero { padding-top: 24px !important; }
.bc-hero > .e-con-inner { align-items: center; }
.bc-hero-media img { border-radius: 14px; width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }

/* Strip */
.bc-strip { margin-top: 28px; border-top: 1px solid var(--bc-border); border-bottom: 1px solid var(--bc-border); background: rgba(25,40,46,.55); }
.bc-strip ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; }
.bc-strip li { text-align: center; padding: 18px 12px; color: var(--bc-text); font-size: 15px; }
.bc-strip li + li { border-left: 1px solid var(--bc-border); }
@media (max-width: 700px) { .bc-strip ul { grid-template-columns: 1fr; } .bc-strip li + li { border-left: 0; border-top: 1px solid var(--bc-border); } }

/* Cards */
.bc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bc-card { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; background: var(--bc-panel-2); border: 1px solid var(--bc-border); border-radius: 12px; padding: 26px 24px 54px; text-decoration: none; color: var(--bc-muted) !important; transition: border-color .15s; }
.bc-card:hover { border-color: var(--bc-accent); }
.bc-card svg { grid-row: span 2; color: var(--bc-accent); }
.bc-card strong { color: var(--bc-text); font-size: 18px; align-self: end; }
.bc-card span { font-size: 14.5px; line-height: 1.5; }
.bc-card::after { content: "→"; position: absolute; left: 24px; bottom: 18px; color: var(--bc-accent); font-size: 20px; }
@media (max-width: 900px) { .bc-cards { grid-template-columns: 1fr; } }

/* Banner */
.bc-banner { position: relative; border: 1px solid var(--bc-border); border-radius: 14px; overflow: hidden; background-color: var(--bc-panel); background-size: cover; background-position: center right; min-height: 220px; display: flex; align-items: center; }
.bc-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,27,33,.96) 0%, rgba(16,27,33,.82) 34%, rgba(16,27,33,.15) 68%, rgba(16,27,33,0) 100%); }
.bc-banner__in { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; width: 100%; padding: 36px 34px; }
.bc-banner h2 { margin: 6px 0 0; font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.bc-banner h2 span { color: var(--bc-accent); display: block; }
.bc-banner a { color: var(--bc-accent) !important; text-decoration: none; border-bottom: 1px solid var(--bc-accent); padding-bottom: 4px; font-weight: 600; }

/* Inner pages */
.bc-pagehead { padding: 56px 0 8px; }
.bc-pagehead h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 800; letter-spacing: -.035em; margin: 8px 0 12px; }
.bc-pagehead p { color: var(--bc-text); font-size: 19px; max-width: 760px; margin: 0; }
.bc-prose { max-width: 860px; color: var(--bc-muted); font-size: 17px; }
.bc-prose h2 { font-size: 30px; margin: 44px 0 12px; font-weight: 750; }
.bc-prose h3 { font-size: 21px; margin: 28px 0 8px; font-weight: 700; }
.bc-prose p, .bc-prose li { color: var(--bc-muted); }
.bc-prose strong { color: var(--bc-text); }
.bc-prose code, .bc-prose pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.bc-prose pre { background: var(--bc-bg-2); border: 1px solid var(--bc-border); color: var(--bc-text); border-radius: 10px; padding: 18px 20px; overflow-x: auto; font-size: 14.5px; line-height: 1.55; white-space: pre; }
.bc-prose code { background: var(--bc-panel); color: var(--bc-text); padding: 1px 6px; border-radius: 4px; font-size: .92em; }
.bc-prose pre code { background: none; padding: 0; }
.bc-table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--bc-border); border-radius: 10px; }
.bc-prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.bc-prose th, .bc-prose td { padding: 10px 14px; border-bottom: 1px solid var(--bc-border); text-align: left; vertical-align: top; color: var(--bc-muted); }
.bc-prose th { color: var(--bc-text); background: var(--bc-panel); font-weight: 600; }
.bc-prose tr:last-child td { border-bottom: 0; }
.bc-callout { border: 1px solid rgba(243,199,144,.55); background: rgba(243,199,144,.08); border-radius: 10px; padding: 16px 20px; margin: 18px 0; }
.bc-callout p { margin: 0; color: var(--bc-text) !important; }
.bc-callout strong { color: var(--bc-warn) !important; }
.bc-quote { border-left: 3px solid var(--bc-accent); background: var(--bc-panel-2); border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 14px 0; }
.bc-quote p { margin: 0; color: var(--bc-text) !important; }
.bc-meta { font-size: 14px; color: var(--bc-muted); }
.bc-pagebanner img { width: 100%; height: 240px; object-fit: cover; border-radius: 14px; display: block; border: 1px solid var(--bc-border); }

/* 404 */
.bc-404 { padding: 90px 0 40px; text-align: left; }
.bc-404 h1 { font-size: clamp(40px, 6vw, 64px); margin: 8px 0 12px; }
.bc-404 ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.bc-404 ul a { display: inline-block; border: 1px solid var(--bc-border); border-radius: 6px; padding: 10px 16px; text-decoration: none; color: var(--bc-text) !important; }
.bc-404 ul a:hover { border-color: var(--bc-accent); }

/* Hello Elementor resets */
.bc-site .site-main, .bc-site .page-content { max-width: none; }
.bc-site .page-header .entry-title { display: none; }

/* Inner page header + extras */
.bc-page-title .elementor-heading-title { font-size: clamp(38px, 5.4vw, 60px) !important; font-weight: 800 !important; letter-spacing: -.035em !important; line-height: 1.05 !important; }
.bc-lead--wide { max-width: 780px; }
.bc-banner__text { color: var(--bc-text); max-width: 560px; margin: 12px 0 0; font-size: 16px; }
.bc-cards--plain .bc-card { grid-template-columns: 1fr; }
.bc-callout--icon { display: flex; gap: 14px; align-items: center; }
.bc-callout--icon::before { content: "!"; flex: 0 0 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bc-warn); color: var(--bc-warn); display: grid; place-items: center; font-weight: 700; }
.bc-prose h2[id] { scroll-margin-top: 96px; }
.bc-prose ul, .bc-prose ol { padding-left: 22px; }
.bc-prose li { margin: 6px 0; }
.bc-site .elementor-widget-text-editor.bc-prose a { color: var(--bc-accent); }
.bc-site .elementor-widget-image.bc-hero-media img { border-radius: 14px; }

/* Hardware category cards (Amazon category links) */
.bc-hw-disclose { margin: 8px 0 18px; padding: 12px 16px; border: 1px solid var(--bc-border); border-left: 4px solid var(--bc-warn); border-radius: 8px; background: var(--bc-panel-2); color: var(--bc-muted) !important; font-size: 14.5px; }
.bc-hw-disclose strong { color: var(--bc-warn) !important; }
.bc-hw { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 0 8px; }
.bc-hw-card { display: flex; flex-direction: column; background: var(--bc-panel-2); border: 1px solid var(--bc-border); border-radius: 12px; padding: 22px 22px 20px; }
.bc-hw-card:hover { border-color: var(--bc-accent); }
.bc-hw-label { text-transform: uppercase; letter-spacing: .2em; font-size: 11px; color: var(--bc-accent); font-weight: 600; }
.bc-site .bc-hw-card h3 { margin: 8px 0 8px; font-size: 18.5px; font-weight: 700; color: var(--bc-text); letter-spacing: -.01em; }
.bc-hw-card p { margin: 0 0 16px; color: var(--bc-muted) !important; font-size: 14.5px; line-height: 1.5; flex: 1; }
.bc-site a.bc-hw-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 16px; border-radius: 6px; background: var(--bc-accent); color: var(--bc-ink) !important; font-weight: 700; font-size: 15px; text-decoration: none; }
.bc-site a.bc-hw-link:hover { background: #d4f59c; color: var(--bc-ink) !important; }
@media (max-width: 960px) { .bc-hw { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bc-hw { grid-template-columns: 1fr; } }

/* In-page anchors clear the sticky header */
#calculator { scroll-margin-top: 88px; }
.admin-bar #calculator { scroll-margin-top: 120px; }
