/* =========================================================
   Ramsey Hill Logistics: draft site styles
   Colors, fonts, sizes, buttons, badges and rounding follow
   Ramsey Hill Style Guide v3 (October 2026).
   ========================================================= */
:root {
  /* Ramsey Hill Style Guide v3 colors */
  --navy: #0d2038;
  --blue: #236fa1;
  --gold: #e5a82e;
  --green: #147d55;
  --light-gray: #f3f6f8;
  --white: #ffffff;
  --navy-panel: #1b2d44;
  --navy-border: #3d4d60;
  --light-text: #b8c3cd;
  --navy-label: #7f91a3;
  --photo-tint: rgba(13, 32, 56, 0.55);
  /* Not in the style guide yet: thin divider lines on light backgrounds */
  --hairline: rgba(13, 32, 56, 0.15);
  --divider: rgba(13, 32, 56, 0.30);

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --radius: 6px;      /* radius-md */
  --radius-sm: 3px;   /* badges */
  --shadow: 0 10px 30px rgba(13, 32, 56, 0.12);
  --button-lift: 0 8px 18px rgba(13, 32, 56, 0.30);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--light-gray);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.4em;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.lead { font-size: 1.2rem; color: var(--navy); max-width: 46ch; }
.muted { color: var(--navy-border); }

/* ---------- Draft notice + placeholders ---------- */
.draft-bar {
  background: var(--navy-panel);
  color: var(--light-text);
  font-size: 0.85rem;
  text-align: center;
  padding: 6px 16px;
  font-weight: 500;
}
.tbd {
  display: inline-block;
  background: var(--white);
  border: 1px dashed var(--navy-border);
  color: var(--navy);
  font-size: 0.8em;
  font-weight: 600;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.dark .tbd, .hero .tbd, .site-footer .tbd, .side-card .tbd { background: var(--navy-panel); color: var(--light-text); border-color: var(--navy-label); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
/* Main button: normal Blue; hover rises 2px; clicked turns Green; keyboard focus outline */
.btn-red { background: var(--blue); color: var(--white); }
.btn-red:hover { transform: translateY(-2px); box-shadow: var(--button-lift); }
.btn-red:active, .btn-red.is-clicked { background: var(--green); transform: none; box-shadow: none; }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.dark .btn:focus-visible, .hero .btn:focus-visible, .site-header .btn:focus-visible, .cta-band .btn:focus-visible, .mobile-apply .btn:focus-visible { outline-color: var(--white); }
/* Secondary button: text link with arrow and underline */
.btn-ghost, .btn-dark {
  background: none; border: 0; border-radius: 0; padding: 4px 0 2px;
  border-bottom: 2px solid currentColor;
}
.btn-ghost::after, .btn-dark::after { content: "\2192"; }
.btn-ghost { color: var(--white); }
.btn-dark { color: var(--blue); }
.btn-ghost:hover, .btn-dark:hover { transform: translateY(-2px); }
.btn-dark:active { color: var(--green); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
  border-bottom: 4px solid var(--blue);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--font-head); line-height: 0.95; text-transform: uppercase; }
.brand-name strong { display: block; font-size: 1.55rem; font-weight: 800; letter-spacing: 0.04em; }
.brand-name span { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.32em; color: var(--light-text); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { color: var(--light-text); }
.nav .btn { padding: 10px 20px; font-size: 1.05rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 30px; height: 30px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 80px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    padding: 8px 24px 24px;
    display: none;
    border-bottom: 4px solid var(--blue);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav .btn { margin-top: 16px; justify-content: center; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: var(--navy) center/cover no-repeat;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: 120px 0 72px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--photo-tint);
}
.hero .wrap { position: relative; }
.hero .eyebrow { color: var(--light-text); }
.hero h1 { max-width: 15ch; }
.hero .lead { color: rgba(255,255,255,0.88); margin-bottom: 28px; }
.hero-sm { min-height: 440px; padding-top: 100px; padding-bottom: 56px; }

/* ---------- Stat strip ---------- */
.stats { background: var(--blue); color: var(--white); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 20px; border-left: 1px solid rgba(255,255,255,0.22); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; line-height: 1; }
.stat span { font-size: 0.95rem; opacity: 0.92; }
@media (max-width: 820px) {
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.22); }
  .stat:nth-child(-n+2) { border-top: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.dark { background: var(--navy); color: var(--white); }
.dark .lead { color: rgba(255,255,255,0.8); }
.dark .muted { color: var(--light-text); }
.white { background: var(--white); }
.section-head { max-width: 720px; margin-bottom: 48px; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
}

.checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 20px; height: 20px;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--hairline), 0 6px 18px rgba(13,32,56,0.06);
  display: flex;
  flex-direction: column;
}
.card-img { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.card-body p:last-child { margin-bottom: 0; }
.card-link {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--navy);
  font-family: var(--font-head); font-weight: 700;
  font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--radius-sm); line-height: 1.2;
}
.badge.soon { background: var(--gold); color: var(--navy); }

