/* Bear Express LLC
   Midnight Black #000000, Texas Navy #04285E,
   Lone Star Red #B70108, Weathered Cream #F2E8DE */

@font-face {
  font-family: "Alfa Slab One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/alfa-slab-one-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Kaushan Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/kaushan-script-latin.woff2") format("woff2");
}

:root {
  --black: #000000;
  --navy: #04285e;
  --red: #b70108;
  --red-deep: #8c0106;
  --cream: #f2e8de;
  --cream-muted: #d7cdc2;
  --line: rgba(242, 232, 222, 0.22);
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-hero: "Alfa Slab One", "Arial Black", Impact, sans-serif;
  --font-script: "Kaushan Script", "Segoe Script", "Brush Script MT", cursive;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --header-offset: 7.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color-scheme: dark;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:hover {
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

::selection {
  background: var(--red);
  color: var(--cream);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 80;
  background: var(--cream);
  color: var(--black);
  padding: 0.55rem 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--black);
}

.site-header {
  position: relative;
  border-bottom: 4px solid var(--red);
  background: var(--black);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
  padding: 0.7rem 0;
}

.brand {
  display: block;
  width: 168px;
  flex: none;
  background: var(--black);
  line-height: 0;
}

.brand img,
.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1394 / 726;
  background: var(--black);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.75rem;
}

.header-call {
  display: none;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.header-call:hover {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 0.18em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--cream);
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  flex-direction: column;
  background: var(--black);
  border-bottom: 4px solid var(--red);
  padding: 0.35rem 0 0.6rem;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  display: block;
  padding: 0.85rem 1.25rem;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 4px 0 0 var(--red);
}

main:focus {
  outline: none;
}

main {
  display: block;
}

.hero,
.page-hero {
  padding: 2rem 0 2.4rem;
  background: var(--black);
}

/* Swap the hero by replacing this one file and, if needed, --hero-position.
   Current file: generated image approved by owner, based on the company truck. */
:root {
  --hero-image: url("../assets/hero-final.webp");
  --hero-position: center center;
}

.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  background-color: #04285e;
}

.hero-band {
  aspect-ratio: 16 / 9;
  background-color: #04285e;
  background-image: var(--hero-image);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: var(--hero-position);
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: min(680px, 100%);
  margin: 0 auto 1.25rem;
  background: transparent;
  line-height: 0;
}

.hero-logo img {
  background: transparent;
}

.hero .eyebrow,
.hero .note,
.hero .lede,
.hero .tagline {
  color: var(--cream);
}

@media (max-width: 899px) {
  :root {
    --hero-position: center center;
  }

  .hero {
    padding: 0 0 2.4rem;
    background-color: #04285e;
    background-image: none;
  }

  .hero .wrap {
    background-color: #04285e;
    background-image: none;
  }

  /* Full 16:9 frame. The photo is not a backdrop for the text. */
  .hero-band {
    width: 100%;
    height: 0;
    margin: 0;
    padding-top: 56.25%;
    aspect-ratio: auto;
    overflow: hidden;
    background-color: #04285e;
    background-image: var(--hero-image);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: var(--hero-position);
  }
}

