/* Components: header, hero, sections, cards, CTA bands, FAQ, tables, gallery, footer. */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

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

.btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

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

.btn--ghost {
  border-color: var(--navy);
  color: var(--navy);
}

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

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

.btn--ghost-light:hover {
  background: var(--cream);
  color: var(--navy);
}

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

.btn--dark:hover {
  background: var(--navy-2);
}

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

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-m);
}

.text-link {
  font-weight: 700;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 4px solid var(--rust);
  color: var(--cream);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: clamp(9.5rem, 7rem + 6vw, 13.5rem);
  height: auto;
}

.primary-nav {
  flex: 1 1 auto;
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 0.6rem 0.7rem;
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--gold);
}

.nav-item {
  display: flex;
  align-items: center;
}

.has-sub {
  position: relative;
}

.sub-toggle {
  width: 1.75rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.sub-toggle::before {
  content: "";
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 auto;
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  transform: translateY(-2px) rotate(45deg);
}

.sub-toggle[aria-expanded="true"]::before {
  transform: translateY(2px) rotate(225deg);
}

.subnav {
  display: none;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--navy-2);
  border-top: 3px solid var(--gold);
}

.subnav.is-open {
  display: block;
}

.header-call {
  flex: 0 0 auto;
  padding-inline: 1rem;
  white-space: nowrap;
}

.header-call svg,
.callbar svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentcolor;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--cream);
  background: transparent;
  color: var(--cream);
  font: 700 0.95rem var(--font-body);
  cursor: pointer;
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
}

.nav-toggle__bars span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentcolor;
}

@media (width >= 64rem) {
  .has-sub:hover .subnav,
  .has-sub:focus-within .subnav {
    display: block;
  }

  .subnav {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 15rem;
    box-shadow: 0 1rem 2rem rgb(13 31 45 / 35%);
  }
}

@media (width < 64rem) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    padding-block: 0.6rem;
  }

  .header-call {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    flex-basis: 100%;
    order: 3;
    padding-bottom: 1rem;
  }

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

  .nav-list {
    flex-direction: column;
  }

  .nav-item {
    justify-content: space-between;
  }

  .sub-toggle {
    width: 2.75rem;
    height: 2.75rem;
  }

  .subnav a {
    padding-left: 1.5rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 5.5rem);
  background-color: var(--navy);
  background-image: var(--stamp-joints);
  color: var(--cream);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--rust) 0 62%, var(--gold) 62% 64%, var(--sky) 64%);
}

.hero__grid {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}

@media (width >= 64rem) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .hero--text .hero__grid {
    grid-template-columns: minmax(0, 52rem);
  }
}

.hero h1 {
  margin-bottom: 0.3em;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero .eyebrow::before {
  background: var(--gold);
}

.lede {
  max-width: 40rem;
  font-size: var(--step-1);
  line-height: 1.5;
}

.byline {
  color: var(--sky);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__media {
  margin: 0 var(--offset) var(--offset) 0;
}

.hero__media img,
.framed img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--offset) var(--offset) 0 var(--rust);
}

.rule {
  display: block;
  width: 5.5rem;
  height: 6px;
  margin: 0.25rem 0 1.25rem;
  background: var(--rust);
  box-shadow: 0 10px 0 -3px var(--gold);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  color: var(--sky);
  font-size: var(--step--1);
  font-weight: 600;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--gold);
}

.crumbs a {
  color: var(--sky);
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--space-section);
}

.section--cream {
  background: var(--cream);
}

.section--sky {
  background: var(--sky);
}

.section--gold {
  background-color: var(--gold);
  background-image: var(--stamp-joints-dark);
}

.section--navy {
  background-color: var(--navy);
  background-image: var(--stamp-joints);
  color: var(--cream);
}

.section--navy a:not(.btn) {
  color: var(--gold);
}

.section--gold .btn--primary,
.section--sky .btn--primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}

.section--gold .btn--primary:hover,
.section--sky .btn--primary:hover {
  background: var(--navy-2);
}

.section--navy .btn--ghost {
  border-color: var(--cream);
  color: var(--cream);
}

.section-head {
  max-width: 48rem;
  margin-bottom: var(--space-l);
}

