/* =============================================================
   RIDGE & VALLEY HOME SERVICES — style.css
   Left-aligned utilitarian layout · Inter only
   ============================================================= */

/* ── Variables ── */
:root {
  --charcoal: #1E2329;
  --charcoal-mid: #272e38;
  --charcoal-light: #323a46;
  --off-white: #F4F4F2;
  --white: #ffffff;
  --slate: #3D5A73;
  --amber: #D4820A;
  --amber-dark: #b86d08;
  --amber-light: rgba(212, 130, 10, 0.12);
  --text-dark: #1a1f26;
  --text-mid: #3c4550;
  --text-muted: #6b7684;
  --border-light: rgba(255,255,255,0.08);
  --border-dark: rgba(30,35,41,0.14);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); background: var(--off-white); line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  color: var(--off-white);
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: 2px solid transparent;
  text-align: center;
  border-radius: 0;
}
.btn--amber { background: var(--amber); color: var(--charcoal); border-color: var(--amber); }
.btn--amber:hover { background: var(--amber-dark); border-color: var(--amber-dark); }
.btn--full { width: 100%; display: block; }

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--charcoal);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.25s;
}
.nav__checkbox { display: none; }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1.5rem;
  position: relative;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  flex-shrink: 0;
}
.nav__brand-r {
  font-size: 1rem;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: 0.04em;
}
.nav__brand-full {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav__links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  transition: color 0.15s;
}
.nav__links a:hover { color: #fff; }

.nav__phone {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav__phone:hover { color: #f09b20; }

.nav__toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle-label span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: all 0.25s;
}

/* JS hamburger button */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  transition: all 0.25s;
  transform-origin: center;
}
.nav--open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav--open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Scrolled state adds shadow */
.js .nav--scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.4); }

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 64px;
}
.hero__text {
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 4rem;
}
.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.25rem;
}
.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero__tagline {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  max-width: 400px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero__phone {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  line-height: 1;
  transition: color 0.15s;
}
.hero__phone:hover { color: #f09b20; }

.hero__image {
  background: url('images/hero-contractor.webp') center / cover no-repeat;
  min-height: 400px;
}

/* ── Sections ── */
.section { padding: 5.5rem 2rem; }
.section--dark { background: var(--charcoal); }
.section--light { background: var(--off-white); }
.container { max-width: 1100px; margin: 0 auto; }

.section-header { margin-bottom: 3.5rem; }
.section__heading {
  font-weight: 800;
  letter-spacing: -0.02em;
}
/* Dark sections get light headings */
.section--dark .section__heading { color: #fff; }
.section--light .section__heading { color: var(--text-dark); }
.section--dark .section__sub { color: rgba(255,255,255,0.55); }
.section__sub { font-size: 0.95rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-light);
  border-left: 1px solid var(--border-light);
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  border-left: 4px solid var(--amber);
  background: var(--charcoal-mid);
  padding: 2rem 1.75rem 2rem calc(1.75rem - 4px);
  transition: background 0.2s;
}
.service-card:hover { background: var(--charcoal-light); }
.service-card__icon {
  width: 36px; height: 36px;
  color: var(--amber);
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card__body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.service-card__body p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.65;
  margin: 0;
}

/* ── Why Choose Us ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border-left: 1px solid var(--border-dark);
  border-top: 1px solid var(--border-dark);
}
.why-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}
.why-item__number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
}
.why-item__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}
.why-item__desc { font-size: 0.875rem; color: var(--text-muted); margin: 0; line-height: 1.65; }

/* ── Service Area ── */
.area__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.area__text .section__heading { color: #fff; margin-bottom: 1.25rem; }
.area__text p { color: rgba(255,255,255,0.65); font-size: 1rem; }

.area__towns h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
  color: var(--amber);
}
.town-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.town-list li {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.town-list li::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  background: var(--amber);
  flex-shrink: 0;
}
.area__note { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 1.25rem; }

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border-left: 1px solid var(--border-dark);
}
.testimonial {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border-dark);
}
.testimonial__stars {
  font-size: 0.875rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.testimonial__quote {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.25rem;
}
.testimonial__cite {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  font-style: normal;
}

/* ── Contact ── */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.contact__info .section__heading { color: #fff; margin-bottom: 1.25rem; }
.contact__info > p { color: rgba(255,255,255,0.6); margin-bottom: 2rem; font-size: 0.95rem; }
.contact__detail { margin-bottom: 1rem; }
.contact__detail-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.25rem;
}
.contact__detail-value { font-size: 1rem; font-weight: 600; color: #fff; }
.contact__detail-value:hover { color: var(--amber); }
.contact__response { font-size: 0.82rem; color: rgba(255,255,255,0.4); margin-top: 1.5rem; }

.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.45rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #fff;
  background: var(--charcoal-light);
  border: 1.5px solid var(--border-light);
  border-radius: 0;
  transition: border-color 0.2s;
  appearance: auto;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.3); }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--amber);
}
.contact-form select option { background: var(--charcoal); color: #fff; }
.contact-form textarea { resize: vertical; }
.form-message {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ── Footer ── */
.site-footer { background: var(--charcoal); }
.footer__top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 3.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border-light);
}
.footer__col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.25rem;
}
.footer__col address,
.footer__col p { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.8; margin-bottom: 0.4rem; }
.footer__col a { color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer__col a:hover { color: #fff; }
.footer__col ul li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  padding: 0.25rem 0;
}
.footer__area-note { color: rgba(255,255,255,0.35) !important; font-size: 0.78rem !important; margin-top: 0.75rem; }
.footer__bottom {
  text-align: center;
  padding: 1.25rem 2rem;
  background: rgba(0,0,0,0.2);
}
.footer__bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin: 0; }