@media (min-width: 900px) {
  :root {
    --hero-position: 64% center;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(18rem, 34%) 1fr;
    align-items: center;
    text-align: left;
    padding: 1.5rem 0;
  }

  .hero-band {
    order: 2;
    aspect-ratio: 16 / 9;
    width: 100%;
    min-height: 0;
    background-size: contain;
    background-image: var(--hero-image);
  }

  .hero .wrap {
    align-self: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 2rem 1.25rem 2rem 1.5rem;
    overflow: hidden;
    box-sizing: border-box;
  }

  .hero-logo {
    width: min(240px, 100%);
    margin-left: 0;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero .lede,
  .hero .tagline,
  .hero .note {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .hero .stats {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .hero .actions {
    justify-content: flex-start;
  }
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--cream-muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.3rem, 8vw, 4.25rem);
  font-weight: 700;
}

.hero h1 {
  max-width: 11ch;
  margin: 0 0 0.35rem;
  color: var(--cream);
  font-family: var(--font-hero);
  font-size: clamp(2rem, 8.2vw, 2.85rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background-color: var(--cream);
    background-image: url("../fonts/heading-grain.png");
    background-repeat: repeat;
    background-size: 72px 72px;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

@media (min-width: 900px) {
  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.7rem, 2.5vw, 2.55rem);
  }
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

h3 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.45rem;
  font-weight: 500;
}

.lede {
  margin: 0 auto 1.25rem;
  max-width: 40rem;
  font-size: 1.2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-hero {
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.page-hero .lede {
  margin-left: 0;
  margin-right: auto;
  max-width: 42rem;
}

.hero .note {
  max-width: 40rem;
  margin-inline: auto;
}

.actions-start {
  justify-content: flex-start;
  margin-top: 1rem;
}

.hero-actions {
  margin-top: 1.35rem;
}

.panel-spaced {
  margin-top: 1rem;
}

.result-action {
  margin-top: 0.9rem;
}

.length-note {
  margin-top: 0.8rem;
}

.section {
  padding: 2.75rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  background: var(--red);
  flex: none;
}

.section-intro {
  margin: -0.25rem 0 1.25rem;
  max-width: 42rem;
  color: var(--cream-muted);
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  max-width: 44rem;
  margin: 0 auto 1.5rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat {
  margin: 0;
  padding: 0.9rem 0.75rem 1rem;
  background: var(--black);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 0.2rem;
  color: var(--cream-muted);
  font-size: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  max-width: 100%;
  padding: 0.7rem 1.15rem;
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
}

.btn-ghost:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--black);
}

.grid-4,
.grid-3,
.grid-2,
.open-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.grid-2 > .panel,
.grid-2 > .toconfirm,
.grid-4 > .panel,
.open-grid > .toconfirm {
  height: 100%;
}

.panel,
.toconfirm {
  padding: 1.15rem 1.15rem 1.25rem;
}

.panel {
  background: var(--navy);
  border-top: 4px solid var(--red);
}

.panel p:last-child,
.toconfirm p:last-child {
  margin-bottom: 0;
}

.toconfirm {
  border: 2px dashed var(--red);
  background: rgba(183, 1, 8, 0.08);
}

.toconfirm-title {
  margin: 0.7rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-transform: none;
}

a.toconfirm {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.toconfirm:hover {
  background: rgba(183, 1, 8, 0.16);
}

.more {
  margin: 0.9rem 0 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

a.toconfirm:hover .more {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 0.18em;
}

.toconfirm-compact {
  max-width: 36rem;
  margin: 0 auto 1.35rem;
  text-align: left;
}

.tagline {
  margin: 0.15rem auto 1.05rem;
  color: #f2e8de;
  font-family: var(--font-script);
  font-size: clamp(2.05rem, 3.8vw, 2.9rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-shadow: 0 0.06em 0 rgba(183, 1, 8, 0.45);
  text-transform: none;
}

.specs {
  margin: 0.4rem 0 0;
}

.specs div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.specs dt {
  margin: 0;
  color: var(--cream-muted);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.specs dd {
  margin: 0;
}

.panel .specs div:last-child,
.sheet .specs div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.prose a,
.specs a,
.address-block a,
.site-footer a {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 0.18em;
}

a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

.header-call,
.nav-call,
.site-footer a[href^="tel:"],
.specs a[href^="tel:"] {
  white-space: nowrap;
}

.stack {
  display: grid;
  gap: 1rem;
}

.note {
  margin: 0;
  color: var(--cream-muted);
}

.cta-band {
  background: var(--navy);
  padding: 2.5rem 0;
}

.cta-band h2 {
  margin-bottom: 0.6rem;
}

.cta-band .actions {
  justify-content: flex-start;
  margin-top: 1.15rem;
}

address {
  font-style: normal;
}

.contact-layout {
  display: grid;
  gap: 1.25rem;
}

.site-footer {
  border-top: 4px solid var(--red);
  background: var(--black);
  padding: 2rem 0 2.4rem;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.site-footer h2 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
}

.site-footer p,
.site-footer address {
  margin: 0 0 0.35rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 0.18em;
}

@media (min-width: 560px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .specs div {
    grid-template-columns: 9rem 1fr;
    align-items: baseline;
    gap: 0.35rem 0.85rem;
  }
}

@media (min-width: 720px) {
  .grid-2,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
  }

  .open-grid {
    grid-template-columns: 1fr 1fr;
  }

}

@media (min-width: 800px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 980px) {
  .brand {
    width: 248px;
  }

  .nav-toggle {
    display: none;
  }

  .header-call {
    display: inline-flex;
    align-items: center;
  }

  .site-nav .nav-call {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .site-nav a {
    padding: 0.45rem 0.7rem;
    font-size: 1.02rem;
  }

  .site-nav a[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--red);
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (min-width: 1180px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
