:root {
  --ink: #20252b;
  --muted: #5d6670;
  --paper: #f6f2ea;
  --white: #ffffff;
  --line: #d9dedf;
  --charcoal: #15191d;
  --blue: #174d6c;
  --green: #4d6f4f;
  --rust: #b4572c;
  --gold: #d5a446;
  --shadow: 0 18px 46px rgba(21, 25, 29, 0.13);
  --button-shadow: 0 12px 26px rgba(21, 25, 29, 0.16);
  --button-shadow-strong: 0 18px 38px rgba(21, 25, 29, 0.22);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px clamp(16px, 4vw, 44px);
  background: rgba(246, 242, 234, 0.92);
  border-bottom: 1px solid rgba(21, 25, 29, 0.1);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(21, 25, 29, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: var(--charcoal);
  border-radius: 6px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 7px;
  color: #373e45;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(21, 25, 29, 0.12);
}

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

.site-nav a.active {
  color: var(--white);
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.header-phone {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #12384f);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(23, 77, 108, 0.18);
  font-weight: 850;
  line-height: 1;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.hero,
.page-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 74svh;
  overflow: hidden;
  color: var(--white);
}

.page-hero {
  min-height: 46svh;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(15, 18, 21, 0.9), rgba(15, 18, 21, 0.62) 52%, rgba(15, 18, 21, 0.2)),
    linear-gradient(0deg, rgba(15, 18, 21, 0.24), rgba(15, 18, 21, 0.12));
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) 0 clamp(48px, 8vw, 94px);
}

.page-hero .hero-content {
  padding-block: clamp(62px, 8vw, 104px);
}

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

.hero .eyebrow,
.page-hero .eyebrow {
  color: #ffd0a9;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(2.55rem, 6vw, 5.55rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.35rem, 5vw, 4.45rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.95rem, 3.8vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.hero-copy,
.page-hero-copy {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.06rem, 2vw, 1.27rem);
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
}

.button {
  min-height: 50px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: var(--button-shadow);
  line-height: 1.1;
  cursor: pointer;
  text-align: center;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, #c86638, var(--rust));
  box-shadow: 0 16px 34px rgba(180, 87, 44, 0.28);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.42);
}

.button-dark {
  color: var(--white);
  background: linear-gradient(135deg, #222930, var(--charcoal));
}

.button-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.button-light-outline {
  color: var(--charcoal);
  border-color: rgba(21, 25, 29, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(21, 25, 29, 0.09);
}

.button:hover,
.button:focus-visible,
.header-phone:hover,
.header-phone:focus-visible {
  transform: translateY(-1px);
}

.button:hover,
.button:focus-visible {
  box-shadow: var(--button-shadow-strong);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(135deg, #d06f41, #a94720);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-light-outline:hover,
.button-light-outline:focus-visible {
  background: var(--white);
  border-color: rgba(21, 25, 29, 0.18);
}

.button-dark:hover,
.button-dark:focus-visible {
  background: linear-gradient(135deg, #2a323a, #101317);
}

.button-outline:hover,
.button-outline:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.92);
}

.button:active,
.header-phone:active,
.site-nav a:active {
  transform: translateY(0);
}

.button:focus-visible,
.header-phone:focus-visible,
.site-nav a:focus-visible,
.mobile-cta a:focus-visible,
.contact-methods a:focus-visible {
  outline: 3px solid rgba(213, 164, 70, 0.42);
  outline-offset: 3px;
}

.hero-actions,
.cluster,
.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 790px;
  margin-top: 28px;
}

.trust-strip span {
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(21, 25, 29, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 800;
}

.intro-band {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 36px));
  margin: -34px auto 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-band strong,
.intro-band span {
  display: block;
}

.intro-band strong {
  margin-bottom: 5px;
  font-size: 1.08rem;
}

.intro-band span,
.muted,
.section-lead,
.card p,
.case-card p,
.review-card,
.fact-card p,
.service-detail p,
.process-card p,
.faq-list p,
.contact-copy p,
.site-footer p {
  color: var(--muted);
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 118px) 0;
}

.section.compact {
  padding-block: clamp(48px, 7vw, 80px);
}

.section-top {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(26px, 5vw, 70px);
  align-items: end;
  margin-bottom: 28px;
}

.section-lead {
  max-width: 730px;
  font-size: 1.05rem;
}

.grid-2,
.grid-3,
.grid-4,
.case-grid,
.service-grid,
.review-grid,
.facts-grid,
.gallery-grid,
.process-grid {
  display: grid;
  gap: 18px;
}

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

.grid-3,
.case-grid,
.review-grid,
.facts-grid,
.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4,
.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.case-card,
.review-card,
.fact-card,
.service-detail,
.process-card,
.faq-list details,
.estimate-form,
.gallery-item,
.contact-card,
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card,
.case-card,
.service-detail,
.process-card,
.fact-card,
.contact-card,
.stat-card {
  overflow: hidden;
}

.card img,
.case-card img,
.service-detail img,
.gallery-item img {
  width: 100%;
  object-fit: cover;
}

.card img,
.case-card img {
  aspect-ratio: 4 / 3;
}

.service-detail img {
  aspect-ratio: 16 / 10;
}

.card-body,
.case-card-body,
.service-detail-body,
.contact-card,
.stat-card {
  padding: 22px;
}

.card:hover,
.case-card:hover {
  box-shadow: 0 14px 34px rgba(21, 25, 29, 0.1);
}

.text-link {
  color: var(--blue);
  width: fit-content;
  gap: 7px;
  border-radius: 999px;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.text-link::after {
  content: ">";
  color: var(--rust);
  transition: transform 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--rust);
  transform: translateX(1px);
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(2px);
}

.about-split,
.case-study-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 6vw, 76px);
  align-items: start;
}