/* ── Scroll Reveal ── */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Mobile ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .hero__image { grid-row: 1; min-height: 280px; }
  .hero__text { grid-row: 2; padding: 3.5rem 1.75rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .area__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .nav__right { display: none; }
  .nav__toggle-label { display: flex; }
  .nav__checkbox:checked ~ .nav__inner .nav__right { display: flex; }

  /* When checkbox checked, show as dropdown */
  .nav__checkbox:checked ~ .nav__inner .nav__right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--charcoal-mid);
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 99;
    gap: 0;
  }
  .nav__checkbox:checked ~ .nav__inner .nav__right .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .nav__checkbox:checked ~ .nav__inner .nav__right .nav__links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
  }
  .nav__checkbox:checked ~ .nav__inner .nav__right .nav__phone {
    margin-top: 1rem;
    font-size: 1.1rem;
  }

  /* JS version */
  .js .nav--open .nav__right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--charcoal-mid);
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 99;
    gap: 0;
  }
  .js .nav--open .nav__right .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .js .nav--open .nav__right .nav__links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
  }
  .js .nav--open .nav__right .nav__phone {
    margin-top: 1rem;
    font-size: 1.1rem;
  }

  .nav__burger { display: none; }
  .js .nav__burger { display: flex; }

  .section { padding: 3.5rem 1.25rem; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__text { padding: 2.5rem 1.25rem; }
}

@media (min-width: 768px) {
  .nav__toggle-label { display: none !important; }
  .nav__burger { display: none !important; }
  .nav__right { display: flex !important; }
}

/* ── Active nav link ── */
.nav__links a.active {
  color: #fff;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
}

/* ── Page Banner (inner pages) ── */
.page-banner {
  min-height: 38vh;
  background: var(--charcoal);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-top: 64px;
  border-bottom: 4px solid var(--amber);
}
.page-banner__content {
  padding: 0 2rem 3.5rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.page-banner__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  line-height: 1.1;
}
.page-banner__desc {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* ── CTA Strip (inner pages) ── */
.section--cta {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--off-white);
}
.section--cta .section__heading { color: var(--text-dark); margin-bottom: 1rem; }
.section--cta p { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.95rem; }

/* ── Owner bio ── */
.owner-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}
.owner-photo {
  background: var(--charcoal-mid);
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 4px solid var(--amber);
}
.owner-photo span { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.4); letter-spacing: 0.08em; text-transform: uppercase; }
.owner-text h3 { color: var(--text-dark); margin-bottom: 0.25rem; font-size: 1.15rem; }
.owner-text .owner-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; }
.owner-text p { font-size: 0.95rem; color: var(--text-mid); }

/* ── Credentials ── */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-dark);
  border-left: 1px solid var(--border-dark);
  margin-top: 3rem;
}
.credential-item {
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  border-left: 4px solid var(--amber);
}
.credential-item__title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.35rem; }
.credential-item__value { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); margin: 0; }

/* ── Process steps ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border-top: 4px solid var(--amber);
}
.process-step {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border-dark);
}
.process-step:last-child { border-right: none; }
.process-step__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.04em;
}
.process-step h3 { font-size: 1rem; color: var(--text-dark); margin-bottom: 0.5rem; }
.process-step p { font-size: 0.875rem; color: var(--text-muted); margin: 0; line-height: 1.65; }

/* ── Testimonials 2-col (for testimonials page) ── */
.testimonials-grid--two { grid-template-columns: repeat(2, 1fr); border-left: 1px solid var(--border-dark); }
.testimonials-grid--two .testimonial { border-right: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); }

/* ── Review CTAs ── */
.review-cta { text-align: center; padding: 3rem 2rem; margin-top: 3rem; border-top: 1px solid var(--border-dark); }
.review-cta p { color: var(--text-mid); margin-bottom: 1.5rem; font-size: 0.95rem; }
.review-cta__buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn--outline-dark {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 2px solid var(--charcoal);
  color: var(--charcoal);
  transition: background 0.2s, color 0.2s;
  text-transform: uppercase;
}
.btn--outline-dark:hover { background: var(--charcoal); color: #fff; }

/* ── What happens next ── */
.next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border-left: 1px solid var(--border-light);
}
.next-step {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--border-light);
  border-left: 4px solid var(--amber);
}
.next-step__num { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.5rem; }
.next-step h4 { font-size: 0.95rem; color: #fff; margin-bottom: 0.5rem; font-weight: 700; text-transform: none; letter-spacing: 0; }
.next-step p { font-size: 0.875rem; color: rgba(255,255,255,0.55); margin: 0; line-height: 1.65; }

@media (max-width: 767px) {
  .owner-layout { grid-template-columns: 1fr; gap: 2rem; }
  .credentials-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .testimonials-grid--two { grid-template-columns: 1fr; }
  .next-steps { grid-template-columns: 1fr; }
  .page-banner__content { padding: 0 1.25rem 2.5rem; }
}
