/* DriveDrive Power — brand-canonical stylesheet */
:root {
  --navy-deep: #0A2547;
  --navy: #0F3C75;
  --navy-700: #0d3566;
  --navy-100: #e6edf6;
  --amber: #F89211;
  --amber-dark: #C76E08;
  --ink: #111827;
  --ink-soft: #4b5563;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --shadow-soft: 0 6px 20px rgba(10, 37, 71, 0.06);
  --shadow-card: 0 12px 32px rgba(10, 37, 71, 0.08);
  --radius: 6px;
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); }
p  { margin: 0 0 1em; color: var(--ink-soft); }
p.lead { font-size: 1.125rem; color: #1f2937; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--amber-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber-dark);
  margin: 0 0 14px;
}
.amber-underline {
  display: inline-block;
  border-bottom: 3px solid var(--amber);
  padding-bottom: 6px;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 132px; width: auto; }
.brand-text { display: none; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-family: 'DM Sans', sans-serif; font-weight: 500;
  color: var(--navy-deep); font-size: 0.95rem;
  padding: 8px 0; position: relative;
}
.nav-links a:hover { color: var(--amber-dark); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; background: var(--amber);
}
.nav-cta {
  background: var(--amber); color: #fff !important;
  padding: 10px 18px !important; border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--amber-dark); color: #fff !important; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; }
.hamburger svg { width: 28px; height: 28px; color: var(--navy-deep); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(10,37,71,0.92) 0%, rgba(15,60,117,0.82) 70%),
    url('img/refinery.jpg') center/cover no-repeat,
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 70%);
  color: #fff;
  padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 110px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1100px 600px at 12% -10%, rgba(248,146,17,0.18), transparent 60%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px; background: var(--amber);
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero p.lead { color: rgba(255,255,255,0.86); max-width: 60ch; }
.hero .eyebrow { color: #fbbf6b; }
.hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 22px; border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; transition: 0.18s ease;
}
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-outline { background: transparent; color: var(--navy-deep); border-color: var(--navy-deep); }
.btn-outline:hover { background: var(--navy-deep); color: #fff; }

.hero-grid {
  display: grid; gap: 56px; align-items: center;
  grid-template-columns: 1.2fr 1fr;
}
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px; padding: 28px;
  backdrop-filter: blur(4px);
}
.hero-card h3 { color: #fff; margin-bottom: 6px; }
.hero-card .stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 18px;
}
.hero-card .stat .num {
  font-family: 'DM Sans', sans-serif; font-weight: 700;
  font-size: 1.85rem; color: var(--amber); line-height: 1;
}
.hero-card .stat .lbl {
  font-size: 0.85rem; color: rgba(255,255,255,0.78); margin-top: 6px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 22px; gap: 14px;
  }
}

/* ── Section base ───────────────────────────────────────── */
section { padding: clamp(56px, 8vw, 96px) 0; }
section.tinted { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 1.05rem; color: var(--ink-soft); }

