/* Open Road RVing. Palette sampled from the logo: navy #203149, sage #707862 */

:root {
  --navy: #203149;
  --navy-soft: #2c4262;
  --sage: #707862;
  --sage-text: #5b634f;
  --sage-light: #a9b096;
  --sage-tint: #e9ebe2;
  --cream: #f6f4ee;
  --paper: #ffffff;
  --ink: #1a1f2b;
  --muted: #5a6170;
  --line: #dcd8cc;
  --line-strong: #c9c4b5;
  --logo-dark: #021942;
  --ease: 180ms ease-out;
  --font: "Lato", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #111827;
    --paper: #182236;
    --ink: #eef1f6;
    --muted: #aab3c2;
    --line: #2a3650;
    --line-strong: #3a4862;
    --sage-text: #b7bea7;
    --sage-tint: #232f45;
    --navy: #dbe3f0;
    --navy-soft: #24344f;
    color-scheme: dark;
  }
}

*, *::before, *::after { 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.6;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #e0a83a; outline-offset: 3px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { top: 1rem; }

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

.eyebrow {
  margin: 0 0 .8rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sage-text);
}
h1, h2, h3 { color: var(--navy); line-height: 1.12; margin: 0; font-weight: 900; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.7rem); letter-spacing: -.01em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 1rem 0 0; text-wrap: pretty; }
.container.narrow .lede { margin-inline: auto; }

