 :root {
   --bg: #f5f2ec;
   --bg-alt: #ece7de;
   --surface: #ffffff;
   --surface-soft: #f8f5ef;
   --text: #181d22;
   --text-muted: #5d6670;
   --text-soft: #78828d;
   --line: #d7d0c5;
   --line-strong: #c8bfb0;
   --accent: #8c7458;
   --accent-strong: #6e593f;
   --dark: #12161a;
   --dark-soft: #1d242b;
   --success: #3e5d4d;
   --shadow-sm: 0 8px 20px rgba(18, 22, 26, 0.045);
   --shadow-md: 0 14px 32px rgba(18, 22, 26, 0.065);
   --shadow-lg: 0 20px 44px rgba(18, 22, 26, 0.08);
   --radius-sm: 0.65rem;
   --radius-md: 1rem;
   --radius-lg: 1.35rem;
   --radius-xl: 1.65rem;
   --wrapper: min(1160px, calc(100vw - 2rem));
   --section-space: clamp(4rem, 6vw, 7rem);
   --header-height: 5.25rem;
   --sticky-offset: calc(var(--header-height) + 1rem);
   --font-body: "Manrope", "Segoe UI", sans-serif;
   --font-display: "Fraunces", Georgia, serif;
 }

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

 html {
   scroll-behavior: smooth;
   scroll-padding-top: var(--sticky-offset);
 }

 body {
   margin: 0;
   font-family: var(--font-body);
   color: var(--text);
   background: var(--bg);
   line-height: 1.65;
   padding-top: var(--header-height);
 }

 body.nav-open {
   overflow: hidden;
 }

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

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

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

 button {
   cursor: pointer;
 }

 main {
   display: block;
 }

 .wrapper {
   width: var(--wrapper);
   margin: 0 auto;
 }

 .site-header {
   position: fixed;
   inset: 0 0 auto;
   z-index: 110;
   backdrop-filter: blur(8px);
   background: rgba(248, 245, 239, 0.96);
   border-bottom: 1px solid rgba(200, 191, 176, 0.85);
   transition: box-shadow 180ms ease, background 180ms ease;
 }

 .site-header.is-scrolled {
   background: rgba(248, 245, 239, 0.98);
   box-shadow: 0 6px 18px rgba(18, 22, 26, 0.06);
 }

 .header-inner {
   min-height: var(--header-height);
   display: grid;
   grid-template-columns: auto 1fr auto;
   gap: 1.5rem;
   align-items: center;
   padding: 0.45rem 0;
 }

 .brand {
   display: inline-flex;
   align-items: center;
   gap: 0.95rem;
   min-width: 0;
 }

 .brand__mark {
   width: 3.85rem;
   height: 3.85rem;
   border-radius: 50%;
   box-shadow: 0 4px 14px rgba(18, 22, 26, 0.06);
  }

 .brand__text {
   display: grid;
   gap: 0.12rem;
 }

 .brand__name {
   font-size: 1.02rem;
   font-weight: 800;
   letter-spacing: 0.01em;
 }

 .brand__tag {
   font-size: 0.78rem;
   color: var(--text-soft);
 }

 .desktop-nav {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 0.35rem;
   padding: 0.35rem;
   border-radius: 0.75rem;
   background: rgba(255, 255, 255, 0.92);
   border: 1px solid rgba(200, 191, 176, 0.85);
   box-shadow: none;
 }

 .nav-link,
 .nav-group > a,
 .nav-toggle-label {
   position: relative;
   display: inline-flex;
   align-items: center;
   gap: 0.35rem;
   padding: 0.7rem 0.95rem;
   border-radius: 999px;
   color: var(--text-muted);
   font-size: 0.94rem;
   font-weight: 600;
   transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  }

 .nav-link:hover,
 .nav-group:hover > a,
 .nav-group:focus-within > a,
 .nav-link[aria-current="page"],
 .nav-group > a[aria-current="page"] {
   color: var(--text);
   background: rgba(255, 255, 255, 1);
   box-shadow: inset 0 0 0 1px rgba(140, 116, 88, 0.18);
 }

 .nav-group {
   position: relative;
 }

 .nav-group::after {
   content: "";
   position: absolute;
   top: 100%;
   left: 0;
   width: max(100%, 15rem);
   height: 0.85rem;
 }

 .nav-dropdown {
   position: absolute;
   top: calc(100% + 0.2rem);
   left: 0;
   min-width: 15rem;
   padding: 0.65rem;
   display: grid;
   gap: 0.3rem;
   background: rgba(255, 255, 255, 0.98);
   border: 1px solid rgba(200, 191, 176, 0.9);
   border-radius: var(--radius-md);
   box-shadow: var(--shadow-md);
   z-index: 20;
   opacity: 0;
   pointer-events: none;
   transform: translateY(0.5rem);
   transition: opacity 180ms ease, transform 180ms ease;
 }

 .nav-group:hover .nav-dropdown,
 .nav-group:focus-within .nav-dropdown {
   opacity: 1;
   pointer-events: auto;
   transform: translateY(0);
 }

 .nav-dropdown a {
   display: block;
   padding: 0.75rem 0.85rem;
   border-radius: 0.85rem;
   color: var(--text-muted);
   font-size: 0.92rem;
   font-weight: 600;
 }

 .nav-dropdown a:hover,
 .nav-dropdown a[aria-current="page"] {
   background: var(--surface-soft);
   color: var(--text);
 }

 .header-actions {
   display: flex;
   align-items: center;
   gap: 0.85rem;
 }

 .phone-link {
   display: inline-flex;
   align-items: center;
   min-height: 2.7rem;
   padding: 0.2rem 0.95rem;
   border-radius: 999px;
   border: 1px solid rgba(200, 191, 176, 0.85);
   background: rgba(255, 255, 255, 0.95);
   box-shadow: none;
   font-size: 0.92rem;
   font-weight: 700;
   color: var(--text);
 }

 .menu-toggle {
   display: none;
   width: 2.9rem;
   height: 2.9rem;
   border: 1px solid var(--line);
   background: rgba(255, 255, 255, 0.72);
   border-radius: 999px;
   color: var(--text);
   align-items: center;
   justify-content: center;
   padding: 0;
 }

 .menu-toggle svg {
   width: 1.15rem;
   height: 1.15rem;
 }

 .mobile-nav {
   display: none;
   border-top: 1px solid rgba(200, 191, 176, 0.9);
   background: rgba(248, 245, 239, 0.98);
  }

 .mobile-nav nav {
   padding: 1rem 0 1.35rem;
   display: grid;
   gap: 0.85rem;
  }

 .mobile-nav a,
 .mobile-nav span {
   display: block;
   padding: 0.35rem 0;
 }

 .mobile-nav a {
   color: var(--text);
   font-weight: 700;
  }

 .mobile-nav .mobile-subnav {
   padding-left: 0.95rem;
   border-left: 1px solid var(--line);
   display: grid;
   gap: 0.25rem;
 }

 .mobile-nav .mobile-subnav a {
   font-size: 0.95rem;
   font-weight: 600;
   color: var(--text-muted);
 }

 .button-row {
   display: flex;
   flex-wrap: wrap;
   gap: 0.9rem;
   align-items: center;
 }

 .button {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 0.5rem;
   min-height: 3.15rem;
   padding: 0.85rem 1.4rem;
   border-radius: 999px;
   font-weight: 700;
   font-size: 0.95rem;
   letter-spacing: 0.01em;
   box-shadow: 0 4px 14px rgba(18, 22, 26, 0.05);
   transition:
     transform 180ms ease,
     border-color 180ms ease,
     background 180ms ease,
     color 180ms ease,
     box-shadow 180ms ease;
  }

 .button:hover {
   transform: translateY(-1px);
   box-shadow: 0 8px 20px rgba(18, 22, 26, 0.07);
 }

 .button:focus-visible,
 .nav-link:focus-visible,
 .nav-group > a:focus-visible,
 .nav-dropdown a:focus-visible,
 .phone-link:focus-visible,
 .mobile-nav a:focus-visible,
 .inline-link:focus-visible,
 .menu-toggle:focus-visible {
   outline: 0;
   box-shadow: 0 0 0 4px rgba(140, 116, 88, 0.16);
  }

 .button--primary {
   background: var(--dark);
   color: #fff;
   border: 1px solid var(--dark);
 }

 .button--primary:hover {
   background: #232a31;
   border-color: #232a31;
 }

 .button--secondary {
   background: rgba(255, 255, 255, 0.72);
   color: var(--text);
   border: 1px solid var(--line-strong);
  }

 .button--secondary:hover {
   background: rgba(140, 116, 88, 0.08);
   border-color: var(--accent);
 }

 .button--ghost {
   background: rgba(140, 116, 88, 0.1);
   color: var(--accent-strong);
   border: 1px solid rgba(140, 116, 88, 0.18);
   box-shadow: none;
  }

 .button--sm {
   min-height: 2.7rem;
   padding-inline: 1.05rem;
   font-size: 0.9rem;
 }

 .hero {
   position: relative;
   overflow: hidden;
   padding: clamp(4.4rem, 7vw, 7.4rem) 0 clamp(4.4rem, 7vw, 6.4rem);
  }

 .hero::before {
   content: "";
   position: absolute;
   inset: 0;
   background:
     radial-gradient(circle at top right, rgba(140, 116, 88, 0.09), transparent 38%),
     radial-gradient(circle at left 14%, rgba(18, 22, 26, 0.03), transparent 28%),
     linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
   pointer-events: none;
  }

 .hero--home::after {
   content: "";
   position: absolute;
   inset: auto 0 0;
   height: 7rem;
   background: linear-gradient(180deg, rgba(245, 242, 236, 0), rgba(245, 242, 236, 0.9));
   pointer-events: none;
 }

 .hero--dark {
   background: linear-gradient(180deg, #1a1f24 0%, #12161a 100%);
   color: #fff;
 }

 .hero--dark::before {
   background:
     radial-gradient(circle at top right, rgba(215, 192, 162, 0.14), transparent 30%),
     radial-gradient(circle at left 30%, rgba(255, 255, 255, 0.08), transparent 22%);
 }

 .hero__grid {
   position: relative;
   display: grid;
   grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
   gap: clamp(1.6rem, 3vw, 2.5rem);
   align-items: end;
  }

 .hero__content {
   position: relative;
   z-index: 1;
   max-width: 46rem;
   display: grid;
   gap: 0.95rem;
  }

 .hero__context {
   margin: -0.2rem 0 0.1rem;
   color: var(--text-soft);
   font-size: 0.98rem;
   font-weight: 700;
   letter-spacing: 0.01em;
 }

 .hero__kicker,
 .section-kicker {
   display: inline-flex;
   align-items: center;
   gap: 0.6rem;
   margin: 0 0 1.2rem;
   color: var(--accent-strong);
   font-size: 0.88rem;
   font-weight: 800;
   letter-spacing: 0.08em;
   text-transform: uppercase;
 }

 .hero--dark .hero__kicker {
   color: #dbc9b4;
 }

 .hero__kicker::before,
 .section-kicker::before {
   content: "";
   width: 2.5rem;
   height: 1px;
   background: currentColor;
   opacity: 0.7;
 }

 h1,
 h2,
 h3,
 h4 {
   margin: 0;
   line-height: 1.08;
   letter-spacing: -0.03em;
 }

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  max-width: 20ch;
  text-wrap: balance;
 }

 h2 {
   font-size: clamp(1.7rem, 3.5vw, 2.5rem);
   max-width: 26ch;
   text-wrap: balance;
 }

 h3 {
   font-size: 1.3rem;
 }

 .hero__lead,
 .section-lead {
   margin: 0.3rem 0 0;
   font-size: clamp(1.05rem, 2vw, 1.2rem);
   color: var(--text-muted);
   max-width: 42rem;
  }

 .hero__lead .inline-link {
   display: inline;
   font-size: inherit;
   text-decoration: underline;
   text-underline-offset: 0.18em;
 }

 .hero__lead .inline-link::after {
   content: none;
 }

 .hero--dark .hero__lead {
   color: rgba(255, 255, 255, 0.76);
  }

 .hero__actions {
   margin-top: 1.15rem;
  }

 .hero__meta {
   margin: 0.5rem 0 0;
   display: flex;
   flex-wrap: wrap;
   gap: 0.8rem;
  }

 .meta-pill {
   padding: 0.78rem 1rem;
   border-radius: 999px;
   background: rgba(255, 255, 255, 0.8);
   border: 1px solid rgba(200, 191, 176, 0.76);
   color: var(--text);
   font-size: 0.9rem;
   font-weight: 700;
   box-shadow: none;
  }

 .hero--dark .meta-pill {
   background: rgba(255, 255, 255, 0.08);
   border-color: rgba(255, 255, 255, 0.14);
   color: rgba(255, 255, 255, 0.86);
 }

 .hero-panel {
   position: relative;
   z-index: 1;
   padding: 2rem;
   background: rgba(255, 255, 255, 0.96);
   border: 1px solid rgba(200, 191, 176, 0.85);
   border-radius: var(--radius-xl);
   box-shadow: var(--shadow-sm);
   display: grid;
   gap: 1rem;
  }

 .hero-panel h2,
 .hero-panel h3 {
   font-size: 1.3rem;
   max-width: none;
 }

 .hero-panel p,
 .hero-panel li {
   color: var(--text-muted);
  }

 .hero-panel__lead {
   margin: 0;
   line-height: 1.6;
  }

 .hero-panel ul {
   margin: 0;
   padding: 0;
   list-style: none;
   display: grid;
   gap: 0.75rem;
  }

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

 .hero-panel__contact {
   display: grid;
   gap: 0.28rem;
   padding: 0.95rem 1rem;
   border-radius: 1rem;
   background: rgba(255, 255, 255, 0.68);
   border: 1px solid rgba(200, 191, 176, 0.72);
 }

 .hero-panel__label {
   color: var(--text-soft);
   font-size: 0.76rem;
   font-weight: 800;
   letter-spacing: 0.08em;
   text-transform: uppercase;
 }

 .hero-panel__value {
   color: var(--text);
   font-size: 1rem;
   font-weight: 800;
   line-height: 1.3;
 }

 .motto-note {
   margin-top: 0.15rem;
   padding-top: 1.35rem;
   border-top: 1px solid rgba(140, 116, 88, 0.18);
  }

 .motto-note__label {
   display: inline-flex;
   margin-bottom: 0.55rem;
   color: var(--accent-strong);
   font-size: 0.76rem;
   font-weight: 800;
   letter-spacing: 0.08em;
   text-transform: uppercase;
 }

 .motto-note p {
   margin: 0;
   font-family: var(--font-display);
   font-size: clamp(1.25rem, 2.2vw, 1.7rem);
   line-height: 1.18;
   color: var(--dark-soft);
 }

 .hero-panel li {
   display: flex;
   gap: 0.7rem;
   align-items: flex-start;
 }

 .hero-panel li::before {
   content: "";
   width: 0.55rem;
   height: 0.55rem;
   border-radius: 50%;
   background: var(--accent);
   margin-top: 0.5rem;
   flex: 0 0 auto;
 }

 .hero-mark {
   position: absolute;
   right: -2rem;
   bottom: -4.5rem;
   width: min(28rem, 40vw);
   opacity: 0.04;
   pointer-events: none;
  }

 .hero--dark .hero-mark {
   opacity: 0.08;
   filter: brightness(2.4);
 }

 .section {
   padding: var(--section-space) 0;
 }

 .section--soft {
   background: rgba(236, 231, 222, 0.45);
 }

 .section--dark {
   background: linear-gradient(180deg, #1b2026 0%, #11161a 100%);
   color: #fff;
 }

 .section--dark p,
 .section--dark li {
   color: rgba(255, 255, 255, 0.78);
 }

 .section--dark .section-kicker {
   color: #dbc9b4;
 }

 .section--dark .cta-band {
   background: rgba(255, 255, 255, 0.06);
   border-color: rgba(255, 255, 255, 0.12);
   box-shadow: none;
 }

 .section--dark .button--primary {
   background: #f5f2ec;
   color: var(--text);
   border-color: #f5f2ec;
 }

 .section--dark .button--primary:hover {
   background: #e9e2d8;
   border-color: #e9e2d8;
 }

 .section--dark .button--secondary {
   color: #fff;
   border-color: rgba(255, 255, 255, 0.22);
 }

 .section--dark .button--secondary:hover {
   color: #fff;
   background: rgba(255, 255, 255, 0.08);
   border-color: rgba(255, 255, 255, 0.3);
 }

 .section-header {
   display: grid;
   gap: 1rem;
   margin-bottom: 2.75rem;
  }

 .section-header--center {
   text-align: center;
   justify-items: center;
 }

 .stat-band {
   display: grid;
   grid-template-columns: repeat(4, minmax(0, 1fr));
   gap: 1rem;
   margin-top: -1.65rem;
   position: relative;
   z-index: 2;
  }

 .stat-card {
   padding: 1.45rem 1.35rem;
   background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 245, 239, 0.88));
   border: 1px solid rgba(200, 191, 176, 0.82);
   border-radius: var(--radius-md);
   box-shadow: var(--shadow-sm);
   display: grid;
   gap: 0.45rem;
  }

 .stat-card strong {
   display: block;
   font-size: 1.18rem;
   letter-spacing: -0.03em;
  }

 .stat-card span {
   color: var(--text-muted);
   font-size: 0.92rem;
   font-weight: 600;
  }

 .grid-2,
 .grid-3,
 .grid-4 {
   display: grid;
   gap: 1.25rem;
 }

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

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

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

 .surface-card {
   padding: 1.65rem;
   background: rgba(255, 255, 255, 0.8);
   border: 1px solid rgba(200, 191, 176, 0.82);
   border-radius: var(--radius-md);
   box-shadow: var(--shadow-sm);
  }

 .surface-card--soft {
   background: rgba(248, 245, 239, 0.9);
 }

 .surface-card--dark {
   background: rgba(255, 255, 255, 0.07);
   border-color: rgba(255, 255, 255, 0.12);
   box-shadow: none;
 }

 .surface-card--dark h3 {
   color: #fff;
 }

 .card-tag {
   display: inline-flex;
   align-items: center;
   padding: 0.38rem 0.7rem;
   border-radius: 999px;
   background: rgba(140, 116, 88, 0.12);
   color: var(--accent-strong);
   font-size: 0.8rem;
   font-weight: 800;
   letter-spacing: 0.06em;
   text-transform: uppercase;
   margin-bottom: 1rem;
 }

 .service-card {
   display: grid;
   gap: 0.95rem;
   min-height: 100%;
  }

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

