/* ==========================================================================
   Value Added Resources (VAR) site styles
   Palette sampled from the VAR logo and existing brand:
   brand red #A9322E, slate navy #39495C (darkened for contrast), warm paper.
   ========================================================================== */

:root {
  --red: #A9322E;
  --red-dark: #8C2622;
  --red-deep: #7A211E;
  --red-tint: #FBF1F0;
  --navy-900: #1E2833;
  --navy-800: #26313F;
  --navy-700: #39495C;
  --navy-100: #E3E8EE;
  --paper: #FAF9F7;
  --card: #FFFFFF;
  --ink: #232D38;
  --muted: #58687A;
  --line: #E5E1DA;
  --amber: #E8A13C;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(30, 40, 51, 0.06), 0 8px 24px rgba(30, 40, 51, 0.07);
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -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; }

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

/* Avoid a single hanging word on the last line of body copy (orphans) */
p, li, .lead, summary, blockquote, figcaption, .stat-label { text-wrap: pretty; }

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }

section { padding: clamp(3rem, 7vw, 5rem) 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.lead { font-size: 1.1875rem; color: var(--muted); max-width: 46em; }

.muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }

.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--navy-700); }
.btn-outline:hover { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--navy-100); color: var(--navy-900); }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn-lg { min-height: 56px; padding: 0.85rem 2rem; font-size: 1.0625rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
  padding: 0.5rem 0;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 118px; height: auto; }

/* Nav sits left next to the logo; the auto margin pushes the phone + Get a
   Quote CTA to the right edge. */
.site-nav { margin-right: auto; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }

.header-cta { display: flex; align-items: center; gap: 0.85rem; }

