/* ============================================
   ENERGEN RENEWABLES — Main Stylesheet
   ============================================ */

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

:root {
  --en-dark:        #0D1F1A;
  --en-green:       #1A7A4A;
  --en-green-mid:   #2AAD68;
  --en-accent:      #4FC38A;
  --en-slate:       #1E3A34;
  --en-navy:        #0F2D4A;
  --en-text:        #1a1a1a;
  --en-muted:       #5a6a65;
  --en-bg:          #F4F7F5;
  --en-white:       #FFFFFF;
  --en-border:      #D6E5DC;
  --en-blue:        #185FA5;
  --en-blue-light:  #E6F1FB;
}

html { scroll-behavior: smooth; }
body { font-family: 'Georgia', 'Times New Roman', serif; color: var(--en-text); background: var(--en-white); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Georgia', serif; font-weight: 300; line-height: 1.2; }
h1 { font-size: 42px; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }
strong { font-weight: 700; }
p { font-family: Arial, sans-serif; font-size: 15px; line-height: 1.75; color: var(--en-muted); }

/* ── NAV ── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 68px; background: var(--en-dark);
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 48px; width: auto; display: block; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-text span:first-child { font-family: Arial, sans-serif; font-size: 16px; font-weight: 900; color: white; letter-spacing: 0.08em; }
.nav-logo-text span:last-child  { font-family: Arial, sans-serif; font-size: 11px; font-weight: 400; color: rgba(255,255,255,0.85); letter-spacing: 0.18em; }
.nav-links { display: flex; }
.nav-link {
  color: rgba(255,255,255,0.7); font-family: Arial, sans-serif; font-size: 12px;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0 16px; height: 68px; display: flex; align-items: center;
  text-decoration: none; border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-link:hover, .nav-link.active { color: white; border-bottom-color: var(--en-accent); }
.nav-cta {
  background: var(--en-green); color: white; font-family: Arial, sans-serif;
  font-size: 12px; font-weight: 700; padding: 10px 20px; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; transition: background 0.15s;
}
.nav-cta:hover { background: var(--en-green-mid); }
.mobile-nav { display: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: white; transition: transform 0.2s ease, opacity 0.2s ease; }

/* ── HERO ── */
.hero {
  position: relative; min-height: 560px; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--en-dark) 0%, #1A3A2A 55%, var(--en-navy) 100%);
  overflow: hidden;
}
.hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.18;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,31,26,0.9) 40%, rgba(13,31,26,0.3)); }
.hero-content { position: relative; z-index: 2; padding: 4rem 3rem; max-width: 640px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(79,195,138,0.12); border: 1px solid rgba(79,195,138,0.3);
  color: var(--en-accent); font-family: Arial, sans-serif; font-size: 11px;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 14px; margin-bottom: 1.5rem;
}
.hero-title { font-size: 46px; color: white; margin-bottom: 1.25rem; }
.hero-title strong { color: var(--en-accent); }
.hero-sub { font-size: 16px; color: rgba(255,255,255,0.65); margin-bottom: 2rem; max-width: 480px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--en-green); color: white; font-family: Arial, sans-serif;
  font-size: 12px; font-weight: 700; padding: 13px 26px; letter-spacing: 0.07em;
  text-transform: uppercase; text-decoration: none; border: none; cursor: pointer;
  transition: background 0.15s; display: inline-block;
}
.btn-primary:hover { background: var(--en-green-mid); }
.btn-ghost {
  background: transparent; color: white; font-family: Arial, sans-serif;
  font-size: 12px; font-weight: 700; padding: 13px 26px; letter-spacing: 0.07em;
  text-transform: uppercase; text-decoration: none; border: 1px solid rgba(255,255,255,0.35);
  transition: border-color 0.15s, background 0.15s; display: inline-block;
}
.btn-ghost:hover { border-color: white; background: rgba(255,255,255,0.06); }
.hero-stats {
  position: absolute; right: 0; bottom: 0; display: flex; z-index: 2;
}
.hero-stat {
  background: rgba(0,0,0,0.45); border-left: 1px solid rgba(255,255,255,0.08);
  padding: 22px 28px; text-align: center; min-width: 120px;
}
.hero-stat-num { font-size: 30px; font-weight: 700; color: var(--en-accent); font-family: Arial, sans-serif; line-height: 1; }
.hero-stat-label { font-family: Arial, sans-serif; font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.5); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 6px; }

/* ── GENERAL SECTION ── */
.section { padding: 5rem 3rem; }
.section-alt { background: var(--en-bg); }
.section-dark { background: var(--en-dark); }
.section-slate { background: var(--en-slate); }
.section-green { background: var(--en-green); }
.container { max-width: 1100px; margin: 0 auto; }
.eyebrow { font-family: Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--en-green); margin-bottom: 0.75rem; }
.eyebrow-light { color: var(--en-accent); }
.section-title { margin-bottom: 1rem; }
.section-sub { max-width: 560px; }
.section-sub-light { color: rgba(255,255,255,0.6); }
.text-white { color: white; }
.text-white p { color: rgba(255,255,255,0.65); }

