:root {
  --green: #63b82f;
  --green-dark: #3f8b1d;
  --lime: #b9cd37;
  --ink: #171b18;
  --muted: #667067;
  --surface: #f4f6f2;
  --line: #dfe5dc;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(19, 31, 21, .12);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 36px), var(--container)); margin-inline: auto; }
.section { padding: 96px 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: #fff; padding: 10px 14px; }
.skip-link:focus { left: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-wrap { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 230px; height: 70px; object-fit: contain; object-position: left center; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { text-decoration: none; font-weight: 700; font-size: .95rem; }
.site-nav a:hover { color: var(--green-dark); }
.nav-cta { background: var(--ink); color: #fff !important; padding: 12px 18px; border-radius: 999px; }
.menu-button { display: none; border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 700; }

.hero {
  position: relative;
  min-height: 700px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(17,24,18,.96) 0%, rgba(17,24,18,.85) 42%, rgba(17,24,18,.20) 100%),
    url('assets/images/driveway-after.png') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset: auto -12% -45% 40%; width: 760px; height: 760px; border: 120px solid rgba(99,184,47,.18); transform: rotate(45deg); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr .7fr; gap: 80px; align-items: center; }
.hero-copy { max-width: 720px; }
.eyebrow { display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; font-size: .76rem; color: var(--green); margin-bottom: 16px; }
.hero h1, .section-heading h2, .about-panel h2, .contact-copy h2, .contact-copy h1 { font-family: Montserrat, Inter, sans-serif; margin: 0; line-height: 1.02; letter-spacing: -.04em; }
.hero h1 { font-size: clamp(3.4rem, 7vw, 6.6rem); }
.hero-copy > p { font-size: 1.18rem; max-width: 650px; color: rgba(255,255,255,.82); margin: 24px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; text-decoration: none; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: #10210c; box-shadow: 0 12px 30px rgba(99,184,47,.28); }
.button-secondary { border: 1px solid rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.08); }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; color: rgba(255,255,255,.72); font-size: .9rem; }
.trust-row span::before { content: "✓"; color: var(--green); font-weight: 900; margin-right: 7px; }
.hero-card { background: rgba(255,255,255,.94); color: var(--ink); padding: 34px; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-card h2 { margin: 0 0 18px; font-size: 1.65rem; }
.hero-card ul { list-style: none; padding: 0; margin: 0 0 24px; }
.hero-card li { padding: 10px 0 10px 25px; border-bottom: 1px solid var(--line); position: relative; }
.hero-card li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); position: absolute; left: 0; top: 18px; }
.text-link { color: var(--green-dark); font-weight: 800; text-decoration: none; }

.intro-strip { padding: 36px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.stats-grid div { display: flex; flex-direction: column; }
.stats-grid strong { font-family: Montserrat, sans-serif; font-size: 1.18rem; }
.stats-grid span { color: var(--muted); }

.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading h2, .about-panel h2, .contact-copy h2, .contact-copy h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); }
.section-heading p { color: var(--muted); font-size: 1.08rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: #fff; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(99,184,47,.55); }
.service-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--surface); color: var(--green-dark); display: grid; place-items: center; font-weight: 900; margin-bottom: 50px; }
.service-card h3 { margin: 0 0 10px; font-size: 1.25rem; }
.service-card p { margin: 0; color: var(--muted); }

