/* Rivet Consulting — site styles
   Brand colors come from the logo. Change them here only. */
:root {
  --brand-navy: #01255C;
  --brand-navy-dark: #001840;
  --brand-gray: #75736F;
  --brand-blue: #2596D8;
  --brand-blue-text: #156BA6; /* darker logo blue for small text on white (passes contrast) */
  --ink: #1B2430;
  --ink-soft: #4A4F57;
  --paper: #FFFFFF;
  --paper-alt: #F3F6FA;
  --line: #D9E0EA;
  --radius: 10px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-navy); text-underline-offset: 3px; }
a:hover { color: var(--brand-blue-text); }
:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; color: var(--brand-navy); margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand-navy); color: #fff; padding: 10px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  white-space: nowrap;
}
.btn-call { background: var(--brand-navy); color: #fff; }
.btn-call:hover { background: var(--brand-navy-dark); color: #fff; }
.btn-light { background: #fff; color: var(--brand-navy); }
.btn-light:hover { background: var(--paper-alt); color: var(--brand-navy); }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { border-color: var(--brand-navy); color: var(--brand-navy); background: #fff; }
.btn-outline:hover { background: var(--paper-alt); color: var(--brand-navy); }
.btn-kicker { font-weight: 500; opacity: .85; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.25rem; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { flex: 0 0 auto; }
.brand img { width: 120px; height: auto; }
.header-call { display: none; }
@media (min-width: 960px) { .header-call { display: inline-flex; } }

.nav-desktop { display: none; }
.nav-desktop ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-desktop a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 600; border-radius: 8px; }
.nav-desktop a:hover { background: var(--paper-alt); }
.nav-desktop a[aria-current="page"] { color: var(--brand-blue-text); text-decoration: underline; text-decoration-color: var(--brand-blue); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav-menu { margin-left: auto; }
.nav-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--brand-navy); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-burger, .nav-burger::before, .nav-burger::after { display: block; width: 18px; height: 2px; background: var(--brand-navy); position: relative; content: ""; }
.nav-burger::before { position: absolute; top: -6px; }
.nav-burger::after { position: absolute; top: 6px; }
.nav-menu ul { list-style: none; margin: 0; padding: 8px; position: absolute; right: 16px; left: 16px; top: 72px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(1,37,92,.12); }
.nav-menu a { display: block; padding: 12px 14px; text-decoration: none; font-weight: 600; border-radius: 8px; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: var(--paper-alt); }
@media (min-width: 820px) {
  .nav-desktop { display: block; margin-left: auto; }
  .nav-menu { display: none; }
}

/* Hero */
.hero { background: linear-gradient(160deg, var(--brand-navy) 0%, #0A3A80 100%); color: #fff; position: relative; overflow: hidden; }
.hero .container { padding-top: 56px; padding-bottom: 88px; position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lead { font-size: 1.2rem; max-width: 46ch; color: #E3ECF8; }
.hero .eyebrow { color: #9FD3F4; }
/* Home hero: logo (black RIVET version) to the right, no background (desktop only; phones keep the call buttons up top) */
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-logo { display: none; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.25fr 1fr; }
  .hero-logo { display: block; justify-self: end; width: 100%; max-width: 440px; }
  .hero-logo img { display: block; width: 100%; height: auto; }
}
.hero-swoosh { position: absolute; left: -5%; right: -5%; bottom: -1px; width: 110%; height: 90px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--brand-blue-text); margin-bottom: .8em; }

/* Page headers on every inner page: same dark blue and swoosh as the home page banner, all text white */
.page-hero { background: linear-gradient(160deg, var(--brand-navy) 0%, #0A3A80 100%); color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: -5%; bottom: -1px; width: 110%; height: 90px; background: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%201200%2090%22%20preserveAspectRatio=%22none%22%3E%3Cpath%20d=%22M0,90%20L0,60%20C300,10%20800,0%201200,70%20L1200,90%20Z%22%20fill=%22%23F3F7FC%22/%3E%3Cpath%20d=%22M0,58%20C300,8%20800,-2%201200,68%22%20fill=%22none%22%20stroke=%22%232596D8%22%20stroke-width=%226%22/%3E%3C/svg%3E") no-repeat center bottom / 100% 100%; pointer-events: none; }
.page-hero .container { padding-top: 44px; padding-bottom: 96px; position: relative; z-index: 1; }
.page-hero h1, .page-hero h2, .page-hero .eyebrow, .page-hero .eyebrow a { color: #fff; }
.page-hero p { max-width: 62ch; color: #fff; font-size: 1.1rem; }
.page-hero a:not(.btn) { color: #fff; }
.page-hero .btn-call { background: #fff; color: var(--brand-navy); }
.page-hero .btn-call:hover { background: var(--paper-alt); color: var(--brand-navy); }
.page-hero .btn-outline { border-color: #fff; color: #fff; background: transparent; }
.page-hero .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--paper-alt); }
.section-navy { background: var(--brand-navy); color: #E3ECF8; }
.section-navy h2, .section-navy h3 { color: #fff; }
.prose { max-width: 68ch; }
.prose p { color: var(--ink-soft); }
.section-navy .prose p { color: #E3ECF8; }

.callout { border-left: 5px solid var(--brand-blue); padding: 6px 0 6px 18px; font-size: 1.25rem; font-weight: 700; color: var(--brand-navy); margin: 1.5em 0; }
.section-navy .callout { color: #fff; }

/* Cards */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; border-top: 4px solid var(--brand-blue); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); flex: 1; }
.card a.more { font-weight: 700; text-decoration: none; }
.card a.more::after { content: " \2192"; }

/* Stats strip */
.stats { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stats strong { display: block; font-size: clamp(1.2rem, 4.5vw, 1.6rem); color: var(--brand-navy); line-height: 1.1; }
.stats span { color: var(--ink-soft); font-size: .95rem; }

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding: 6px 0 6px 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 13px; width: 16px; height: 9px; border-left: 3px solid var(--brand-blue); border-bottom: 3px solid var(--brand-blue); transform: rotate(-45deg); }

.cred-list { display: grid; gap: 12px; grid-template-columns: 1fr; padding: 0; list-style: none; }
@media (min-width: 760px) { .cred-list { grid-template-columns: 1fr 1fr; } }
.cred-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.cred-list strong { display: block; color: var(--brand-navy); }
.cred-list span { color: var(--ink-soft); font-size: .97rem; }

.towns { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; padding: 0; list-style: none; }
@media (min-width: 760px) { .towns { grid-template-columns: repeat(3, 1fr); } }
.towns li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.towns strong { display: block; color: var(--brand-navy); }
.towns span { color: var(--ink-soft); font-size: .92rem; }

.notice { background: #FFF8E6; border: 1px solid #F0D58C; border-radius: var(--radius); padding: 14px 16px; color: #5A4300; }
.placeholder { background: var(--paper-alt); border: 2px dashed var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink-soft); }

.two-col { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.4fr 1fr; align-items: start; } }

.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card .big-phone { font-size: 1.8rem; font-weight: 800; color: var(--brand-navy); text-decoration: none; display: inline-block; margin: .2em 0 .4em; }

/* CTA band */
.cta-band { background: var(--brand-navy); color: #fff; }
.cta-band .container { padding-top: 44px; padding-bottom: 44px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: .3em 0 0; color: #D6E3F5; }

/* Footer */
.site-footer { background: #0B1830; color: #C9D3E3; padding: 44px 0 0; font-size: .97rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.3fr; } }
.footer-name { font-weight: 800; color: #fff; font-size: 1.15rem; }
.footer-head { font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; padding-bottom: 90px; font-size: .9rem; }
@media (min-width: 960px) { .footer-bottom { padding-bottom: 20px; } }

/* Sticky mobile call bar */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--brand-navy); box-shadow: 0 -6px 20px rgba(0,0,0,.2); }
.mobile-cta .btn { flex: 1; min-height: 48px; padding: 0 10px; }
.mobile-cta .btn-call { background: var(--brand-blue); color: #01255C; }
@media (min-width: 960px) { .mobile-cta { display: none; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h-sm { font-size: 1.3rem; }
.mt-0 { margin-top: 0; }
.eyebrow-light { color: #9FD3F4; }

/* Company motto */
.motto-bar { background: #fff; }
.motto { margin: 0; padding: 14px 0; font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 700; font-style: italic; color: #000; }
.footer-motto { color: #9FD3F4; font-weight: 700; margin-top: -.6em; }

/* Service area map */
.map-figure { margin: 0 0 32px; background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.sa-map { width: 100%; height: auto; display: block; max-height: 640px; }
.sa-map .county { fill: #FFFFFF; stroke: #C9D3E0; stroke-width: 1; }
.sa-map .county-served { fill: #D4EAF8; stroke: #7FB6DD; stroke-width: 1.2; }
.sa-map .star { fill: var(--brand-blue); stroke: var(--brand-navy); stroke-width: 1.2; stroke-linejoin: round; }
.sa-map .city-home .star { fill: var(--brand-navy); stroke: #FFFFFF; stroke-width: 1.5; }
.sa-map text { font-family: var(--font); font-size: 16px; font-weight: 700; fill: var(--brand-navy); paint-order: stroke; stroke: #FFFFFF; stroke-width: 4px; stroke-linejoin: round; }
.sa-map .city-home text { font-size: 18px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 10px 4px 2px; font-size: .95rem; color: var(--ink-soft); }
.legend-star { color: var(--brand-blue); font-size: 1.1rem; }
.legend-home { color: var(--brand-navy); }
.legend-swatch { display: inline-block; width: 14px; height: 14px; background: #D4EAF8; border: 1px solid #7FB6DD; vertical-align: -2px; border-radius: 3px; }

/* Background photos: a soft white wash keeps text easy to read; the photo stays put while text scrolls over it */
.bg-photo { background-color: #fff; background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed; }
.bg-aviation { background-image: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)), url(../images/bg/aviation.webp); }
.bg-fleet { background-color: #D6DADE; background-attachment: scroll; background-size: cover; background-image: linear-gradient(rgba(255,255,255,.85), rgba(255,255,255,.85)), url(../images/bg/fleet.webp); }
/* Home page services: almost no white wash, and the photo is shown smaller so more vehicles peek out between the cards */
.bg-fleet.bg-clear { background-color: #D6DADE; background-size: cover; background-image: linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)), url(../images/bg/fleet.webp); }
.bg-warehouse { background-image: linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.86)), url(../images/bg/warehouse.webp); }
.bg-facility { background-image: linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.86)), url(../images/bg/facility.webp); }
.bg-plant { background-image: linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.86)), url(../images/bg/plant.webp); }
.bg-storage { background-image: linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.86)), url(../images/bg/storage.webp); }
.bg-operations { background-image: linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.86)), url(../images/bg/operations.webp); background-position: center 55%; }
.section-navy.bg-aviation { background-color: var(--brand-navy); background-image: linear-gradient(rgba(1,37,92,.86), rgba(1,37,92,.86)), url(../images/bg/aviation.webp); }
/* Phones and tablets don't support the "photo stays put" effect well, so the photo scrolls normally there */
@media (hover: none), (max-width: 900px) { .bg-photo { background-attachment: scroll; } }
@media (max-width: 900px) { .bg-fleet, .bg-fleet.bg-clear { background-size: auto 720px; } }
/* Home page: the 747-8 photo shows clearly behind the intro and Services sections; the page scrolls over it */
.bg-aviation.bg-open { background-image: linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.72)), url(../images/bg/aviation.webp); }
@media (hover: none), (max-width: 900px) { .bg-aviation.bg-open { background-image: linear-gradient(rgba(255,255,255,.82), rgba(255,255,255,.82)), url(../images/bg/aviation.webp); } }
/* Fleet service page: one fleet photo runs behind both sections, the same format as the other service pages */
.svc-photo.bg-fleet, .svc-photo.bg-fleet.bg-clear { background-attachment: fixed; background-size: cover; background-image: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)), url(../images/bg/fleet.webp); }
@media (hover: none), (max-width: 900px) { .svc-photo.bg-fleet, .svc-photo.bg-fleet.bg-clear { background-attachment: scroll; background-size: auto 720px; background-image: linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,.8)), url(../images/bg/fleet.webp); } }

/* Blueprint grid: faint logo-blue graph-paper lines for sections without a photo */
.bg-blueprint { background-color: #F3F7FC; background-image: linear-gradient(rgba(37,150,216,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(37,150,216,.16) 1px, transparent 1px), linear-gradient(rgba(37,150,216,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(37,150,216,.07) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: center top; }

/* Contact form */
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--brand-navy); margin-bottom: 6px; }
.field .req { font-weight: 400; color: var(--ink-soft); font-size: .9em; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--ink); background: #fff; border: 1px solid #8A94A3; border-radius: 6px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 1px; border-color: var(--brand-blue); }
.field-row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field.check { display: flex; gap: 10px; align-items: flex-start; }
.field.check input { width: 22px; min-height: 22px; height: 22px; margin-top: 3px; flex: none; }
.field.check label { font-weight: 400; color: var(--ink); margin: 0; }
.hint { font-size: .9rem; color: var(--ink-soft); margin: 6px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 4px 0 18px; min-height: 65px; }
.contact-form .btn { min-height: 50px; font-size: 1.05rem; padding: 0 28px; }
#form, .form-alert { scroll-margin-top: 110px; }
/* Error messages show only when the page is opened at #form-error... (no JavaScript needed) */
.form-alert { display: none; background: #FDECEC; border: 1px solid #E0A3A3; color: #7A1616; border-radius: 6px; padding: 12px 14px; font-weight: 600; }
.form-alert:target { display: block; }

/* Privacy policy */
.policy { max-width: 760px; }
.policy h2 { font-size: 1.3rem; margin-top: 1.8em; }
.policy ul { padding-left: 1.2em; }
.policy li { margin-bottom: .4em; }
.policy .updated { color: var(--ink-soft); }

/* Text sitting directly on a background photo is black so it reads clearly (owner request).
   Text inside white boxes (cards, contact card, stat boxes) and the dark blue band are unchanged. */
.bg-photo:not(.section-navy) .prose p:not(.callout),
.bg-photo:not(.section-navy) .two-col > div > p:not(.notice),
.bg-photo:not(.section-navy) .two-col > div > .check-list li,
.bg-photo:not(.section-navy) > .container > p:not(.eyebrow) { color: #000; }
