/* =========================================================
   SUBARU SPECIALIST OF COLORADO
   Work order / inspection bay identity
   HTML5 + CSS3 only
   ========================================================= */

:root {
  --graphite: #233a36;
  --graphite-deep: #182d29;
  --workshop-grey: #f2f0ea;
  --charcoal: #181d1c;
  --copper: #c76842;
  --copper-dark: #a95337;
  --steel-green: #899e98;
  --light-grey: #d8ddda;
  --white: #ffffff;
  --brass: #c5a052;
  --muted: #68716f;
  --line: rgba(24,29,28,0.14);
  --light-line: rgba(255,255,255,0.18);

  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;

  --shell: min(1240px, calc(100% - 64px));
  --section-space: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--workshop-grey);
  color: var(--charcoal);
  font-family: var(--sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: var(--copper);
  color: white;
}

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding: var(--section-space) 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-170%);
  padding: 10px 14px;
  background: var(--charcoal);
  color: white;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242,240,234,0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-row {
  min-height: 80px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}

.brand {
  display: inline-grid;
  line-height: 0.92;
  text-decoration: none;
}

.brand-main {
  color: var(--graphite);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.brand-sub {
  margin-top: 6px;
  color: var(--copper);
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(15px, 1.8vw, 25px);
}

.desktop-nav a {
  position: relative;
  color: #5c6462;
  font-size: 0.73rem;
  font-weight: 800;
  text-decoration: none;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--copper);
  transition: right 160ms ease;
}

.desktop-nav a:hover::after {
  right: 0;
}

.mobile-nav {
  display: none;
}

/* Type + controls */

.eyebrow {
  margin: 0 0 16px;
  color: var(--copper);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #efb29a;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 20px;
  font-family: var(--sans);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 920px;
  font-size: clamp(4rem, 7vw, 7.2rem);
}

h2 {
  font-size: clamp(2.4rem, 4.4vw, 4.5rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.15;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--copper);
  color: white;
}

.button-primary:hover {
  background: var(--copper-dark);
}

.button-secondary {
  background: var(--graphite);
  color: white;
}

.button-light {
  background: white;
  color: var(--charcoal);
}

.button-outline {
  border-color: var(--charcoal);
  background: transparent;
}

.button-outline:hover {
  background: var(--charcoal);
  color: white;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.77rem;
  font-weight: 900;
  text-underline-offset: 5px;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link-light {
  color: white;
}

/* Hero */

.hero {
  padding: 54px 0 66px;
  background:
    linear-gradient(rgba(35,58,54,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,58,54,0.035) 1px, transparent 1px),
    var(--workshop-grey);
  background-size: 46px 46px;
}

.hero-copy-grid {
  display: grid;
  grid-template-columns: 0.18fr 1fr;
  gap: 42px;
  align-items: start;
}

.hero-marker span,
.section-index span {
  display: block;
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 900;
}

.hero-marker small,
.section-index small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.4vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.inspection-bay {
  position: relative;
  min-height: 550px;
  margin-top: 40px;
  padding-right: 310px;
}

.bay-photo {
  height: 550px;
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 96% 0, 100% 92%, 6% 100%);
}

.work-order {
  position: absolute;
  right: 0;
  top: 54px;
  width: 360px;
  background: var(--graphite);
  color: white;
  box-shadow: 0 18px 42px rgba(35,58,54,0.14);
}

.work-order-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--light-line);
}

.work-order-head span {
  color: #efb29a;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.work-order-head strong {
  font-size: 0.58rem;
}

.work-order-row {
  display: grid;
  grid-template-columns: 40px 1fr 72px;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--light-line);
}

.work-order-row b {
  color: #efb29a;
  font-size: 0.62rem;
}

.work-order-row span {
  font-size: 0.82rem;
  font-weight: 800;
}

.work-order-row i {
  height: 2px;
  background: linear-gradient(90deg, var(--steel-green), transparent);
}

.work-order > p {
  margin: 0;
  padding: 14px 18px;
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
}

/* Intro */

.intro {
  background: white;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.18fr 1fr;
  gap: 42px;
}

.intro-copy h2 {
  max-width: 920px;
}

.intro-columns {
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 50px;
  margin-left: auto;
}

.intro-columns p {
  color: var(--muted);
}

.intro-columns .lead {
  color: var(--charcoal);
  font: 400 1.18rem/1.62 var(--serif);
}

/* Common headings */

.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 52px;
  align-items: end;
  margin-bottom: 40px;
}

.section-heading > p {
  color: var(--muted);
}

/* Services */

.services {
  background: var(--workshop-grey);
}

.service-ledger {
  border-top: 1px solid var(--line);
}