.service-card .inline-link {
  margin-top: auto;
 }

 .service-card--visual {
   padding: 0;
   gap: 0;
   overflow: hidden;
   border-radius: var(--radius-xl);
   background: rgba(255, 255, 255, 0.98);
   box-shadow: var(--shadow-sm);
 }

.service-card__image,
.project-card__image {
   position: relative;
   overflow: hidden;
   aspect-ratio: 5 / 4;
   background: #ddd6ca;
   border-bottom: 1px solid rgba(200, 191, 176, 0.76);
 }

.service-card__image img,
.project-card__image img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: var(--card-image-position, center center);
   display: block;
 }

.service-card__body,
.project-card--photo .project-card__body {
   padding: 1.3rem 1.35rem 1.45rem;
   display: flex;
   flex-direction: column;
   align-items: stretch;
   gap: 0.65rem;
 }

.service-card__label,
.project-card__label {
   display: inline-flex;
   align-items: center;
   gap: 0.5rem;
   justify-self: start;
   color: var(--accent-strong);
   font-size: 0.76rem;
   font-weight: 800;
   letter-spacing: 0.08em;
   text-transform: uppercase;
 }

.service-card__label::before,
.project-card__label::before {
   content: "";
   width: 1.8rem;
   height: 1px;
   background: currentColor;
   opacity: 0.55;
 }

 .project-card[data-category="roofing"] .project-card__label {
   color: var(--success);
 }

