/* ===========================================================
   Grassland Renewables — theme styles
   Clean white, high-contrast text, rounded edges, full width
   =========================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7f6;
  --color-surface: #ffffff;
  --color-text: #14211c;
  --color-text-muted: #4b5a53;
  --color-accent: #0f9d76;
  --color-accent-dark: #0b7d5e;
  --color-accent-contrast: #ffffff;
  --color-border: #e3e8e5;
  --radius-img: 14px;
  --radius-card: 18px;
  --radius-btn: 8px;
  --shadow-card: 0 6px 24px rgba(20, 33, 28, 0.06);
  --maxw: 1700px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--color-text);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { color: var(--color-text-muted); margin: 0 0 1rem; }
a { color: var(--color-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-img);
}
img.logo, .site-logo img { border-radius: 0; }

/* Layout helpers */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 2.5rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--color-bg-alt); }
.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--color-text-muted); max-width: 640px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem;
  font-weight: 700; color: var(--color-accent-dark); margin: 0 0 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--color-accent); color: var(--color-accent-contrast);
  padding: 0.8rem 1.5rem; border-radius: var(--radius-btn);
  font-weight: 600; border: none; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--color-accent-dark); text-decoration: none; transform: translateY(-1px); color: #fff; }
.btn--ghost { background: transparent; color: var(--color-accent-dark); border: 1.5px solid var(--color-border); }
.btn--ghost:hover { background: var(--color-bg-alt); color: var(--color-accent-dark); }
.btn--ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Cards & grid */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); padding: 1.75rem; box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: 0.5rem; }
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .container { padding: 0 1.25rem; }
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { max-height: 48px; width: auto; }
.logo-text { font-weight: 800; color: var(--color-text); font-size: 1.1rem; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.site-nav a, .nav-link { color: var(--color-text); font-weight: 500; }
.site-nav a:hover, .nav-link:hover, .nav-link.active { color: var(--color-accent-dark); text-decoration: none; }
.nav-cta { margin-left: 0.5rem; }
.nav-toggle, .nav-toggle-label { display: none; }
@media (max-width: 820px) {
  .nav-toggle-label { display: block; width: 28px; height: 22px; position: relative; cursor: pointer; }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: ""; position: absolute; left: 0; width: 100%; height: 2.5px;
    background: var(--color-text); border-radius: 2px; transition: 0.2s;
  }
  .nav-toggle-label span { top: 50%; transform: translateY(-50%); }
  .nav-toggle-label span::before { top: -8px; }
  .nav-toggle-label span::after { top: 8px; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 1.25rem 1rem; display: none;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav li { width: 100%; }
  .site-nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--color-border); display: block; }
  .nav-cta { margin: 0.75rem 0 0; justify-content: center; }
}

/* ---------------- Hero banner ---------------- */
.hero {
  position: relative; min-height: 72vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,20,16,0.65) 0%, rgba(8,20,16,0.45) 40%, rgba(8,20,16,0.72) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 820px; padding: 3rem 0; }
.hero-content h1 { color: #fff; margin-bottom: 1rem; }
.eyebrow--light { color: #7fe9c6; }
.hero-lead { font-size: 1.2rem; color: rgba(255,255,255,0.92); max-width: 640px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------------- Two-column row (story / about) ---------------- */
.split-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.split-grid.reverse { grid-template-columns: 1fr 1.1fr; }
@media (max-width: 820px) {
  .split-grid, .split-grid.reverse { grid-template-columns: 1fr; }
  .split-media { order: -1; }
}

/* ---------------- Services (image cards) ---------------- */
.services-grid { gap: 2rem; }
.service-card {
  display: flex; flex-direction: column; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-card);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20,33,28,0.12); }
.service-media { overflow: hidden; aspect-ratio: 16 / 9; }
.service-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 0.5s ease; }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-body { padding: 1.75rem; }
.service-body h3 { margin-bottom: 0.6rem; font-size: 1.4rem; }
.service-link { display: inline-block; margin-top: 0.5rem; font-weight: 600; color: var(--color-accent-dark); }

/* ---------------- Services page (numbered) ---------------- */
.service-item { position: relative; }
.service-item .num {
  display: inline-block; font-weight: 800; font-size: 0.9rem;
  color: var(--color-accent); background: #e7f6f0;
  border-radius: 999px; padding: 0.2rem 0.7rem; margin-bottom: 0.75rem;
}

/* ---------------- CTA banner ---------------- */
.cta-banner { background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%); padding: 4rem 0; }
.cta-banner h2 { color: #fff; margin-bottom: 1.5rem; }
.cta-banner .btn { background: #fff; color: var(--color-accent-dark); }
.cta-banner .btn:hover { background: #eafaf4; }

/* ---------------- Testimonials ---------------- */
.stars { color: #f5b50a; margin-bottom: 0.75rem; letter-spacing: 2px; }
.author { font-weight: 700; color: var(--color-text); }
.role { font-size: 0.9rem; color: var(--color-text-muted); }

/* ---------------- Projects ---------------- */
.project-card { padding: 0; overflow: hidden; }
.project-media img { border-radius: 0; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.project-card .tag {
  display: inline-block; margin: 1.25rem 1.25rem 0; font-size: 0.78rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-accent-dark);
}
.project-card h3 { margin: 0.4rem 1.25rem 1.5rem; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.contact-form label { display: block; margin-bottom: 1rem; font-weight: 600; color: var(--color-text); }
.contact-form label span { color: #d23; margin-left: 2px; }
.contact-form input, .contact-form textarea {
  width: 100%; margin-top: 0.4rem; padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-btn);
  font: inherit; color: var(--color-text); background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--color-accent); border-color: var(--color-accent); }
.contact-info { padding: 0.5rem; }
.contact-info p { color: var(--color-text-muted); }
.contact-info strong { color: var(--color-text); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--color-text); color: #c9d4cf; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-brand { font-weight: 800; color: #fff; font-size: 1.15rem; margin-bottom: 0.5rem; }
.site-footer p { color: #a9b6b0; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.85rem; }
.site-footer a, .site-footer span { display: block; color: #c9d4cf; margin-bottom: 0.5rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem; color: #8a9690;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* Generic page content (WordPress editor output) */
.page-content { max-width: 820px; margin: 0 auto; }
.page-content img { border-radius: var(--radius-img); margin: 1.5rem 0; }
