/* Contractors Supply Inc. — Gillette WY */
:root {
  --navy: #0f2137;
  --navy-mid: #173353;
  --steel: #4a5d73;
  --red: #c4122e;
  --red-hot: #e01838;
  --yellow: #f0c419;
  --paper: #eef1f4;
  --white: #ffffff;
  --ink: #142033;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
  --max: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--red-hot);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin-top: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3rem, 10vw, 6.5rem);
}

h2 {
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
}

h3 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

p {
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: var(--yellow);
  color: var(--navy);
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--yellow);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 72px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  flex-shrink: 0;
}

.header-phone a {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border: 2px solid var(--yellow);
  white-space: nowrap;
}

.header-phone a:hover {
  background: var(--red-hot);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--yellow);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--yellow);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  background: var(--white);
  border-bottom: 1px solid #d5dce5;
}

.site-nav .header-inner {
  padding: 0 1.25rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.15rem 0.35rem;
  width: 100%;
  justify-content: space-between;
}

.site-nav > .header-inner > ul > li {
  position: relative;
}

.site-nav a,
.site-nav .nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  cursor: pointer;
  line-height: 1;
}

.site-nav a:hover,
.site-nav a.is-active,
.site-nav .nav-parent:hover,
.site-nav .nav-parent.is-active,
.site-nav .has-sub.is-open > .nav-parent {
  color: var(--red);
  border-bottom-color: var(--red);
}

.nav-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s var(--ease);
}

.has-sub.is-open > .nav-parent .nav-caret {
  transform: rotate(180deg);
}

.site-nav .nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 14rem;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0;
  background: var(--white);
  border: 1px solid #d5dce5;
  border-top: 3px solid var(--yellow);
  box-shadow: 0 12px 28px rgba(15, 33, 55, 0.14);
  z-index: 120;
  padding: 0.35rem 0;
}

.site-nav .has-sub.is-open > .nav-sub,
.site-nav .has-sub:hover > .nav-sub {
  display: flex;
}

.nav-sub a {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  border-bottom: none;
  font-size: 1rem;
}

.nav-sub a:hover,
.nav-sub a.is-active {
  background: #f6f8fb;
  border-bottom: none;
  color: var(--red);
}

.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 33, 55, 0.92) 0%,
    rgba(15, 33, 55, 0.72) 42%,
    rgba(15, 33, 55, 0.25) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.25rem 3.5rem;
  width: 100%;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 0.5rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
  max-width: 12ch;
}

.hero-sub {
  max-width: 36rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  border: 2px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s;
}

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

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--yellow);
}

.btn-primary:hover {
  background: var(--red-hot);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-dark:hover {
  background: var(--navy-mid);
  color: var(--white);
}

.trust-strip {
  background: var(--navy-mid);
  color: var(--white);
  border-top: 3px solid var(--yellow);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 1.5rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}

.trust-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--yellow);
  text-transform: uppercase;
}