.service-card--visual h3,
.project-card--photo h3 {
   font-size: 1.24rem;
   line-height: 1.22;
 }

 .service-card--visual h3 {
   min-height: 2.95rem;
 }

.service-card--visual p,
.project-card--photo p {
   margin: 0;
   color: var(--text-muted);
   font-size: 0.98rem;
   line-height: 1.7;
 }

 .inline-link {
   display: inline-flex;
   align-items: center;
   gap: 0.45rem;
   color: var(--accent-strong);
   font-weight: 800;
   font-size: 0.94rem;
 }

 .inline-link::after {
   content: "\2192";
 }

 .service-split {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 1.4rem;
  }

 .service-panel {
   padding: 2rem;
   border-radius: var(--radius-xl);
   border: 1px solid rgba(200, 191, 176, 0.84);
   background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 245, 239, 0.92));
   box-shadow: var(--shadow-sm);
   display: grid;
   gap: 1rem;
  }

 .service-panel h3 {
   margin-bottom: 0;
  }

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

 .service-panel ul,
 .check-list {
   margin: 0.1rem 0 0;
   padding: 0;
   list-style: none;
   display: grid;
   gap: 0.72rem;
  }

 .service-panel li,
 .check-list li {
   display: flex;
   gap: 0.75rem;
   color: var(--text-muted);
 }

 .service-panel li::before,
 .check-list li::before {
   content: "";
   width: 0.58rem;
   height: 0.58rem;
   flex: 0 0 auto;
   border-radius: 50%;
   background: var(--accent);
   margin-top: 0.45rem;
  }

 .service-panel__footer {
   margin-top: auto;
   padding-top: 1.3rem;
   border-top: 1px solid rgba(200, 191, 176, 0.64);
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between;
   gap: 0.85rem;
   align-items: center;
 }

 .service-panel__footer span {
   color: var(--text-soft);
   font-size: 0.9rem;
   font-weight: 700;
 }

 .trust-grid .surface-card,
 .testimonial-card,
 .project-card,
 .process-card,
 .value-card {
   min-height: 100%;
  }

 .trust-grid h3,
 .testimonial-card h3,
 .process-card h3,
 .value-card h3 {
   margin-bottom: 0.55rem;
 }

 .testimonial-card {
   position: relative;
   display: grid;
   gap: 1rem;
   padding-top: 2rem;
  }

 .testimonial-card blockquote {
   margin: 0;
   color: var(--text-muted);
   font-size: 1rem;
   line-height: 1.65;
   text-wrap: pretty;
 }

 .testimonial-card blockquote::before {
   content: "\201C";
   display: block;
   margin-bottom: 0.5rem;
   color: var(--accent-strong);
   font-family: var(--font-display);
   font-size: 2.9rem;
   line-height: 0.8;
  }

 .testimonial-card footer {
   padding-top: 0.95rem;
   border-top: 1px solid rgba(200, 191, 176, 0.64);
   color: var(--text);
   font-weight: 800;
   font-size: 0.92rem;
  }

 .project-grid {
   display: grid;
   grid-template-columns: repeat(3, minmax(0, 1fr));
   gap: 1.25rem;
  }