.section-head h2::after {
  content: "";
  display: block;
  width: 4rem;
  height: 5px;
  margin-top: 0.9rem;
  background: var(--rust);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--rust);
}

.section--navy .eyebrow {
  color: var(--gold);
}

.label {
  margin-bottom: 0.25rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.label + p {
  margin-bottom: 1rem;
}

/* ---------- Two-column splits ---------- */
.split {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}

@media (width >= 56rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--media-first .split__media {
    order: -1;
  }

  .split--text {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }
}

.split__media {
  margin: 0 var(--offset) var(--offset) 0;
}

.framed {
  margin: var(--space-m) var(--offset) var(--space-l) 0;
}

.panel {
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  background-color: var(--navy);
  background-image: var(--stamp-joints);
  border-top: 6px solid var(--rust);
  color: var(--cream);
}

.panel a:not(.btn) {
  color: var(--gold);
}

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

.panel h3 {
  font-size: var(--step-1);
}

.pullquote {
  margin: 0;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 8px solid var(--rust);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1rem, 0.6rem + 1.5vw, 1.75rem);
  margin-block: var(--space-m);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.4rem;
  background: var(--cream-2);
  border-top: 6px solid var(--navy);
  color: var(--navy);
}

.section--cream .card {
  background-color: var(--cream-2);
  background-image: var(--stamp-joints-dark);
}

.section--sky .card,
.section--gold .card {
  background: var(--cream);
}

.section--navy .card {
  background: var(--navy-2);
  border-top-color: var(--gold);
  color: var(--cream);
}

.card__title {
  font-size: var(--step-2);
}

.card__title a {
  color: inherit;
  text-decoration: none;
}

.card--link .card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card p:last-of-type {
  margin-bottom: 0;
}

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card__more::after {
  content: "";
  width: 1.5rem;
  height: 3px;
  background: var(--rust);
  transition: width 0.15s ease;
}

.card--link:hover {
  border-top-color: var(--rust);
}

.card--link:hover .card__more::after {
  width: 2.5rem;
}

.card--link:focus-within {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}

.card--link .card__title a:focus-visible {
  outline: none;
}

/* ---------- Numbered reasons ---------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--space-m) var(--space-l);
  margin: var(--space-m) 0 0;
  padding: 0;
  list-style: none;
}

.reason {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 2px solid currentcolor;
}

.reason__num {
  color: var(--rust);
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 0.9;
}

.section--sky .reason__num,
.section--gold .reason__num {
  color: var(--navy);
}

.reason h3 {
  font-size: var(--step-1);
}

.reason p {
  margin: 0;
}

/* ---------- Lists ---------- */
.checklist,
.bullets {
  padding: 0;
  list-style: none;
}

.checklist li,
.bullets li {
  position: relative;
  margin-bottom: 0.55rem;
  padding-left: 1.75rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: 0.1rem;
  width: 0.45rem;
  height: 0.8rem;
  border-right: 3px solid var(--rust);
  border-bottom: 3px solid var(--rust);
  transform: rotate(45deg);
}

.bullets li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0.2rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--rust);
}

.section--navy .checklist li::before,
.panel .checklist li::before {
  border-color: var(--gold);
}

.section--navy .bullets li::before,
.panel .bullets li::before {
  background: var(--gold);
}

.steps {
  padding-left: 1.4rem;
}

.steps li {
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
}

.steps li::marker {
  font-weight: 800;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: var(--space-m) 0 0;
  padding: 0;
  list-style: none;
}

.chips a {
  display: inline-block;
  padding: 0.6rem 1rem;
  border: 2px solid currentcolor;
  font-weight: 700;
  text-decoration: none;
}

.chips a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}

.big-phone {
  margin: 0.25rem 0 1rem;
}

.big-phone a {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

/* ---------- CTA bands ---------- */
.cta-band {
  position: relative;
  padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem);
}

.section--rust {
  /* Mottled acid-stain wash, kept within the dark rust range so cream text stays above 5:1. */
  background-color: var(--rust-deep);
  background-image:
    radial-gradient(ellipse at 12% 20%, var(--rust-mid) 0, transparent 45%),
    radial-gradient(ellipse at 85% 85%, var(--rust-dark) 0, transparent 50%),
    radial-gradient(ellipse at 60% 10%, var(--rust-dark) 0, transparent 35%);
  color: var(--cream);
}

