/* ============================================================================
   VoltForce shared design system  (styles.css)
   Phase 1: tokens, nav, buttons, crafted header system, cards, footer, reveal.
   Pages link this and keep only page-specific section CSS inline.
   Repo source uses .html links + double quotes; the Netlify build rewrites to
   clean URLs, so author links as filename.html here.
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0B1D3A;
  --navy-deep: #081628;
  --navy-mid: #132B4F;
  --navy-surface: #0F2440;
  --teal: #2EC4B6;
  --teal-soft: rgba(46, 196, 182, 0.14);
  --gold: #D4A853;
  --white: #FFFFFF;
  --ink-95: rgba(255, 255, 255, 0.95);
  --ink-72: rgba(255, 255, 255, 0.72);
  --ink-58: rgba(255, 255, 255, 0.58);
  --ink-42: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.08);
  --line-teal: rgba(46, 196, 182, 0.22);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--ink-72);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---------------------------------------------------------------- NAV ----- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 40px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(11, 29, 58, 0.82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo img { height: 44px; width: auto; }
.nav-logo span { font-size: 16px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink-95); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink-72); transition: color 0.25s ease; letter-spacing: 0.3px; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-cta { font-size: 13px !important; font-weight: 600 !important; color: var(--white) !important; background: var(--teal); padding: 9px 22px; border-radius: 6px; transition: background 0.25s ease, transform 0.25s ease !important; }
.nav-cta:hover { background: #26A89C; transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink-95); border-radius: 2px; transition: all 0.3s ease; }

/* ------------------------------------------------- CRAFTED HEADER SYSTEM -- */
/* The signature: eyebrow flanked by "filament" current hairlines, paired with
   a tight Playfair headline (negative tracking, full white, one gold-italic
   word). Hierarchy = contrast across tracking / weight / color / size. */
.sec-head { text-align: center; max-width: 780px; margin: 0 auto 60px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 13px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--teal); line-height: 1; margin-bottom: 24px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 30px; height: 1px; opacity: 0.85; }
.eyebrow::before { background: linear-gradient(90deg, transparent, var(--teal)); }
.eyebrow::after  { background: linear-gradient(90deg, var(--teal), transparent); }
.headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 600; color: var(--white);
  letter-spacing: -0.021em; line-height: 1.1;
}
.headline em { font-style: italic; color: var(--gold); font-weight: 500; }
.sec-sub { margin: 22px auto 0; max-width: 660px; font-size: 17px; color: var(--ink-72); line-height: 1.7; }

/* ------------------------------------------------------------- BUTTONS ---- */
.btn-primary {
  display: inline-block; padding: 16px 38px;
  background: var(--teal); color: var(--white);
  font-size: 14px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase;
  border-radius: 6px; transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 16px 40px -18px rgba(46, 196, 182, 0.75);
}
.btn-primary:hover { background: #26A89C; transform: translateY(-2px); box-shadow: 0 22px 48px -18px rgba(46, 196, 182, 0.9); }
.btn-quiet {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.4px; color: var(--ink-72);
  transition: color 0.25s ease;
}
.btn-quiet:hover { color: var(--teal); }
.btn-quiet .arw { font-size: 16px; transition: transform 0.25s ease; }
.btn-quiet:hover .arw { transform: translateY(2px); }

/* --------------------------------------------------------- GENERIC CARD --- */
.card {
  background: var(--navy-surface);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 30px 28px 32px;
  position: relative; overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card::before {
  content: ""; position: absolute; top: 24px; left: 28px;
  width: 22px; height: 1px; background: var(--teal); transition: width 0.3s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-teal); box-shadow: 0 24px 50px -30px rgba(46, 196, 182, 0.55); }
.card:hover::before { width: 40px; }
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 600; color: var(--white);
  margin: 24px 0 11px; letter-spacing: -0.01em; line-height: 1.25;
}
.card-text { font-size: 14.5px; color: var(--ink-58); line-height: 1.65; }

/* -------------------------------------------------------------- FOOTER ---- */
.footer { background: var(--navy-deep); border-top: 1px solid var(--line); padding: 64px 40px 40px; }
.footer-brand-logo { margin-bottom: 28px; }
.footer-brand-logo img { height: 40px; width: auto; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-col-title { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 15px; color: var(--ink-72); transition: color 0.25s ease; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom { max-width: 1100px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-42); text-align: center; }
.footer-bottom img { height: 14px; width: auto; vertical-align: middle; margin-right: 6px; opacity: 0.5; }
.footer-tagline em { font-style: italic; color: var(--gold); }
.footer-legal { text-align: center; padding: 14px 6vw 0; font-size: 12px; line-height: 1.8; }
.footer-legal a { color: inherit; opacity: 0.75; text-decoration: underline; }

/* ------------------------------------------------------------- REVEAL ----- */
.reveal-up { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-up.in-view { opacity: 1; transform: none; }
.rd1 { transition-delay: 0.06s; } .rd2 { transition-delay: 0.12s; } .rd3 { transition-delay: 0.18s; }
.rd4 { transition-delay: 0.24s; } .rd5 { transition-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* -------------------------------------------------------------- MOBILE ---- */
@media (max-width: 900px) {
  .nav { padding: 0 20px; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 16px 20px;
    background: var(--navy-deep); border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; }
  .nav-toggle { display: flex; }
  .sec-head { margin-bottom: 44px; }
  .footer { padding: 48px 20px 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
