:root {
  --royal-blue-deep: #0f1f52;
  --royal-blue: #1c3aa9;
  --royal-blue-bright: #2a4bd7;
  --gold: #d4af37;
  --gold-bright: #f0c84a;
  --gold-dark: #a8821f;

  --ink: #1b1f2a;
  --muted: #5b6373;
  --bg: #ffffff;
  --bg-alt: #f5f7fc;
  --border: #e4e8f2;
  --shadow: 0 10px 30px rgba(15, 31, 82, 0.08);
  --radius: 14px;
  --container: 1180px;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--royal-blue-deep); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--muted); }
a { color: var(--royal-blue); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--royal-blue-deep);
  padding: 10px 16px; z-index: 1000; font-weight: 700;
}
.skip-link:focus { left: 10px; top: 10px; }

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

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: linear-gradient(160deg, var(--royal-blue-deep), var(--royal-blue) 70%);
  color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.78); }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .78rem;
  color: var(--gold-dark); margin-bottom: 10px;
}
.eyebrow.light { color: var(--gold-bright); }
.center { text-align: center; }
h2.center { max-width: 640px; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.1rem; max-width: 680px; margin: 0 auto 2.5em; }
.lead.light { color: rgba(255,255,255,0.82); }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 700;
  font-family: var(--font-head); font-size: .92rem; letter-spacing: .02em;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--royal-blue-deep); }
