/* ============================================================
   Chatfield Companies — Landing Page Stylesheet
   ============================================================ */

:root {
  /* Brand greens — derived from the logo's exact green (#017a3f, HSL 150°/98%/24%).
     Every other green in the palette is harmonized to that hue. */
  --brand-green:    #017a3f;        /* exact logo bg — header, primary buttons */
  --brand-green-h:  #016833;        /* slightly darker — hover / depth */
  --green-dark:     #017a3f;        /* primary == brand (consolidated) */
  --green-mid:      #029048;        /* brighter mid for hover */
  --green-deep:     #01401f;        /* footer, deepest harmonized tone */
  --hunter:         #1f4d2c;        /* deep hunter green — eyebrow accent */
  --offwhite:       #f4f5f0;        /* near-white off-white — alt section bg */
  --offwhite-2:     #eceee6;        /* slightly deeper off-white */
  --cream:          #f4f5f0;        /* alias to offwhite */
  --accent:         #1f4d2c;        /* eyebrow highlight = hunter (replaces brass-gold) */
  --accent-soft:    #c8d8c1;        /* light hunter-tinted — eyebrows on dark cards */
  --dot-on-dark:    #c8d8c1;        /* bullets on green cards */
  --text:           #1a2820;        /* body text — slight green undertone */
  --text-soft:      #3a4a3f;        /* secondary text */
  --text-on-dark:   #f5f5f0;
  --border-soft:    rgba(1, 122, 63, 0.12);
  --shadow-sm:      0 2px 10px rgba(1, 80, 41, 0.08);
  --shadow-md:      0 12px 32px rgba(1, 80, 41, 0.14);
  --shadow-lg:      0 24px 60px rgba(1, 80, 41, 0.22);
  --radius:       14px;
  --radius-lg:    22px;
  --container:    1200px;
  --serif:        'Roboto Slab', Georgia, 'Times New Roman', serif;
  --sans:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============================================================
   Reset + base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-dark); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--green-mid); }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 800;
  color: var(--green-deep);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 3.2vw, 2.85rem); font-weight: 800; }
h3 { font-size: clamp(1.35rem, 1.7vw, 1.6rem); font-weight: 700; }
p  { margin: 0 0 1rem; }
body { font-weight: 400; }
.lead, .hero .lead { font-weight: 500; }
.eyebrow { font-weight: 800; letter-spacing: 0.22em; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-green);
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 2px 14px rgba(1, 80, 41, 0.18);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand img {
  height: 46px;
  width: auto;
}
.nav-primary {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-primary a {
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-primary a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.85);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--brand-green) !important;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav-cta:hover {
  background: var(--accent);
  color: #ffffff !important;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #ffffff;
  cursor: pointer;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 90px 0 80px;
  background: linear-gradient(180deg, #ffffff 0%, var(--offwhite) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  margin-bottom: 18px;
}
.hero .lead {
  font-size: 1.14rem;
  color: var(--text-soft);
  margin-bottom: 28px;
  max-width: 46ch;
}
.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease);
}
.btn-primary {
  background: var(--green-dark);
  color: #fff;
}
.btn-primary:hover {
  background: var(--green-mid);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn-outline:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-1px);
}
.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ============================================================
   Two-column sections (alternating)
   ============================================================ */
.section {
  padding: 100px 0;
}
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.section-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.section-alt {
  background: var(--offwhite);
}

/* Reverse the grid: media left, text right */
.section-grid.reverse {
  grid-template-columns: 1fr 1fr;
}
.section-grid.reverse .section-media { order: 1; }
.section-grid.reverse .section-text  { order: 2; }

/* ============================================================
   Green card (used for Industries, Quote CTA, One Contractor)
   ============================================================ */
.green-card {
  background: var(--green-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: 54px 48px;
  box-shadow: var(--shadow-md);
}
.green-card h2,
.green-card h3 {
  color: #fff;
}
.green-card .eyebrow {
  color: var(--accent-soft);
}
.green-card ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.green-card ul li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.92);
}
.green-card ul li:last-child { border-bottom: none; }
.green-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot-on-dark);
}

/* Quote section CTA button on dark card */
.green-card .btn {
  background: #fff;
  color: var(--green-dark);
  margin-top: 24px;
}
.green-card .btn:hover {
  background: var(--accent-soft);
  color: var(--green-deep);
  transform: translateY(-1px);
}

/* ============================================================
   Split green card — Industries (list) + Quote CTA side by side
   ============================================================ */
.green-card-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 60px 56px;
  align-items: stretch;
}
.green-card-split .gc-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.green-card-split .gc-col-cta {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: 56px;
}
.green-card-split .gc-col-cta p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.04rem;
  max-width: 42ch;
}
.green-card-split .gc-col-cta .btn {
  align-self: flex-start;
}
.green-card-split ul {
  margin-top: 8px;
}

/* ============================================================
   Solution-list — capabilities bullets on light bg (One Contractor)
   ============================================================ */
.solution-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.solution-list li {
  position: relative;
  padding: 14px 0 14px 28px;
  font-size: 1.04rem;
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
}
.solution-list li:last-child { border-bottom: none; }
.solution-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(1, 122, 63, 0.12);
}

/* ============================================================
   Why-Choose — bullets on light bg
   ============================================================ */
.why-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.why-list li {
  position: relative;
  padding: 14px 0 14px 40px;
  font-size: 1.06rem;
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
}
.why-list li:last-child { border-bottom: none; }
.why-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 14px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

/* ============================================================
   Services — 3-card grid (New Construction / Renovation / Retrofits)
   ============================================================ */
.services {
  padding: 100px 0;
  background: var(--cream);
  text-align: center;
}
.services-heading {
  max-width: 780px;
  margin: 0 auto 56px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border: 1px solid var(--border-soft);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-card .service-img {
  width: 160px;
  height: 160px;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--offwhite);
  background: var(--offwhite);
}
.service-card .service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .service-img img {
  transform: scale(1.08);
}
.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--text-soft);
  font-size: 0.98rem;
  margin: 0;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--brand-green);
  color: var(--text-on-dark);
  padding: 60px 0 36px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}
.footer-logo {
  max-width: 260px;
  margin: 0 auto 30px;
}
.footer-logo img {
  width: 100%;
  height: auto;
}
.footer-contact {
  font-size: 1rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.86);
}
.footer-contact a {
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.footer-contact a:hover {
  color: var(--accent-soft);
  border-bottom-color: var(--accent-soft);
}
.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   Contact (inline section above footer for Request a Quote)
   ============================================================ */
#contact {
  scroll-margin-top: 90px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero { padding: 60px 0 56px; }
  .hero-grid,
  .section-grid,
  .section-grid.reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .section-grid.reverse .section-media { order: 0; }
  .section-grid.reverse .section-text  { order: 0; }
  .section { padding: 70px 0; }
  .green-card { padding: 40px 32px; }
  .green-card-split {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 44px 32px;
  }
  .green-card-split .gc-col-cta {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-left: 0;
    padding-top: 32px;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .nav-primary li:not(.cta-item) { display: none; }
  .container { padding: 0 20px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 2rem; }
  .green-card { padding: 32px 24px; }
  .service-card { padding: 32px 22px; }
  .service-card .service-img { width: 130px; height: 130px; }
}
