/* ==========================================================================
   Greenline Efficiency Group — warm, friendly, organic
   Palette: green #16A34A · charcoal #111827 · cream #FAF7F0
   Fonts: Zilla Slab (headings) · Raleway (body)
   ========================================================================== */

:root {
  --green: #16A34A;
  --green-dark: #15803D;
  --green-soft: #DCEFE0;
  --green-tint: #EAF6EE;
  --charcoal: #111827;
  --cream: #FAF7F0;
  --white: #FFFFFF;
  --muted: #4B5563;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(17, 24, 39, 0.07);
  --shadow-lift: 0 12px 32px rgba(17, 24, 39, 0.11);
  --font-heading: "Zilla Slab", Georgia, serif;
  --font-body: "Raleway", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.0625rem;
}

img, svg { max-width: 100%; height: auto; }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.narrow { max-width: 720px; }

.section { padding: 5.5rem 0; }

.band { background: var(--white); }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p + p { margin-top: 1rem; }

a { color: var(--green-dark); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.6rem;
}

.section-intro {
  max-width: 640px;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-ghost:hover { background: var(--charcoal); color: var(--cream); }

.btn-light {
  background: var(--cream);
  color: var(--charcoal);
}

.btn-light:hover { background: var(--white); transform: translateY(-2px); }

/* ===== Header / nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--charcoal);
  text-decoration: none;
  line-height: 1.1;
}

.logo span { color: var(--green-dark); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-menu a:not(.btn) {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-menu a:not(.btn):hover {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.nav-cta { padding: 0.55rem 1.3rem; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--charcoal);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero: full-bleed photo ===== */
.hero {
  min-height: 76vh;
  display: flex;
  align-items: center;
  padding: 6.5rem 0;
  background:
    linear-gradient(105deg, rgba(17, 24, 39, 0.86) 0%, rgba(17, 24, 39, 0.62) 48%, rgba(21, 128, 61, 0.45) 100%),
    url("https://images.unsplash.com/photo-1591684080176-bb2b73f9ec68?auto=format&fit=crop&w=1600&q=80") center / cover no-repeat;
}

.hero-text { max-width: 40rem; }

.hero .eyebrow { color: #86EFAC; }

.hero h1 { color: var(--white); }

.hero-sub {
  color: rgba(250, 247, 240, 0.92);
  font-size: 1.2rem;
  max-width: 34rem;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
}

.hero .btn-ghost:hover {
  background: var(--white);
  color: var(--charcoal);
}

/* ===== About: text + photo ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.about-photo { margin: 0; }

.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

/* ===== Services cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.band .card { background: var(--cream); }
.section:not(.band) .card { background: var(--white); }

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--green-tint);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.card-icon svg { width: 34px; height: 34px; }

.card-featured { overflow: hidden; }

.card-photo {
  display: block;
  width: calc(100% + 3.5rem);
  margin: -2rem -1.75rem 1.5rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card p { color: var(--muted); font-size: 0.98rem; }

/* ===== FAQ accordion ===== */
.faq-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}

.faq-photo {
  margin: 0;
  position: sticky;
  top: 6rem;
}

.faq-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

.faq-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.05);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  padding: 1.25rem 1.5rem;
}

.faq-question:hover { color: var(--green-dark); }

.faq-chevron {
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-right: 4px;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(225deg);
}

.faq-answer {
  padding: 0 1.5rem 1.4rem;
  color: var(--muted);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }

.form-field label { font-weight: 700; font-size: 0.95rem; }

.label-hint { font-weight: 400; color: var(--muted); }

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid rgba(17, 24, 39, 0.2);
  border-radius: 10px;
  background: var(--white);
  color: var(--charcoal);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--green);
}

.form-field input[type="file"] { font-size: 0.95rem; }

.form-field.error input,
.form-field.error textarea { border-color: #B91C1C; }

.field-error {
  color: #B91C1C;
  font-size: 0.88rem;
}

.checkbox-field {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.7rem;
}

.checkbox-field input {
  margin-top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--green);
  flex: none;
}

.checkbox-field label { font-weight: 400; font-size: 0.92rem; color: var(--muted); }

.contact-form .btn { align-self: flex-start; }

.form-status { font-weight: 500; min-height: 0; }

.form-status.success {
  color: var(--green-dark);
  background: var(--green-tint);
  border-radius: 10px;
  padding: 0.8rem 1rem;
}

.form-status.error { color: #B91C1C; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.info-block h3 { margin-bottom: 0.35rem; }

.info-block address { font-style: normal; color: var(--muted); }

.info-block a { color: var(--charcoal); text-decoration-color: var(--green); }

.info-block a:hover { color: var(--green-dark); }

.hours-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 320px;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(17, 24, 39, 0.15);
  font-weight: 400;
  color: var(--muted);
  font-size: 0.97rem;
}

.hours-table th { color: var(--charcoal); font-weight: 500; padding-right: 1.5rem; }

/* ===== Pre-footer photo band ===== */
.photo-band img {
  display: block;
  width: 100%;
  height: clamp(200px, 32vw, 320px);
  object-fit: cover;
}

/* ===== Newsletter band ===== */
.newsletter {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  color: var(--white);
  padding: 3.5rem 0;
}

.newsletter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.newsletter h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 0.3rem;
}

.newsletter-micro { font-size: 0.9rem; opacity: 0.85; }

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.newsletter-form input[type="email"] {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1.1rem;
  border: none;
  border-radius: 999px;
  min-width: 260px;
  color: var(--charcoal);
  background: var(--white);
}

.newsletter-form .form-status { flex-basis: 100%; color: var(--white); }

.newsletter-form .form-status.success {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.newsletter-form .form-status.error { color: #FEF3C7; }

/* ===== Footer ===== */
.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.footer-city { color: rgba(250, 247, 240, 0.65); font-size: 0.95rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-nav a:hover { color: #4ADE80; text-decoration: underline; }

.footer-copy { color: rgba(250, 247, 240, 0.55); font-size: 0.9rem; }

/* ===== Legal pages ===== */
.legal-main { padding: 3.5rem 0 4.5rem; }

.legal-main h1 { margin-bottom: 0.5rem; }

.legal-updated { color: var(--muted); margin-bottom: 2.25rem; font-size: 0.95rem; }

.legal-main h2 { font-size: 1.45rem; margin-top: 2.25rem; }

.legal-main ul { padding-left: 1.4rem; margin-top: 0.6rem; }

.legal-main li + li { margin-top: 0.35rem; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { min-height: 60vh; padding: 5rem 0; }
  .about-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .about-photo img { aspect-ratio: 16 / 10; }
  .faq-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .faq-photo { position: static; }
  .faq-photo img { aspect-ratio: 16 / 10; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }

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

  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(17, 24, 39, 0.1);
    box-shadow: var(--shadow);
    display: none;
    padding: 0.5rem 1.25rem 1.25rem;
  }

  .nav-menu.open { display: flex; }

  .nav-menu a:not(.btn) {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  }

  .nav-cta { margin-top: 1rem; text-align: center; }

  .newsletter-inner { flex-direction: column; align-items: flex-start; }

  .newsletter-form input[type="email"] { min-width: 0; width: 100%; }

  .newsletter-form { width: 100%; }
}
