/* ==========================================================================
   Wyoming Auto Group, Mills, WY
   Auto repair and service.

   Design language follows the reference: navy utility bar, white header with
   bold uppercase nav, bright blue accent, an icon row of service columns, and
   the signature section header (a blue icon square butted against a dark bar).
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
address { font-style: normal; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--navy);
}

p { text-wrap: pretty; }
p + p { margin-top: 0.9em; }

/* --- Tokens --------------------------------------------------------------- */

:root {
  --navy:     #0C2C57;
  --navy-dk:  #071D3B;
  --blue:     #1B7FD0;
  --blue-dk:  #1568AE;
  --blue-lt:  #E8F2FB;
  --charcoal: #2E3338;
  --grey:     #F1F2F4;
  --line:     #DCDEE2;
  --ink:      #3A4046;
  --mute:     #6C757D;
  --paper:    #FFFFFF;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.82rem, 0.80rem + 0.10vw, 0.88rem);
  --step-0:  clamp(1rem, 0.98rem + 0.12vw, 1.06rem);
  --step-1:  clamp(1.15rem, 1.09rem + 0.30vw, 1.32rem);
  --step-2:  clamp(1.4rem, 1.24rem + 0.70vw, 1.85rem);
  --step-3:  clamp(1.75rem, 1.45rem + 1.30vw, 2.6rem);
  --step-4:  clamp(2.2rem, 1.65rem + 2.40vw, 3.6rem);

  --wrap: 1200px;
  --pad:  clamp(48px, 6vw, 80px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Layout --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section { padding-block: var(--pad); }
.section--tight { padding-block: clamp(32px, 4vw, 52px); }
/* Sits directly under a .barhead, which already carries its own weight. */
.section--under-bar { padding-top: clamp(24px, 3vw, 36px); }
/* Closes a section whose lower spacing is carried by the block beneath it,
   such as a .barhead that butts straight onto the section below. */
.section--flush { padding-bottom: 0; }
.band-grey { background: var(--grey); }
.band-navy { background: var(--navy); color: #C9D6E6; }
.band-navy h2, .band-navy h3 { color: #fff; }

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

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.band-navy :focus-visible, .utility :focus-visible, .hero :focus-visible { outline-color: #fff; }

.skip {
  position: absolute; left: 50%; top: 6px;
  transform: translate(-50%, -200%);
  z-index: 300; background: var(--navy); color: #fff;
  padding: 10px 20px; font-weight: 600; text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip:focus { transform: translate(-50%, 0); }

/* --- Text helpers --------------------------------------------------------- */

.title-lg { font-size: var(--step-3); margin-bottom: 14px; }
.title-md { font-size: var(--step-1); margin-bottom: 12px; }
/* Heading for a prose block that runs the full width of the wrap. */
.title-block { font-size: var(--step-2); max-width: 34ch; margin-bottom: 14px; }
/* Interior page title. Shorter measure than body copy so the lines break well. */
.page-title { font-size: var(--step-3); max-width: 24ch; margin-bottom: 16px; }
.lede { max-width: 62ch; }
/* Body copy that is not inside a grid column and needs its own line length. */
.measure { max-width: 70ch; }
.barhead + .page-title,
.barhead + .lede { margin-top: 22px; }
.block-intro { max-width: 62ch; margin-bottom: 24px; }
.fineprint { font-size: var(--step--1); color: var(--mute); }
.band-navy .fineprint { color: #A9BBD0; }
.address-lg { font-size: var(--step-1); line-height: 1.8; margin-bottom: 20px; }
.band-navy .address-lg a { color: #fff; }
.link-strong { color: var(--blue); font-weight: 700; }
/* Opening paragraph of a prose block, set one step above body copy. */
.text-lg { font-size: var(--step-1); }

/* --- Utility bar ---------------------------------------------------------- */

.utility {
  background: var(--navy);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 600;
}

.utility__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding-block: 10px;
}

.utility a { color: #fff; text-decoration: none; }
.utility a:hover { text-decoration: underline; }
.utility__hours { color: #9FC3EA; }

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

.head {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--paper);
  border-bottom: 3px solid var(--navy);
}

.head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

/* Wordmark only. No icon tile, no bordered box. */
.brand { display: inline-flex; align-items: center; text-decoration: none; }

.brand__text { line-height: 1.08; }

.brand__name {
  display: block;
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
  text-transform: uppercase;
}
.brand__sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--blue);
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); }

.nav a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal);
  padding-block: 8px;
  border-bottom: 3px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav a:not(.btn):hover,
.nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  background: var(--navy);
  border: 0; border-radius: 3px;
  position: relative;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute; left: 50%;
  width: 20px; height: 2px; background: #fff;
  transform: translateX(-50%);
  transition: transform 0.25s var(--ease), opacity 0.2s linear;
}
.nav-toggle__bar { top: 50%; margin-top: -1px; }
.nav-toggle__bar::before { content: ""; top: -6px; left: 50%; }
.nav-toggle__bar::after  { content: ""; top: 6px;  left: 50%; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 26px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 3px;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}

.btn--primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--primary:hover { background: var(--blue-dk); border-color: var(--blue-dk); }

.btn--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-dk); border-color: var(--navy-dk); }

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

.btn--on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--on-dark:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn--sm { min-height: 40px; padding: 9px 18px; font-size: 0.76rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
/* Follows a block that already supplies its own spacing above. */
.btn-row--flush { margin-top: 0; margin-bottom: 30px; }

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

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 58vh, 580px);
  background: var(--navy);
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg,
    rgba(7, 29, 59, 0.95) 0%,
    rgba(7, 29, 59, 0.88) 46%,
    rgba(7, 29, 59, 0.55) 100%);
}