.service-ledger article {
  min-height: 132px;
  display: grid;
  grid-template-columns: 54px 1fr 190px;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.service-ledger article > span {
  color: var(--copper);
  font-size: 0.64rem;
  font-weight: 900;
}

.service-kicker {
  margin-bottom: 4px;
  color: var(--graphite);
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.service-ledger h3 {
  margin-bottom: 5px;
  font-size: 1.45rem;
}

.service-ledger p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.service-ledger a {
  justify-self: end;
  color: var(--graphite);
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
}

/* Maintenance + repair */

.maintenance-repair {
  background: var(--light-grey);
}

.maintenance-repair-grid {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 18px;
}

.maintenance-panel,
.repair-copy {
  padding: 34px;
}

.maintenance-panel {
  border: 1px solid var(--line);
  background: white;
}

.maintenance-panel > p:not(.eyebrow) {
  color: var(--muted);
}

.maintenance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 28px 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.maintenance-grid article {
  min-height: 165px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.maintenance-grid span {
  color: var(--copper);
  font-size: 0.62rem;
  font-weight: 900;
}

.maintenance-grid h3 {
  margin: 24px 0 6px;
}

.maintenance-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.79rem;
}

.repair-feature {
  display: grid;
  grid-template-rows: 1.12fr 0.88fr;
  background: var(--graphite);
  color: white;
}

.repair-feature figure {
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.repair-copy .eyebrow {
  color: #efb29a;
}

.repair-copy > p:not(.eyebrow) {
  color: rgba(255,255,255,0.65);
}

/* Specialty bays */

.specialty-bays {
  background: white;
}

.specialty-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 18px;
}

.cosmetic-panel,
.tire-panel > div {
  padding: 34px;
}

.cosmetic-panel {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(rgba(35,58,54,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,58,54,0.05) 1px, transparent 1px),
    var(--steel-green);
  background-size: 40px 40px;
}

.panel-index {
  display: block;
  margin-bottom: auto;
  color: var(--copper);
  font-size: 0.66rem;
  font-weight: 900;
}

.cosmetic-panel > p:not(.eyebrow) {
  color: #4d5d59;
}

.cosmetic-panel ul {
  margin: 8px 0 24px;
  padding-left: 18px;
  color: #4d5d59;
}

.tire-panel {
  display: grid;
  grid-template-rows: 1.05fr 0.95fr;
  background: var(--charcoal);
  color: white;
}

.tire-panel figure {
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.tire-panel .panel-index {
  color: #efb29a;
}

.tire-panel .eyebrow {
  color: #efb29a;
}

.tire-panel > div > p:not(.eyebrow) {
  color: rgba(255,255,255,0.64);
}

.tire-points {
  display: grid;
  margin: 22px 0;
  border-top: 1px solid var(--light-line);
}

.tire-points span {
  padding: 11px 0;
  border-bottom: 1px solid var(--light-line);
  color: rgba(255,255,255,0.78);
  font-size: 0.79rem;
}

.tire-points b {
  display: inline-block;
  width: 38px;
  color: #efb29a;
  font-size: 0.62rem;
}

/* Why + process */

.why-process {
  background: var(--workshop-grey);
}

.why-process-grid {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 18px;
}

.why-panel,
.process-panel {
  padding: 34px;
}

.why-panel {
  border: 1px solid var(--line);
  background: white;
}

.why-list {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.why-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.why-list article > span {
  color: var(--copper);
  font-size: 0.64rem;
  font-weight: 900;
}

.why-list h3 {
  margin-bottom: 5px;
}

.why-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.process-panel {
  background: var(--graphite);
  color: white;
}

.process-panel .eyebrow {
  color: #efb29a;
}

.process-track {
  margin: 26px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--light-line);
}

.process-track li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--light-line);
}

.process-track li > span {
  color: #efb29a;
  font-size: 0.64rem;
  font-weight: 900;
}

.process-track strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.process-track p {
  margin: 0;
  color: rgba(255,255,255,0.62);
  font-size: 0.8rem;
}

/* Work + about */

.work-about {
  background: white;
}

.work-grid {
  min-height: 540px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.work-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.work-wide {
  grid-row: span 2;
}

.work-card figure {
  position: absolute;
  inset: 0;
  margin: 0;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(24,29,28,0.82), transparent 62%);
}

.work-card > div {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px;
  color: white;
}

.work-card > div span {
  color: #efb29a;
  font-size: 0.62rem;
  font-weight: 900;
}

.work-card h3 {
  margin: 8px 0 5px;
}

.work-card p {
  margin: 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
}

.about-strip {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 30px;
  margin-top: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-strip span {
  color: var(--copper);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.about-strip p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
}

/* Quote + location */

.quote-contact {
  background: var(--light-grey);
}

.quote-contact-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 18px;
}

.location-panel {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  background:
    linear-gradient(rgba(35,58,54,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,58,54,0.05) 1px, transparent 1px),
    var(--steel-green);
  background-size: 40px 40px;
}

.location-panel address {
  display: grid;
  gap: 5px;
  margin: 24px 0 18px;
  padding-left: 16px;
  border-left: 3px solid var(--copper);
  font-style: normal;
}

.location-panel address span {
  color: #4d5d59;
}

.location-panel > p:not(.eyebrow) {
  color: #4d5d59;
}

.quote-panel {
  padding: 34px;
  background: white;
  box-shadow: 0 18px 38px rgba(24,29,28,0.07);
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.field label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(24,29,28,0.22);
  border-radius: 0;
  background: white;
  color: var(--charcoal);
}

.field input,
.field select {
  min-height: 46px;
  padding: 0 11px;
}

.field textarea {
  min-height: 136px;
  padding: 10px 11px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 0.74rem;
}

/* Final CTA */

.final-cta {
  padding: 64px 0;
  background: var(--charcoal);
  color: white;
}

.final-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: end;
}

