:root {
  --brand-green: #2f5d3a;
  --brand-navy: #1f2f45;
  --brand-white: #ffffff;
  --brand-light-gray: #f4f6f5;
  --brand-text-dark: #1f2937;
  --text-on-dark: rgba(255, 255, 255, 0.88);
  --muted-on-dark: rgba(255, 255, 255, 0.76);
  --heading-on-dark: rgba(255, 255, 255, 0.94);
  --line: #e5e7eb;
  --radius: 10px;
  --shadow: 0 4px 14px rgba(31, 47, 69, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--brand-text-dark);
  background: var(--brand-white);
  line-height: 1.65;
}

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

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

section,
.section {
  padding: 96px 0;
}

.section.alt {
  background: var(--brand-light-gray);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  color: var(--brand-navy);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4.3vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.6em;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.55rem, 3.1vw, 2.15rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.75em;
  letter-spacing: -0.01em;
}

h3,
h4 {
  font-weight: 600;
}

p {
  margin: 0 0 1.25em;
}

.section p,
.hero p,
.card p,
.page-hero p,
.form-wrap p {
  line-height: 1.75;
  max-width: 62ch;
}

.eyebrow,
.small-label,
.eyebrow-text {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-green);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--brand-white);
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  min-height: 78px;
  padding: 18px 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo img {
  height: 72px;
  width: auto;
  display: block;
}

.main-nav {
  justify-self: start;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
}

.main-nav a {
  color: var(--brand-navy);
  font-weight: 500;
  margin: 0;
  text-decoration: none;
  transition: color 0.22s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--brand-green);
}

.btn,
.btn-primary,
.btn-secondary,
.btn-call,
.btn-quote,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn-primary,
.btn-call {
  background-color: var(--brand-green);
  color: var(--brand-white);
}

.btn-primary:hover,
.btn-call:hover {
  background-color: #264c30;
}

.btn-secondary,
.btn-quote {
  background-color: var(--brand-navy);
  color: var(--brand-white);
}

.btn-light {
  background: var(--brand-white);
  color: var(--brand-navy);
  border: 1px solid var(--line);
}

.btn-light:hover {
  background: #eef2f5;
}

.cta-band .btn-light {
  background: var(--brand-white);
  color: var(--brand-navy);
  border-color: var(--brand-white);
  font-weight: 600;
}

.cta-band .btn-light:hover {
  background: #f0f4f8;
}

.card .btn-light {
  background-color: var(--brand-green);
  color: var(--brand-white);
  border-color: var(--brand-green);
  font-weight: 600;
}

.card .btn-light:hover {
  background-color: #264c30;
  border-color: #264c30;
}

.hero {
  background-color: var(--brand-light-gray);
  background-image:
    linear-gradient(rgba(244, 246, 245, 0.72), rgba(244, 246, 245, 0.72)),
    url("/assets/images/hero-home-bg.jpeg");
  background-size: cover;
  background-position: center 46%;
  background-repeat: no-repeat;
  padding-top: 120px;
  padding-bottom: 120px;
}

