/*
Theme Name: Valley Construction Group
Theme URI: https://www.buildersacramento.com/
Author: Valley Construction Group Inc.
Description: Custom WordPress theme for Valley Construction Group Inc.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: valley-construction
*/

:root {
  --ink: #171717;
  --soft-ink: #3b3a36;
  --muted: #6f6b62;
  --line: #ded8cc;
  --paper: #fbfaf7;
  --white: #ffffff;
  --gold: #b08a3c;
  --gold-dark: #765a25;
  --sage: #758071;
  --stone: #e9e4dc;
  --shadow: 0 18px 50px rgba(24, 22, 18, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.topbar {
  background: var(--ink);
  color: var(--white);
  font-size: 0.86rem;
}

.topbar-inner,
.nav-inner,
.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
}

.topbar strong {
  color: #f4d897;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid rgba(118, 90, 37, 0.2);
  backdrop-filter: blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  line-height: 1.02;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-license {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--soft-ink);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--gold-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 750;
  font: inherit;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: #14110b;
  box-shadow: 0 10px 24px rgba(176, 138, 60, 0.26);
}

.btn-primary:hover {
  background: #c79d47;
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-outline {
  border-color: rgba(23, 23, 23, 0.28);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.btn-outline:hover {
  border-color: var(--gold);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  content: "";
}

.menu-toggle span {
  margin: 0 auto;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

.hero {
  position: relative;
  min-height: 680px;
  color: var(--white);
  background: var(--ink);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 12, 10, 0.88) 0%, rgba(13, 12, 10, 0.58) 48%, rgba(13, 12, 10, 0.1) 100%),
    linear-gradient(0deg, rgba(13, 12, 10, 0.55), rgba(13, 12, 10, 0.08)),
    var(--hero-image) center / cover no-repeat;
  content: "";
}

.hero-inner {
  position: relative;
  width: min(1160px, calc(100% - 40px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 680px);
  align-items: center;
  padding: 64px 0 86px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f5d995;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.03;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-top: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.7rem);
  font-weight: 700;
}

.hero-lede {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 660px;
  margin-top: 46px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-proof div {
  min-height: 86px;
  padding: 17px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-proof strong {
  display: block;
  color: #f4d897;
  font-size: 1.35rem;
}

.hero-proof span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
}

.section {
  padding: 92px 0;
}

.section-muted {
  background: var(--stone);
}

.section-dark {
  background: #191816;
  color: var(--white);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.section-kicker {
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

h2 {
  max-width: 760px;
  margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
}

.section-copy {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

.section-dark .section-copy {
  color: rgba(255, 255, 255, 0.74);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  display: grid;
  min-height: 330px;
  background: var(--white);
  border: 1px solid rgba(118, 90, 37, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(31, 28, 24, 0.08);
}

.service-card img {
  width: 100%;
  height: 165px;
  object-fit: cover;
}

.service-card .card-body {
  padding: 22px;
}

.service-card h3 {
  font-size: 1.2rem;
}

.service-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}

.process-list {
  display: grid;
  gap: 16px;
}

.process-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(23, 23, 23, 0.16);
}

.process-step:last-child {
  border-bottom: 1px solid rgba(23, 23, 23, 0.16);
}

.process-step span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: #f4d897;
  border-radius: 50%;
  font-weight: 850;
}

.process-step h3 {
  font-size: 1.18rem;
}

.process-step p {
  margin: 6px 0 0;
  color: var(--muted);
}

.feature-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 16px;
}

.gallery-item {
  position: relative;
  min-height: 250px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ddd;
}

.gallery-item.large {
  grid-row: span 2;
  min-height: 516px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.gallery-label {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(18, 17, 15, 0.78);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.gallery-label strong,
.gallery-label span {
  font-size: 0.88rem;
}

.gallery-label span {
  color: #f4d897;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-band div {
  min-height: 150px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.trust-band strong {
  display: block;
  color: #f4d897;
  font-size: 1.2rem;
}

.trust-band p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

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

.quote {
  padding: 28px;
  background: var(--white);
  border: 1px solid rgba(118, 90, 37, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(31, 28, 24, 0.07);
}

.quote p {
  margin: 0;
  color: var(--soft-ink);
}

.quote cite {
  display: block;
  margin-top: 18px;
  color: var(--gold-dark);
  font-style: normal;
  font-weight: 800;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
  padding: 34px;
  background: var(--white);
  border: 1px solid rgba(118, 90, 37, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  margin-top: 0;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--soft-ink);
  font-weight: 650;
}

.contact-card {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 24px;
  background: #191816;
  color: var(--white);
  border-radius: var(--radius);
}

.contact-card strong {
  color: #f4d897;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card a {
  font-size: 1.48rem;
  font-weight: 850;
}

.site-footer {
  padding: 36px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.footer-inner strong {
  color: var(--white);
}

@media (max-width: 980px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-inner {
    min-height: 72px;
  }

  .nav-open .nav-links,
  .nav-open .nav-actions {
    position: absolute;
    left: 20px;
    right: 20px;
    display: grid;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-open .nav-links {
    top: 74px;
    padding: 18px;
    gap: 14px;
  }

  .nav-open .nav-actions {
    top: 260px;
    padding: 18px;
  }

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

  .split,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item.large {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .topbar-inner,
  .section-inner,
  .nav-inner,
  .hero-inner,
  .footer-inner {
    width: min(100% - 28px, 1160px);
  }

  .topbar-inner,
  .footer-inner,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    font-size: 0.84rem;
    line-height: 1.05;
  }

  .hero,
  .hero-inner {
    min-height: 620px;
  }

  .hero-proof,
  .service-grid,
  .quote-grid,
  .trust-band,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.large {
    grid-column: auto;
    min-height: 330px;
  }

  .section {
    padding: 68px 0;
  }

  .contact-panel {
    padding: 22px;
  }

  .contact-card a {
    font-size: 1.18rem;
  }
}