.section-dark { background: #141915; color: #fff; }
.section-heading.light p { color: rgba(255,255,255,.68); }
.gallery-grid { display: grid; gap: 34px; }
.gallery-project { background: #202721; border: 1px solid rgba(255,255,255,.08); border-radius: 28px; overflow: hidden; }
.gallery-project header { display: flex; justify-content: space-between; gap: 20px; align-items: end; padding: 28px 30px; }
.gallery-project h3 { margin: 0; font-size: 1.5rem; }
.gallery-project p { margin: 4px 0 0; color: rgba(255,255,255,.62); }
.gallery-badge { color: var(--green); font-weight: 800; white-space: nowrap; }
.project-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-images.count-1 { grid-template-columns: 1fr; }
.project-images.count-3, .project-images.count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.image-card { position: relative; min-height: 420px; overflow: hidden; }
.image-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.image-card:hover img { transform: scale(1.025); }
.image-label { position: absolute; left: 20px; top: 20px; background: rgba(17,27,17,.88); color: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 900; }
.image-card.after .image-label { background: var(--green); color: #10210c; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.review-card { margin: 0; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.review-card.featured { background: var(--surface); transform: translateY(-10px); }
.stars { color: var(--green-dark); letter-spacing: .1em; margin-bottom: 18px; }
.review-card blockquote { margin: 0 0 22px; font-size: 1.08rem; }
.review-card figcaption { font-weight: 800; }
.reviews-note { margin-top: 28px; color: var(--muted); text-align: center; }

.about-section { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: stretch; }
.about-panel, .about-photo-card { border-radius: 28px; }
.about-panel { background: #fff; padding: 54px; }
.about-panel p { color: var(--muted); }
.about-photo-card { position: relative; overflow: hidden; min-height: 560px; background: #171b18; box-shadow: var(--shadow); }
.about-photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.about-photo-caption { position: absolute; inset: auto 22px 22px 22px; padding: 18px 20px; border-radius: 18px; background: rgba(13,17,14,.82); color: #fff; backdrop-filter: blur(8px); display: flex; flex-direction: column; }
.about-photo-caption strong { font-size: 1.3rem; }
.about-photo-caption span { color: var(--green); font-weight: 700; }


.contact-section { background: var(--ink); color: #fff; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.contact-copy p { color: rgba(255,255,255,.7); }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; text-decoration: none; background: rgba(255,255,255,.04); }
a.contact-card:hover { border-color: var(--green); }
.contact-card span { color: var(--green); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.contact-card strong { margin-top: 4px; font-size: 1.18rem; overflow-wrap: anywhere; }

.site-footer { background: #0d110e; color: rgba(255,255,255,.72); padding: 54px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; }
.footer-logo { width: 230px; background: #fff; border-radius: 12px; padding: 6px; margin-bottom: 12px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-grid strong { color: #fff; margin-bottom: 7px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; font-size: .86rem; }
.footer-bottom a { text-decoration: none; color: var(--green); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 84px; left: 18px; right: 18px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 12px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 12px; }
  .nav-cta { text-align: center; margin-top: 6px; }
  .hero { min-height: auto; padding: 90px 0; background-position: 60% center; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 600px; }
  .services-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .review-card.featured { transform: none; }
  .before-after { grid-template-columns: 1fr; }
  .image-card { min-height: 360px; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .brand img { width: 185px; height: 62px; }
  .nav-wrap { min-height: 74px; }
  .site-nav { top: 74px; }
  .hero { padding: 72px 0; }
  .hero h1 { font-size: 3.2rem; }
  .hero-copy > p { font-size: 1.02rem; }
  .hero-actions .button { width: 100%; }
  .trust-row { flex-direction: column; gap: 8px; }
  .stats-grid, .services-grid, .reviews-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { gap: 22px; }
  .service-icon { margin-bottom: 28px; }
  .gallery-project header { align-items: flex-start; flex-direction: column; }
  .image-card { min-height: 300px; }
  .about-panel { padding: 34px 26px; }
  .about-photo-card { min-height: 480px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .project-images, .project-images.count-3, .project-images.count-4 { grid-template-columns: 1fr; }
  .image-card { min-height: 320px; }
}

/* Full gallery refinements */
.gallery-toolbar {
  margin-bottom: 34px;
}

.gallery-full .project-images.count-1 {
  display: flex;
  justify-content: center;
  padding: 0 30px 30px;
}

.gallery-full .project-images.count-1 .image-card {
  width: min(100%, 760px);
  border-radius: 20px;
  overflow: hidden;
}

.gallery-full .project-images.count-1 .image-card img {
  width: 100%;
  height: clamp(300px, 48vw, 520px);
  object-fit: cover;
}

@media (max-width: 760px) {
  .gallery-toolbar {
    margin-bottom: 24px;
  }

  .gallery-full .project-images.count-1 {
    padding: 0 18px 18px;
  }

  .gallery-full .project-images.count-1 .image-card img {
    height: 320px;
  }

}


/* Gallery toolbar alignment and dedicated quote page */
.full-gallery-section { padding-top: 72px; }
.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  background: rgba(255,255,255,.045);
}
.gallery-toolbar > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gallery-toolbar strong { font-size: 1.2rem; }
.gallery-toolbar span { color: rgba(255,255,255,.62); }
.gallery-toolbar .button {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}
.contact-page { background: var(--ink); }
.contact-page-hero {
  min-height: calc(100vh - 92px);
  padding: 110px 0 90px;
  background: var(--ink);
  color: #fff;
}
.contact-page-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  align-items: start;
}
.contact-page-hero h1 {
  font-family: Montserrat, Inter, sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 0 0 24px;
}
.contact-page-hero .contact-copy p { max-width: 640px; }
.contact-note { color: var(--green) !important; font-weight: 700; }
.compact-footer { padding-top: 22px; }
.compact-footer .footer-bottom { margin-top: 0; }
@media (max-width: 820px) {
  .gallery-toolbar {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 30px;
  }
  .gallery-toolbar .button { width: 100%; text-align: center; }
  .contact-page-grid { grid-template-columns: 1fr; gap: 42px; }
  .contact-page-hero { padding: 76px 0 64px; }
}

/* Homepage gallery call-to-action spacing */
.gallery-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 44px;
}

.gallery-actions .button {
  flex: 0 0 auto;
  margin: 0;
}

.gallery-actions p {
  margin: 0;
  color: rgba(255,255,255,.78);
}

@media (max-width: 760px) {
  .gallery-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
    margin-top: 34px;
  }

  .gallery-actions .button {
    width: 100%;
    text-align: center;
  }
}


/* Evergreen Facebook reviews link */
.reviews-cta {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.reviews-cta p { margin: 0; color: var(--muted); }
.button-facebook {
  background: #1877f2;
  color: #fff;
  border: 1px solid #1877f2;
}
.button-facebook:hover,
.button-facebook:focus-visible {
  background: #0f63d8;
  border-color: #0f63d8;
  color: #fff;
}


/* Full gallery page spacing and alignment */
.gallery-page .gallery-hero {
  padding: 54px 0 62px;
  background: #fff;
}

.gallery-page .gallery-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gallery-page .back-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 38px;
  font-weight: 700;
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.gallery-page .back-link:hover,
.gallery-page .back-link:focus-visible {
  color: var(--green-dark);
}

.gallery-page .gallery-hero-copy {
  width: 100%;
}

.gallery-page .gallery-hero-copy .eyebrow {
  display: block;
  margin: 0 0 18px;
}

.gallery-page .gallery-hero h1 {
  margin: 0 0 22px;
  font-family: Montserrat, Inter, sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.gallery-page .gallery-hero p {
  max-width: 980px;
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
}

.gallery-page .full-gallery-section {
  padding-top: 76px;
  padding-bottom: 96px;
}

.gallery-page .gallery-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 36px;
  row-gap: 18px;
  margin: 0 0 52px;
  padding: 26px 28px;
}

.gallery-page .gallery-toolbar > div {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.gallery-page .gallery-toolbar strong {
  font-size: 1.28rem;
  line-height: 1.3;
}

.gallery-page .gallery-toolbar .button {
  min-width: 240px;
  min-height: 56px;
  padding-inline: 30px;
}

.gallery-page .gallery-grid {
  gap: 42px;
}

@media (max-width: 760px) {
  .gallery-page .gallery-hero {
    padding: 38px 0 46px;
  }

  .gallery-page .back-link {
    margin-bottom: 28px;
  }

  .gallery-page .gallery-hero-copy .eyebrow {
    margin-bottom: 14px;
  }

  .gallery-page .gallery-hero h1 {
    margin-bottom: 18px;
  }

  .gallery-page .full-gallery-section {
    padding-top: 52px;
    padding-bottom: 72px;
  }

  .gallery-page .gallery-toolbar {
    grid-template-columns: 1fr;
    margin-bottom: 36px;
    padding: 22px;
  }

  .gallery-page .gallery-toolbar > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .gallery-page .gallery-toolbar .button {
    width: 100%;
    min-width: 0;
  }
}