.trust-grid span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.section {
  padding: 4.5rem 0;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-inner--center {
  text-align: center;
}

.section-inner--center .eyebrow {
  display: inline-block;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.5rem;
}

.lede {
  font-size: 1.125rem;
  color: var(--steel);
  max-width: 42rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

.split-stack img:nth-child(2) {
  margin-left: 12%;
  margin-top: -18%;
  border: 4px solid var(--white);
  box-shadow: 0 16px 40px rgba(15, 33, 55, 0.18);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark .eyebrow {
  color: var(--yellow);
}

.section-dark .lede,
.section-dark p {
  color: rgba(255, 255, 255, 0.85);
}

.section-voice {
  background: var(--navy);
  color: var(--white);
  border-top: 1px solid rgba(240, 196, 25, 0.35);
}

.section-voice h2 {
  color: var(--white);
  margin-bottom: 0.25rem;
}

.section-voice .eyebrow {
  color: var(--yellow);
}

.voice-close {
  margin: 2.75rem auto 0;
  max-width: 34rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.voice-close-line {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.5;
}

.btn-row--center {
  justify-content: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.product-tile {
  background: var(--white);
  padding: 1.5rem 1.25rem 1.35rem;
  text-decoration: none;
  color: inherit;
  border-top: 4px solid var(--red);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.product-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 33, 55, 0.12);
  color: inherit;
}

.product-tile img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.product-tile h3 {
  margin-bottom: 0.4rem;
}

.product-tile p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--steel);
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  scroll-margin-top: 6rem;
}

.feature-item h3 {
  margin-bottom: 0.4rem;
}

.feature-item p {
  margin: 0;
  color: var(--steel);
}

.sitemap-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap-list li {
  margin: 0.35rem 0;
}

.sitemap-list a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.sitemap-list a:hover {
  color: var(--red);
  text-decoration: underline;
}

.products-yard {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.25rem;
  align-items: center;
  margin-top: 3rem;
  scroll-margin-top: 6rem;
}

.products-yard-media {
  margin: 0;
  overflow: hidden;
  background: #d5dce5;
}

.products-yard-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.products-yard-copy h2 {
  margin-bottom: 0.75rem;
}

.products-yard-copy p:not(.eyebrow) {
  color: var(--steel);
  margin-bottom: 1.25rem;
  max-width: 34rem;
}

.products-yard-copy .btn-row {
  margin-top: 0.25rem;
}

.quote-carousel {
  margin: 2rem auto 0;
  max-width: 48rem;
  text-align: center;
  position: relative;
  padding: 0 2.5rem;
}

.quote-track {
  position: relative;
  min-height: 10rem;
}

.quote-carousel .quote {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  margin: 0;
  background: transparent;
  border-top: none;
  padding: 0.5rem 0.5rem 0.25rem;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  text-align: center;
}

.quote-carousel .quote.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
  position: relative;
}

.quote-stars {
  margin: 0 0 0.75rem;
  color: var(--yellow);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  line-height: 1;
}

.quote-carousel .quote p:not(.quote-stars) {
  margin: 0 0 0.85rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
}

.quote-carousel .quote cite {
  font-style: normal;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  font-size: 0.95rem;
}

.quote-nudge {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.28);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.quote-nudge--prev {
  left: 0;
}

.quote-nudge--next {
  right: 0;
}

.quote-carousel:hover .quote-nudge,
.quote-carousel:focus-within .quote-nudge {
  color: rgba(255, 255, 255, 0.7);
}

.quote-nudge:hover,
.quote-nudge:focus-visible {
  color: var(--yellow);
}

.quote-progress {
  height: 2px;
  margin: 1.15rem auto 0;
  max-width: 8rem;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.quote-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--yellow);
  opacity: 0.65;
  transform-origin: left center;
}

.quote-carousel.is-playing .quote-progress-bar {
  animation: quote-progress 5s linear forwards;
}

@keyframes quote-progress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote-carousel .quote {
    transition: none;
  }

  .quote-carousel.is-playing .quote-progress-bar {
    animation: none;
    width: 100%;
  }
}

.page-hero {
  position: relative;
  min-height: 320px;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.page-hero-media {
  position: absolute;
  inset: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 33, 55, 0.35), rgba(15, 33, 55, 0.88));
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem 2.5rem;
  width: 100%;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-hero p {
  max-width: 36rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  text-wrap: pretty;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.team-card {
  flex: 0 1 calc(25% - 1rem);
  max-width: 260px;
  background: var(--white);
  text-align: center;
  padding-bottom: 1.15rem;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.team-card:hover,
.team-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 33, 55, 0.14);
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  background: #d7dee8;
}

.team-card h3 {
  margin: 0.85rem 0 0.15rem;
  font-size: 1.35rem;
}

.team-card .role {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.team-more {
  display: inline-block;
  margin-top: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.team-dialog {
  border: none;
  padding: 0;
  max-width: min(720px, calc(100vw - 2rem));
  width: 100%;
  background: transparent;
  max-height: calc(100vh - 2rem);
}

.team-dialog::backdrop {
  background: rgba(15, 33, 55, 0.72);
}

.team-dialog-inner {
  position: relative;
  background: var(--white);
  padding: 1.75rem;
  border-top: 4px solid var(--yellow);
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.team-dialog-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--steel);
  cursor: pointer;
}

.team-dialog-top {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.team-dialog-top img {
  width: 140px;
  height: 175px;
  object-fit: cover;
  object-position: top center;
  background: #d7dee8;
}

.team-dialog-top h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  margin-bottom: 0.25rem;
}

.team-dialog-started {
  color: var(--steel);
  margin: 0.35rem 0 0.5rem;
}

.team-dialog-email {
  font-weight: 600;
}

.team-dialog-photos {
  border-top: 1px solid #d8e0ea;
  padding-top: 1rem;
  margin-bottom: 1rem;
}

.team-photos-label {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--red);
  margin: 0 0 0.65rem;
}

