:root {
  --blue: #153f7a;
  --blue-strong: #0d2b55;
  --blue-light: #eaf1f9;
  --red: #d7193f;
  --ink: #17202a;
  --muted: #5a6674;
  --line: #d8dee6;
  --surface: #f4f6f8;
  --white: #ffffff;
  --shadow: 0 16px 42px rgba(13, 43, 85, 0.12);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue-strong);
  transform: translateY(-150%);
}

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

.utility-bar {
  color: var(--white);
  background: var(--blue-strong);
  font-size: 13px;
}

.utility-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.utility-inner span:first-child {
  margin-right: auto;
}

.utility-inner a {
  font-weight: 700;
  text-decoration: none;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(13, 43, 85, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 112px;
  height: 60px;
  object-fit: contain;
}

.brand span {
  max-width: 112px;
  line-height: 1.25;
}

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

.site-nav a {
  position: relative;
  color: #283545;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

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

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

.nav-cta {
  min-height: 42px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  color: var(--white) !important;
  background: var(--red);
}

.menu-button {
  min-width: 72px;
  min-height: 42px;
  display: none;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: var(--white);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100svh - 92px));
  display: flex;
  align-items: center;
  color: var(--white);
  background-image: url("assets/images/ccs-project-photos/commercial-flooring-crew.webp");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 25, 49, 0.94) 0%, rgba(8, 25, 49, 0.82) 40%, rgba(8, 25, 49, 0.16) 76%, rgba(8, 25, 49, 0.04) 100%);
}