/* ── Capability strip ───────────────────────────────────── */
.cap-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #fff;
}
.cap {
  padding: 28px 22px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.cap:last-child { border-right: 0; }
.cap .num {
  font-family: 'DM Sans', sans-serif; font-weight: 700;
  font-size: 1.5rem; color: var(--amber-dark);
}
.cap .lbl {
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  color: var(--navy-deep); font-size: 0.95rem;
}
.cap .desc { font-size: 0.85rem; color: var(--ink-soft); }
@media (max-width: 900px) {
  .cap-strip { grid-template-columns: 1fr 1fr; }
  .cap { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .cap:nth-child(2n) { border-right: 0; }
}

/* ── Cards / blocks ─────────────────────────────────────── */
.grid-3 { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
.grid-4 { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 28px; box-shadow: var(--shadow-soft);
  transition: 0.2s ease;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.card .icon {
  width: 44px; height: 44px; border-radius: 8px;
  background: rgba(248,146,17,0.12); color: var(--amber-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.card p { margin-bottom: 0; font-size: 0.94rem; }
.card .more {
  margin-top: 16px; font-family: 'DM Sans', sans-serif; font-weight: 600;
  font-size: 0.9rem; color: var(--navy);
}

/* ── Split feature ──────────────────────────────────────── */
.split {
  display: grid; gap: 56px; align-items: center;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split .visual {
  border-radius: 10px; background: var(--navy-deep); color: #fff;
  padding: 32px; box-shadow: var(--shadow-card);
  min-height: 320px;
}

/* ── Table ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.spec {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
table.spec th, table.spec td {
  padding: 14px 18px; text-align: left; font-size: 0.93rem;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
table.spec th {
  background: var(--navy-deep); color: #fff; font-family: 'DM Sans', sans-serif;
  font-weight: 600; letter-spacing: 0.02em;
}
table.spec tr:last-child td { border-bottom: 0; }
table.spec tr:nth-child(even) td { background: #fbfcfe; }
table.spec td strong { color: var(--navy-deep); }

/* ── CTA strip ──────────────────────────────────────────── */
.cta-strip {
  background: var(--navy-deep); color: #fff;
  border-top: 4px solid var(--amber);
}
.cta-strip .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap;
}
.cta-strip h2 { color: #fff; margin: 0; max-width: 28ch; }
.cta-strip p { color: rgba(255,255,255,0.78); margin: 8px 0 0; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: #06192f; color: rgba(255,255,255,0.74);
  padding: 56px 0 28px; font-size: 0.92rem;
}
.site-footer h4 {
  color: #fff; font-family: 'DM Sans', sans-serif; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 14px;
}
.site-footer a { color: rgba(255,255,255,0.78); display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-bottom {
  margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
}

/* ── Sub-page hero ──────────────────────────────────────── */
.subhero {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
  border-bottom: 4px solid var(--amber);
}
.subhero h1 { color: #fff; max-width: 22ch; }
.subhero p { color: rgba(255,255,255,0.82); max-width: 64ch; font-size: 1.075rem; }
.subhero .eyebrow { color: #fbbf6b; }

/* ── Form ───────────────────────────────────────────────── */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  font-size: 0.85rem; color: var(--navy-deep);
}
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px;
  font: inherit; color: var(--ink); background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15,60,117,0.15);
}
.form-field textarea { min-height: 130px; resize: vertical; }

/* ── Figures & photo cards ─────────────────────────────── */
/* Cinematic photo treatment — darken + contrast + slight desaturation
   across all editorial figures and photo cards site-wide. Ansys simulation
   renderings (.no-cine) keep their original colormap; the brand logo and
   chart canvases are unaffected because they are not inside these wrappers. */
figure.fig {
  margin: 0; border-radius: 10px; overflow: hidden;
  background: var(--navy-deep); box-shadow: var(--shadow-card);
  position: relative;
}
figure.fig img {
  display: block; width: 100%; height: auto;
  filter: brightness(0.78) contrast(1.08) saturate(0.95);
  transition: filter 0.3s ease;
}
figure.fig.no-cine img { filter: none; }
figure.fig figcaption {
  padding: 12px 18px; font-size: 0.86rem; color: rgba(255,255,255,0.82);
  background: var(--navy-deep);
  font-family: 'Inter', sans-serif;
  border-top: 1px solid rgba(255,255,255,0.08);
}
figure.fig.light { background: #fff; }
figure.fig.light figcaption { background: #fff; color: var(--ink-soft); border-top-color: var(--line); }

/* Schematic line-art figures: transparent background, no filter, no caption frame */
figure.fig.schematic { background: transparent; box-shadow: none; border-radius: 0; }
figure.fig.schematic img { filter: none; }
figure.fig.schematic figcaption {
  background: transparent; color: var(--ink-soft);
  padding: 10px 2px 0; border-top: 0;
  font-size: 0.86rem;
}

.photo-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-soft); overflow: hidden;
  display: flex; flex-direction: column;
  transition: 0.2s ease;
}
.photo-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.photo-card .ph {
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-deep);
  position: relative;
}
.photo-card .ph img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(0.72) contrast(1.10) saturate(0.92);
  transition: filter 0.3s ease, transform 0.4s ease;
}
.photo-card .ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,37,71,0) 50%, rgba(10,37,71,0.55) 100%);
}
.photo-card:hover .ph img {
  filter: brightness(0.85) contrast(1.06) saturate(1.0);
  transform: scale(1.03);
}
.photo-card .body { padding: 20px 22px 22px; }
.photo-card .tag { margin-bottom: 10px; }
.photo-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.photo-card p { font-size: 0.92rem; margin: 0; }

/* ── Misc ───────────────────────────────────────────────── */
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: rgba(248,146,17,0.14); color: var(--amber-dark);
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase;
}
ul.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
ul.checks li {
  padding-left: 28px; position: relative; margin-bottom: 10px; color: #1f2937;
}
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 4px rgba(248,146,17,0.18);
}
.divider-rule {
  width: 80px; height: 3px; background: var(--amber); border: 0; margin: 0 0 24px;
}
.muted { color: var(--ink-soft); font-size: 0.85rem; }