.hero h1 {
  color: var(--brand-navy);
  font-size: 3rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.125rem;
  color: #4b5563;
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.split-centered {
  align-items: center;
}

.split.split-centered > :first-child,
.split.split-centered > :last-child {
  align-self: center;
}

.split.split-centered > img,
.split.split-centered .roof-gallery {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.split.split-centered > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.split.split-centered .roof-gallery {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split.split-centered .roof-gallery-track {
  width: 100%;
}

.split.split-centered .roof-gallery-hint {
  text-align: center;
}

.hero .hero-grid > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
}

.hero-card,
.card,
.form-wrap {
  background: var(--brand-white);
  border: 1px solid rgba(47, 93, 58, 0.55);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 36px 40px;
}

.hero-side-photo {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.quick-points,
.checklist,
.service-areas {
  padding-left: 1.1rem;
  margin: 0;
}

.service-section-title {
  color: var(--brand-green);
  display: inline-block;
  border-bottom: 5px solid var(--brand-green);
  padding-bottom: 0.4rem;
  margin-bottom: 1.35rem;
}

.checklist {
  border: 2px solid rgba(47, 93, 58, 0.65);
  border-radius: 14px;
  background: rgba(47, 93, 58, 0.06);
  padding: 1rem 1.25rem 1rem 2rem;
  margin-bottom: 1.35rem;
}

.quick-points li,
.checklist li,
.service-areas li {
  margin-bottom: 0.9em;
  line-height: 1.6;
}

.split .checklist + p {
  margin-top: 1.25rem;
}

.card ul li {
  margin-bottom: 0.75em;
  line-height: 1.6;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

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

.service-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.95rem;
}

.recent-work {
  padding-top: 72px;
  padding-bottom: 56px;
}

.home-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: start;
}

.home-showcase img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.showcase-brand {
  border: 1px solid rgba(47, 93, 58, 0.55);
  border-radius: 12px;
  background: var(--brand-white);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.65rem;
  min-height: 220px;
}

.showcase-brand img {
  width: 140px;
  height: 100px;
  object-fit: contain;
}

.showcase-brand p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.roof-gallery {
  width: 100%;
}

.roof-gallery-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

.roof-gallery-slide {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
  margin: 0;
}

.roof-gallery-slide img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.roof-gallery-hint {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: #4b5563;
  text-align: right;
}

.icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-light-gray);
  color: var(--brand-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

.cta-band {
  border-radius: 16px;
  background: var(--brand-navy);
  color: var(--text-on-dark);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h3,
.cta-band p {
  color: var(--muted-on-dark);
  margin: 0;
}

.cta-band h1,
.cta-band h2,
.cta-band h3,
.cta-band h4 {
  color: var(--heading-on-dark);
}

/* Optional shared dark-surface utility for consistent premium contrast. */
.section-dark,
.dark-section,
.theme-dark {
  color: var(--text-on-dark);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4,
.theme-dark h1,
.theme-dark h2,
.theme-dark h3,
.theme-dark h4 {
  color: var(--heading-on-dark);
}

.section-dark p,
.section-dark li,
.dark-section p,
.dark-section li,
.theme-dark p,
.theme-dark li {
  color: var(--muted-on-dark);
}

form {
  display: grid;
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
  color: var(--brand-navy);
}

input,
select,
textarea {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.62rem 0.72rem;
  background: var(--brand-white);
}

.form-wrap button[type="submit"] {
  background-color: var(--brand-green);
  color: var(--brand-white);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.form-wrap button[type="submit"]:hover {
  background-color: #264c30;
}

.faq-item {
  max-width: 76ch;
  margin-bottom: 1.5rem;
  padding: 1rem 1rem 1.25rem;
  border: 1px solid rgba(47, 93, 58, 0.55);
  border-radius: 12px;
  background: var(--brand-white);
}

.faq-item h3 {
  font-size: 1.28rem;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  color: var(--brand-navy);
}

.faq-item p {
  margin: 0;
  line-height: 1.78;
  color: #374151;
}

.map-frame {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
}

.page-hero {
  padding: 3.75rem 0 2.4rem;
  border-bottom: 1px solid var(--line);
  background: var(--brand-light-gray);
}

.breadcrumbs {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.7rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-social {
  width: 100%;
  margin-top: 0.25rem;
  font-weight: 500;
}

.footer-social a {
  color: var(--brand-navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
  color: var(--brand-green);
  border-color: var(--brand-green);
}

@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .hero .hero-grid > div:first-child {
    display: block;
  }

  .home-showcase {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .logo img {
    height: 56px;
  }

  .main-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .header-actions {
    justify-self: end;
    gap: 0.45rem;
  }

  .header-actions .btn-primary,
  .header-actions .btn-secondary {
    font-size: 0.84rem;
    padding: 10px 14px;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    background-image:
      linear-gradient(rgba(244, 246, 245, 0.64), rgba(244, 246, 245, 0.64)),
      url("/assets/images/hero-home-bg.jpeg");
    background-position: center 34%;
    background-size: cover;
  }

  .logo img {
    height: 62px;
  }

  section,
  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .home-showcase {
    grid-template-columns: 1fr;
  }

  .recent-work {
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .roof-gallery-slide img {
    height: 260px;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner {
    gap: 0.55rem;
  }

  .logo img {
    height: 56px;
  }

  .header-actions {
    gap: 0.3rem;
  }

  .header-actions .btn-primary,
  .header-actions .btn-secondary {
    font-size: 0.76rem;
    padding: 8px 10px;
  }
}

.thank-you {
  background: #f4f6f5;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.thank-you-box {
  background: #ffffff;
  max-width: 520px;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
}

.thank-you-box h1 {
  color: #1f2f45;
  margin-bottom: 12px;
}

.thank-you-box p {
  margin-bottom: 16px;
  color: #374151;
}

.thank-you-phone {
  display: inline-block;
  background: #2f6b3f;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  margin: 12px 0;
}

.thank-you-phone:hover {
  background: #255531;
}

.thank-you-link {
  display: inline-block;
  margin-top: 16px;
  color: #1f2f45;
  text-decoration: none;
  font-weight: 500;
}
