:root {
  --black: #111111;
  --charcoal: #1d201d;
  --stone: #5e625b;
  --cream: #f4f0e8;
  --white: #ffffff;
  --red: #d7192d;
  --red-dark: #9f101f;
  --green: #208b70;
  --line: rgba(17, 17, 17, 0.14);
  --shadow: 0 18px 55px rgba(17, 17, 17, 0.14);
  --radius: 4px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--black);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body,
button {
  font-size: 1rem;
}

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

a {
  color: inherit;
}

figure {
  margin: 0;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Arial Narrow", Impact, sans-serif;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

h1 {
  max-width: 960px;
  font-size: clamp(3.7rem, 8vw, 7.5rem);
}

h2 {
  font-size: clamp(2.6rem, 5vw, 4.7rem);
}

h3 {
  font-size: 1.65rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  max-width: 720px;
  margin-top: 24px;
  color: #555a53;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--red);
  color: var(--white);
}

.skip-link:focus {
  top: 16px;
}

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

.topbar {
  background: var(--black);
  color: #d8d9d5;
  font-size: 0.8rem;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 8px;
}

.topbar a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 232, 0.96);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand__logo {
  width: clamp(195px, 20vw, 255px);
  height: 78px;
  object-fit: contain;
  object-position: left center;
}

.nav-toggle {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: 180ms ease;
}

.button:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
  transform: translateY(-2px);
}

.button--small {
  min-height: 44px;
  padding: 10px 16px;
}

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