.about-image img,
.side-image img {
  width: 100%;
  min-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.proof-list span {
  padding: 14px;
  background: #ece6da;
  border: 1px solid #d9cfbd;
  border-radius: 6px;
  font-weight: 850;
}

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

.dark-section .section {
  padding-block: clamp(72px, 10vw, 116px);
}

.dark-section .eyebrow {
  color: #ffd0a9;
}

.dark-section p,
.dark-section .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

.dark-section .case-card p {
  color: var(--muted);
}

.dark-section .case-card .tag {
  color: var(--green);
}

.review-card {
  margin: 0;
  padding: 26px;
  color: var(--ink);
}

.review-card blockquote {
  margin: 0 0 18px;
  font-size: 1.03rem;
}

.review-card figcaption {
  color: var(--green);
  font-weight: 850;
}

.process-section {
  background: #e5ebe3;
}

.process-grid {
  padding: 0;
  list-style: none;
}

.process-card {
  padding: 26px;
}

.process-card span {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--rust);
  font-weight: 900;
}

.facts-grid {
  margin-top: 24px;
}

.fact-card {
  padding: 22px;
}

.fact-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.case-meta span,
.tag {
  display: inline-flex;
  padding: 8px 10px;
  color: var(--green);
  background: #e8eee6;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
  overflow: hidden;
}

.gallery-item img {
  aspect-ratio: 4 / 3;
}