/* ─────────────────────────────────────────────────────────────
   DOWNLOADS PAGE
   ───────────────────────────────────────────────────────────── */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 18px;
}
.dl-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.dl-card:hover {
  transform: translateY(-2px);
  border-color: var(--amber);
  box-shadow: var(--shadow-card);
}
.dl-card h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}
.dl-card .muted {
  font-size: 0.92rem;
  margin: 0;
  flex: 1 1 auto;
}
.dl-meta {
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.dl-meta span {
  padding: 3px 8px;
  background: var(--bg-alt);
  border-radius: 4px;
  border: 1px solid var(--line);
}
.dl-card .btn {
  align-self: flex-start;
  margin-top: 4px;
}

/* Modal */
.dl-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dl-modal[hidden] { display: none; }
.dl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 71, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.dl-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 32px 32px 28px;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}
.dl-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  font-size: 26px;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1;
}
.dl-modal-close:hover { color: var(--ink); }

.dl-form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.dl-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.dl-form input[type=text],
.dl-form input[type=email],
.dl-form input[type=tel],
.dl-form select,
.dl-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.dl-form input:focus,
.dl-form select:focus,
.dl-form textarea:focus {
  outline: 0;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(248, 146, 17, 0.18);
}
.dl-form textarea {
  resize: vertical;
  min-height: 70px;
  font-family: inherit;
}
.dl-optional {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-left: 4px;
}
.dl-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%231f2937' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='1 1.5 6 6.5 11 1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  padding-right: 36px;
}
.dl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .dl-row { grid-template-columns: 1fr; }
}
.req { color: var(--amber); font-weight: 600; }

.dl-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 400;
  line-height: 1.45;
}
.dl-consent input[type=checkbox] {
  margin-top: 3px;
  flex: 0 0 auto;
}
.dl-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.dl-status {
  margin: 6px 0 0;
  font-size: 0.88rem;
  min-height: 1.2em;
}
.dl-status.ok  { color: #15803d; font-weight: 600; }
.dl-status.err { color: #b91c1c; font-weight: 600; }

/* Honeypot — visually hide but keep accessible to bots */
.dl-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────
   OUR TEAM PAGE
   ───────────────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 14px;
}
@media (max-width: 980px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
}
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.team-card:hover {
  transform: translateY(-2px);
  border-color: var(--amber);
  box-shadow: var(--shadow-card);
}
.team-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  margin-bottom: 8px;
}
.team-card h3 {
  margin: 6px 0 0;
  font-size: 1.15rem;
  color: var(--ink);
}
.team-card .role {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber);
}
.team-card .muted {
  margin: 6px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

figure.fig figcaption .sil-line {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}