.button--outline:hover,
.button--light {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.button--light:hover {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.text-link {
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  min-height: 690px;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: linear-gradient(
      90deg,
      rgba(12, 14, 12, 0.96) 0%,
      rgba(12, 14, 12, 0.75) 47%,
      rgba(12, 14, 12, 0.28) 100%
    ),
    url("../images/foundation-hero.jpg");
  background-position: center;
  background-size: cover;
  content: "";
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -80px;
  bottom: -120px;
  width: 480px;
  height: 250px;
  border: 44px solid rgba(215, 25, 45, 0.67);
  content: "";
  transform: rotate(-11deg);
}

.hero--interior {
  min-height: 510px;
}

.hero__content {
  padding-block: 95px;
}

.hero h1 span {
  color: #ef4052;
}

.hero__copy {
  max-width: 660px;
  margin: 26px 0 32px;
  color: #e1e2de;
  font-size: 1.16rem;
}

.trust-strip {
  background: var(--charcoal);
  color: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  padding: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item strong {
  display: block;
  color: #ef4052;
  font-family: Impact, sans-serif;
  font-size: 1.75rem;
  font-weight: 400;
  text-transform: uppercase;
}

.trust-item span {
  color: #d1d4ce;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding-block: clamp(75px, 10vw, 120px);
}

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

.section--dark {
  background: #191c18;
  color: var(--white);
}

.section--dark .lead {
  color: #c3c7bf;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 52px;
}

.section-heading .lead {
  justify-self: end;
  margin-top: 0;
}

.split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}

.photo-frame {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.photo-frame::after {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 100px;
  height: 100px;
  border-right: 12px solid var(--red);
  border-bottom: 12px solid var(--red);
  content: "";
}

.check-list {
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 12px 0;
  padding-left: 31px;
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: 220ms ease;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.card__number {
  display: block;
  margin-bottom: 42px;
  color: var(--red);
  font: 400 2.6rem/1 Impact, sans-serif;
}

.card p {
  margin-top: 17px;
  color: #62675f;
}

.service-list {
  display: grid;
}

.service-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.15fr;
  gap: 30px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: 1px solid var(--line);
}

.service-row > span {
  color: var(--red);
  font: 400 2.4rem/1 Impact, sans-serif;
}

.service-row p {
  color: #646961;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  grid-column: span 4;
  overflow: hidden;
  background: var(--charcoal);
}

.gallery-item--wide {
  grid-column: span 8;
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 48px 22px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.86));
  color: var(--white);
}

.gallery-item strong,
.gallery-item span {
  display: block;
}

.gallery-item strong {
  text-transform: uppercase;
}

.gallery-item span {
  color: #c9cdc5;
  font-size: 0.8rem;
}

.contact-intro {
  max-width: 850px;
  text-align: center;
}

.contact-intro .lead {
  margin-inline: auto;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 52px;
}

.contact-card {
  min-width: 0;
  padding: clamp(30px, 5vw, 55px);
  border-top: 6px solid var(--red);
  background: var(--cream);
}

.contact-card__label {
  display: block;
  margin-bottom: 30px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card > a {
  display: inline-block;
  max-width: 100%;
  margin: 22px 0;
  overflow-wrap: anywhere;
  color: var(--red-dark);
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.contact-card p {
  color: var(--stone);
}

.cta-band {
  position: relative;
  padding-block: 70px;
  overflow: hidden;
  background: var(--red);
  color: var(--white);
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.cta-band h2 {
  max-width: 800px;
}

.site-footer {
  padding-block: 70px 30px;
  background: var(--black);
  color: #d2d5cf;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 60px;
}

.footer-brand {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--cream);
}

.footer-brand img {
  width: min(100%, 280px);
  height: 96px;
  object-fit: contain;
}

.footer-copy {
  max-width: 440px;
  margin-top: 22px;
  color: #9ea39a;
}

.footer-title {
  margin-bottom: 18px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #bec2ba;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ef4052;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 55px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #868b82;
  font-size: 0.75rem;
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 0.74rem;
  }

  .brand__logo {
    width: 205px;
  }
}

@media (max-width: 900px) {
  .nav-wrap {
    position: relative;
  }

  .nav-toggle {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
    font-size: 1.7rem;
  }

  .nav-toggle[aria-expanded="true"] {
    background: var(--black);
    color: var(--white);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: -20px;
    left: -20px;
    display: none;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 18px 20px 24px;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
    box-shadow: 0 18px 30px rgba(17, 17, 17, 0.15);
    flex-direction: column;
    gap: 4px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 10px 4px;
    font-size: 0.86rem;
  }

  .site-nav .button {
    justify-content: center;
    margin-top: 8px;
  }

  .hero {
    min-height: 620px;
  }

  .hero--interior {
    min-height: 470px;
  }

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

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

  .section-heading .lead {
    justify-self: start;
  }

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

  .service-row {
    grid-template-columns: 70px 1fr;
  }

  .service-row p {
    grid-column: 2;
  }

  .gallery-item,
  .gallery-item--wide {
    grid-column: span 6;
  }

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

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .topbar__inner {
    justify-content: center;
    text-align: center;
  }

  .topbar__inner span {
    display: none;
  }

  .nav-wrap {
    min-height: 70px;
  }

  .brand__logo {
    width: 165px;
    height: 62px;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.3rem);
  }

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

  h3 {
    font-size: 1.4rem;
  }

  .hero,
  .hero--interior {
    min-height: 540px;
  }

  .hero::before {
    background-image: linear-gradient(
        90deg,
        rgba(12, 14, 12, 0.94),
        rgba(12, 14, 12, 0.68)
      ),
      url("../images/foundation-hero.jpg");
    background-position: 62% center;
  }

  .hero__content {
    padding-block: 70px;
  }

  .hero__copy {
    font-size: 1rem;
  }

  .section {
    padding-block: 68px;
  }

  .trust-grid,
  .card-grid,
  .contact-options,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .photo-frame,
  .photo-frame img {
    min-height: 360px;
  }

  .service-row {
    grid-template-columns: 46px 1fr;
    gap: 15px;
  }

  .gallery-grid {
    grid-auto-rows: 230px;
  }

  .gallery-item,
  .gallery-item--wide {
    grid-column: 1 / -1;
  }

  .gallery-item--tall {
    grid-row: span 1;
  }

  .cta-band {
    padding-block: 58px;
  }

  .cta-band__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    padding-block: 55px 24px;
  }

  .footer-grid > :first-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .brand__logo {
    width: 142px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .button-row .button {
    width: 100%;
  }
}

@media (hover: none) {
  .button:hover,
  .card:hover {
    transform: none;
  }

  .gallery-item:hover img {
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
