/* Bedford Power — site styles */
:root {
  --red: #E11A2B;
  --red-dark: #B8121F;
  --navy: #0E1B3A;
  --navy-2: #142552;
  --slate: #475569;
  --slate-2: #64748B;
  --line: #E2E6EE;
  --bg: #FFFFFF;
  --bg-soft: #F5F6F8;
  --shadow-sm: 0 1px 2px rgba(14,27,58,.06);
  --shadow-md: 0 8px 24px rgba(14,27,58,.08);
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 6px 18px rgba(225,26,43,.35); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 48px; width: auto; display: block; }
.site-header { padding: 4px 0; }
.footer .brand img { height: 56px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--slate); }
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--red); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; }
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 660px;
  padding: 100px 0 110px;
  overflow: hidden;
  background-color: #fbf6f4;
  background-image: url('/assets/images/home/hero-bleed.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex; align-items: center;
}
.hero > .container { width: 100%; }
.hero-content { max-width: 600px; position: relative; }
.eyebrow {
  color: var(--red); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  font-size: 12px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 22px;
}
.hero h1 .accent { color: var(--red); }
.hero p.lead {
  font-size: 17px; color: var(--slate); max-width: 540px; margin: 0 0 28px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.trust-row {
  display: flex; gap: 28px; flex-wrap: wrap; color: var(--slate); font-size: 14px;
}
.trust-row .item { display: flex; gap: 10px; align-items: center; }
.trust-row .ico {
  width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--navy);
  flex-shrink: 0; background: #fff;
}
.trust-row .ico svg { width: 16px; height: 16px; }
.trust-row .lbl { line-height: 1.25; }
/* Old hero-media element no longer used on the homepage; hero now uses background image */
.hero-media { display: none; }

/* ---------- Section heads ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow { display: inline-block; }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 6px 0 0;
}

/* ---------- Solutions cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cdd5e3; }
.card-media { aspect-ratio: 16/10; background: var(--bg-soft); position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-icon {
  position: absolute; left: 16px; bottom: -22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.card-body { padding: 32px 22px 22px; }
.card-body h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.card-body p { margin: 0 0 18px; color: var(--slate); font-size: 14.5px; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--navy); font-size: 14px;
}
.card-link .arrow { transition: transform .2s ease; }
.card-link:hover .arrow { transform: translateX(3px); }

/* ---------- Heritage band ---------- */
.heritage { padding: 88px 0; background: #fff; position: relative; overflow: hidden; }
.heritage-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.heritage-text { position: relative; }
.heritage-text .crest {
  position: absolute; left: 0; bottom: -10px;
  width: 220px; height: 220px; opacity: .07; pointer-events: none;
  background-image: url('../images/heritage-crest.svg');
  background-size: contain; background-repeat: no-repeat;
}
.heritage h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.02em; font-weight: 800; margin: 8px 0 18px;
  position: relative;
}
.heritage p { color: var(--slate); margin: 0 0 22px; max-width: 460px; position: relative; }
.script {
  font-family: 'Caveat', 'Brush Script MT', cursive;
  color: var(--red);
  font-size: 38px; line-height: 1; margin-top: 4px;
  position: relative;
}
.tick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tick {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 18px 18px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff;
}
.tick .ico {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy); flex-shrink: 0;
}
.tick .ico svg { width: 22px; height: 22px; }
.tick strong { display: block; font-size: 14.5px; color: var(--navy); }
.tick small { color: var(--slate-2); font-size: 12.5px; line-height: 1.45; display: block; margin-top: 2px; }
.heritage-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5/4; box-shadow: var(--shadow-md); }
.heritage-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Stats ---------- */
.stats { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: flex; gap: 14px; align-items: center; }
.stat-icon {
  width: 40px; height: 40px; border-radius: 8px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; color: var(--red);
}
.stat .num { font-weight: 800; color: var(--red); font-size: 22px; line-height: 1; letter-spacing: -0.01em; }
.stat .label { color: var(--slate); font-size: 13.5px; }

