/* Fix & Finish base: fonts, reset, typography, layout primitives, header, footer, shared controls. */

@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/archivo-black-latin.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-italic-latin.woff2") format("woff2");
}

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

html {
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--c-light);
  color: var(--c-dark);
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  text-rendering: optimizelegibility;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: var(--lh-head);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: var(--lh-head);
}

p {
  text-wrap: pretty;
}

a {
  color: var(--c-cta);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--c-cta-hover);
}

:focus-visible {
  outline: 3px solid var(--c-brass);
  outline-offset: 3px;
}

strong {
  font-weight: 700;
}

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

.skip-link {
  position: absolute;
  top: -10rem;
  left: var(--sp-4);
  z-index: 100;
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-brass);
  color: var(--c-dark);
  font-weight: 700;
}

.skip-link:focus {
  top: var(--sp-4);
}

/* Layout */
.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section--light {
  background: var(--c-light);
  color: var(--c-dark);
}

.section--mist {
  background: var(--c-mist);
  color: var(--c-dark);
}

.section--dark {
  background: var(--c-dark);
  color: var(--c-light);
}

.section--deep {
  background: var(--c-deep);
  color: var(--c-light);
}

.section--cta {
  background: var(--c-cta);
  color: var(--c-white);
}

.section--dark a:not(.btn),
.section--deep a:not(.btn),
.section--cta a:not(.btn) {
  color: inherit;
}

.section-head {
  max-width: var(--measure);
  margin-bottom: var(--sp-7);
}

.section-head > * + * {
  margin-top: var(--sp-4);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.lede {
  font-size: var(--fs-lg);
  line-height: 1.55;
}

.flow > * + * {
  margin-top: var(--sp-4);
}

/* Signature: brass ruler. A solid bar with graduated tick marks above it. */
.rule {
  display: block;
  width: var(--rule-w);
  height: calc(var(--rule-h) + var(--tick));
  border: 0;
  margin: var(--sp-5) 0 0;
  background:
    linear-gradient(var(--c-brass), var(--c-brass)) left bottom / 100% var(--rule-h) no-repeat,
    repeating-linear-gradient(90deg, var(--c-brass) 0 2px, transparent 2px 0.6875rem) left bottom
      var(--rule-h) / 100% calc(var(--tick) * 0.55) no-repeat,
    repeating-linear-gradient(90deg, var(--c-brass) 0 2px, transparent 2px 2.75rem) left bottom
      var(--rule-h) / 100% var(--tick) no-repeat;
}

.section-head--center .rule {
  margin-inline: auto;
}

/* Eyebrow: a notched ribbon tag, echoing the banner in the logo. */
.eyebrow {
  display: inline-block;
  padding: 0.3rem 1.1rem 0.3rem 0.8rem;
  background: var(--c-cta);
  color: var(--c-white);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.5rem) 50%, 100% 100%, 0 100%);
}