.project-grid--portfolio {
   gap: 1.5rem;
   align-items: start;
 }

.recent-work__header {
  max-width: 42rem;
}

.recent-work__header .section-lead {
  max-width: 36rem;
}

.recent-work-grid {
  align-items: stretch;
}

.recent-work-grid .project-card--photo {
  grid-template-rows: auto 1fr;
}

.recent-work-grid .project-card__image {
  aspect-ratio: 4 / 3;
}

.recent-work-grid .project-card__body {
  min-height: 10.25rem;
  padding: 1.3rem 1.35rem 1.45rem;
}

.recent-work-grid .project-card--photo h3 {
  min-height: 2.6rem;
}

.recent-work-grid .project-card--photo p {
  max-width: 31ch;
}

.trusted-accredited__header,
.areas-cover__copy {
  max-width: 46rem;
  margin-inline: auto;
}

.trusted-accredited__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.trusted-accredited__list li {
  display: flex;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding-right: 1.05rem;
}

.trust-pill__icon {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--accent-strong);
  background: rgba(140, 116, 88, 0.1);
  border: 1px solid rgba(140, 116, 88, 0.16);
}

.trust-pill__icon svg {
  width: 0.88rem;
  height: 0.88rem;
}

 .project-grid--portfolio .project-card__image {
   aspect-ratio: 4 / 3;
 }