/* ---------- CTA banner ---------- */
.cta-band {
  margin: 64px auto;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  max-width: 1200px;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; background: radial-gradient(circle, rgba(225,26,43,.25), transparent 70%);
}
.cta-band h3 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.cta-band p { margin: 6px 0 0; color: #c7cfe1; font-size: 14px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: #cdd5e3;
  position: relative; overflow: hidden;
}
.footer::before {
  content: ""; position: absolute; inset: 0;
  background: url('../images/footer-bg.svg') right bottom / cover no-repeat;
  opacity: .12; pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px;
  padding: 56px 0 32px;
}
.footer .brand { color: #fff; }
.footer .brand span { color: #fff; }
.footer p.about { color: #b6c0d6; font-size: 14px; max-width: 280px; margin: 16px 0 18px; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 4px 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: #c7cfe1; font-size: 14px; }
.footer ul a:hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 32px; height: 32px; border-radius: 6px; background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.socials a:hover { background: var(--red); }
.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: #8a98b8;
}

/* ---------- Inner pages ---------- */
.page-hero {
  position: relative;
  background-color: var(--navy);
  background-image: var(--bg-image, linear-gradient(135deg, var(--navy), var(--navy-2)));
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,27,58,.5) 0%, rgba(14,27,58,.7) 60%, rgba(14,27,58,.85) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 56px); margin: 8px 0 12px; letter-spacing: -0.02em; }
.page-hero p { color: #d6deef; max-width: 680px; margin: 0 auto; font-size: 17px; }

/* Image-led feature card */
.feature.with-image { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.feature.with-image .img {
  aspect-ratio: 16/10; background-size: cover; background-position: center;
  border-bottom: 1px solid var(--line);
}
.feature.with-image .body { padding: 22px; }
.feature.with-image h3 { margin: 0 0 8px; font-size: 18px; }
.feature.with-image p { margin: 0; color: var(--slate); font-size: 14.5px; }

/* Product gallery (3-up image cards) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-card .img { aspect-ratio: 4/3; background-size: cover; background-position: center; }
.product-card .body { padding: 18px 20px 22px; }
.product-card .kv { color: var(--red); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.product-card h3 { margin: 6px 0 6px; font-size: 17px; letter-spacing: -0.01em; }
.product-card p { margin: 0; color: var(--slate); font-size: 14px; }

/* Two-column image+text band */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-md); }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.split.reverse .media { order: 2; }
.split h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; margin: 8px 0 14px; }
.split p { color: var(--slate); margin: 0 0 12px; }

@media (max-width: 980px) {
  .gallery { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .media { order: 0; }
}

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff;
}
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--slate); font-size: 14.5px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table th { background: var(--bg-soft); font-weight: 600; color: var(--navy); }

.partner-band {
  background: var(--bg-soft); border-radius: var(--radius); padding: 32px;
  display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: center;
}
.partner-band h3 { margin: 0 0 6px; }
.partner-band p { margin: 0; color: var(--slate); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.field input, .field textarea, .field select {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font: inherit; font-size: 14.5px;
  background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .heritage-grid { grid-template-columns: 1fr 1fr; }
  .heritage-media { grid-column: span 2; max-width: 600px; justify-self: center; }
  .hero-media { margin-right: 0; border-radius: 16px; }
}
@media (max-width: 980px) {
  .hero-grid, .heritage-grid, .footer-grid, .contact-grid, .partner-band, .feature-grid { grid-template-columns: 1fr; }
  .heritage-media { grid-column: auto; }
  .cards { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .cta-band { grid-template-columns: 1fr; }
  .footer-grid { gap: 24px; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; padding: 16px 24px; border-bottom: 1px solid var(--line);
    gap: 14px;
  }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 32px 0 48px; }
}
