/* ==========================================================
   VALLEY HOME IMPROVEMENT — LEVEL 1 STATIC HOMEPAGE REFRESH
   No framework. No jQuery. No slider dependency.
========================================================== */

:root {
  --black: #070707;
  --charcoal: #161616;
  --text: #232323;
  --muted: #656565;
  --line: #dddddd;
  --soft: #f5f4f1;
  --warm: #eeeae3;
  --white: #ffffff;
  --accent: #a8462f;
  --content: 1180px;
  --header-h: 82px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 9999;
  padding: 10px 14px;
  color: #000;
  background: #fff;
  box-shadow: 0 3px 20px rgba(0,0,0,.25);
}

.skip-link:focus {
  top: 16px;
}

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


/* ==========================================================
   HEADER
========================================================== */

.site-header {
  position: relative;
  z-index: 100;
  height: var(--header-h);
  color: #fff;
  background: var(--black);
}

.header-inner {
  width: min(calc(100% - 42px), 1260px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-brand {
  display: block;
  width: 300px;
  flex: 0 0 auto;
}

.site-brand img {
  display: block;
  width: 100%;
  height: 90%;
  padding: 10px 0;
}


.brand-svg {
  width: 100%;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 38px);
  font-size: 15px;
}

.primary-nav a {
  position: relative;
  padding-block: 30px;
  color: rgba(255,255,255,.76);
  transition: color .2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-current {
  color: #fff;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}


/* ==========================================================
   HERO
========================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 620px;
  height: calc(100svh - var(--header-h));
  max-height: 830px;
  color: #fff;
  background: #222;
}

.hero-slides,
.hero-slide,
.hero-slide picture,
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  opacity: 0;
  z-index: 0;
  transition: opacity 1.4s ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  object-fit: cover;
  transform: scale(1);
  will-change: transform;
  transition: transform 8.5s var(--ease);
}

.hero-slide:nth-child(1) img {
  object-position: 50% 52%;
}

.hero-slide:nth-child(2) img {
  object-position: 50% 48%;
}

.hero-slide:nth-child(3) img {
  object-position: 50% 50%;
}

.hero-slide.is-active img {
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.33) 43%, rgba(0,0,0,.09) 78%, rgba(0,0,0,.12) 100%),
    linear-gradient(0deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,0) 45%);
  pointer-events: none;
}

.hero-content-wrap {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 64px), 1180px);
  height: 100%;
  margin-inline: auto;
}

.hero-copy {
  position: absolute;
  left: 0;
  top: 50%;
  width: min(760px, 68vw);
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(-50% + 12px));
  transition:
    opacity .65s ease .15s,
    transform .65s var(--ease) .15s,
    visibility 0s linear .85s;
}

.hero-copy.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
  transition-delay: .35s, .35s, 0s;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-kicker {
  color: rgba(255,255,255,.78);
}

.hero h1,
.hero h2 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(46px, 6.1vw, 88px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
  text-shadow: 0 2px 8px rgba(0,0,0,.22);
}

.hero-copy p:not(.hero-kicker) {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: clamp(18px, 1.65vw, 25px);
  line-height: 1.45;
  text-shadow: 0 1px 5px rgba(0,0,0,.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 1px;
  font-size: 15px;
  line-height: 1;
  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease,
    transform .2s ease;
}

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

.button-outline {
  color: #fff;
  border-color: rgba(255,255,255,.88);
  background: rgba(0,0,0,.10);
  backdrop-filter: blur(3px);
}

.button-outline:hover,
.button-outline:focus-visible {
  color: #111;
  background: #fff;
}

.button-light {
  color: #111;
  background: #fff;
  border-color: #fff;
}

.button-light:hover,
.button-light:focus-visible {
  background: #eee;
}

.button-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.35);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: #fff;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 25px;
  width: min(calc(100% - 64px), 1180px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-dots,
.hero-pause {
  pointer-events: auto;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-dot::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,.45);
  transition: background .2s ease, height .2s ease;
}

.hero-dot.is-active::before {
  height: 3px;
  background: #fff;
}

.hero-pause {
  padding: 7px 0;
  border: 0;
  color: rgba(255,255,255,.82);
  background: transparent;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  cursor: pointer;
}

.hero-pause:hover,
.hero-pause:focus-visible {
  color: #fff;
}


/* ==========================================================
   SERVICE STRIP
========================================================== */

.service-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding: 15px 24px;
  color: #4a4a4a;
  background: #f2f1ee;
  border-bottom: 1px solid #e2e0dc;
  font-size: 13px;
  letter-spacing: .03em;
}

.service-strip a:hover,
.service-strip a:focus-visible {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ==========================================================
   SECTIONS
========================================================== */

.section {
  padding: clamp(72px, 8vw, 118px) 0;
}

.section-white {
  background: #fff;
}

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

.section-warm {
  background: var(--warm);
}

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

.section-heading.centered {
  text-align: center;
}

.section-heading.narrow {
  max-width: 860px;
  margin-inline: auto;
  margin-bottom: 48px;
}

.eyebrow {
  color: var(--accent);
}

.section-dark .eyebrow,
.contact-band .eyebrow {
  color: #d79a89;
}

.section h2,
.contact-band h2 {
  margin: 0;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(34px, 4vw, 55px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.section h3 {
  margin-top: 0;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.15;
}

.lead {
  max-width: 820px;
  margin: 18px auto 0;
  color: #5d5d5d;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
}

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

.lead.compact {
  margin: 0;
}

.media-grid,
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111;
  box-shadow: 0 18px 46px rgba(0,0,0,.12);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.process-copy p,
.feature-copy p {
  color: var(--muted);
  font-size: 18px;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  border-bottom: 1px solid #999;
}

.text-link:hover,
.text-link:focus-visible {
  border-color: #000;
}

.render-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: clamp(44px, 5vw, 70px);
}

.render-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #ddd;
}

.split-heading {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: end;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.feature-grid {
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
}

.feature-image {
  overflow: hidden;
  min-height: 440px;
  background: #ddd;
}

.feature-image img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 11px;
  margin: 28px 0 20px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.service-area {
  max-width: 940px;
  margin: 0 auto 55px;
  padding: 26px 30px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-area h3 {
  margin-bottom: 10px;
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.service-area p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.award-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}

.award-grid img {
  width: 100%;
  max-width: 150px;
  height: 88px;
  margin-inline: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .72;
}


/* ==========================================================
   CONTACT BAND
========================================================== */

.contact-band {
  padding: 52px 0;
  color: #fff;
  background: #0b0b0b;
}

.contact-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
}

.contact-band h2 {
  font-size: clamp(31px, 3.6vw, 48px);
}

.contact-band-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}


/* ==========================================================
   FOOTER
========================================================== */

.site-footer {
  padding: 54px 0;
  color: #c4c4c4;
  background: #050505;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.site-footer strong {
  color: #fff;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-hours {
  display: inline-block;
  margin-left: 10px;
  color: #8f8f8f;
}

.footer-right {
  text-align: right;
}

.footer-right nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-right p {
  margin-bottom: 0;
  color: #858585;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 980px) {
  :root {
    --header-h: 74px;
  }

  .site-brand {
    width: 260px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 24px 22px;
    background: #090909;
    border-top: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 20px 35px rgba(0,0,0,.22);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 13px 4px;
  }

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

  .hero {
    min-height: 600px;
    max-height: 760px;
  }

  .hero-copy {
    width: min(760px, 82vw);
  }

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

  .render-gallery img:nth-child(4),
  .render-gallery img:nth-child(5) {
    display: none;
  }

  .media-grid,
  .feature-grid,
  .split-heading {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .split-heading {
    align-items: start;
  }

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

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

  .header-inner {
    width: calc(100% - 28px);
  }

  .site-brand {
    width: 230px;
  }

  .hero {
    height: 72svh;
    min-height: 540px;
    max-height: 690px;
  }

  .hero-content-wrap,
  .hero-controls {
    width: calc(100% - 34px);
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(42px, 12.7vw, 62px);
    line-height: 1;
  }

  .hero-copy p:not(.hero-kicker) {
    max-width: 94%;
    margin-top: 18px;
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 23px;
  }

  .button {
    min-height: 46px;
    padding: 11px 15px;
    font-size: 14px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(0,0,0,.60) 0%, rgba(0,0,0,.38) 68%, rgba(0,0,0,.18) 100%),
      linear-gradient(0deg, rgba(0,0,0,.20), rgba(0,0,0,0) 42%);
  }

  .hero-slide:nth-child(1) img {
    object-position: 48% 50%;
  }

  .hero-slide:nth-child(2) img {
    object-position: 48% 50%;
  }

  .hero-slide:nth-child(3) img {
    object-position: 48% 50%;
  }

  .service-strip span {
    display: none;
  }

  .service-strip {
    gap: 8px 18px;
  }

  .section {
    padding: 66px 0;
  }

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

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

  .render-gallery img {
    height: 150px;
  }

  .render-gallery img:nth-child(3) {
    display: none;
  }

  .feature-image,
  .feature-image img {
    min-height: 320px;
  }

  .award-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .contact-band-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-band-actions {
    justify-content: flex-start;
  }

  .footer-right {
    text-align: left;
  }

  .footer-right nav {
    justify-content: flex-start;
  }

  .footer-hours {
    display: block;
    margin: 4px 0 0;
  }
}


/* ==========================================================
   ACCESSIBILITY: REDUCED MOTION
========================================================== */

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-slide img,
  .hero-slide.is-active img {
    transform: none !important;
  }
}

/* ==========================================================
   V1.2 — HEADER + HEADING REFINEMENTS
   Replace the previous V1.1 override block with this.
========================================================== */


/* ----------------------------------------------------------
   LOGO
   Larger again, with about 10px breathing room top/bottom.
---------------------------------------------------------- */

.site-brand {
  width: 300px;
  height: calc(var(--header-h) - 20px);
  flex: 0 0 auto;

  display: flex;
  align-items: center;

  padding: 0;
}

.site-brand img {
  display: block;

  width: auto;
  height: 100%;

  max-width: 100%;
  max-height: 100%;

  object-fit: contain;
  object-position: left center;
}


/* ----------------------------------------------------------
   HERO HEADINGS
   Slightly narrower than Helvetica Neue,
   but not as compressed as Arial Narrow.
---------------------------------------------------------- */

.hero h1,
.hero h2 {
  font-family:
    "Avenir Next",
    Avenir,
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;

  font-weight: 700;
  letter-spacing: -0.038em;
}


/* ----------------------------------------------------------
   MAIN SECTION HEADINGS
---------------------------------------------------------- */

.section h2,
.contact-band h2 {
  font-family:
    "Avenir Next",
    Avenir,
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;

  font-weight: 700;
  letter-spacing: -0.032em;
}


/* ----------------------------------------------------------
   SMALLER SECTION HEADINGS
---------------------------------------------------------- */

.section h3 {
  font-family:
    "Avenir Next",
    Avenir,
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;

  font-weight: 700;
  letter-spacing: -0.022em;
}


/* ----------------------------------------------------------
   RESPONSIVE LOGO
---------------------------------------------------------- */

@media (max-width: 980px) {

  .site-brand {
    width: 275px;
    height: calc(var(--header-h) - 18px);
  }

}


@media (max-width: 700px) {

  .site-brand {
    width: 245px;
    height: calc(var(--header-h) - 18px);
  }

}