.cta-band__inner {
  display: grid;
  gap: var(--space-m);
  align-items: center;
}

@media (width >= 56rem) {
  .cta-band__inner {
    grid-template-columns: 1.4fr 1fr;
  }
}

.cta-band h2 {
  margin-bottom: 0.4em;
}

.cta-band__copy p:last-child {
  margin-bottom: 0;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cta-band__phone {
  flex-basis: 100%;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.section--rust .cta-band__phone {
  color: var(--cream);
}

.section--gold .cta-band__phone {
  color: var(--navy);
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 3px solid currentcolor;
}

.faq__item {
  border-bottom: 2px solid currentcolor;
}

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  background: var(--navy);
  color: var(--cream);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 2rem;
  text-align: center;
}

.faq__item[open] summary::after {
  content: "\2212";
  background: var(--rust-deep);
}

.section--navy .faq__item summary::after {
  background: var(--gold);
  color: var(--navy);
}

.faq__answer {
  padding-bottom: 1rem;
}

/* ---------- Tables ---------- */
.table-wrap {
  margin-block: var(--space-m);
  overflow-x: auto;
}

.table-wrap table {
  min-width: 32rem;
  background: var(--cream);
  color: var(--navy);
  font-size: var(--step--1);
}

.table-wrap th,
.table-wrap td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgb(13 31 45 / 25%);
  text-align: left;
  vertical-align: top;
}

.table-wrap thead th {
  background: var(--navy);
  color: var(--cream);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table-wrap tbody th {
  font-weight: 700;
}

/* ---------- Articles ---------- */
.prose h2 {
  margin-top: 1.6em;
  font-size: var(--step-2);
}

.prose h3 {
  margin-top: 1.3em;
  font-size: var(--step-1);
}

.prose > :first-child {
  margin-top: 0;
}

.article .prose p:first-child {
  font-size: var(--step-1);
  line-height: 1.55;
}

/* ---------- Gallery + photo strips ---------- */
.gallery,
.work-strip__grid {
  display: grid;
  gap: clamp(0.5rem, 0.3rem + 0.8vw, 1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}

.gallery img,
.work-strip__grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-strip__grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (width >= 56rem) {
  .work-strip__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.work-strip__grid img {
  aspect-ratio: 1;
}

.work-strip__more {
  margin: var(--space-l) 0 0;
}

.section--cream .work-strip__more .btn {
  border-color: var(--navy);
  color: var(--navy);
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--navy);
  background-image: var(--stamp-joints);
  border-top: 6px solid var(--rust);
  color: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: var(--space-l);
  padding-block: var(--space-section) var(--space-l);
}

.footer-brand img {
  width: 13rem;
  margin-bottom: 1rem;
}

.site-footer h2 {
  margin-bottom: 0.75rem;
  color: var(--gold);
  font-size: var(--step-1);
}

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

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: var(--cream);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.footer-phone {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 800;
}

.footer-bottom {
  padding-block: 1.25rem;
  border-top: 1px solid rgb(156 198 219 / 25%);
  color: var(--sky);
  font-size: var(--step--1);
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Mobile call bar ---------- */
.callbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.5rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 -4px 0 var(--rust);
}

@media (width < 64rem) {
  body {
    padding-bottom: 3.5rem;
  }
}

@media (width >= 64rem) {
  .callbar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .card__more::after {
    transition: none;
  }
}

.card__kicker {
  margin-bottom: 0.4rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Panels keep the gold button wherever they sit, and lift off navy sections. */
.panel .btn--primary,
.section--gold .panel .btn--primary,
.section--sky .panel .btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.panel .btn--primary:hover,
.section--gold .panel .btn--primary:hover,
.section--sky .panel .btn--primary:hover {
  background: var(--cream);
  border-color: var(--cream);
}

.section--navy .panel {
  background-color: var(--navy-2);
  background-image: none;
}

/* Let wide tables scroll inside grid columns instead of stretching them. */
.split__copy,
.split__side,
.split__media {
  min-width: 0;
}