.section--cta .eyebrow {
  background: var(--c-dark);
  color: var(--c-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 3rem;
  padding: 0.8rem 1.6rem;
  border: var(--border) solid transparent;
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

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

.btn--primary {
  background: var(--c-cta);
  color: var(--c-white);
}

.btn--primary:hover {
  background: var(--c-cta-hover);
  color: var(--c-white);
}

.btn--ghost {
  border-color: currentcolor;
  background: transparent;
  color: var(--c-light);
}

.btn--ghost:hover {
  background: var(--c-light);
  color: var(--c-dark);
}

.btn--dark {
  background: var(--c-dark);
  color: var(--c-light);
}

.btn--dark:hover {
  background: var(--c-deep);
  color: var(--c-light);
}

.btn--outline-dark {
  border-color: var(--c-dark);
  background: transparent;
  color: var(--c-dark);
}

.btn--outline-dark:hover {
  background: var(--c-dark);
  color: var(--c-light);
}

.btn--light {
  background: var(--c-light);
  color: var(--c-cta);
}

.btn--light:hover {
  background: var(--c-white);
  color: var(--c-cta-hover);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.phone-link {
  white-space: nowrap;
}

/* Breadcrumbs */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-5);
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crumbs li + li::before {
  content: "/";
  margin-right: var(--sp-2);
  color: var(--c-brass);
}

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

.crumbs a:hover {
  text-decoration: underline;
}

.crumbs [aria-current] {
  color: var(--c-brass);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-dark);
  color: var(--c-light);
  border-bottom: 3px solid var(--c-brass);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.brand {
  flex: none;
  padding-block: var(--sp-2);
}

.brand img {
  width: 8.5rem;
  height: auto;
}

.header-call {
  display: none;
  margin-left: auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 2.75rem;
  margin-left: auto;
  padding: 0 var(--sp-4);
  border: var(--border) solid var(--c-light);
  background: transparent;
  color: var(--c-light);
  font: 700 var(--fs-sm) / 1 var(--f-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

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

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentcolor;
  transition:
    transform 0.2s var(--ease),
    opacity 0.2s var(--ease);
}

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

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

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

.primary-nav {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: var(--sp-4) var(--gutter) var(--sp-6);
  background: var(--c-deep);
  border-bottom: 3px solid var(--c-brass);
}

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

.nav-list,
.subnav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list > li {
  border-bottom: 1px solid rgb(232 237 242 / 12%);
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.primary-nav a {
  display: block;
  padding: var(--sp-3) 0;
  color: var(--c-light);
  font-weight: 700;
  text-decoration: none;
}

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

.sub-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--c-light);
  cursor: pointer;
}

.sub-toggle::before {
  content: "";
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  margin: auto;
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.sub-toggle[aria-expanded="true"]::before {
  transform: translateY(25%) rotate(-135deg);
}

.subnav {
  display: none;
  padding: 0 0 var(--sp-3) var(--sp-4);
  border-left: 2px solid var(--c-brass);
}

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

.subnav a {
  padding: var(--sp-2) 0;
  font-weight: 500;
}

@media (width >= 48rem) {
  .header-call {
    display: inline-flex;
  }

  .nav-toggle {
    margin-left: 0;
  }
}

@media (width >= 64rem) {
  .brand img {
    width: 9.5rem;
  }

  .nav-toggle {
    display: none;
  }

  .primary-nav {
    display: block;
    position: static;
    flex: 1;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
  }

  .nav-list {
    display: flex;
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 2rem);
  }

  .nav-list > li {
    position: relative;
    border: 0;
  }

  .nav-item {
    gap: 0;
  }

  .primary-nav .nav-list > li > a,
  .primary-nav .nav-item > a {
    padding: var(--sp-4) 0;
    font-size: var(--fs-sm);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .sub-toggle {
    width: 1.75rem;
  }

  .subnav {
    position: absolute;
    top: 100%;
    left: -1rem;
    min-width: 16rem;
    padding: var(--sp-3) var(--sp-4);
    background: var(--c-deep);
    border: 0;
    border-top: 3px solid var(--c-brass);
    box-shadow: var(--shadow);
  }

  .has-sub:hover .subnav,
  .has-sub:focus-within .subnav {
    display: block;
  }

  .header-call {
    margin-left: 0;
  }
}

/* Sticky mobile click-to-call bar */
.callbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 3.5rem;
  padding: var(--sp-2) var(--gutter);
  background: var(--c-cta);
  color: var(--c-white);
  border-top: 3px solid var(--c-brass);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.callbar:hover {
  color: var(--c-white);
}

.callbar svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentcolor;
}

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

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

/* Footer */
.site-footer {
  background: var(--c-deep);
  color: var(--c-light);
  border-top: 3px solid var(--c-brass);
}

.footer-grid {
  display: grid;
  gap: var(--sp-7);
  padding-block: var(--sp-8) var(--sp-7);
}

.footer-grid h2 {
  margin-bottom: var(--sp-4);
  color: var(--c-brass);
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-brand img {
  width: 11rem;
  margin-bottom: var(--sp-4);
}

.footer-brand p {
  max-width: 24rem;
}

.footer-links {
  display: grid;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links--cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--sp-5);
}

.site-footer a {
  color: var(--c-light);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--c-brass);
  text-decoration: underline;
}

.footer-phone {
  display: inline-block;
  font-family: var(--f-display);
  font-size: var(--fs-h3);
}

.footer-bottom {
  padding-block: var(--sp-5);
  border-top: 1px solid rgb(232 237 242 / 12%);
  font-size: var(--fs-xs);
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
}

@media (width >= 48rem) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

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

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