/* Treasure Valley Exteriors mockup.
   Palette from their logo: navy #223965, blue #0077bd, red #aa2c2e.
   dark #1b2d52, primary blue #0070b3 (darkened for AA on light), accent red #aa2c2e, light bg #f2f5f9, tint #d9e3ee. */

:root {
  --dark: #1b2d52;
  --dark-2: #142240;
  --primary: #0070b3;
  --primary-dark: #005a91;
  --red: #aa2c2e;
  --red-dark: #8e2224;
  --accent: #8fc4ea;
  --light: #f2f5f9;
  --tint: #d9e3ee;
  --ink: #141c2b;
  --muted: #4a5668;
  --white: #fff;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: 2.5rem;
  --container: 76rem;
  --section: 6rem;
  --radius: 12px;
  --radius-lg: 22px;
  --ribbon-h: 1.75rem;
}
@media (max-width: 991px) { :root { --pad: 2rem; --section: 4.5rem; } }
@media (max-width: 479px) { :root { --pad: 1rem; --section: 3.5rem; --ribbon-h: 2.25rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--light); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); font-weight: 800; color: var(--dark); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--white); padding: .75rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 3rem; }
.i { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-sm { display: flex; flex-direction: column; gap: .375rem; }
.muted { color: var(--muted); }
.measure { max-width: 40rem; }
.center { text-align: center; margin-inline: auto; }
.tagline { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.tagline-light { color: var(--accent); }
.lead { font-size: 1.1875rem; line-height: 1.5; }

/* Ribbon */
.ribbon {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--ribbon-h);
  display: flex; align-items: center; justify-content: center; padding: 0 1rem;
  background: #f6e7b0; color: #3b3110; font-size: .75rem; line-height: 1.2; text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.25rem; padding: .75rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { color: var(--white); border-color: rgb(255 255 255 / .55); background: rgb(20 34 64 / .25); }
.btn-ghost:hover { border-color: var(--white); background: rgb(255 255 255 / .1); }
.btn-light { background: var(--white); color: var(--dark); }
.btn-light:hover { background: var(--tint); }
.btn-sm { min-height: 2.75rem; padding: .5rem 1.125rem; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Header */
.nav { position: sticky; top: var(--ribbon-h); z-index: 50; background: var(--white); margin-top: var(--ribbon-h); box-shadow: 0 1px 0 var(--tint); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; }
.logo img { height: 52px; width: auto; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.nav-links a:hover { color: var(--primary); }
@media (max-width: 899px) { .nav-links { display: none; } }
@media (max-width: 479px) {
  .nav-bar { min-height: 4rem; gap: .75rem; }
  .logo img { height: 36px; }
  .nav .btn-sm { padding: .5rem .875rem; font-size: .875rem; }
}

/* Hero */
.hero { background: var(--dark); padding: 1.25rem; }
.hero-card {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(44rem, calc(100svh - 7.5rem));
  border-radius: var(--radius-lg); display: flex; align-items: flex-end;
  padding: 6rem 3.5rem 3.5rem; color: var(--white); background: var(--dark-2);
}
.hero-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(20 34 64 / .78) 0%, rgb(20 34 64 / .45) 45%, rgb(20 34 64 / .05) 80%),
    linear-gradient(180deg, rgb(20 34 64 / 0) 40%, rgb(20 34 64 / .55) 100%);
}
.hero-copy { display: flex; flex-direction: column; gap: 1.25rem; max-width: 44rem; }
.hero h1 { font-size: clamp(2.375rem, 5vw, 4.25rem); font-weight: 800; line-height: 1.02; color: var(--white); text-shadow: 0 2px 18px rgb(0 0 0 / .3); }
.hero .lead { max-width: 34rem; color: rgb(255 255 255 / .94); }
@media (max-width: 767px) {
  .hero { padding: .75rem; }
  .hero-card { padding: 3rem 1.25rem 1.25rem; min-height: 30rem; border-radius: 16px; }
  .hero-copy { gap: 1rem; }
  .hero h1 { font-size: 2.125rem; }
  .hero .lead { font-size: 1.0625rem; }
  .hero .tagline { font-size: .6875rem; }
  .hero .btn-row { gap: .5rem; }
  .hero-card > img { object-position: 70% center; }
  .hero-card::before { background: linear-gradient(180deg, rgb(20 34 64 / .15) 0%, rgb(20 34 64 / .55) 45%, rgb(20 34 64 / .9) 100%); }
  .hero .btn { width: 100%; }
}

/* Trust strip */
.trust { background: var(--dark); color: var(--white); padding: 1.5rem 0 2.5rem; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; flex-direction: column; gap: .25rem; padding: 1.25rem 1.5rem; border-left: 1px solid rgb(255 255 255 / .14); text-decoration: none; }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.trust-label { font-size: .9375rem; color: rgb(255 255 255 / .75); line-height: 1.4; }
.stars { color: #f2c94c; font-size: 1rem; letter-spacing: .05em; vertical-align: .15em; }
.trust-rating .trust-label { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(255 255 255 / .35); }
.trust-rating:hover .trust-label { color: var(--white); }
@media (max-width: 899px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item, .trust-item:first-child { border-left: 0; padding: 1rem 0; }
  .trust-item:nth-child(2n) { border-left: 1px solid rgb(255 255 255 / .14); padding-left: 1rem; }
  .trust-item:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / .14); }
}
@media (max-width: 479px) { .trust-item:nth-child(2n) { padding-left: .875rem; } .trust-value { font-size: 1.25rem; } .trust-label { font-size: .875rem; } }

/* Sections */
.s-light { background: var(--light); }
.s-white { background: var(--white); }
.s-dark { background: var(--dark); color: rgb(255 255 255 / .85); }
.s-dark h2, .s-dark h3 { color: var(--white); }
.section-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; }
.section-head.center { align-items: center; text-align: center; }
.section-head.split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 2rem; }
@media (max-width: 767px) { .section-head.split { flex-direction: column; align-items: flex-start; } .section-head { margin-bottom: 2rem; } }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.svc-card { background: var(--white); border: 1px solid var(--tint); border-radius: var(--radius-lg); padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.svc-card p { color: var(--muted); font-size: .9875rem; }
.svc-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 10px; background: var(--tint); color: var(--primary-dark); margin-bottom: .25rem; }
.svc-icon svg { width: 1.6rem; height: 1.6rem; }
.svc-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; padding: 0; overflow: hidden; background: var(--dark); border-color: var(--dark); color: var(--white); gap: 0; }
.svc-feature img { width: 100%; height: 100%; object-fit: cover; min-height: 18rem; }
.svc-feature .svc-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.svc-feature h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.svc-feature p { color: rgb(255 255 255 / .9); font-size: 1.0625rem; }
@media (max-width: 991px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-feature { grid-template-columns: 1fr; }
  .svc-feature img { min-height: 0; aspect-ratio: 4 / 3; }
  .svc-feature .svc-body { padding: 1.5rem; }
  .svc-card { padding: 1.5rem; }
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .5rem 1rem; border-radius: 999px; background: var(--white); border: 1px solid var(--tint); font-size: .9375rem; font-weight: 500; }
.chips-light li { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .25); color: var(--white); font-size: .875rem; padding: .375rem .875rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 14rem; gap: .75rem; }
.gallery figure { overflow: hidden; border-radius: var(--radius); background: var(--dark-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.g-wide { grid-column: span 2; grid-row: span 2; }
@media (max-width: 767px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 9rem; gap: .5rem; }
  .g-wide { grid-column: span 2; grid-row: span 1; }
  .gallery figure.g-wide { height: 13rem; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: none; }
.step { background: var(--light); border-radius: var(--radius-lg); padding: 2rem; display: flex; flex-direction: column; gap: .75rem; }
.step-num { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.step p { color: var(--muted); }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; } .step { padding: 1.5rem; } }

/* Service area */
.area { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.towns { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem; padding: 2rem; background: var(--white); border: 1px solid var(--tint); border-radius: var(--radius-lg); }
.towns li { font-size: 1.375rem; font-weight: 700; padding-left: 1.75rem; position: relative; }
.towns li::before { content: ""; position: absolute; left: 0; top: .5em; width: .75rem; height: .75rem; border-radius: 50%; background: var(--primary); }
.towns .towns-more { grid-column: 1 / -1; color: var(--muted); font-weight: 500; font-size: 1.0625rem; }
.towns .towns-more::before { background: var(--tint); }
@media (max-width: 767px) { .area { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Quote */
.quote { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.quote-phone { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; color: var(--white); text-decoration: none; margin-top: .5rem; }
.quote-email { color: var(--accent); overflow-wrap: anywhere; }
.form { display: flex; flex-direction: column; gap: 1rem; background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 2rem; }
.form label { display: flex; flex-direction: column; gap: .375rem; font-weight: 600; font-size: .9375rem; }
.form input, .form textarea { font: inherit; font-weight: 400; padding: .75rem .875rem; border: 1.5px solid #b9c7d3; border-radius: 10px; background: var(--light); color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--primary); background: var(--white); }
.form .btn-red { margin-top: .25rem; }
.form-note { padding: .875rem 1rem; border-radius: 10px; background: var(--tint); color: var(--dark); font-size: .9375rem; font-weight: 500; }
.form-note[hidden] { display: none; }
@media (max-width: 899px) { .quote { grid-template-columns: 1fr; gap: 2rem; } .form { padding: 1.25rem; } }

/* Footer */
.footer { background: var(--dark-2); color: rgb(255 255 255 / .75); padding: 3.5rem 0 1.5rem; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer strong { color: var(--white); }
.footer a { text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: var(--white); }
.footer-logo { height: 44px; width: auto; align-self: flex-start; }
.footer .small { font-size: .8125rem; color: rgb(255 255 255 / .6); }
.footer-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .1); font-size: .8125rem; }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)); background: var(--dark-2); }
  .call-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .625rem;
    position: fixed; inset: auto 0 0; z-index: 40;
    padding: .625rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    background: rgb(20 34 64 / .92); border-top: 1px solid rgb(255 255 255 / .1);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .call-bar .btn { min-height: 3rem; }
}
.hero .tagline-light { color: #d6ebfa; text-shadow: 0 1px 8px rgb(0 0 0 / .45); }
.nw { white-space: nowrap; }