/* ── PAGE BANNER ── */
.page-banner {
  background: var(--en-dark); padding: 4rem 3rem;
  min-height: 200px; display: flex; align-items: center;
}
.page-banner .container { width: 100%; }
.page-banner h1 { color: white; font-size: 38px; margin-bottom: 0.75rem; }
.page-banner .banner-sub { color: rgba(255,255,255,0.6); font-size: 15px; max-width: 520px; margin-top: 0.75rem; }

/* ── HOME: STAT STRIP ── */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-strip-item { padding: 2.5rem 2rem; border-right: 1px solid rgba(255,255,255,0.08); text-align: center; }
.stat-strip-item:last-child { border-right: none; }
.stat-strip-num { font-size: 38px; font-weight: 700; color: var(--en-accent); font-family: Arial, sans-serif; line-height: 1; }
.stat-strip-label { font-family: Arial, sans-serif; font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 8px; line-height: 1.4; }

/* ── HOME: CARDS ── */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.card {
  background: var(--en-white); border: 1px solid var(--en-border);
  padding: 2rem; transition: box-shadow 0.2s; text-decoration: none; color: inherit; display: block;
}
.card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.09); }
.card-accent { display: block; width: 36px; height: 3px; background: var(--en-green); margin-bottom: 1.25rem; }
.card-title { font-size: 18px; font-weight: 700; color: var(--en-dark); margin-bottom: 0.75rem; font-family: Georgia, serif; }
.card-text { font-family: Arial, sans-serif; font-size: 14px; color: var(--en-muted); line-height: 1.7; }
.card-link { font-family: Arial, sans-serif; font-size: 12px; font-weight: 700; color: var(--en-green); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 1.25rem; display: block; }

/* ── HOME: SPLIT ── */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split-img { height: 460px; object-fit: cover; width: 100%; display: block; }
.split-content { padding: 4rem 3.5rem; display: flex; flex-direction: column; justify-content: center; background: var(--en-white); }
.split-content p { margin-bottom: 1rem; }

/* ── CTA BAND ── */
.cta-band { padding: 4rem 3rem; text-align: center; }
.cta-band h2 { font-size: 28px; font-weight: 300; color: white; margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 1.75rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.btn-white { background: white; color: var(--en-green); font-family: Arial, sans-serif; font-size: 12px; font-weight: 700; padding: 13px 28px; letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none; border: none; cursor: pointer; transition: opacity 0.15s; display: inline-block; }
.btn-white:hover { opacity: 0.9; }

/* ── FACILITIES MAP ── */
#map { width: 100%; height: 480px; border: 1px solid var(--en-border); }

/* ── PLANT GRID ── */
.plant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.plant-card { border: 1px solid var(--en-border); background: white; overflow: hidden; text-decoration: none; color: inherit; display: block; transition: box-shadow 0.2s; }
.plant-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.1); }
.plant-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.plant-body { padding: 1.5rem; }
.plant-state-badge {
  display: inline-block; font-family: Arial, sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; margin-bottom: 0.75rem;
}
.badge-ny { background: #E8F4EE; color: var(--en-green); border: 1px solid #C0DDD0; }
.badge-mi { background: var(--en-blue-light); color: var(--en-blue); border: 1px solid #B5D4F4; }
.plant-name { font-size: 20px; font-weight: 700; color: var(--en-dark); margin-bottom: 0.25rem; }
.plant-river { font-family: Arial, sans-serif; font-size: 12px; color: var(--en-muted); margin-bottom: 1rem; }
.plant-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plant-stat { background: var(--en-bg); padding: 10px 12px; }
.plant-stat-val { font-family: Arial, sans-serif; font-size: 18px; font-weight: 700; color: var(--en-dark); line-height: 1; }
.plant-stat-lbl { font-family: Arial, sans-serif; font-size: 10px; color: var(--en-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 3px; }
.plant-offtake { font-family: Arial, sans-serif; font-size: 11px; font-weight: 600; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--en-border); letter-spacing: 0.03em; text-transform: uppercase; }
.offtake-ny { color: var(--en-green); }
.offtake-mi { color: var(--en-blue); }
.plant-desc { font-family: Arial, sans-serif; font-size: 13px; color: var(--en-muted); margin-top: 10px; line-height: 1.65; }

/* ── SERVICES ── */
.services-split { display: grid; grid-template-columns: 1fr 1fr; }
.service-panel { padding: 4rem 3.5rem; }
.service-panel-a { background: var(--en-dark); }
.service-panel-b { background: var(--en-slate); }
.service-icon { width: 52px; height: 52px; background: rgba(79,195,138,0.12); border: 1px solid rgba(79,195,138,0.25); display: flex; align-items: center; justify-content: center; margin-bottom: 1.75rem; }
.service-title { font-size: 24px; color: white; margin-bottom: 1rem; }
.service-desc { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.75; margin-bottom: 1.75rem; }
.service-list { list-style: none; }
.service-list li { font-family: Arial, sans-serif; font-size: 13px; color: rgba(255,255,255,0.75); padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.07); display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.service-list li::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--en-accent); margin-top: 5px; flex-shrink: 0; }
.shop-img { width: 100%; height: 220px; object-fit: cover; display: block; margin-bottom: 1.75rem; }
.shop-location { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); padding: 14px 18px; margin-bottom: 1.75rem; }
.shop-location-label { font-family: Arial, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--en-accent); margin-bottom: 4px; }
.shop-location-val { font-family: Arial, sans-serif; font-size: 13px; color: rgba(255,255,255,0.7); }