/* Buttons: squared, quiet, sized to the type */
.btn {
  display: inline-block;
  padding: .7rem 1.15rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn-solid, .nav a.btn-solid { background: var(--navy); color: var(--cream); }
.btn-solid:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
.btn-outline:hover, .nav a.btn-outline:hover { background: var(--navy); color: var(--cream); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-solid { color: #111827; }
  :root:not([data-theme="light"]) .btn-outline:hover { color: #111827; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.brand img { height: 42px; width: auto; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img,
  :root:not([data-theme="light"]) .footer-brand img { background: #f6f4ee; padding: 6px 10px; border-radius: 6px; box-sizing: content-box; }
}
.nav { display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.nav a { font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--navy); }
.nav a:not(.btn) { position: relative; padding: .25rem 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--sage); transform: scaleX(0); transform-origin: left; transition: transform var(--ease);
}
.nav a:not(.btn):hover::after, .nav a:not(.btn):focus-visible::after { transform: scaleX(1); }
.nav .btn { padding: .55rem 1rem; font-size: .9rem; }

.nav-toggle { display: none; background: none; border: 1.5px solid var(--line-strong); border-radius: 4px; padding: .45rem .55rem; color: var(--navy); cursor: pointer; }
.nav-toggle svg { display: block; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 0 1.25rem 1rem; display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav li { border-top: 1px solid var(--line); }
  .nav a { display: block; padding: 1rem 0; font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: .75rem; text-align: center; padding: .85rem 1rem; }
}

/* Hero */
.hero { padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(2.5rem, 4vw, 4rem); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.9rem); letter-spacing: -.02em; max-width: 14ch; }
.hero h1 .accent { color: var(--sage); }
.hero .lede { font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-art { display: grid; place-items: center; }
.road { width: 100%; max-width: 420px; height: auto; }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}
.facts div { padding-right: 1rem; }
.facts div + div { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.facts dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-text); font-weight: 700; }
.facts dd { margin: .2rem 0 0; font-size: 1.6rem; font-weight: 900; color: var(--navy); line-height: 1.1; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { margin-inline: auto; }
  .hero .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { order: -1; }
  .road { max-width: 220px; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; row-gap: 1.25rem; }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.section-head .lede { margin-inline: auto; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Company directory: one row per company, every row the same shape */
.directory { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.entry {
  display: grid;
  grid-template-columns: 3rem 200px minmax(0, 1fr) auto;
  gap: 0 clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background var(--ease);
}
.entry:not(.soon):hover, .entry:focus-within { background: var(--paper); }
.entry:focus-within { outline: 3px solid #e0a83a; outline-offset: -3px; }
.num { font-size: .85rem; font-weight: 700; color: var(--sage-text); letter-spacing: .08em; align-self: start; padding-top: .35rem; }

.mark {
  height: 112px; width: 200px;
  display: grid; place-items: center;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.mark picture { display: contents; }
.mark img { max-height: 88px; max-width: 100%; width: auto; height: auto; object-fit: contain; transition: transform var(--ease); }
.entry:hover .mark img { transform: scale(1.03); }
.mark.on-navy { background: var(--logo-dark); border-color: var(--logo-dark); }
.mark.on-navy img { max-height: 88px; }
.mark.brokers img { max-height: 56px; }
.mark.monogram { background: transparent; border: 1px dashed var(--line-strong); }
.mark.monogram span {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--cream);
  font-weight: 900; font-size: .8rem; letter-spacing: .04em;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mark { background: var(--logo-dark); border-color: var(--logo-dark); }
  :root:not([data-theme="light"]) .mark.light-only { background: #f6f4ee; }
  :root:not([data-theme="light"]) .mark.monogram span { color: #111827; }
}

.entry-body h3 { font-size: 1.25rem; letter-spacing: -.005em; }
.entry-body .tagline { margin: .2rem 0 .5rem; color: var(--sage-text); font-style: italic; font-weight: 700; }
.entry-body .desc { margin: 0; color: var(--muted); max-width: 56ch; }
.entry-body .for { margin: .55rem 0 0; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--sage-text); }

.visit {
  justify-self: end;
  white-space: nowrap;
  font-weight: 700;
  text-decoration: none;
  padding: .55rem .9rem;
  border: 1.5px solid var(--navy);
  border-radius: 4px;
  transition: background var(--ease), color var(--ease);
}
.visit::before { content: ""; position: absolute; inset: 0; }
.entry:hover .visit, .visit:focus-visible { background: var(--navy); color: var(--cream); outline: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .entry:hover .visit { color: #111827; } }
.visit.muted { border-style: dashed; border-color: var(--line-strong); color: var(--muted); }
.visit.muted::before { display: none; }
.entry.soon .tagline { font-style: normal; }

@media (max-width: 900px) {
  .entry { grid-template-columns: 2.5rem 150px minmax(0, 1fr); }
  .mark { width: 150px; height: 96px; }
  .mark img { max-height: 72px; }
  .mark.on-navy img { max-height: 72px; }
  .visit { grid-column: 3; justify-self: start; margin-top: 1rem; }
}
@media (max-width: 600px) {
  .entry { grid-template-columns: minmax(0, 1fr); gap: .9rem; padding: 1.5rem 0; }
  .num { display: none; }
  .mark { width: 100%; height: 110px; }
  .visit { grid-column: 1; margin-top: 0; }
}

/* How we work */
.tenets { list-style: none; margin: 2rem auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 0; }
.tenets li { font-weight: 700; color: var(--navy); padding: 0 1.25rem; position: relative; }
.tenets li + li::before { content: ""; position: absolute; left: 0; top: .35em; bottom: .35em; width: 1px; background: var(--line-strong); }
@media (max-width: 640px) { .tenets { flex-direction: column; align-items: center; } .tenets li + li::before { display: none; } }

/* Founder */
.founder { background: var(--navy); color: #eef1f6; }
.founder .eyebrow { color: var(--sage-light); }
.founder h2 { color: #fff; }
.founder p { color: #d5dbe6; font-size: 1.1rem; text-wrap: pretty; }
.founder blockquote { margin: 2rem auto 0; padding: 0; max-width: 56ch; }
.founder blockquote p { color: #fff; font-size: 1.25rem; font-style: italic; }
.founder blockquote footer { margin-top: 1rem; display: flex; align-items: center; justify-content: center; gap: .75rem; font-weight: 700; color: var(--sage-light); }
.founder-mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: #fff; font-weight: 900; font-size: .85rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .founder { background: #0d1526; } }

/* Contact */
#contact .btn { margin-top: 1.25rem; font-size: 1.05rem; padding: .85rem 1.4rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; font-size: .93rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { margin: 0 0 .75rem; color: var(--navy); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--navy); text-decoration: underline; }
.footer-brand img { height: 38px; width: auto; margin-bottom: .9rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile bottom bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--navy);
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .mobile-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
    min-height: 64px; color: #eef1f6; text-decoration: none; font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  }
  .mobile-bar a + a { border-left: 1px solid rgba(255,255,255,.12); }
  .mobile-bar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-bar a:active { background: var(--navy-soft); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mobile-bar { background: #0d1526; } }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 450ms ease-out, transform 450ms ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }
.entry.soon.is-visible, .entry.soon:not(.reveal) { opacity: .7; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .entry.soon.reveal { opacity: .7; }
}