.final-cta h2 {
  color: white;
}

.final-cta p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255,255,255,0.64);
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

/* Footer */

.site-footer {
  padding: 46px 0 22px;
  background: #101514;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.84fr 1fr;
  gap: 52px;
}

.footer-brand {
  display: grid;
  align-content: start;
}

.footer-brand .brand-main {
  color: white;
}

.footer-brand .brand-sub {
  color: #efb29a;
}

.footer-brand p {
  margin: 20px 0 0;
  color: rgba(255,255,255,0.52);
  font-size: 0.82rem;
}

.footer-nav {
  display: grid;
  gap: 7px;
}

.footer-nav a {
  color: rgba(255,255,255,0.68);
  font-size: 0.78rem;
  text-decoration: none;
}

.footer-address {
  display: grid;
  gap: 4px;
  font-style: normal;
}

.footer-address strong {
  margin-bottom: 7px;
}

.footer-address span {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 34px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--light-line);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,0.42);
  font-size: 0.69rem;
}

.trademark-note {
  text-align: right;
}

/* Responsive */

@media (max-width: 1120px) {
  :root {
    --shell: min(100% - 42px, 1020px);
  }

  .inspection-bay {
    padding-right: 250px;
  }

  .work-order {
    width: 300px;
  }
}

@media (max-width: 920px) {
  :root {
    --shell: calc(100% - 34px);
    --section-space: 68px;
  }

  .desktop-nav {
    display: none;
  }

  .header-row {
    grid-template-columns: 1fr auto;
  }

  .mobile-nav {
    display: block;
    border-top: 1px solid var(--line);
  }

  .mobile-nav-track {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mobile-nav-track::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav a {
    flex: 0 0 auto;
    font-size: 0.67rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
  }

  .hero-copy-grid,
  .intro-grid,
  .maintenance-repair-grid,
  .specialty-grid,
  .why-process-grid,
  .quote-contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-marker,
  .section-index {
    display: none;
  }

  .inspection-bay {
    min-height: 610px;
    padding: 0 0 120px;
  }

  .bay-photo {
    height: 490px;
  }

  .work-order {
    top: auto;
    bottom: 0;
    left: 0;
    right: auto;
    width: min(420px, 76%);
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

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

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

  .footer-address {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid var(--light-line);
  }
}

@media (max-width: 700px) {
  :root {
    --shell: calc(100% - 26px);
    --section-space: 56px;
  }

  .site-header {
    position: relative;
    backdrop-filter: none;
  }

  .header-row {
    min-height: 72px;
  }

  .header-row .button {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 0.6rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3.35rem);
  }

  .hero {
    padding-top: 28px;
  }

  .inspection-bay {
    min-height: 560px;
  }

  .bay-photo {
    height: 420px;
    clip-path: none;
  }

  .work-order {
    width: min(360px, 94%);
  }

  .intro-columns,
  .maintenance-grid,
  .field-pair {
    grid-template-columns: 1fr;
  }

  .service-ledger article {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .service-ledger article > a {
    grid-column: 2;
    justify-self: start;
  }

  .work-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .work-wide {
    grid-row: auto;
  }

  .work-card {
    min-height: 320px;
  }

  .about-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .final-actions {
    align-items: stretch;
  }

  .final-actions .button {
    width: 100%;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-address {
    grid-column: auto;
  }

  .trademark-note {
    text-align: left;
  }
}

@media (max-width: 390px) {
  :root {
    --shell: calc(100% - 20px);
  }

  .brand-main {
    font-size: 0.82rem;
  }

  .brand-sub {
    font-size: 0.4rem;
  }

  .work-order-row {
    grid-template-columns: 34px 1fr 48px;
    padding-inline: 14px;
  }

  .maintenance-panel,
  .repair-copy,
  .cosmetic-panel,
  .tire-panel > div,
  .why-panel,
  .process-panel,
  .location-panel,
  .quote-panel {
    padding: 26px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
