/* =========================================================
   FAIR UTILITIES — Brand Design System
   Reusable across sister-company sites: swap the 6 variables
   in :root and /assets/logo.* to reskin.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* ---- BRAND TOKENS (edit these 6 to reskin for another company) ---- */
  --brand-navy:      #3C3C63;
  --brand-blue:      #097DC2;
  --brand-blue-2:    #4FA6DE;   /* lighter accent / hover */
  --brand-footer:    #22223B;   /* deep navy-black footer */
  --company-name:    "Fair Utilities";
  --tagline:         "Energizing Fair Choices";

  /* ---- DERIVED / STRUCTURAL TOKENS (rarely need editing) ---- */
  --bg-page:     #FFFFFF;
  --bg-alt:      #F6F8FB;
  --text-main:   #23233A;
  --text-muted:  #6C6C86;
  --border-soft: #E7E9F2;
  --radius-md:   10px;
  --radius-lg:   18px;
  --shadow-sm:   0 2px 10px rgba(60,60,99,0.06);
  --shadow-md:   0 10px 30px rgba(60,60,99,0.12);
  --font-head:   'Space Grotesk', sans-serif;
  --font-body:   'Inter', sans-serif;
  --container:   1160px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--font-body);
  color:var(--text-main);
  background:var(--bg-page);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