.info-card {
  background: var(--white);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 6px 18px rgba(13,32,56,0.06);
}
.info-card h3 { margin-bottom: 6px; }
.info-card .big { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--blue); line-height: 1.05; margin-bottom: 8px; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 10px;
}
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 4px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px 10px;
  font-size: 0.85rem;
  color: var(--white);
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
@media (max-width: 820px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-head); font-weight: 800; font-size: 3.2rem; line-height: 1;
  color: var(--blue);
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 0 1px 0 var(--hairline);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 24px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem; color: var(--blue); font-weight: 600;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 24px 20px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  color: var(--white);
  background: var(--navy) center/cover no-repeat;
  padding: 110px 0;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--photo-tint); }
.cta-band .wrap { position: relative; }
.cta-band h2 { max-width: 16ch; }
.cta-band .lead { color: rgba(255,255,255,0.85); margin-bottom: 28px; }

/* ---------- Locations map ---------- */
.map-wrap { background: var(--navy); border-radius: var(--radius); padding: 24px; }
.map-wrap svg { width: 100%; height: auto; display: block; }
.loc-detail { list-style: none; padding: 0; margin: 0 0 20px; }
.loc-detail li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--divider); font-size: 1rem; }
.loc-detail li b { min-width: 92px; font-weight: 600; color: var(--navy); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 26px 20px; } }
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
label .req { color: var(--blue); }
input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--navy-border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35,111,161,0.25); }
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.9rem; color: var(--navy); margin-top: 16px; }
.form-status { display: none; margin-top: 20px; padding: 16px 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--navy-border); }
.form-status.show { display: block; }

.side-card { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 32px; }
.side-card h3 { color: var(--white); }
.side-card ul { list-style: none; padding: 0; margin: 0; }
.side-card li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.side-card li:last-child { border-bottom: 0; }
.side-card li b { display: block; font-family: var(--font-head); font-size: 1.2rem; letter-spacing: 0.04em; }
.quote-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .quote-layout { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--light-text); padding: 64px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer h4 { color: var(--white); font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--light-text); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 0.85rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } body { font-size: 17px; } .section { padding: 72px 0; } .wrap { padding: 0 16px; } }

/* Mobile sticky apply bar */
.mobile-apply { display: none; }
@media (max-width: 700px) {
  .mobile-apply {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--navy);
    border-top: 3px solid var(--blue);
  }
  .mobile-apply .btn { flex: 1; justify-content: center; padding: 12px; font-size: 1rem; }
  body { padding-bottom: 72px; }
}

/* Eyebrow labels on dark backgrounds: Light Text (Blue is too faint on navy) */
.dark .eyebrow, .side-card .eyebrow { color: var(--light-text); }
/* Mobile bar: secondary link centered */
.mobile-apply .btn-ghost { flex: 0 0 auto; padding: 4px 8px 2px; align-self: center; }
.nowrap{white-space:nowrap}
.cta-band .eyebrow { color: var(--light-text); }

/* Long email addresses wrap instead of running off narrow cards */
.loc-detail a, .muted a { overflow-wrap: anywhere; }

/* ---------- RHEX logo ---------- */
.brand-logo { display: block; height: 52px; width: auto; }
.footer-logo { display: block; width: 240px; max-width: 100%; height: auto; }
@media (max-width: 520px) { .brand-logo { height: 44px; } }
