:root {
  --bg: #f5f1eb;
  --bg-soft: #fffdf8;
  --surface: #ffffff;
  --surface-strong: #1f2328;
  --text: #17202a;
  --muted: #5a6472;
  --line: rgba(23, 32, 42, 0.12);
  --accent: #4a678d;
  --accent-deep: #263547;
  --accent-soft: #dde5ef;
  --shadow: 0 24px 60px rgba(20, 27, 36, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --content-width: min(1180px, calc(100vw - 2rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(74, 103, 141, 0.14), transparent 30%),
    linear-gradient(180deg, #f7f3ee 0%, #f2ede5 100%);
  font-family: "Manrope", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  backdrop-filter: blur(10px);
  background: rgba(18, 22, 27, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap,
.hero,
.section,
.site-footer {
  width: var(--content-width);
  margin: 0 auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 54px;
  padding: 0.42rem 0 0.44rem;
  transition: padding 220ms ease;
}

.brand {
  width: 218px;
  min-height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition:
    width 220ms ease,
    opacity 220ms ease,
    transform 220ms ease;
}

.brand-wordmark {
  display: grid;
  gap: 0.06rem;
  line-height: 0.88;
  color: #fff;
  justify-items: center;
}

.brand-wordmark-top,
.brand-wordmark-bottom {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand-wordmark-top {
  width: 100%;
  font-size: 1.58rem;
  font-weight: 700;
  text-align: center;
}

.brand-wordmark-bottom {
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  text-align: center;
}

.site-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 0.78rem;
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 700;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition:
    opacity 220ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.menu-toggle-plates {
  display: grid;
  gap: 3px;
}

.menu-toggle-plates span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-cta {
  min-height: 30px;
  padding: 0.38rem 0.74rem;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.45rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-accent {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #2f465f 100%);
  box-shadow: 0 14px 30px rgba(47, 70, 95, 0.24);
}

.button-dark {
  color: #fff;
  background: #12161b;
}

.button-light {
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(18, 22, 27, 0.12);
}

.hero {
  display: block;
  padding: 2.2rem 0 1.4rem;
  min-height: calc(100vh - 56px);
}

.hero-copy,
.service-card,
.value-card,
.project-card,
.contact-form {
  animation: rise-in 700ms ease both;
}

.hero-copy {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 140px);
  padding: 3rem 3rem 3.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(241, 236, 229, 0.92)),
    linear-gradient(120deg, rgba(74, 103, 141, 0.08), transparent 50%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 148px;
  margin-bottom: 1.35rem;
}

.hero-brand-mark img {
  width: 148px;
  height: 148px;
  object-fit: contain;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(74, 103, 141, 0.14), transparent 70%);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent-deep);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.96;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

h1 {
  max-width: 15ch;
  font-size: clamp(3.2rem, 7vw, 6rem);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.85rem;
}

.hero-lead,
.section-heading p,
.service-card p,
.value-card p,
.project-card p,
.contact-copy p,
.card-copy {
  color: var(--muted);
  line-height: 1.7;
}

.hero-lead {
  max-width: 72ch;
  margin: 1.15rem 0 1.75rem;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1.85rem;
}

.service-card,
.value-card,
.project-card,
.contact-form {
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.card-kicker {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quote-form,
.contact-form {
  display: grid;
  gap: 0.95rem;
}

.quote-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 18px;
  background: #f9f7f2;
  padding: 0.95rem 1rem;
  color: var(--text);
}

.quote-form input:focus,
.quote-form textarea:focus {
  outline: 2px solid rgba(74, 103, 141, 0.24);
  border-color: rgba(74, 103, 141, 0.42);
}

.custom-select {
  position: relative;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 239, 230, 0.95));
  padding: 0.95rem 1rem;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.custom-select-trigger:hover,
.custom-select.is-open .custom-select-trigger {
  border-color: rgba(74, 103, 141, 0.42);
  box-shadow:
    0 16px 28px rgba(38, 53, 71, 0.08),
    inset 0 0 0 1px rgba(74, 103, 141, 0.12);
}

.custom-select-trigger:focus-visible {
  outline: 2px solid rgba(74, 103, 141, 0.24);
  border-color: rgba(74, 103, 141, 0.42);
}

.custom-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.custom-select-icon::before,
.custom-select-icon::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-deep);
  transition: transform 180ms ease;
}

.custom-select-icon::before {
  left: 0;
  transform: rotate(45deg);
}

.custom-select-icon::after {
  right: 0;
  transform: rotate(-45deg);
}

.custom-select.is-open .custom-select-icon::before {
  transform: rotate(-45deg);
}

.custom-select.is-open .custom-select-icon::after {
  transform: rotate(45deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 12;
  display: grid;
  gap: 0.35rem;
  padding: 0.45rem;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 241, 234, 0.98));
  box-shadow: 0 28px 48px rgba(20, 27, 36, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.custom-select.is-open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: transparent;
  padding: 0.85rem 0.9rem;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.custom-select-option:hover,
.custom-select-option:focus-visible,
.custom-select-option.is-selected {
  background: linear-gradient(135deg, rgba(74, 103, 141, 0.12), rgba(38, 53, 71, 0.08));
  color: var(--accent-deep);
}

.custom-select-option:focus-visible {
  outline: none;
}

.custom-select.is-invalid .custom-select-trigger {
  border-color: rgba(170, 46, 34, 0.55);
  box-shadow: inset 0 0 0 1px rgba(170, 46, 34, 0.1);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 1.35rem;
  margin: 0;
  font-weight: 700;
}

.form-status.is-success {
  color: #1c6a45;
}

.form-status.is-error {
  color: #aa2e22;
}

.section {
  padding: 1.5rem 0 2rem;
}

.section-heading {
  max-width: 68ch;
  margin-bottom: 1.5rem;
}

.service-grid,
.value-grid,
.project-grid,
.area-list {
  display: grid;
  gap: 1rem;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.value-card,
.project-card {
  padding: 1.5rem;
}

.service-number {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--accent);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
}

.section-values {
  display: grid;
  gap: 1.25rem;
  padding-top: 0.5rem;
}

.project-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  min-height: 220px;
  margin-bottom: 1.2rem;
}

.project-state {
  display: flex;
  align-items: end;
  padding: 1rem;
  border-radius: 20px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-state.before {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(23, 32, 42, 0.12), rgba(23, 32, 42, 0.82)),
    linear-gradient(135deg, #7b868d, #313b43);
}

.project-state.after {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.92)),
    linear-gradient(135deg, #f1efe9, #dce5ef);
}

.section-area {
  padding-top: 0.5rem;
}

.area-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.area-list div {
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(23, 32, 42, 0.08);
  background: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.section-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 3rem;
}

.section-colors {
  display: block;
}

.color-copy {
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: 1.8rem;
  display: grid;
  gap: 1rem;
}

.color-copy-full {
  width: 100%;
  max-width: none;
}

.color-copy p:last-of-type {
  margin-bottom: 0;
}

.color-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.2rem;
  align-items: center;
}

.color-visual {
  display: grid;
  grid-template-columns: repeat(2, 26px);
  gap: 0.45rem;
  align-content: center;
  justify-items: center;
  min-width: 72px;
}

.color-visual-icon,
.color-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  box-shadow:
    0 10px 18px rgba(20, 27, 36, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.color-visual-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #2f465f 100%);
}

.color-visual-icon svg {
  width: 14px;
  height: 14px;
}

.color-swatch-one {
  background: #d8c2aa;
}

.color-swatch-two {
  background: #8ea4be;
}

.color-swatch-three {
  background: #8b6b5c;
}

.color-swatch-four {
  background: #dfe6cf;
}

.color-visualizer-button {
  width: fit-content;
  min-width: 0;
  justify-self: start;
  padding-inline: 1.05rem;
}

.contact-links {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.contact-links a {
  color: var(--accent-deep);
  font-weight: 800;
}

.contact-form {
  padding: 1.7rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0 2rem;
  border-top: 1px solid rgba(23, 32, 42, 0.08);
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 700;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  width: 100%;
  padding-top: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-meta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--accent-deep);
  font-weight: 800;
}

.footer-meta-text {
  text-decoration: none;
}

.footer-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #2f465f 100%);
  box-shadow: 0 10px 22px rgba(47, 70, 95, 0.18);
}

.footer-icon-circle svg {
  width: 16px;
  height: 16px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .section-contact,
  .service-grid,
  .value-grid,
  .project-grid,
  .area-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav {
    gap: 1rem;
  }

}

@media (max-width: 760px) {
  .site-header {
    min-height: 0;
  }

  .nav-wrap {
    flex-wrap: wrap;
    min-height: 48px;
    padding: 0 0 0.24rem;
    align-items: center;
  }

  .site-header.is-revealed .nav-wrap {
    padding-bottom: 0.85rem;
  }

  .brand {
    width: 186px;
    min-height: 36px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-top: 0.7rem;
    padding: 0;
    border-top: 0;
  }

  .site-nav.is-open {
    display: grid;
    gap: 0.3rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
  }

  .site-nav a {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    font-size: 1rem;
    line-height: 1.1;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-cta {
    display: none;
  }

  .section-contact,
  .service-grid,
  .value-grid,
  .project-grid,
  .area-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 1.5rem;
  }

  .hero-copy,
  .contact-form {
    padding: 1.3rem;
  }

  .hero-copy {
    min-height: auto;
  }

  .color-header {
    grid-template-columns: 1fr;
  }

  .hero-brand-mark {
    width: 112px;
    height: 112px;
    margin-bottom: 0.9rem;
  }

  .hero-brand-mark img {
    width: 112px;
    height: 112px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.3rem);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    font-size: 0.86rem;
  }

  .footer-icon-circle {
    width: 29px;
    height: 29px;
  }
}