.container{ width:100%; max-width:var(--container); margin:0 auto; padding:0 24px; }
section{ padding:88px 0; }
h1,h2,h3,h4{ font-family:var(--font-head); color:var(--brand-navy); line-height:1.2; font-weight:700; }
h1{ font-size:clamp(2.1rem,4vw,3.2rem); }
h2{ font-size:clamp(1.6rem,3vw,2.3rem); }
h3{ font-size:1.15rem; }
p{ color:var(--text-muted); }
.eyebrow{ text-transform:uppercase; letter-spacing:.14em; font-size:.72rem; font-weight:700; color:var(--brand-blue); font-family:var(--font-head); }
.underline{ width:56px; height:3px; background:var(--brand-blue); border-radius:2px; margin:14px 0 22px; }
.center{ text-align:center; }
.center .underline{ margin-left:auto; margin-right:auto; }
.btn{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--brand-blue); color:#fff; font-family:var(--font-head);
  font-weight:600; font-size:.92rem; padding:13px 28px; border-radius:8px;
  border:none; cursor:pointer; transition:.2s ease; box-shadow:var(--shadow-sm);
}
.btn:hover{ background:var(--brand-navy); transform:translateY(-2px); }
.btn-outline{ background:transparent; border:1.5px solid rgba(255,255,255,.55); color:#fff; }
.btn-outline:hover{ background:#fff; color:var(--brand-navy); }

/* ---------- HEADER ---------- */
.site-header{
  position:sticky; top:0; z-index:100; background:#fff;
  border-bottom:1px solid var(--border-soft);
}
.nav-wrap{ display:flex; align-items:center; justify-content:space-between; padding:14px 24px; max-width:var(--container); margin:0 auto; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ height:60px; width:auto; }
.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-links a{ font-family:var(--font-head); font-size:.9rem; font-weight:600; color:var(--brand-navy); position:relative; padding:6px 0; }
.nav-links a:hover, .nav-links a.active{ color:var(--brand-blue); }
.nav-links .has-dropdown{ position:relative; cursor:pointer; }
.dropdown{
  position:absolute; top:130%; left:0; background:#fff; min-width:240px;
  border-radius:var(--radius-md); box-shadow:var(--shadow-md); border:1px solid var(--border-soft);
  opacity:0; visibility:hidden; transform:translateY(6px); transition:.18s ease; padding:8px;
}
.has-dropdown:hover .dropdown{ opacity:1; visibility:visible; transform:translateY(0); }
.dropdown a{ display:block; padding:10px 14px; border-radius:7px; font-size:.86rem; }
.dropdown a:hover{ background:var(--bg-alt); }
.nav-cta{ background:var(--brand-navy); color:#fff; padding:10px 20px; border-radius:8px; font-family:var(--font-head); font-weight:600; font-size:.88rem; }
.nav-cta:hover{ background:var(--brand-blue); color:#fff; }
.burger{ display:none; }

/* ---------- HERO (icon/graphic based — no photography) ---------- */
.hero{
  position:relative; overflow:hidden;
  background:linear-gradient(135deg,var(--brand-navy) 0%, #2b2b4d 55%, var(--brand-blue) 130%);
  color:#fff; padding:110px 0 100px;
}
.hero .container{ position:relative; z-index:2; max-width:760px; }
.hero .eyebrow{ color:var(--brand-blue-2); }
.hero h1{ color:#fff; margin:14px 0 18px; }
.hero p{ color:rgba(255,255,255,.82); font-size:1.05rem; max-width:560px; margin-bottom:32px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.hex-field{ position:absolute; inset:0; z-index:1; opacity:.5; }
.page-hero{
  background:linear-gradient(135deg,var(--brand-navy), #2b2b4d 60%, var(--brand-blue) 140%);
  color:#fff; padding:64px 0; position:relative; overflow:hidden;
}
.page-hero h1{ color:#fff; }
.page-hero .crumb{ color:rgba(255,255,255,.7); font-size:.85rem; margin-top:8px; font-family:var(--font-head); }

/* ---------- ICON TILES ---------- */
.icon-hex{
  width:64px; height:64px; display:flex; align-items:center; justify-content:center;
  background:var(--brand-blue); color:#fff;
  clip-path:polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
  flex-shrink:0;
}
.icon-hex svg{ width:28px; height:28px; }
.icon-hex.dark{ background:var(--brand-navy); }

/* ---------- GRID / CARDS ---------- */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
.grid-2{ display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center; }
@media(max-width:860px){ .grid-3{ grid-template-columns:1fr; } .grid-2{ grid-template-columns:1fr; } }

.card{ background:#fff; border:1px solid var(--border-soft); border-radius:var(--radius-lg); padding:34px 28px; box-shadow:var(--shadow-sm); transition:.2s; }
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.card h3{ margin:18px 0 10px; }
.card p{ font-size:.92rem; }

.section-alt{ background:var(--bg-alt); }

.stats-band{
  background:linear-gradient(120deg,var(--brand-blue), #24c6b7 60%, var(--brand-navy));
  color:#fff; padding:44px 0;
}
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); text-align:center; gap:20px; }
.stats-grid .num{ font-family:var(--font-head); font-size:2.1rem; font-weight:700; }
.stats-grid .lbl{ font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; opacity:.9; }
@media(max-width:700px){ .stats-grid{ grid-template-columns:repeat(2,1fr); } }

.dark-panel{
  background:radial-gradient(circle at 20% 20%, #2b2b4d, var(--brand-navy) 65%);
  color:#fff; position:relative; overflow:hidden;
}
.dark-panel h2{ color:#fff; }
.dark-panel .underline{ margin-left:auto; margin-right:auto; }

.team-card{ text-align:center; }
.team-avatar{
  width:96px; height:96px; border-radius:50%; margin:0 auto 14px;
  background:linear-gradient(135deg,var(--brand-blue),var(--brand-navy));
  display:flex; align-items:center; justify-content:center; color:#fff;
  font-family:var(--font-head); font-weight:700; font-size:1.4rem;
}
.team-card h3{ margin-bottom:2px; }
.team-role{ font-size:.82rem; color:var(--brand-blue); font-weight:600; }

.testimonial{ background:#fff; border:1px solid var(--border-soft); border-radius:var(--radius-lg); padding:28px; box-shadow:var(--shadow-sm); }
.testimonial p{ font-style:italic; color:var(--text-main); font-size:.94rem; }
.testi-person{ display:flex; align-items:center; gap:12px; margin-top:18px; }
.testi-avatar{ width:42px; height:42px; border-radius:50%; background:var(--brand-blue); color:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--font-head); font-weight:700; }
.testi-name{ font-weight:700; font-size:.88rem; color:var(--brand-navy); }
.testi-role{ font-size:.76rem; color:var(--text-muted); }

/* ---------- ACCORDION (FAQ) ---------- */
.accordion-item{ border:1px solid var(--border-soft); border-radius:var(--radius-md); margin-bottom:12px; overflow:hidden; background:#fff; }
.accordion-item.open .acc-btn{ background:var(--brand-blue); color:#fff; }
.acc-btn{
  width:100%; text-align:left; background:none; border:none; cursor:pointer;
  padding:18px 20px; font-family:var(--font-head); font-weight:600; font-size:.94rem;
  display:flex; justify-content:space-between; align-items:center; color:var(--brand-navy);
}
.acc-btn .sign{ font-size:1.2rem; font-family:var(--font-body); }
.acc-panel{ max-height:0; overflow:hidden; transition:max-height .28s ease; }
.acc-panel-in{ padding:2px 20px 20px; font-size:.92rem; color:var(--text-muted); }

/* ---------- FORM ---------- */
.form-field{ margin-bottom:18px; }
.form-field label{ display:block; font-size:.84rem; font-weight:600; color:var(--brand-navy); margin-bottom:7px; font-family:var(--font-head); }
.form-field input, .form-field select, .form-field textarea{
  width:100%; padding:13px 14px; border:1px solid var(--border-soft); border-radius:8px;
  font-family:var(--font-body); font-size:.92rem; background:var(--bg-alt); color:var(--text-main);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{ outline:2px solid var(--brand-blue); background:#fff; }

.contact-strip{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; margin-top:56px; }
@media(max-width:800px){ .contact-strip{ grid-template-columns:1fr; } }
.contact-strip .card{ text-align:center; }

/* ---------- FOOTER ---------- */
footer{ background:var(--brand-footer); color:rgba(255,255,255,.78); padding:64px 0 26px; }
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:40px; }
@media(max-width:760px){ .footer-grid{ grid-template-columns:1fr; } }
footer h4{ color:#fff; font-size:.95rem; margin-bottom:18px; }
footer .f-brand{ color:var(--brand-blue-2); font-family:var(--font-head); font-weight:700; font-size:1.2rem; margin-bottom:14px; }
footer p, footer a{ font-size:.88rem; color:rgba(255,255,255,.68); }
footer ul li{ margin-bottom:10px; }
footer a:hover{ color:var(--brand-blue-2); }
.f-bottom{ border-top:1px solid rgba(255,255,255,.12); margin-top:40px; padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.8rem; color:rgba(255,255,255,.5); }
.socials{ display:flex; gap:10px; margin-top:16px; }
.socials a{ width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; }
.socials a:hover{ background:var(--brand-blue); }

/* ---------- RESPONSIVE NAV ---------- */
@media(max-width:900px){
  .nav-links{ position:fixed; inset:64px 0 0 0; background:#fff; flex-direction:column; align-items:flex-start; padding:30px 24px; gap:20px; transform:translateX(100%); transition:.25s; overflow-y:auto; }
  .nav-links.open{ transform:translateX(0); }
  .dropdown{ position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:none; display:none; padding-left:10px; }
  .has-dropdown.open .dropdown{ display:block; }
  .burger{ display:block; background:none; border:none; font-size:1.6rem; color:var(--brand-navy); cursor:pointer; }
}
@media(min-width:901px){ .burger{ display:none; } }