.hero__in { padding-block: clamp(44px, 6vw, 72px); color: #fff; }

.hero__kicker {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 3px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 800;
  color: #fff;
  max-width: 17ch;
  margin-bottom: 16px;
}

.hero p { font-size: var(--step-1); color: rgba(255,255,255,0.88); max-width: 52ch; }

/* --- Section header: blue icon square + dark bar --------------------------- */

.barhead {
  display: flex;
  align-items: stretch;
  margin-bottom: 0;
}

.barhead__icon {
  display: grid;
  place-items: center;
  width: clamp(64px, 8vw, 92px);
  background: var(--blue);
  flex: none;
}

.barhead__icon svg { width: 40px; height: 40px; color: #fff; }

.barhead__body {
  flex: 1;
  background: var(--charcoal);
  padding: 16px clamp(18px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.barhead__title {
  font-size: var(--step-2);
  font-weight: 700;
  color: #4FA8E8;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.barhead__sub { color: #C6CCD2; font-size: var(--step--1); margin-top: 2px; }

/* --- Service columns (the icon row) --------------------------------------- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(20px, 2.4vw, 34px);
}

.col { display: flex; flex-direction: column; text-align: center; }

.col__icon {
  display: grid;
  place-items: center;
  height: 76px;
  margin-bottom: 14px;
  color: var(--charcoal);
}

.col__icon svg { width: 56px; height: 56px; }

.col h2,
.col h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.col p { font-size: 0.92rem; color: var(--ink); margin-bottom: 18px; }
.col .btn { margin-top: auto; }

/* --- Cards ---------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 3px;
  padding: clamp(20px, 2.4vw, 28px);
  transition: box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(12, 44, 87, 0.55);
}

.card h2,
.card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.card h2 a,
.card h3 a { text-decoration: none; }
.card h2 a:hover,
.card h3 a:hover { color: var(--blue); }

.card p { font-size: 0.94rem; color: var(--ink); }

/* --- Promise list --------------------------------------------------------- */

/* Three across on desktop so the block fills its width instead of stranding
   the text in a narrow column with half the page empty. */
.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(24px, 3vw, 44px);
}

.promise { position: relative; padding-left: 62px; }

.promise__num {
  position: absolute;
  left: 0; top: 2px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  background: var(--blue-lt);
  color: var(--blue);
  border-radius: 3px;
}

.promise__num svg { width: 24px; height: 24px; }

.promise h3 { font-size: var(--step-1); margin-bottom: 6px; }
.promise p { color: var(--ink); max-width: 60ch; }

/* --- Split ---------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

/* The Wyoming shot is mostly flat empty sky at the top, so an uncropped
   placement renders as a blank teal rectangle. Crop toward the road. */
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 80%;
  border-radius: 4px;
}

/* --- Hours table ---------------------------------------------------------- */

.hours { display: grid; gap: 0; max-width: 460px; }

.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 16px;
  font-size: 0.95rem;
}

.hours + .address-lg { margin-top: 22px; }
.hours + .fineprint { margin-top: 14px; }

.hours__row:nth-child(odd) { background: rgba(255,255,255,0.06); }
.hours__row b { font-weight: 600; color: #fff; }

/* --- Contact details ------------------------------------------------------ */

/* Phone and email stacked, sized so the number is the first thing read.
   Placed on .band-navy, so the colours are the dark-band set. */
.contact-block { margin-bottom: 26px; }
.contact-block p + p { margin-top: 0; }

.contact-block__tel { margin-bottom: 4px; }

.contact-block__tel a {
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}
.contact-block__tel a:hover { color: #9FC3EA; }

.contact-block__note { font-size: var(--step--1); color: #A9BBD0; margin-bottom: 18px; }

.contact-block__email a { font-size: var(--step-1); color: #D3DEEA; }

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

.form { display: grid; gap: 18px; }

.field { display: grid; gap: 6px; }

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 3px;
  font-size: var(--step-0);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }

.field input:hover,
.field textarea:hover { border-color: #B9BDC4; }

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--blue);
  outline: 3px solid var(--blue);
  outline-offset: 1px;
}

.field input::placeholder,
.field textarea::placeholder { color: #9AA1A8; }

.field__hint { font-size: var(--step--1); color: var(--mute); }

.form__status {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--navy);
  min-height: 1.4em;
}
.form__status[data-state="error"] { color: #B3261E; }
.form__status:empty { min-height: 0; }

/* Dark variant, for a form placed on .band-navy. */
.band-navy .field label { color: #9FC3EA; }

.band-navy .field input,
.band-navy .field textarea {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}

.band-navy .field input:hover,
.band-navy .field textarea:hover { border-color: rgba(255,255,255,0.55); }

.band-navy .field input:focus-visible,
.band-navy .field textarea:focus-visible {
  background: rgba(255,255,255,0.10);
  border-color: #4FA8E8;
  outline-color: #fff;
}

.band-navy .field input::placeholder,
.band-navy .field textarea::placeholder { color: #8FA4BD; }

.band-navy .field__hint { color: #A9BBD0; }
.band-navy .form__status { color: #fff; }
.band-navy .form__status[data-state="error"] { color: #FFB4AB; }

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

.foot {
  background: var(--navy-dk);
  color: #A9BBD0;
  padding-block: clamp(40px, 5vw, 60px) 24px;
  font-size: 0.92rem;
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: clamp(24px, 3vw, 44px);
  padding-bottom: 30px;
}

.foot h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4FA8E8;
  margin-bottom: 14px;
}

.foot a { color: #D3DEEA; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot ul { list-style: none; padding: 0; line-height: 2; }
.foot address { line-height: 1.9; }

.foot__brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.foot__legal {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 18px;
  font-size: 0.82rem;
  color: #8199B4;
}

/* --- Reveal --------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 3px solid var(--navy);
    padding: 6px clamp(16px, 4vw, 32px) 20px;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
  .nav a:not(.btn):hover, .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .utility__in { justify-content: center; text-align: center; }
  .foot__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .barhead__icon { width: 56px; }
  .barhead__icon svg { width: 30px; height: 30px; }
  .brand__sub { display: none; }
  .btn { width: 100%; }
  .btn--sm, .nav .btn { width: auto; }
}

@media print {
  .utility, .head, .nav, .hero__media { display: none !important; }
  body { color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