.gallery-item figcaption {
  padding: 13px 16px 15px;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-summary {
  position: sticky;
  top: 94px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-summary dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.project-summary dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.project-summary dd {
  margin: 4px 0 0;
  font-weight: 780;
}

.service-list {
  display: grid;
  gap: 18px;
}

.service-detail {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
}

.service-detail ul,
.check-list {
  margin: 16px 0 0;
  padding-left: 20px;
}

.service-detail li,
.check-list li {
  margin-bottom: 8px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.faq-list p {
  margin: 14px 0 0;
}

.cta-band {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto clamp(72px, 10vw, 112px);
  padding: clamp(28px, 5vw, 46px);
  color: var(--white);
  background: var(--blue);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  max-width: 760px;
  margin-bottom: 8px;
}

.cta-band p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

.contact-layout {
  align-items: start;
}

.contact-methods {
  margin: 24px 0;
}

.contact-methods a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 17px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(21, 25, 29, 0.12);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(21, 25, 29, 0.08);
  font-weight: 850;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.contact-methods a:hover,
.contact-methods a:focus-visible {
  background: var(--white);
  border-color: rgba(21, 25, 29, 0.18);
  box-shadow: 0 16px 32px rgba(21, 25, 29, 0.12);
  transform: translateY(-1px);
}

.estimate-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow);
}

.estimate-form label {
  display: grid;
  gap: 7px;
  font-size: 0.92rem;
  font-weight: 850;
}

.span-2 {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  color: var(--ink);
  background: #fbfaf6;
  border: 1px solid #cbd2d8;
  border-radius: 6px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(180, 87, 44, 0.22);
  border-color: var(--rust);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: start;
  padding: 34px clamp(18px, 4vw, 44px);
  color: var(--white);
  background: var(--charcoal);
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
}

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

.mobile-cta {
  display: none;
}

@media (max-width: 1040px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

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

  .section-top,
  .about-split,
  .case-study-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .project-summary {
    position: static;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .site-header {
    position: sticky;
    gap: 14px;
    padding: 12px 14px 10px;
    background: rgba(246, 242, 234, 0.9);
  }

  .brand small,
  .header-phone {
    display: none;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 0.88rem;
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .site-nav {
    gap: 8px;
    margin-inline: -14px;
    padding: 2px 14px 4px;
    font-size: 0.86rem;
    scroll-snap-type: x proximity;
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 36px), transparent 100%);
  }

  .site-nav a {
    min-height: 36px;
    padding: 8px 12px;
    white-space: nowrap;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(21, 25, 29, 0.1);
  }

  .hero,
  .page-hero {
    min-height: 68svh;
  }

  .page-hero {
    min-height: 44svh;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(15, 18, 21, 0.88), rgba(15, 18, 21, 0.52)),
      linear-gradient(90deg, rgba(15, 18, 21, 0.74), rgba(15, 18, 21, 0.18));
  }

  .hero-content {
    width: min(100% - 28px, var(--max));
    padding-block: clamp(52px, 14vw, 82px) calc(clamp(34px, 12vw, 58px) + 72px);
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3.45rem);
  }

  .page-hero h1 {
    font-size: clamp(2rem, 9.8vw, 3rem);
  }

  .hero-copy,
  .page-hero-copy,
  .section-lead {
    font-size: 1rem;
  }

  .hero-actions,
  .cluster,
  .contact-methods {
    gap: 10px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions .button-primary {
    grid-column: 1 / -1;
  }

  .hero-actions .button-secondary,
  .hero-actions .button-outline {
    padding-inline: 12px;
    font-size: 0.9rem;
  }

  .button {
    min-height: 52px;
    padding: 15px 18px;
    font-size: 0.95rem;
  }

  .hero-actions .button,
  .intro-band .button,
  .cta-band .button,
  .cluster .button,
  .estimate-form .button {
    width: 100%;
  }

  .trust-strip {
    display: none;
  }

  .intro-band,
  .cta-band {
    display: block;
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .intro-band {
    margin-top: 0;
  }

  .intro-band .button,
  .cta-band .button {
    margin-top: 18px;
  }

  .section,
  .cta-band {
    width: min(100% - 28px, var(--max));
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .case-grid,
  .service-grid,
  .review-grid,
  .facts-grid,
  .gallery-grid,
  .process-grid,
  .faq-list,
  .estimate-form,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .proof-list {
    grid-template-columns: 1fr;
  }

  .about-image img,
  .side-image img {
    min-height: 330px;
  }

  .estimate-form {
    padding: 18px;
  }

  input,
  select,
  textarea {
    min-height: 50px;
    border-radius: 8px;
  }

  .contact-methods {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-footer {
    gap: 18px;
  }

  .mobile-cta {
    position: fixed;
    inset: auto max(10px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    padding: 7px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(21, 25, 29, 0.12);
    border-radius: 999px;
    box-shadow: 0 18px 42px rgba(21, 25, 29, 0.2);
    backdrop-filter: blur(18px);
  }

  .mobile-cta a {
    display: grid;
    place-items: center;
    min-height: 46px;
    padding: 12px 10px;
    color: var(--white);
    background: var(--charcoal);
    border-radius: 999px;
    text-align: center;
    font-weight: 900;
    font-size: 0.9rem;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(21, 25, 29, 0.16);
  }

  .mobile-cta a:first-child {
    background: var(--rust);
  }

  .mobile-cta a:last-child {
    background: var(--blue);
  }

  .mobile-cta a + a {
    border-left: 0;
  }
}
