/* ===================================================================
   COMFORT BATTERY — BASE STYLES / DESIGN TOKENS
   =================================================================== */

:root {
  /* Color */
  --indigo:        #3D2C79;
  --indigo-deep:   #2A1D5C;
  --indigo-mid:    #4E3B96;
  --indigo-pale:   #EFEBF9;
  --gold:          #EEAB42;
  --gold-dark:     #C9861F;
  --gold-light:    #F7C56E;
  --gold-pale:     #FDF3E1;
  --ink:           #1A1330;
  --ink-soft:      #55506B;
  --ink-mute:      #8B85A3;
  --paper:         #FBFAFD;
  --white:         #FFFFFF;
  --green:         #1F8A4C;
  --green-pale:    #E7F6EC;
  --line:          rgba(61,44,121,0.12);
  --shadow-sm:     0 2px 10px rgba(26,19,48,0.06);
  --shadow-md:     0 12px 32px rgba(42,29,92,0.12);
  --shadow-lg:     0 24px 64px rgba(42,29,92,0.18);

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Layout */
  --maxw: 1240px;
  --radius: 14px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ── Terminal-post motif: reusable divider ──
   Battery terminals are the brand's most distinctive visual detail.
   This renders a row of small terminal posts as a section divider. */
.terminal-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 10px 0;
}
.terminal-row .post {
  width: 10px; height: 16px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  border-radius: 3px 3px 2px 2px;
  position: relative;
}
.terminal-row .post::before {
  content:'';
  position:absolute; top:-4px; left:1px; width:8px; height:5px;
  background: #d8d8dc; border-radius: 2px;
}

/* ── Eyebrow / section tag ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--indigo-mid);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; width: 8px; height: 8px; background: var(--gold);
  border-radius: 2px; transform: rotate(45deg);
}

.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4.2vw, 48px); line-height: 1.1;
  color: var(--indigo-deep); letter-spacing: -0.5px;
}
.section-title .accent { color: var(--gold-dark); }
.section-title.light { color: var(--white); }
.section-title.light .accent { color: var(--gold); }
.section-sub {
  font-size: 17px; color: var(--ink-soft); max-width: 620px;
  margin-top: 14px; line-height: 1.7;
}

section { position: relative; }
.pad { padding: 88px 0; }
.pad-sm { padding: 56px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  padding: 14px 30px; border-radius: 100px; transition: all .22s ease;
  letter-spacing: 0.2px;
}
.btn-primary { background: var(--gold); color: var(--indigo-deep); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border: 1.5px solid var(--indigo); color: var(--indigo); }
.btn-outline:hover { background: var(--indigo); color: var(--white); }
.btn-outline-l { border: 1.5px solid rgba(255,255,255,0.4); color: var(--white); }
.btn-outline-l:hover { background: var(--white); color: var(--indigo-deep); }
.btn-sm { padding: 10px 22px; font-size: 13px; }

/* ── Cards ── */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* ── Breadcrumb / page header (inner pages) ── */
.page-hero {
  background: var(--indigo-deep);
  padding: 150px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content:'';
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(238,171,66,0.14) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(78,59,150,0.5) 0%, transparent 65%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.crumb {
  font-family: var(--font-mono); font-size: 12.5px; color: rgba(255,255,255,0.55);
  display: flex; align-items: center; gap: 8px; margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: 1px;
}
.crumb a { color: rgba(255,255,255,0.55); transition: color .2s; }
.crumb a:hover { color: var(--gold-light); }
.crumb .sep { color: var(--gold); opacity: 0.6; }
.crumb .cur { color: var(--gold-light); }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5vw, 56px); color: var(--white); line-height: 1.08;
  letter-spacing: -0.5px; max-width: 780px;
}
.page-hero h1 .accent { color: var(--gold); }
.page-hero p.lead {
  color: rgba(255,255,255,0.65); font-size: 16.5px; max-width: 560px;
  margin-top: 16px; line-height: 1.75;
}

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Responsive images: figure with terminal-post frame accent ── */
.frame-shot { position: relative; border-radius: var(--radius); overflow: hidden; }
.frame-shot img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .pad { padding: 60px 0; }
  .page-hero { padding: 128px 0 48px; }
}

/* ===================================================================
   UTILITY CLASSES
   (replaces one-off inline styles used across page templates)
   =================================================================== */
.bg-white   { background: var(--white); }
.bg-paper   { background: var(--paper); }
.bg-indigo-deep { background: var(--indigo-deep); position: relative; overflow: hidden; }
.bg-indigo-deep::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse 55% 65% at 85% 15%, rgba(238,171,66,0.14) 0%, transparent 60%);
}
.bg-indigo-deep > .wrap { position: relative; z-index: 2; }

.text-center { text-align: center; }
.justify-center { justify-content: center; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-32 { margin-top: 32px; }
.mt-44 { margin-top: 44px; }
.mb-16 { margin-bottom: 16px; }
.mb-22 { margin-bottom: 22px; }
.max-w-820 { max-width: 820px; margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.btn-full { width: 100%; justify-content: center; }

.title-sm { font-size: 28px; }
.title-md { font-size: clamp(26px, 3vw, 36px); }
.title-lg { font-size: clamp(28px, 4vw, 44px); }
.title-form { font-size: 26px; margin-bottom: 24px; }

.hero-page-sm { padding: 130px 0 40px; }

.body-copy { color: var(--ink-soft); font-size: 16px; line-height: 1.85; margin-bottom: 16px; }
.body-copy:last-of-type { margin-bottom: 0; }
.body-copy-sm { color: var(--ink-soft); font-size: 15.5px; line-height: 1.8; margin-bottom: 14px; }
.body-copy-sm:last-of-type { margin-bottom: 22px; }
.section-sub-center { margin: 16px auto 0; text-align: center; color: rgba(255,255,255,0.6); }

.btn-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.certs-row-wrap { display: flex; gap: 18px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.map-wrap-top { margin-top: 44px; border-radius: var(--radius); overflow: hidden; }

.accent-gold { color: var(--gold-dark); }
.accent-gold-light { color: var(--gold-light); }
.accent-indigo { color: var(--indigo); }
.accent-bull { color: #C0272D; }
.btn-outline-l-hero { border-color: rgba(255,255,255,0.3); color: #fff; }