.team-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-height: 240px;
  overflow: auto;
}

.team-photos-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #d7dee8;
}

.team-dialog-favs {
  display: grid;
  gap: 0.85rem;
  border-top: 1px solid #d8e0ea;
  padding-top: 1rem;
}

.team-fav dt {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--red);
  margin: 0;
}

.team-fav dd {
  margin: 0.15rem 0 0;
  color: var(--ink);
}

@media (max-width: 640px) {
  .team-dialog-top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  background: #d7dee8;
}

.team-card h3 {
  margin: 0.85rem 0 0.15rem;
  font-size: 1.35rem;
}

.team-card .role {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.team-card a {
  font-size: 0.92rem;
}

.vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
  justify-content: start;
}

.vendor-card {
  background: var(--white);
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid #d8e0ea;
  transition: border-color 0.2s, transform 0.2s var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.vendor-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  color: inherit;
}

.vendor-card img {
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 0.75rem;
}

.vendor-card p {
  margin: 0;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--steel);
  line-height: 1.4;
  text-wrap: pretty;
}

.category-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
  margin-bottom: 2.75rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid #d5dce5;
}

.category-intro-icon {
  width: 110px;
  height: auto;
}

.category-intro-copy h2 {
  margin-bottom: 0.65rem;
}

.category-intro-copy p {
  color: var(--steel);
  max-width: 42rem;
  margin-bottom: 1.15rem;
  text-wrap: pretty;
}

.category-brands h2 {
  margin-bottom: 0.5rem;
}

.category-brands .lede {
  margin-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-facts li {
  margin-bottom: 1.25rem;
}

.contact-facts strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.form-grid label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid #c5d0dd;
  background: var(--white);
  color: var(--ink);
}

.form-grid textarea {
  min-height: 140px;
  resize: vertical;
}

.form-success {
  display: none;
  background: #e7f6ea;
  border-left: 4px solid #1f8a3b;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

.form-success.is-visible {
  display: block;
}

.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-mid) 55%, #1f3f66 100%);
  color: var(--white);
  padding: 3.5rem 0;
  border-top: 3px solid var(--yellow);
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}

.site-footer {
  background: #0a1829;
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.site-footer h3 {
  color: var(--yellow);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 0.85rem;
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-phone a {
    font-size: 0.92rem;
    padding: 0.45rem 0.6rem;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 3px solid var(--yellow);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
    max-height: min(75vh, 32rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  .site-header {
    position: sticky;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.5rem 0 1rem;
    justify-content: flex-start;
    gap: 0;
  }

  .site-nav a,
  .site-nav .nav-parent {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .site-nav a.is-active,
  .site-nav a:hover,
  .site-nav .nav-parent.is-active,
  .site-nav .nav-parent:hover,
  .site-nav .has-sub.is-open > .nav-parent {
    border-left-color: var(--red);
    border-bottom-color: transparent;
    background: #f6f8fb;
  }

  .site-nav .nav-sub {
    position: static;
    display: none;
    min-width: 0;
    border: none;
    border-top: none;
    box-shadow: none;
    background: #f3f6fa;
    padding: 0.15rem 0 0.35rem;
  }

  .site-nav .has-sub:hover > .nav-sub {
    display: none;
  }

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

  .nav-sub a {
    padding-left: 2rem;
  }

  .trust-grid,
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-card {
    flex: 0 1 calc(50% - 0.75rem);
    max-width: none;
  }

  .category-intro {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .category-intro-icon {
    width: 88px;
  }

  .split,
  .contact-grid,
  .feature-list,
  .products-yard,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .products-yard {
    grid-template-columns: 1fr;
  }

  .products-yard-media img {
    height: 240px;
  }
}

@media (max-width: 640px) {
  .logo img {
    height: 42px;
  }

  .header-phone a {
    font-size: 0.82rem;
    padding: 0.4rem 0.5rem;
  }

  .header-inner {
    padding: 0.55rem 0.85rem;
  }

  .trust-grid,
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-card {
    flex: 0 1 100%;
  }

  .vendor-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .hero {
    min-height: 70vh;
  }
}
