/* ==========================================================================
   Evergreen Building and Construction Corp — main stylesheet
   Palette and type carried over from the original WordPress theme.
   ========================================================================== */

:root {
  --green: #70b869;        /* primary brand green */
  --green-link: #3e7d38;   /* darker green for text links (WCAG AA contrast on white) */
  --green-dark: #104f39;   /* deep green (footer, headings on light) */
  --green-bright: #05aa02; /* highlight green */
  --yellow: #ffcc00;       /* CTA accent */
  --ink: #232323;          /* body text */
  --ink-light: #555555;
  --paper: #ffffff;
  --grey-bg: #f7f7f7;
  --grey-line: #e5e5e5;

  --font-head: "Raleway", Arial, sans-serif;
  --font-body: "Roboto", "Open Sans", sans-serif;

  --container: 1170px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(16, 79, 57, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: 44px; }
h2 { font-size: 34px; }
h3 { font-size: 24px; }
h4 { font-size: 19px; }

p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-link); text-decoration: none; }
a:hover { color: var(--green-dark); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Buttons ---------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }

.btn-accent { background: var(--yellow); color: var(--ink); }
.btn-accent:hover { background: var(--green); color: #fff; }

.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--green-dark); }

/* ---- Header (white brand row) ------------------------------------------ */

.site-header {
  background: #fff;
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
}

.site-logo { flex: 0 0 auto; }
.site-logo img { height: 46px; width: auto; max-width: min(380px, 48vw); object-fit: contain; }

.header-partners { display: flex; align-items: center; gap: 22px; }
.header-partners img { max-height: 72px; width: auto; }

/* ---- Nav bar (dark green) ----------------------------------------------- */

.navbar {
  background: var(--green-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  align-items: center;
}

.site-nav li { position: relative; }

.site-nav a {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  padding: 18px 14px;
}

.site-nav a:hover,
.site-nav li.active > a { color: var(--green); }

/* dropdowns */
.site-nav .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 260px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--green);
  flex-direction: column;
  gap: 0;
  padding: 6px 0;
}

.site-nav li:hover > .submenu,
.site-nav li:focus-within > .submenu { display: flex; }

.site-nav .submenu a {
  padding: 10px 18px;
  font-size: 13px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0.02em;
}
.site-nav .submenu a:hover { color: var(--green-link); }

.nav-social { display: flex; gap: 8px; }
.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  color: #fff;
}
.nav-social a:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  padding: 6px;
}