/* ── WHY IN-HOUSE ── */
.why-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-img-wrap { position: relative; }
.about-img { width: 100%; height: 320px; object-fit: cover; display: block; }
.about-img-caption { background: rgba(13,31,26,0.88); color: white; font-family: Arial, sans-serif; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 11px 18px; }
.about-text p { margin-bottom: 1rem; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.pillar { border-left: 3px solid var(--en-green); padding-left: 1.25rem; }
.pillar-title { font-family: Arial, sans-serif; font-size: 12px; font-weight: 700; color: var(--en-dark); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.6rem; }
.pillar-text { font-family: Arial, sans-serif; font-size: 13px; color: var(--en-muted); line-height: 1.65; }
.conifer-badge { display: flex; align-items: flex-start; gap: 14px; background: var(--en-bg); border: 1px solid var(--en-border); padding: 18px 20px; margin-top: 2rem; }
.conifer-badge p { font-size: 13px; }

/* ── COMMUNITY ── */
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.community-card { padding: 2rem; border: 1px solid var(--en-border); background: white; }
.community-card-icon { width: 42px; height: 42px; background: #E8F4EE; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.community-card-title { font-size: 17px; font-weight: 700; color: var(--en-dark); margin-bottom: 0.75rem; }
.community-card-text { font-family: Arial, sans-serif; font-size: 14px; color: var(--en-muted); line-height: 1.7; }
.hydro-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; background: var(--en-bg); padding: 3rem; margin-top: 3rem; }
.hydro-fact-num { font-size: 34px; font-weight: 700; color: var(--en-green); line-height: 1; }
.hydro-fact-label { font-family: Arial, sans-serif; font-size: 13px; color: var(--en-muted); line-height: 1.5; margin-top: 8px; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 2.25rem; }
.contact-icon { width: 42px; height: 42px; background: #E8F4EE; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-label { font-family: Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--en-green); margin-bottom: 5px; }
.contact-value { font-family: Arial, sans-serif; font-size: 14px; color: var(--en-dark); line-height: 1.65; }
.contact-form { background: var(--en-bg); padding: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
label { font-family: Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--en-muted); display: block; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--en-border); background: white;
  font-family: Arial, sans-serif; font-size: 14px; color: var(--en-dark); outline: none;
  transition: border-color 0.15s; -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--en-green); }
textarea { height: 130px; resize: vertical; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6a65' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; cursor: pointer; }

/* ── FOOTER ── */
.footer { background: var(--en-dark); padding: 4rem 3rem 2rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand-name { font-family: Arial, sans-serif; font-size: 13px; font-weight: 700; color: white; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-brand-text { font-family: Arial, sans-serif; font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.75; }
.footer-col-title { font-family: Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: white; margin-bottom: 1.25rem; }
.footer-col-links { list-style: none; }
.footer-col-links li a { font-family: Arial, sans-serif; font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; display: block; padding: 4px 0; transition: color 0.15s; }
.footer-col-links li a:hover { color: var(--en-accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; font-family: Arial, sans-serif; font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: var(--en-accent); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .hero-stats { position: static; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.1); }
  .hero-stat { flex: 1; min-width: 100px; }
  .hero { flex-direction: column; min-height: auto; }
  .hero-content { padding: 3rem 1.5rem 1.5rem; }
  .stat-strip { grid-template-columns: repeat(2,1fr); }
  .stat-strip-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .cards-3, .plant-grid, .community-grid, .why-cards { grid-template-columns: 1fr; }
  .cards-2, .about-grid, .contact-grid, .split { grid-template-columns: 1fr; }
  .split-img { height: 300px; }
  .services-split { grid-template-columns: 1fr; }
  .service-panel { padding: 3rem 2rem; }
  .pillars { grid-template-columns: 1fr; }
  .hydro-facts { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: none; }
  .mobile-nav {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #0D1F1A; border-top: 1px solid rgba(255,255,255,0.12);
    z-index: 1000; height: 56px;
  }
  .mobile-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-decoration: none;
    color: rgba(255,255,255,0.55); font-family: Arial, sans-serif;
    font-size: 9px; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; gap: 3px;
  }
  .mobile-nav a.active, .mobile-nav a:hover { color: #4FC38A; }
  .mobile-nav a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  body { padding-bottom: 56px; }
  .section { padding: 3.5rem 1.5rem; }
  .page-banner { padding: 2.5rem 1.5rem; min-height: 160px; }
}