.project-card--photo {
   position: relative;
   overflow: hidden;
   min-height: 100%;
   border-radius: var(--radius-xl);
   background: rgba(255, 255, 255, 0.98);
   border: 1px solid rgba(200, 191, 176, 0.84);
   box-shadow: var(--shadow-sm);
   display: grid;
   grid-template-rows: auto minmax(9.5rem, auto);
   transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
 }

.project-card--photo:hover {
   transform: translateY(-1px);
   box-shadow: var(--shadow-md);
   border-color: rgba(140, 116, 88, 0.28);
 }

.project-card--photo .project-card__body {
  padding: 1.25rem 1.3rem 1.35rem;
  min-height: 9.5rem;
  background: rgba(255, 255, 255, 0.98);
  align-content: start;
}

 .project-card {
   position: relative;
   overflow: hidden;
   min-height: 100%;
   border-radius: var(--radius-xl);
   background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 239, 232, 0.92));
   border: 1px solid rgba(200, 191, 176, 0.84);
   box-shadow: var(--shadow-sm);
   display: grid;
   grid-template-rows: minmax(8.75rem, 9.75rem) 1fr;
   transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  }

 .project-card::before {
   display: none;
  }

 .project-card:hover {
   transform: translateY(-1px);
   box-shadow: var(--shadow-md);
   border-color: rgba(140, 116, 88, 0.28);
 }

 .project-card__media {
   position: relative;
   overflow: hidden;
   border-bottom: 1px solid rgba(200, 191, 176, 0.76);
 }

 .project-card__media::before,
 .project-card__media::after {
   content: "";
   position: absolute;
   pointer-events: none;
 }

 .project-card__media::before {
   inset: 0;
   background:
     linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
     radial-gradient(circle at top left, rgba(255, 255, 255, 0.34), transparent 34%);
 }

 .project-card__media::after {
   right: -0.9rem;
   bottom: -1.2rem;
   width: 7.5rem;
   height: 7.5rem;
   background: url("/marlborough_builders_emblem_only.svg") center/contain no-repeat;
   opacity: 0.08;
 }

 .project-card[data-category="joinery"] .project-card__media {
   background:
     linear-gradient(135deg, rgba(151, 122, 86, 0.9), rgba(79, 63, 44, 0.9)),
     linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
 }

 .project-card[data-category="roofing"] .project-card__media {
   background:
     linear-gradient(135deg, rgba(71, 95, 86, 0.92), rgba(28, 41, 47, 0.92)),
     linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
 }

 .project-card__body {
   padding: 1.45rem;
   display: grid;
   align-content: start;
   gap: 0.75rem;
 }

 .project-card__category {
   padding: 0.38rem 0.7rem;
   border-radius: 999px;
   background: rgba(255, 255, 255, 0.88);
   border: 1px solid rgba(200, 191, 176, 0.84);
   color: var(--accent-strong);
   font-size: 0.72rem;
   font-weight: 800;
   letter-spacing: 0.08em;
   text-transform: uppercase;
   justify-self: start;
 }

 .project-card p {
   margin: 0;
   color: var(--text-muted);
  }

 .project-card__meta {
   color: var(--text-soft);
   font-size: 0.9rem;
   font-weight: 700;
 }

 .project-card[data-category="roofing"] .project-card__category {
   color: var(--success);
  }

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

 .process-card {
   padding: 1.6rem;
   border-radius: var(--radius-md);
   background: rgba(255, 255, 255, 0.82);
   border: 1px solid rgba(200, 191, 176, 0.84);
   box-shadow: var(--shadow-sm);
  }

 .process-card__step {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 2.5rem;
   height: 2.5rem;
   margin-bottom: 1rem;
   border-radius: 50%;
   background: rgba(140, 116, 88, 0.12);
   color: var(--accent-strong);
   font-size: 0.9rem;
   font-weight: 800;
  }

 .quote-block {
   padding: clamp(1.8rem, 4vw, 2.6rem);
   border-left: 2px solid rgba(140, 116, 88, 0.44);
   background: rgba(255, 255, 255, 0.68);
   border-radius: 0 var(--radius-md) var(--radius-md) 0;
 }

 .quote-block p {
   margin: 0;
   font-family: var(--font-display);
   font-size: clamp(1.7rem, 3vw, 2.5rem);
   line-height: 1.2;
 }

 .value-card p,
 .surface-card p,
 .process-card p {
   margin: 0;
   color: var(--text-muted);
 }

 .coverage-box,
 .cta-band {
   padding: clamp(1.9rem, 3vw, 2.35rem);
   border-radius: var(--radius-xl);
   border: 1px solid rgba(200, 191, 176, 0.84);
   background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 245, 239, 0.9));
   box-shadow: var(--shadow-sm);
  }

 .cta-band {
   display: grid;
   grid-template-columns: minmax(0, 1fr) auto;
   gap: 1.8rem;
   align-items: center;
  }

 .cta-band h2 {
   max-width: 12ch;
  }

 .section-action {
   margin-top: 1.5rem;
 }

 .anchor-nav {
   position: sticky;
   top: var(--header-height);
   z-index: 90;
   background: rgba(248, 245, 239, 0.94);
   backdrop-filter: blur(14px);
   border-block: 1px solid rgba(200, 191, 176, 0.82);
 }

 .anchor-nav__inner {
   display: flex;
   gap: 0.65rem;
   padding: 0.85rem 0;
   overflow-x: auto;
   scrollbar-width: none;
 }

 .anchor-nav__inner::-webkit-scrollbar {
   display: none;
 }

 .anchor-nav a {
   white-space: nowrap;
   padding: 0.72rem 0.95rem;
   border-radius: 999px;
   color: var(--text-muted);
   background: rgba(255, 255, 255, 0.78);
   border: 1px solid rgba(200, 191, 176, 0.78);
   font-size: 0.88rem;
   font-weight: 700;
 }

 .anchor-nav a:hover {
   color: var(--text);
   border-color: rgba(140, 116, 88, 0.4);
 }

 .detail-section {
   scroll-margin-top: calc(var(--sticky-offset) + 2rem);
 }

 .detail-grid {
   display: grid;
   grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.85fr);
   gap: 1.75rem;
   align-items: center;
 }

 .detail-grid--reverse {
   grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.1fr);
 }

 .detail-copy {
   display: grid;
   gap: 1rem;
 }

 .detail-copy p {
   margin: 0;
   color: var(--text-muted);
 }

 .detail-panel {
   padding: 1.7rem;
   min-height: 18rem;
   border-radius: var(--radius-lg);
   border: 1px solid rgba(200, 191, 176, 0.84);
   background:
     radial-gradient(circle at top right, rgba(140, 116, 88, 0.16), transparent 30%),
     linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(242, 238, 231, 0.92));
   box-shadow: var(--shadow-sm);
   display: grid;
   align-content: end;
 }

 .detail-panel p {
   margin: 0;
   color: var(--text-muted);
 }

 .gallery-controls {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   justify-content: center;
   gap: 0.6rem;
   margin: 0 auto 2rem;
   padding: 0.55rem 0.65rem;
   max-width: 36rem;
   border-radius: 999px;
   background: rgba(255, 255, 255, 0.72);
   border: 1px solid rgba(200, 191, 176, 0.65);
   box-shadow: var(--shadow-sm);
 }

 .filter-button {
   flex: 1 1 auto;
   min-width: 6.5rem;
   padding: 0.78rem 1.15rem;
   border-radius: 999px;
   border: 1px solid transparent;
   background: transparent;
   color: var(--text-muted);
   font-size: 0.82rem;
   font-weight: 800;
   letter-spacing: 0.08em;
   text-transform: uppercase;
   transition:
     background 160ms ease,
     color 160ms ease,
     border-color 160ms ease,
     box-shadow 160ms ease;
 }

 .filter-button:hover {
   color: var(--text);
   background: rgba(140, 116, 88, 0.1);
 }

 .filter-button.is-active {
   color: #fff;
   background: var(--text);
   border-color: var(--text);
   box-shadow: 0 4px 14px rgba(18, 22, 26, 0.12);
 }

 .filter-button:focus-visible {
   outline: 2px solid var(--accent-strong);
   outline-offset: 2px;
 }

 @media (max-width: 520px) {
   .gallery-controls {
     flex-direction: column;
     align-items: stretch;
     border-radius: var(--radius-lg);
     max-width: none;
     margin-bottom: 1.65rem;
   }

   .filter-button {
     min-width: 0;
     width: 100%;
   }
 }

 .project-card.is-hidden {
   display: none;
 }

 .story-grid,
 .contact-layout {
   display: grid;
   grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.85fr);
   gap: 1.5rem;
 }

 .story-grid p,
 .contact-panel p,
 .contact-panel li {
   color: var(--text-muted);
 }

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

 .contact-panel {
   padding: 1.7rem;
   border-radius: var(--radius-lg);
   border: 1px solid rgba(200, 191, 176, 0.84);
   background: rgba(255, 255, 255, 0.85);
   box-shadow: var(--shadow-sm);
 }

 .contact-panel h3 {
   margin-bottom: 0.6rem;
 }

 .contact-panel + .contact-panel {
   margin-top: 1rem;
 }

 .contact-list,
 .meta-list {
   margin: 0;
   padding: 0;
   list-style: none;
   display: grid;
   gap: 0.75rem;
 }

 .contact-list li,
 .meta-list li {
   display: flex;
   justify-content: space-between;
   gap: 0.75rem;
   padding-bottom: 0.75rem;
   border-bottom: 1px solid rgba(200, 191, 176, 0.5);
 }

 .contact-list li:last-child,
 .meta-list li:last-child {
   padding-bottom: 0;
   border-bottom: 0;
 }

 .contact-list strong,
 .meta-list strong {
   color: var(--text);
 }

 .contact-list span,
 .meta-list span {
   color: var(--text-muted);
   text-align: right;
 }

 .form-card {
   padding: clamp(1.5rem, 3vw, 2rem);
   border-radius: var(--radius-lg);
   border: 1px solid rgba(200, 191, 176, 0.84);
   background: rgba(255, 255, 255, 0.88);
   box-shadow: var(--shadow-sm);
 }

 .form-card h2 {
   max-width: none;
 }

 .form-grid {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 1rem;
   margin-top: 1.5rem;
 }

 .field {
   display: grid;
   gap: 0.45rem;
 }

 .field--full {
   grid-column: 1 / -1;
 }

 .field label {
   font-size: 0.9rem;
   font-weight: 800;
   color: var(--text);
 }

 .field input,
 .field select,
 .field textarea {
   width: 100%;
   border-radius: 0.95rem;
   border: 1px solid var(--line);
   background: var(--surface-soft);
   color: var(--text);
   padding: 0.88rem 1rem;
   outline: none;
   transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
 }

 .field input:focus,
 .field select:focus,
 .field textarea:focus {
   border-color: rgba(140, 116, 88, 0.52);
   box-shadow: 0 0 0 4px rgba(140, 116, 88, 0.12);
   background: #fff;
 }

 .field textarea {
   min-height: 11rem;
   resize: vertical;
 }

 .field-note {
   margin-top: 1rem;
   font-size: 0.88rem;
   color: var(--text-soft);
 }

 .map-frame {
   width: 100%;
   height: 22rem;
   border: 0;
   border-radius: var(--radius-lg);
   box-shadow: var(--shadow-sm);
 }

 .site-footer {
   background: linear-gradient(180deg, #171c21 0%, #101418 100%);
   color: rgba(255, 255, 255, 0.82);
   padding-top: 3.3rem;
  }

 .footer-grid {
   display: grid;
   grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.75fr)) minmax(0, 1fr);
   gap: 1.6rem;
   padding-bottom: 2.2rem;
  }

 .footer-brand {
   display: grid;
   gap: 1rem;
 }

 .footer-brand__row {
   display: inline-flex;
   align-items: center;
   gap: 1rem;
  }

 .footer-brand__mark {
   width: 4.4rem;
   height: 4.4rem;
   border-radius: 50%;
 }

 .footer-brand__name {
   display: grid;
   gap: 0.2rem;
 }

 .footer-brand__name strong {
   color: #fff;
   font-size: 1.05rem;
   font-weight: 800;
 }

 .footer-brand__name span,
 .footer-brand p {
   color: rgba(255, 255, 255, 0.66);
  }

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

 .footer-group h3 {
   margin-bottom: 0.9rem;
   font-size: 1rem;
   color: #fff;
 }

 .footer-group ul {
   margin: 0;
   padding: 0;
   list-style: none;
   display: grid;
   gap: 0.65rem;
  }

 .footer-group a {
   color: rgba(255, 255, 255, 0.7);
   font-weight: 600;
 }

 .footer-group a:hover {
   color: #fff;
 }

 .footer-meta {
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   padding: 1rem 0 1.6rem;
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between;
   gap: 0.9rem;
   font-size: 0.86rem;
   color: rgba(255, 255, 255, 0.58);
 }

 .sr-only {
   position: absolute;
   width: 1px;
   height: 1px;
   padding: 0;
   margin: -1px;
   overflow: hidden;
   clip: rect(0, 0, 0, 0);
   border: 0;
 }

 @media (max-width: 1080px) {
   .hero__grid,
   .story-grid,
   .contact-layout,
   .detail-grid,
   .detail-grid--reverse,
   .footer-grid,
   .cta-band {
     grid-template-columns: 1fr;
   }

   .footer-grid {
     gap: 1.75rem;
   }

   .hero-mark {
     width: min(20rem, 42vw);
   }

    .hero-panel__contacts {
      grid-template-columns: 1fr 1fr;
    }
  }

 @media (max-width: 920px) {
   .desktop-nav,
   .header-actions .button--primary {
     display: none;
   }

   .menu-toggle {
     display: inline-flex;
   }

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

   .header-inner {
     grid-template-columns: auto auto;
     justify-content: space-between;
   }

    .header-actions {
      gap: 0.5rem;
    }

   .header-actions .phone-link {
     display: inline-flex;
     font-size: 0.8rem;
     font-weight: 800;
     padding: 0.15rem 0.65rem;
     min-height: 2.45rem;
   }

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

   .grid-3,
   .grid-2,
   .service-split,
   .process-grid,
   .form-grid {
     grid-template-columns: 1fr;
   }

    .service-card--visual h3,
    .project-card--photo h3 {
      min-height: 0;
    }
 }

 @media (max-width: 640px) {
   :root {
     --wrapper: min(100vw - 1.25rem, 100%);
     --header-height: 4.75rem;
   }

   body {
     padding-top: var(--header-height);
   }

   .brand__tag {
     display: none;
   }

   .brand__mark {
     width: 3.45rem;
     height: 3.45rem;
   }

   h1 {
     max-width: 14ch;
   }

    .hero__context {
      font-size: 0.94rem;
    }

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

   .button-row {
     align-items: stretch;
   }

   .hero-panel,
   .service-panel,
   .coverage-box,
   .cta-band,
   .contact-panel,
   .form-card,
   .detail-panel {
     padding: 1.35rem;
   }

    .hero-panel__contacts,
    .service-panel__footer {
      grid-template-columns: 1fr;
    }

    .service-panel__footer {
      display: grid;
    }

   .stat-band,
   .project-grid {
     grid-template-columns: 1fr;
    }

    .service-card__body,
    .project-card--photo .project-card__body {
      padding: 1.2rem 1.2rem 1.3rem;
    }

    .project-card {
      grid-template-rows: minmax(7.5rem, 8rem) 1fr;
    }

   .contact-list li,
   .meta-list li {
     grid-template-columns: 1fr;
     display: grid;
   }

   .contact-list span,
   .meta-list span {
     text-align: left;
   }

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

/* ── Utility ─────────────────────────────────────────────── */

.mt-sm { margin-top: 1.25rem; }
.mt-md { margin-top: 1.4rem; }