.hero-content {
  position: relative;
  padding-block: 66px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow,
.section-dark .eyebrow {
  color: #ff8da3;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-established {
  width: fit-content;
  margin: 18px 0 0;
  padding: 7px 10px;
  border-left: 3px solid #ff8da3;
  color: var(--white);
  background: rgba(8, 25, 49, 0.52);
  font-size: 15px;
  font-weight: 800;
}

.hero-subhead {
  max-width: 710px;
  margin: 18px 0 0;
  color: #e4eaf1;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: #b80e30;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.74);
  color: var(--white);
  background: rgba(8, 25, 49, 0.36);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

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

.button-light:hover,
.button-light:focus-visible {
  background: var(--blue-light);
}

.hero-facts {
  max-width: 760px;
  margin-top: 48px;
  padding-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-facts div {
  min-width: 0;
}

.hero-facts strong,
.hero-facts span {
  display: block;
}

.hero-facts strong {
  font-size: 19px;
}

.hero-facts span {
  margin-top: 4px;
  color: #cdd7e3;
  font-size: 13px;
}

.trust-strip {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-list {
  min-height: 78px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
}

.trust-list span {
  padding: 8px 14px;
  border-right: 1px solid var(--line);
  color: var(--blue-strong);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.trust-list span:first-child {
  border-left: 1px solid var(--line);
}

.section {
  padding-block: 96px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading.compact {
  max-width: 900px;
}

.section-heading h2,
.commercial-copy h2,
.about-layout h2,
.contact-intro h2 {
  margin: 0;
  color: var(--blue-strong);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: 0;
}

.section-heading > p:last-child,
.commercial-copy > p,
.about-copy > p,
.contact-intro > p {
  color: var(--muted);
  font-size: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-item {
  min-height: 252px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.service-number {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.service-item h3 {
  margin: 26px 0 10px;
  color: var(--blue-strong);
  font-size: 22px;
}

.service-item p {
  margin: 0;
  color: var(--muted);
}

.section-cta {
  margin-top: 28px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--blue-light);
}

.section-cta p {
  margin: 0;
  color: var(--blue-strong);
  font-weight: 700;
}

.text-link {
  flex: 0 0 auto;
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
}

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

.commercial-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 76px;
  align-items: start;
}

.commercial-copy h2 {
  color: var(--white);
}

.commercial-copy > p {
  color: #cdd7e3;
}

.commercial-copy > .commercial-trust {
  padding-left: 12px;
  border-left: 3px solid #ff8da3;
  color: var(--white);
  font-weight: 800;
}

.commercial-copy .button {
  margin-top: 18px;
}

.capability-panel {
  padding: 34px;
  border-top: 4px solid var(--red);
  background: #173c6d;
}

.capability-panel h3 {
  margin: 0 0 24px;
  font-size: 22px;
}

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

.check-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.check-list li::before {
  position: absolute;
  top: 14px;
  left: 0;
  color: #ff8da3;
  content: "✓";
  font-weight: 800;
}

.service-area {
  margin-top: 26px;
}

.service-area strong {
  color: #ff8da3;
  font-size: 13px;
  text-transform: uppercase;
}

.service-area p {
  margin-bottom: 0;
  color: #dbe3ed;
}

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

.experience-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 4px;
  background: var(--white);
}

.experience-grid h3 {
  margin: 0 0 15px;
  color: var(--blue-strong);
  font-size: 19px;
}

.experience-grid ul {
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
}

.experience-grid li + li {
  margin-top: 8px;
}

.gallery-section {
  background: var(--surface);
}

.row-heading {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.row-heading > p {
  max-width: 390px;
  margin-bottom: 5px;
  color: var(--muted);
}

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

.gallery-grid figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--blue-strong);
}

.gallery-main {
  grid-column: span 2;
  grid-row: span 2;
}

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

.gallery-grid .gallery-main img {
  object-fit: contain;
}

.gallery-grid figure:hover img {
  transform: scale(1.02);
}

.gallery-grid figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 34px 20px 18px;
  color: var(--white);
  background: linear-gradient(transparent, rgba(8, 25, 49, 0.9));
}

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

.gallery-grid figcaption span {
  margin-top: 3px;
  color: #dce5ef;
  font-size: 13px;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.about-facts {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.about-facts div {
  padding: 20px;
  background: var(--white);
}

.about-facts strong,
.about-facts span {
  display: block;
}

.about-facts strong {
  color: var(--blue-strong);
}

.about-facts span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.contact-section {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 64px;
  align-items: start;
}

.contact-intro {
  position: sticky;
  top: 130px;
}

.contact-details {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.contact-details > * {
  padding: 16px 0;
  display: block;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contact-details span,
.contact-details strong {
  display: block;
}

.contact-details span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-details strong {
  margin-top: 4px;
  color: var(--blue-strong);
  overflow-wrap: anywhere;
}

.contact-note {
  padding-left: 14px;
  border-left: 3px solid var(--red);
  font-weight: 700;
}

.estimate-form {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.estimate-form label {
  margin-bottom: 18px;
  display: block;
  color: #263544;
  font-size: 14px;
  font-weight: 700;
}

.estimate-form label > span {
  color: var(--red);
}

.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #b9c3ce;
  border-radius: 3px;
  color: var(--ink);
  background: var(--white);
}

.estimate-form input,
.estimate-form select {
  min-height: 48px;
  padding: 10px 12px;
}

.estimate-form input[type="file"] {
  min-height: auto;
  padding: 11px;
}

.estimate-form textarea {
  min-height: 130px;
  padding: 12px;
  resize: vertical;
}

.estimate-form input:focus,
.estimate-form select:focus,
.estimate-form textarea:focus {
  outline: 3px solid rgba(21, 63, 122, 0.18);
  border-color: var(--blue);
}

.field-note {
  margin: -9px 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.file-delivery-note {
  margin-top: 0;
  font-size: 14px;
}

.file-delivery-note a {
  color: var(--blue);
  font-weight: 800;
}

.button-email-files {
  width: 100%;
  margin: 0 0 18px;
  border-color: var(--blue);
  color: var(--blue);
  background: var(--white);
}

.button-email-files:hover,
.button-email-files:focus-visible {
  color: var(--white);
  background: var(--blue);
}

.submit-button {
  width: 100%;
}

.site-footer {
  padding-top: 58px;
  color: #d8e1eb;
  background: #091b33;
}

.footer-grid {
  padding-bottom: 42px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 60px;
}

.footer-brand img {
  width: 160px;
  height: 84px;
  object-fit: contain;
  background: var(--white);
}

.footer-brand p {
  max-width: 480px;
}

.footer-brand .footer-trust {
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 15px;
}

.site-footer a,
.site-footer span {
  margin-bottom: 9px;
  display: block;
  color: #c3ceda;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--white);
}

.footer-bottom {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.footer-bottom span {
  margin: 0;
}

@media (max-width: 980px) {
  .utility-inner span:nth-child(2),
  .utility-inner span:nth-child(3) {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    z-index: 99;
    top: 114px;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 28px 20px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: var(--white);
  }

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

  .site-nav a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }

  .site-nav a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 18px;
    justify-content: center;
  }

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

  .commercial-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .contact-intro {
    position: static;
  }

  .about-facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .utility-inner {
    gap: 12px;
  }

  .utility-inner span:first-child {
    font-size: 12px;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand img {
    width: 88px;
    height: 50px;
  }

  .brand span {
    display: none;
  }

  .site-nav {
    top: 106px;
  }

  .hero {
    min-height: calc(100svh - 86px);
    background-position: 62% center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(8, 25, 49, 0.94), rgba(8, 25, 49, 0.62));
  }

  .hero-content {
    padding-block: 48px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-subhead {
    font-size: 18px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-facts {
    margin-top: 30px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-facts div {
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: baseline;
  }

  .hero-facts span {
    margin: 0;
  }

  .trust-list {
    padding-block: 10px;
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-list span,
  .trust-list span:first-child {
    padding: 8px 4px;
    border: 0;
    font-size: 12px;
  }

  .section {
    padding-block: 68px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2,
  .commercial-copy h2,
  .about-layout h2,
  .contact-intro h2 {
    font-size: 34px;
  }

  .section-heading > p:last-child,
  .commercial-copy > p,
  .about-copy > p,
  .contact-intro > p {
    font-size: 16px;
  }

  .service-grid,
  .experience-grid,
  .about-facts {
    grid-template-columns: 1fr;
  }

  .service-item {
    min-height: auto;
  }

  .section-cta,
  .row-heading,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .commercial-layout {
    gap: 34px;
  }

  .capability-panel,
  .estimate-form {
    padding: 24px 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
  }

  .gallery-main {
    grid-column: auto;
    grid-row: auto;
  }

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

  .footer-grid {
    gap: 34px;
  }

  .footer-bottom {
    padding-block: 20px;
  }
}

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

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