/* IntactPack Energy Systems — site styles */

:root {
  --deep-navy: #082B4C;
  --dark-navy: #071C2C;
  --energy-green: #1D8B45;
  --accent-green: #39A85A;
  --light-blue: #DCEAF5;
  --off-white: #F7F9FA;
  --neutral-gray: #66727C;
  --white: #FFFFFF;
  --border-light: #E1E8ED;
  --max-width: 1200px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(7, 28, 44, 0.08);
  --shadow-md: 0 8px 24px rgba(7, 28, 44, 0.10);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--dark-navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--energy-green); }
a:hover { color: var(--accent-green); }

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

h1, h2, h3, h4 { line-height: 1.2; color: var(--deep-navy); margin: 0 0 16px; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 16px; color: #2B3A48; }
.lede { font-size: 1.2rem; color: var(--neutral-gray); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--energy-green);
  margin-bottom: 12px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--deep-navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 6px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--border-light);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--deep-navy);
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .name { font-weight: 800; font-size: 1.08rem; color: var(--deep-navy); }
.brand-text .descriptor { font-size: 0.62rem; letter-spacing: 0.14em; color: var(--neutral-gray); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.main-nav a {
  text-decoration: none;
  color: var(--dark-navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--energy-green);
  border-bottom-color: var(--energy-green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--energy-green); color: #fff; }
.btn-primary:hover { background: var(--accent-green); color: #fff; box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--deep-navy); border-color: var(--deep-navy); }
.btn-outline:hover { background: var(--deep-navy); color: #fff; }
.btn-on-dark { background: var(--accent-green); color: #fff; }
.btn-on-dark:hover { background: #45bd67; }
.btn-outline-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-on-dark:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--deep-navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--deep-navy) 0%, var(--dark-navy) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero .grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 72px 24px 56px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero h1 { color: #fff; }
.hero .lede { color: var(--light-blue); }
.hero-copy p.support { color: rgba(255,255,255,0.82); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
}
.media-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin-top: 10px;
}
.page-hero {
  background: linear-gradient(180deg, var(--deep-navy) 0%, var(--dark-navy) 100%);
  color: #fff;
  padding: 64px 0 48px;
}
.page-hero h1 { color: #fff; }
.page-hero .lede { color: var(--light-blue); max-width: 60ch; }
.page-hero-media { margin-top: 32px; }
.page-hero-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--off-white); }
.section-navy { background: var(--deep-navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255,255,255,0.82); }
.section-head { max-width: 720px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.two-col.reverse .col-media { order: 2; }

.pull-quote {
  border-left: 4px solid var(--energy-green);
  padding-left: 20px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--deep-navy);
  margin: 24px 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--light-blue);
  color: var(--deep-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; color: var(--neutral-gray); }

.card-grid.list-style .card { display: flex; flex-direction: column; gap: 4px; }

.disclaimer-box {
  background: var(--light-blue);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 0.92rem;
  color: #1a3450;
  margin: 24px 0;
}
.disclaimer-box strong { color: var(--deep-navy); }
.disclaimer-box.on-navy {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.16);
}

.callout {
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--deep-navy);
  background: var(--light-blue);
  border-radius: var(--radius);
  padding: 22px 28px;
  margin: 24px 0;
}
.callout.on-navy {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.16);
}

/* Follow the battery timeline */
.timeline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 40px 0 12px;
}
.timeline-step {
  flex: 1 1 150px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--dark-navy);
  position: relative;
}
.timeline-step .num {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--energy-green);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.timeline-step span.label { display: block; font-weight: 700; }
.timeline-step[aria-expanded="true"] { border-color: var(--energy-green); box-shadow: var(--shadow-sm); }
.timeline-detail {
  grid-column: 1 / -1;
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 16px;
  display: none;
}
.timeline-detail.open { display: block; }

/* Classification badges */
.classification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.classification-card {
  border-radius: var(--radius);
  padding: 24px;
  color: #fff;
  font-weight: 700;
  text-align: center;
}
.classification-card .status { font-size: 1.3rem; display: block; margin-bottom: 8px; }
.classification-card span.desc { display: block; font-weight: 500; font-size: 0.92rem; margin-top: 8px; opacity: 0.92; }
.classification-card.pass { background: var(--energy-green); }
.classification-card.limited { background: #B98A1F; }
.classification-card.recycle { background: var(--neutral-gray); }

/* Lifecycle */
.lifecycle-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--deep-navy);
  margin: 28px 0;
}
.lifecycle-flow .step {
  background: var(--light-blue);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
}
.lifecycle-flow .arrow { color: var(--neutral-gray); }

/* Fleet dashboard teaser */
.dashboard-teaser { position: relative; }
.dashboard-teaser img { border-radius: var(--radius); }
.dashboard-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(7,28,44,0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
}

/* Partner cards */
.partner-card { cursor: default; }

/* Founder */
.founder-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 36px;
}
.founder-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep-navy), var(--energy-green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.4rem;
  font-weight: 800;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--deep-navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--energy-green);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 12px; color: var(--neutral-gray); }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; color: var(--deep-navy); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark-navy);
  background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--energy-green);
  outline-offset: 1px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.85rem; color: var(--neutral-gray); margin-top: 10px; }
.contact-info-card {
  background: var(--deep-navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-card ul { padding-left: 20px; color: rgba(255,255,255,0.85); }
.contact-info-card li { margin-bottom: 8px; }

/* Final CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--deep-navy), var(--dark-navy));
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  padding: 56px 32px;
  margin: 0 24px;
  max-width: calc(var(--max-width) - 48px);
  margin-left: auto;
  margin-right: auto;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 60ch; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer {
  background: var(--dark-navy);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
  margin-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand .name { color: #fff; font-weight: 800; font-size: 1.1rem; }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-fine-print { color: rgba(255,255,255,0.5); max-width: 80ch; margin-top: 12px; font-size: 0.78rem; }

/* 404 */
.error-page { text-align: center; padding: 120px 24px; }

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse .col-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .founder-block { grid-template-columns: 1fr; }
  .founder-avatar { width: 120px; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; inset: 64px 0 0 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 18px; width: 100%; }
  .main-nav a { font-size: 1.1rem; }
  .nav-cta { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