/* ---- Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 41, 29, 0.55);
}

.hero .container {
  position: relative;
  padding: 130px 20px;
}

.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero p.lead { font-size: 20px; max-width: 720px; margin: 0 auto 1.6em; }
.hero .hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* homepage hero: left-aligned copy over the composite slider image */
.hero.hero-home { text-align: left; }
.hero.hero-home::before { background: none; }
.hero.hero-home .container { padding: 130px 20px 150px; }
.hero.hero-home h1 { font-size: 52px; }
.hero.hero-home p.lead { margin: 0 0 2em; font-size: 17px; }
.hero.hero-home .hero-copy { max-width: 56%; }
.hero.hero-home .hero-actions { justify-content: flex-start; }
.hero.hero-home .hero-price {
  position: absolute;
  top: 40px;
  right: 6%;
  width: min(300px, 26vw);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

@media (max-width: 820px) {
  .hero.hero-home { text-align: center; }
  .hero.hero-home::before { background: rgba(9, 41, 29, 0.45); }
  .hero.hero-home .hero-copy { max-width: none; }
  .hero.hero-home .hero-actions { justify-content: center; }
  .hero.hero-home .hero-price { position: static; width: 220px; margin: 0 auto 24px; }
  .hero.hero-home .container { padding: 70px 20px; }
}

/* CTA strip: light green band, text left, angled yellow button right */
.cta-strip { background: var(--green); }
.cta-strip .container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-strip .cta-text {
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.06em;
  color: #0c2b1e;
  margin: 0;
  align-self: center;
  padding: 20px 0;
}
.cta-strip .cta-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: #111;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 26px 44px 26px 56px;
  clip-path: polygon(0 50%, 32px 0, 100% 0, 100% 100%, 32px 100%);
}
.cta-strip .cta-button:hover { background: #ffd83d; color: #111; }

@media (max-width: 820px) {
  .cta-strip .container { justify-content: center; text-align: center; }
  .cta-strip .cta-text { padding-bottom: 0; }
  .cta-strip .cta-button { clip-path: none; padding: 18px 30px; margin-bottom: 20px; }
}

/* page-title banner for inner pages */
.page-title {
  background: var(--green-dark);
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  text-align: center;
}
.page-title::before { content: ""; position: absolute; inset: 0; background: rgba(9, 41, 29, 0.6); }
.page-title .container { position: relative; padding: 70px 20px; }
.page-title h1 { color: #fff; margin: 0; font-size: 38px; }
.page-title.compact .container { padding: 32px 20px; }
.page-title.compact h1 { font-size: 26px; }

/* ---- Sections ---------------------------------------------------------- */

.section { padding: 80px 0; }
.section.alt { background: var(--grey-bg); }
.section.dark { background: var(--green-dark); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.section-head.left { text-align: left; margin-left: 0; }
.kicker {
  color: var(--green-link);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  display: block;
  margin-bottom: 10px;
}

/* generic responsive grids */
.grid { display: grid; gap: 30px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.center { align-items: center; }

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 28px;
}

.card h3 { font-size: 20px; }
.card .icon { font-size: 40px; color: var(--green); margin-bottom: 16px; }

.media-split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* checklist */
ul.checks { list-style: none; padding: 0; }
ul.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
ul.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-bright);
  font-weight: 700;
}

/* stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stats .num { font-family: var(--font-head); font-size: 42px; font-weight: 800; color: var(--yellow); }

/* CTA band */
.cta-band { background: var(--green); color: #fff; text-align: center; padding: 60px 0; }
.cta-band h2 { color: #fff; }

/* ---- Projects gallery --------------------------------------------------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--grey-bg);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery a:hover img { transform: scale(1.05); }

/* lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 42px;
  cursor: pointer;
  padding: 10px 18px;
}
.lightbox .lb-close { top: 12px; right: 18px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---- Reviews ------------------------------------------------------------ */

.review-card { display: flex; flex-direction: column; }
.review-card .stars { color: var(--yellow); font-size: 18px; letter-spacing: 3px; margin-bottom: 12px; }
.review-card .who { margin-top: auto; font-weight: 700; font-family: var(--font-head); }

/* ---- FAQ accordion ------------------------------------------------------ */

details.faq {
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: #fff;
}
details.faq summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  padding: 18px 22px;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
details.faq summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-size: 24px; color: var(--green); }
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 22px 18px; }

/* ---- Forms -------------------------------------------------------------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

.form-grid label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}

.form-grid input:focus,
.form-grid textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }

.consent { font-size: 12px; color: var(--ink-light); display: flex; gap: 10px; align-items: flex-start; }
.consent input { width: auto; margin-top: 4px; }

/* ---- Embeds ------------------------------------------------------------- */

.embed-frame { border: 0; width: 100%; }
.video-embed { aspect-ratio: 16 / 9; width: 100%; max-width: 860px; margin: 0 auto; display: block; border: 0; border-radius: var(--radius); }

/* ---- Footer ------------------------------------------------------------- */

.site-footer { background: var(--green-dark); color: rgba(255, 255, 255, 0.85); font-size: 15px; }
.site-footer .footer-main { padding: 70px 0 40px; }
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 20px; }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--yellow); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-logos { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.footer-logos img { max-height: 60px; width: auto; background: #fff; border-radius: 4px; padding: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px 0;
  font-size: 13px;
  text-align: center;
}

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 1250px) {
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero .container { padding: 90px 20px; }
}

@media (max-width: 990px) {
  .navbar { position: relative; }
  .navbar-inner { min-height: 52px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-dark);
    box-shadow: var(--shadow);
    padding: 4px 0 16px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 99;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 13px 24px; }
  .site-nav .submenu {
    display: flex;
    position: static;
    box-shadow: none;
    border-top: 0;
    padding-left: 16px;
    background: transparent;
  }
  .site-nav .submenu a { color: rgba(255, 255, 255, 0.85); }
  .site-nav .submenu a:hover { color: var(--green); }
  .header-partners img { max-height: 48px; }
}

@media (max-width: 640px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .header-brand { flex-wrap: wrap; justify-content: center; padding: 12px 0; min-height: 0; }
  .header-partners { gap: 12px; }
  .header-partners img { max-height: 40px; }
}
