/* Valley Roofing and Maintenance — main stylesheet
   Change the brand colors here and the whole site updates. */
:root {
  --navy: #13212e;
  --navy-2: #1c2f40;
  --steel: #3b4f63;
  --accent: #d9822b;
  --accent-dark: #b86a1e;
  --light: #f3f4f6;
  --text: #22303c;
  --muted: #5d6b78;
  --white: #ffffff;
  --radius: 6px;
  --max: 1180px;
  --shadow: 0 10px 30px rgba(10, 20, 30, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3, h4 {
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section.light { background: var(--light); }
.section.dark { background: var(--navy); color: #d7dee5; }
.section.dark h2, .section.dark h3, .section.dark h4 { color: var(--white); }
.center { text-align: center; }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-family: "Montserrat", Arial, sans-serif;
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem;
  font-weight: 700; color: var(--accent); margin-bottom: .8em;
}
.gable {
  width: 70px; height: 18px; margin: 0 auto 18px; display: block;
}

/* Buttons */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: var(--radius);
  background: var(--accent); color: var(--white); text-decoration: none;
  font-family: "Montserrat", Arial, sans-serif; font-weight: 700;
  letter-spacing: .03em; border: 2px solid var(--accent);
  transition: background .2s, border-color .2s, color .2s;
  cursor: pointer; font-size: 1rem;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn.outline:hover { background: var(--white); color: var(--navy); }
.btn.dark { background: var(--navy); border-color: var(--navy); }
.btn.dark:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 52px; height: 52px; flex: none; }
.logo-text { font-family: "Montserrat", Arial, sans-serif; line-height: 1.05; }
.logo-text strong { display: block; font-size: 1.25rem; font-weight: 800; color: var(--navy); letter-spacing: .02em; }
.logo-text span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .26em; color: var(--accent); text-transform: uppercase; }

.nav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav a {
  display: block; padding: 10px 14px; text-decoration: none; color: var(--navy);
  font-family: "Montserrat", Arial, sans-serif; font-weight: 600; font-size: .95rem;
  border-radius: var(--radius);
}
.nav a:hover, .nav a.active { color: var(--accent); }
.nav .has-sub > a::after { content: "▾"; font-size: .75em; margin-left: 6px; }
.nav .sub {
  position: absolute; top: 100%; left: 0; min-width: 230px; list-style: none;
  margin: 0; padding: 8px; background: var(--white); box-shadow: var(--shadow);
  border-top: 3px solid var(--accent); border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { font-weight: 500; padding: 8px 12px; }
.nav .sub a:hover { background: var(--light); }
.nav .nav-cta a { background: var(--accent); color: var(--white); margin-left: 8px; }
.nav .nav-cta a:hover { background: var(--accent-dark); color: var(--white); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 28px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero {
  position: relative; color: var(--white); min-height: 640px; display: flex; align-items: center;
  background: var(--navy) center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13, 23, 33, .88) 0%, rgba(13, 23, 33, .6) 55%, rgba(13, 23, 33, .25) 100%);
}
.hero .container { position: relative; }
.hero h1 { color: var(--white); max-width: 760px; }
.hero p { max-width: 620px; font-size: 1.15rem; color: #e4e9ee; }
.hero.page { min-height: 420px; }
.hero.page h1 { max-width: 900px; }

/* Stats bar */
.stats { background: var(--navy-2); color: var(--white); padding: 50px 0; }
.stats-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; align-items: center; }
.stats-brand { display: flex; gap: 18px; align-items: center; }
.stats-brand svg.mark { width: 70px; height: 70px; flex: none; }
.stats-brand p { margin: 0; font-weight: 600; }
.stars { color: #f5b301; letter-spacing: 3px; font-size: 1.2rem; }
.stat { text-align: center; border-left: 1px solid rgba(255, 255, 255, .15); }
.stat b { display: block; font-family: "Montserrat", Arial, sans-serif; font-size: 2.6rem; color: var(--accent); line-height: 1.1; }
.stat span { font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; color: #c5d0da; }

/* Grids and cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feature { text-align: center; padding: 10px; }
.icon {
  width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--light); display: grid; place-items: center; color: var(--accent);
}
.dark .icon { background: rgba(255, 255, 255, .08); }
.icon svg { width: 36px; height: 36px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); border-top: 4px solid var(--accent);
}
.card .icon { margin: 0 0 16px; }
.img-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.img-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.img-stack .img-frame:first-child { grid-column: span 2; }
.img-stack .img-frame:first-child img { aspect-ratio: 16 / 9; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800;
}
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 1.4em; }
.pill-list li { background: var(--light); border: 1px solid #dfe3e8; padding: 6px 14px; border-radius: 30px; font-weight: 600; font-size: .9rem; color: var(--navy); }

/* Image band */
.band { height: 380px; background: var(--navy-2) center/cover no-repeat fixed; }
@media (hover: none) { .band { background-attachment: scroll; } }

/* Steps */
.steps { counter-reset: step; }
.step { text-align: center; position: relative; }
.step .num {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  background: var(--accent); color: var(--white); font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800; font-size: 1.5rem; box-shadow: 0 0 0 8px rgba(217, 130, 43, .18);
}

/* Partners */
.partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin: 30px 0; }
.partner {
  border: 1px dashed #c3cbd3; border-radius: var(--radius); height: 86px; display: grid; place-items: center;
  font-family: "Montserrat", Arial, sans-serif; font-weight: 700; color: #8a97a3; font-size: .8rem;
  text-align: center; padding: 8px; background: var(--white);
}

/* Testimonials */
.quote-card { background: var(--white); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); position: relative; }
.quote-card::before {
  content: "\201C"; position: absolute; top: -8px; right: 22px; font-size: 6rem; line-height: 1;
  color: rgba(217, 130, 43, .25); font-family: Georgia, serif;
}
.quote-card .who { margin-top: 14px; font-weight: 700; color: var(--navy); }
.quote-card .who small { display: block; font-weight: 400; color: var(--muted); }

/* CTA banner */
.cta-banner { position: relative; padding: 110px 0; background: var(--navy) center/cover no-repeat; color: var(--white); text-align: center; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: rgba(13, 23, 33, .72); }
.cta-banner .container { position: relative; }
.cta-banner h2 { color: var(--white); }

/* Info + join */
.info-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.info-list .icon { width: 50px; height: 50px; margin: 0; flex: none; }
.info-list .icon svg { width: 24px; height: 24px; }
.info-list b { display: block; color: var(--white); font-family: "Montserrat", Arial, sans-serif; }
.info-list a { color: #f0c79c; text-decoration: none; }
.info-list a:hover { text-decoration: underline; }
.join { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); padding: 34px; border-radius: var(--radius); }
.join a { color: #f0c79c; }

/* Footer */
.site-footer { background: #0b141c; color: #9fadba; padding: 50px 0 30px; font-size: .92rem; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-footer .logo-text strong { color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: #c9d3dc; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; }
.footer-bottom a { color: #9fadba; }

/* Forms */
.form { display: grid; gap: 16px; }
.form label { font-weight: 600; font-size: .9rem; color: var(--navy); display: block; margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 14px 16px; border: 1px solid #cfd6dd; border-radius: var(--radius);
  font: inherit; background: var(--white); color: var(--text);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form textarea { min-height: 150px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .88rem; color: var(--muted); }
.big-phone { font-family: "Montserrat", Arial, sans-serif; font-size: 2rem; font-weight: 800; color: var(--navy); text-decoration: none; }
.big-phone:hover { color: var(--accent); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery figure { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery figcaption { padding: 14px 18px; font-size: .92rem; color: var(--muted); }

/* FAQ */
.faq details { background: var(--white); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy); font-family: "Montserrat", Arial, sans-serif; list-style: none; position: relative; padding-right: 50px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.5rem; }
.faq details[open] summary::after { content: "−"; }
.faq details > p { padding: 0 22px 18px; margin: 0; }

/* Locations */
.loc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.loc-card { position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--white); box-shadow: var(--shadow); }
.loc-card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; transition: transform .4s; }
.loc-card:hover img { transform: scale(1.06); }
.loc-card span {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; font-family: "Montserrat", Arial, sans-serif; font-weight: 800; font-size: 1.2rem;
  background: linear-gradient(transparent, rgba(13, 23, 33, .9));
}
.loc-card small { display: block; font-weight: 500; font-size: .8rem; color: #f0c79c; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1020px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: 84px; left: 0; right: 0; bottom: 0; background: var(--white);
    overflow-y: auto; transform: translateX(100%); transition: transform .3s; padding: 16px 20px 40px;
  }
  .nav.open { transform: none; }
  .nav > ul { flex-direction: column; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; }
  .nav .nav-cta a { margin: 10px 0 0; text-align: center; }
  .stats-inner { grid-template-columns: 1fr 1fr 1fr; }
  .stats-brand { grid-column: 1 / -1; }
  .stat:nth-child(2) { border-left: 0; }
  .grid-4, .loc-grid { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .info-grid, .gallery, .form-row { grid-template-columns: 1fr; gap: 30px; }
  .grid-2.reverse > :first-child { order: 2; }
  .hero { min-height: 520px; }
  .hero.page { min-height: 340px; }
  .band { height: 240px; }
  .logo-text strong { font-size: 1.02rem; }
  .logo svg { width: 44px; height: 44px; }
}
@media (max-width: 480px) {
  .grid-4, .loc-grid, .partners { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat { border-left: 0; }
}