.btn-gold:hover { box-shadow: 0 10px 24px rgba(212,175,55,0.35); }
.btn-primary { background: var(--royal-blue); color: #fff; }
.btn-primary:hover { background: var(--royal-blue-bright); box-shadow: 0 10px 24px rgba(28,58,169,0.3); }
.btn-outline-light { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-sm { padding: 9px 18px; font-size: .82rem; }
.btn-wide { width: 100%; text-align: center; margin-top: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(15,31,82,0.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid rgba(212,175,55,0.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 14px; max-width: 1360px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { height: 32px; width: auto; position: relative; top: -2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--font-head); }
.brand-text strong { color: #fff; font-size: .98rem; letter-spacing: .05em; }
.brand-text small { color: var(--gold-bright); font-size: .66rem; letter-spacing: .14em; }

/* Wraps the nav links + phone/Log In/Quote buttons as one unit so the
   mobile dropdown below can position/stack them together instead of as
   two independently-placed panels (see the mobile media query). On
   desktop this just needs to behave like they still did as direct
   header-inner flex items: fill the space between the brand and the
   (hidden) nav-toggle, with the nav links and buttons pushed to either
   end of that space. */
.mobile-menu { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 14px; }

.main-nav { display: flex; gap: 22px; white-space: nowrap; }
.main-nav a { color: rgba(255,255,255,0.85); font-weight: 600; font-size: .92rem; }
.main-nav a:hover { color: var(--gold-bright); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { color: var(--gold-bright); font-weight: 700; font-size: .9rem; white-space: nowrap; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  /* Dark navy gradient on top of the real rig photo, not just a plain
     dim overlay - keeps the brand's blue identity and guarantees the
     white headline/text stay readable over the photo's bright sky,
     while the truck itself (the lower two-thirds) stays clearly visible. */
  background: linear-gradient(180deg, rgba(8,15,48,0.92) 0%, rgba(8,15,48,0.72) 45%, rgba(8,15,48,0.9) 100%),
              url('assets/hero-truck.jpg') center 65% / cover no-repeat;
  color: #fff; padding: 110px 0 70px; text-align: center;
}
.hero-inner { position: relative; z-index: 1; }
/* Two layers each: a tight, near-black shadow right behind the glyph
   (does the real work of separating text from busy parts of the photo -
   sky, chrome grille, mountains) plus a softer, wider one for a bit of
   depth. Much stronger than a single soft shadow, which barely read
   against the photo at all. */
.hero .eyebrow { color: var(--gold-bright); text-shadow: 0 1px 2px rgba(0,0,0,0.95), 0 4px 16px rgba(0,0,0,0.8); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; margin-bottom: .5em; text-shadow: 0 2px 4px rgba(0,0,0,0.95), 0 6px 24px rgba(0,0,0,0.8); }
.hero-sub { max-width: 680px; margin: 0 auto 2em; color: rgba(255,255,255,0.92); font-size: 1.05rem; text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 4px 16px rgba(0,0,0,0.75); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.trust-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.trust-bar li {
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--gold-bright);
  text-transform: uppercase; position: relative; padding-left: 14px; text-shadow: 0 1px 2px rgba(0,0,0,0.95), 0 3px 12px rgba(0,0,0,0.75);
}
.trust-bar li::before { content: '•'; position: absolute; left: 0; color: var(--gold-dark); }

/* Mission */
.mission-quote {
  margin: 2.5em 0; padding: 28px 30px; border-left: 4px solid var(--gold);
  background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0;
}
.mission-quote p { font-style: italic; color: var(--royal-blue-deep); font-weight: 600; margin: 0; font-size: 1.05rem; }
.commitment-line { text-align: center; font-size: 1.1rem; color: var(--royal-blue-deep); margin-top: 1.5em; }

/* Cards */
.card-grid { display: grid; gap: 26px; margin-top: 50px; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }

.service-card, .opportunity-card {
  background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--gold);
  border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover, .opportunity-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(15,31,82,0.12); }
.service-icon { font-size: 2rem; margin-bottom: 12px; }
.service-card h3, .opportunity-card h3 { font-size: 1.1rem; }
.link-arrow { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--royal-blue); }
.link-arrow:hover { color: var(--royal-blue-bright); }

/* SFS Command */
.badge-coming-soon {
  display: block; width: fit-content; margin: 0 auto 18px; background: var(--gold); color: var(--royal-blue-deep);
  font-weight: 800; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px;
}
.command-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 50px 0;
}
.command-feature {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(212,175,55,0.3);
  border-radius: var(--radius); padding: 24px;
}
.command-feature h3 { color: var(--gold-bright); font-size: 1.05rem; }
.command-feature p { color: rgba(255,255,255,0.78); margin: 0; }

.pricing-card {
  text-align: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(212,175,55,0.35);
  border-radius: var(--radius); padding: 40px 24px; max-width: 420px; margin: 0 auto;
}
.price { margin: 0; }
.price-amount { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: #fff; }
.price-period { color: rgba(255,255,255,0.7); font-size: 1rem; }
.price-sub { color: rgba(255,255,255,0.65); font-size: .85rem; margin: 6px 0 20px; }

/* Forms */
.card-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: .88rem; color: var(--royal-blue-deep); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: var(--font-body); font-size: .95rem; background: var(--bg-alt); color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--royal-blue); background: #fff;
}
.form-status { min-height: 1.4em; font-weight: 600; font-size: .9rem; margin-top: 10px; }
.form-status.ok { color: #1a7f4d; }
.form-status.err { color: #b3261e; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; margin-top: 50px; align-items: start; }
.contact-info .info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.info-icon { font-size: 1.3rem; }
.contact-info strong { display: block; color: var(--royal-blue-deep); margin-bottom: 2px; }
.contact-info p { margin: 0; }
.map-card {
  margin-top: 10px; display: flex; align-items: center; gap: 16px;
  border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--bg-alt), #fff); padding: 20px 22px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.map-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15,31,82,0.12); }
.map-card-icon { font-size: 1.8rem; }
.map-card strong { display: block; color: var(--royal-blue-deep); }
.map-card small { color: var(--muted); font-size: .85rem; }
.map-card-arrow { margin-left: auto; font-weight: 800; color: var(--gold-dark); font-size: 1.2rem; }

/* Footer */
.site-footer { background: var(--royal-blue-deep); color: rgba(255,255,255,0.85); padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-mark { height: 64px; width: auto; }
.footer-brand strong { color: #fff; font-family: var(--font-head); font-size: .95rem; letter-spacing: .03em; }
.footer-brand p { margin: 2px 0 0; font-size: .85rem; color: var(--gold-bright); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.75); font-size: .92rem; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-contact p { margin: 0 0 8px; font-size: .9rem; }
.footer-contact a { color: rgba(255,255,255,0.85); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 20px 24px; max-width: var(--container); margin: 0 auto; font-size: .8rem; color: rgba(255,255,255,0.55);
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three { grid-template-columns: 1fr; }
  .command-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .mobile-menu { display: none; }
  .nav-toggle { display: flex; }
  /* One positioned panel (anchored just below the sticky header) with
     the nav links and the buttons stacked inside it in normal flow, not
     two separately-positioned panels with a guessed gap between them -
     that guess (a hardcoded top offset assuming a fixed nav-link height)
     is what let the phone number cover "Contact" once the nav grew past
     whatever height was assumed. Stacking them for real means this can't
     drift out of sync again regardless of how many links/buttons there
     are. */
  .site-header.open .mobile-menu {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--royal-blue-deep); border-top: 1px solid rgba(212,175,55,0.25); max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .site-header.open .main-nav { flex-direction: column; padding: 20px 24px 10px; gap: 16px; }
  .site-header.open .header-cta { flex-direction: column; align-items: flex-start; padding: 10px 24px 24px; gap: 12px; }
  .form-row { grid-template-columns: 1fr; }
}