.header-phone {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.header-phone:hover { color: #fff; text-decoration: underline; }

.header-cta .btn { min-height: 42px; padding: 0.45rem 1.15rem; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  padding: 0.6rem;
  margin-right: -0.6rem;
  cursor: pointer;
}
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .header-cta { margin-left: auto; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .nav-open .site-nav { display: block; }

  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: block; padding: 0.8rem 0.25rem; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .site-nav > ul > li:last-child a { border-bottom: 0; }

  .nav-quote-item { margin-top: 0.75rem; }
  .nav-quote-item a {
    background: var(--red);
    border-radius: 999px;
    text-align: center;
    border-bottom: 0;
    box-shadow: none !important;
  }
}

@media (min-width: 1141px) {
  .nav-quote-item { display: none; }
}

/* Compact phone display on small screens: icon plus short label */
.header-phone .phone-label-short { display: none; }
@media (max-width: 560px) {
  .header-phone .phone-label-long { display: none; }
  .header-phone .phone-label-short { display: inline; }
  .header-phone {
    background: var(--red);
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    min-height: 42px;
  }
  .header-phone:hover { text-decoration: none; background: var(--red-dark); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(169, 50, 46, 0.35), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(57, 73, 92, 0.55), transparent 60%),
    var(--navy-900);
  color: #fff;
  padding: clamp(2rem, 7vw, 6.5rem) 0;
}

.hero h1 { color: #fff; }
.hero .lead { color: rgba(255, 255, 255, 0.82); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Compact button labels: short text (and phone icon) show only on phones */
.btn-label-mini { display: none; }
.btn-phone-icon { display: none; }
@media (max-width: 560px) {
  .btn-label-full { display: none; }
  .btn-label-mini { display: inline; }
  .btn-phone-icon { display: inline-block; }
  /* Two CTAs share one row on phones instead of stacking */
  .btn-row .btn-lg { flex: 1 1 auto; min-width: 0; padding-left: 0.9rem; padding-right: 0.9rem; }
  .hero .btn-row { flex-wrap: nowrap; }
  .hero .btn-row .btn-lg { flex: 1 1 0; min-height: 50px; font-size: 1rem; }
  /* Hide the home hero image on phones for a tighter above the fold */
  .hero-grid > .photo { display: none; }
}

.hero-note { font-size: 0.95rem; color: rgba(255, 255, 255, 0.66); margin-top: 1.25rem; }
.hero-note a { color: #fff; }

.hero-red {
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(255, 255, 255, 0.14), transparent 55%),
    radial-gradient(700px 500px at -10% 110%, rgba(30, 40, 51, 0.5), transparent 60%),
    var(--red-deep);
}

.badge-247 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
}
.badge-247 .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #6FCF7C;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* --------------------------------------------------------------------------
   Stats bar
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.25rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(30, 40, 51, 0.12);
  border-color: rgba(169, 50, 46, 0.3);
}
.stat-value {
  font-size: clamp(2.25rem, 4vw, 2.9rem);
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label { color: var(--navy-700); font-weight: 600; margin: 0; line-height: 1.4; max-width: 24ch; }

.stats-on-dark .stat { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); box-shadow: none; }
.stats-on-dark .stat-value { color: #fff; }
.stats-on-dark .stat-label { color: rgba(255, 255, 255, 0.72); }

/* --------------------------------------------------------------------------
   Cards and grids
   -------------------------------------------------------------------------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

a.card { display: block; text-decoration: none; color: var(--ink); transition: transform 160ms ease, border-color 160ms ease; }
a.card:hover { transform: translateY(-3px); border-color: var(--red); }
a.card h3 { color: var(--navy-900); }
.card-link { font-weight: 700; color: var(--red); }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--red-tint);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg { width: 26px; height: 26px; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding-left: 1.9em; position: relative; margin-bottom: 0.55em; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.28em;
  width: 1.15em; height: 1.15em;
  border-radius: 50%;
  background: var(--red-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9322E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 62% no-repeat;
}

/* --------------------------------------------------------------------------
   Section shells
   -------------------------------------------------------------------------- */

.section-dark { background: var(--navy-900); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.8); }

.section-tint { background: #F2EFEA; }

.section-head { max-width: 720px; margin-bottom: 2.5rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  /* Keep the image after its text when stacked, so images never sit back to back */
  .split > .photo, .split > .map-embed { order: 2; }
}

.map-embed {
  width: 100%;
  min-height: 340px;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
  display: block;
}

/* --------------------------------------------------------------------------
   Photo placeholders (real facility photos to come from the client)
   -------------------------------------------------------------------------- */

.photo-slot {
  position: relative;
  border-radius: var(--radius);
  border: 2px dashed #C4BEB4;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(57, 73, 92, 0.05) 14px 28px),
    #EEEBE5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 300px;
  color: var(--muted);
  text-align: center;
  padding: 1.5rem;
}
.photo-slot.short { min-height: 200px; }
.photo-slot svg { width: 34px; height: 34px; opacity: 0.55; }
.photo-slot span { font-size: 0.9rem; font-weight: 600; max-width: 26em; }

.photo {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   Cross dock callout banner
   -------------------------------------------------------------------------- */

.callout-247 {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
    var(--red-deep);
  color: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
}
/* Text fills the left, buttons pin to the right on one row (wraps on mobile) */
.callout-247 > div:first-child { flex: 1 1 380px; min-width: 0; }
.callout-247 .btn-row { flex: 0 0 auto; }
.callout-247 h2 { color: #fff; margin-bottom: 0.35rem; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.callout-247 p { color: rgba(255, 255, 255, 0.85); margin: 0; max-width: 34em; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.quote-card { position: relative; padding-top: 2.5rem; }
.quote-card::before {
  content: "\201C";
  position: absolute;
  top: 0.4rem; left: 1.4rem;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--red);
  font-weight: 800;
}
.quote-card blockquote { margin: 0 0 1rem; font-size: 1.1rem; font-weight: 600; color: var(--navy-800); }
.quote-card cite { font-style: normal; color: var(--muted); font-size: 0.92rem; font-weight: 600; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list { max-width: 760px; margin-inline: auto; }
/* Center the heading above a centered FAQ list or a row of stat cards */
.container:has(.faq-list) .section-head,
.container:has(.stats) .section-head { margin-inline: auto; text-align: center; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3.2rem 1.1rem 1.4rem;
  font-weight: 700;
  color: var(--navy-900);
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--red);
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details > div { padding: 0 1.4rem 1.2rem; color: var(--muted); }
.faq-list details > div p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--navy-900); }
.field .hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #CFC9BF;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.service-fields { display: none; }
.service-fields.active {
  display: block;
  border-top: 1px solid var(--line);
  margin-top: 1.4rem;
  padding-top: 1.4rem;
}
.service-fields h3 { font-size: 1.05rem; margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */

.page-hero { padding: clamp(3rem, 7vw, 4.5rem) 0; }
.page-hero .lead { margin-top: 0.5rem; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background:
    radial-gradient(800px 360px at 85% -20%, rgba(169, 50, 46, 0.4), transparent 60%),
    var(--navy-900);
  color: #fff;
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.8); max-width: 40em; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-brand img { width: 172px; height: auto; margin-bottom: 1rem; }
.footer-tagline { font-style: italic; color: rgba(255, 255, 255, 0.6); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  background: #fff;
  color: var(--navy-900);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.todo-note {
  border: 2px dashed var(--amber);
  background: #FDF6EA;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: #7A5A1E;
  font-size: 0.95rem;
}
.todo-note strong { color: #5E4413; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge-247 .dot { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
