/* Electricity For Corpus Christi — independent referral site
   Palette from Think Energy tokens; typography: DM Sans / Barlow.
   This site is not the Think Energy brand and does not use their logo. */

:root {
  --navy: #1f2a55;
  --navy-deep: #161d3a;
  --mint: #42f38e;
  --mint-dark: #2bd277;
  --indigo: #4c53e6;
  --white: #ffffff;
  --surface: #f1f3f9;
  --text: #1f2a55;
  --muted: #4d5570;
  --line: #d8dce8;
  --max: 70rem;
  --header-h: 4.25rem;
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --shadow: 0 16px 40px rgba(31, 42, 85, 0.12);
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--indigo); }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  z-index: 100;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

h1, h2, h3, .logo-word {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--navy);
}

h1 { font-size: clamp(2.15rem, 6vw, 3.5rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.35rem); margin: 0 0 0.85rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.4rem; letter-spacing: -0.02em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { color: var(--navy); transform: translateY(-1px); }
.btn-primary {
  background: var(--mint);
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(66, 243, 142, 0.35);
}
.btn-primary:hover { background: var(--mint-dark); color: var(--navy); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.btn-on-light {
  background: var(--navy);
  color: var(--white);
}
.btn-on-light:hover { background: #2a3870; color: var(--white); }

.btn .arrow { font-size: 1.15em; line-height: 1; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.15rem 0.55rem;
  text-decoration: none;
  color: var(--navy);
  flex-wrap: wrap;
}
.logo-word {
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.logo-for {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0;
}
.logo-city {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--navy);
  position: relative;
}
.logo-city::after {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: var(--mint);
  border-radius: 2px;
  margin-top: 0.12rem;
}

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--white);
  cursor: pointer;
  padding: 0.55rem;
}
.nav-toggle-btn span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}
.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem 1rem;
  flex-direction: column;
  gap: 0.35rem;
}
.nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  padding: 0.55rem 0.35rem;
}
.nav a:hover { color: var(--indigo); }
.nav-toggle:checked ~ .nav { display: flex; }
.logo { order: 1; }
.header-cta {
  display: inline-flex;
  padding: 0.55rem 0.8rem;
  font-size: 0.88rem;
  margin-left: auto;
  order: 2;
}
.nav-toggle-btn { margin-left: 0.25rem; order: 3; }
.nav { order: 4; }
.cta-short { display: none; }
@media (max-width: 560px) {
  .header-cta .cta-full { display: none; }
  .header-cta .cta-short { display: inline; }
}

@media (min-width: 1100px) {
  .logo, .header-cta, .nav-toggle-btn, .nav { order: unset; }
  .nav-toggle-btn { display: none; }
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.95rem;
    border: 0;
    padding: 0;
    background: transparent;
    margin-left: auto;
  }
  .nav > a, .nav .sub-label { padding: 0; font-size: 0.95rem; }
  .header-cta { padding: 0.65rem 1.05rem; font-size: 0.92rem; margin-left: 0; }
}

/* Hero */
.hero {
  padding: 2.25rem 0 3rem;
}
.hero-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 900px) {
  .hero { padding: 3.25rem 0 4.25rem; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.25rem; }
.fineprint {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  max-width: 22rem;
}

.hero-figure { position: relative; }
.hero-figure img,
.media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.hero-figure img { aspect-ratio: 16/9; }
.chip {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(255,255,255,0.94);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.02em;
  padding: 0.65rem 0.85rem;
  border-radius: 0.7rem;
  box-shadow: 0 8px 24px rgba(31,42,85,0.16);
  max-width: 15.5rem;
}

/* Sections */
section { padding: 3.25rem 0; }
@media (min-width: 800px) { section { padding: 4.5rem 0; } }

.section-intro { max-width: 40rem; margin-bottom: 2rem; }
.section-intro p { color: var(--muted); }

.band-surface { background: var(--surface); }
.band-navy {
  background: var(--navy);
  color: var(--white);
}
.band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy p, .band-navy li { color: rgba(255,255,255,0.86); }
.band-navy .muted-on-navy { color: rgba(255,255,255,0.72); }

.cards {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 800px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  border: 1px solid var(--line);
}
.band-surface .card { box-shadow: 0 8px 24px rgba(31,42,85,0.05); }
.icon-dot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  background: var(--mint);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}
.icon-dot svg { width: 1.25rem; height: 1.25rem; }
.card p { color: var(--muted); font-size: 1.05rem; }

/* Battery feature */
.feature {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 900px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 3rem;
    align-items: start;
  }
}
.feature-media img { aspect-ratio: 4/3; }
.facts { list-style: none; padding: 0; margin: 1.25rem 0; }
.facts li {
  position: relative;
  display: block;
  padding: 0.7rem 0 0.7rem 1.3rem;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
}
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--mint);
  border-radius: 50%;
}
.note {
  background: var(--surface);
  border-left: 4px solid var(--indigo);
  border-radius: 0 0.8rem 0.8rem 0;
  padding: 1rem 1.1rem;
  font-size: 1.02rem;
  color: var(--muted);
  margin: 1.25rem 0 1.5rem;
}
.note strong { color: var(--navy); }

/* How it works */
.steps {
  display: grid;
  gap: 1.1rem;
  counter-reset: step;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.6rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
}
.step-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--mint);
  letter-spacing: -0.04em;
  margin-bottom: 0.4rem;
}

/* Outage */
.outage-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .outage-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
  }
}

/* FAQ */
.faq-list { display: grid; gap: 0.65rem; max-width: 48rem; }
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.2rem;
}
.faq-list summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 0.95rem 1rem;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--indigo);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  padding: 0 1rem 1.05rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Final CTA */
.final {
  text-align: center;
  padding: 3.5rem 0;
}
.final p { max-width: 36rem; margin: 0 auto 1.5rem; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.55;
  padding: 2.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.1fr 1.4fr;
    gap: 3rem;
    align-items: start;
  }
}
.site-footer a { color: var(--mint); }
.site-footer a:hover { color: var(--white); }
.footer-legal p { margin-bottom: 0.75rem; }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
}
.inner-page { padding: 3rem 0 4rem; max-width: 44rem; }
.inner-page p { color: var(--muted); }

.footer-operator {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  margin: 0 0 1.1rem;
}

.inner-page h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.65rem;
}
.inner-page ul {
  color: var(--muted);
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
.inner-page li { margin-bottom: 0.4rem; }
.inner-page .effective {
  font-size: 0.95rem;
  margin-top: 2rem;
}

/* Subnav (Guides) */
.nav-group { position: relative; }
.sub-toggle { position: absolute; opacity: 0; pointer-events: none; }
.sub-label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  padding: 0.55rem 0.35rem;
}
.sub-label::after { content: "▾"; font-size: 0.7em; opacity: 0.7; }
.sub-nav {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.25rem 0 0.5rem 0.8rem;
}
.sub-nav a { font-weight: 600; font-size: 0.98rem; }
.sub-toggle:checked ~ .sub-nav { display: flex; }
@media (min-width: 1100px) {
  .sub-label { padding: 0; }
  .sub-nav {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 16.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 0.55rem;
    z-index: 45;
  }
  .nav-group:hover .sub-nav,
  .nav-group:focus-within .sub-nav,
  .sub-toggle:checked ~ .sub-nav { display: flex; }
  .sub-nav a { padding: 0.5rem 0.65rem; border-radius: 0.45rem; }
  .sub-nav a:hover { background: var(--surface); }
}

/* Breadcrumb and article layout */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 1.1rem;
}
.breadcrumb a { color: var(--indigo); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { opacity: 0.5; }

.page-hero {
  padding: 2rem 0 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero .lede { margin-bottom: 0; max-width: 40rem; }

.prose {
  max-width: 46rem;
  padding: 2.5rem 0 3rem;
}
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 2.1rem 0 0.7rem; }
.prose h3 { margin: 1.4rem 0 0.45rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: 0.4rem; }

.sources {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.35rem;
  margin: 2.25rem 0 0.5rem;
}
.sources h2 { margin-top: 0; font-size: 1.2rem; }
.sources ol { margin: 0; padding-left: 1.2rem; }
.sources li { color: var(--muted); font-size: 0.98rem; margin-bottom: 0.45rem; }
.sources a { overflow-wrap: anywhere; }

.related {
  display: grid;
  gap: 0.85rem;
  margin: 2rem 0 0.5rem;
}
@media (min-width: 800px) { .related { grid-template-columns: 1fr 1fr; } }
.related a {
  display: block;
  text-decoration: none;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.related a:hover { border-color: var(--indigo); color: var(--indigo); }
.related a span { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); margin-top: 0.3rem; font-size: 0.95rem; letter-spacing: 0; }

/* Mid-page and end CTAs */
.cta-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.45rem;
  margin: 1.75rem 0;
}
.cta-box h2, .cta-box h3 { margin-top: 0; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 0.9rem;
}
.cta-actions .fineprint { max-width: 24rem; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
}
.checklist li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.85rem;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid var(--indigo);
  border-radius: 0.25rem;
}

.why-grid {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 800px) { .why-grid { grid-template-columns: 1fr 1fr; } }
.why-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.4rem;
}
.band-surface .why-grid article { box-shadow: 0 8px 24px rgba(31,42,85,0.05); }

.guides-grid {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 800px) { .guides-grid { grid-template-columns: 1fr 1fr; } }
.guide-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.5rem;
}
.band-surface .guide-card { box-shadow: 0 8px 24px rgba(31,42,85,0.05); }
.guide-card:hover { border-color: var(--indigo); }
.guide-card h3 { color: var(--navy); }
.guide-card p { color: var(--muted); margin: 0; }

.footnote {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* Sticky mobile enroll bar */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(22, 29, 58, 0.96);
  backdrop-filter: blur(10px);
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(31,42,85,0.2);
  justify-content: center;
}
.sticky-cta .btn { width: 100%; max-width: 28rem; }
@media (max-width: 1099px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 5.25rem; }
}

/* Footer link columns */
.footer-grid-wide {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .footer-grid-wide {
    grid-template-columns: 1.1fr 1.6fr;
    gap: 3rem;
    align-items: start;
  }
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin: 0 0 1.5rem;
}
@media (min-width: 700px) {
  .footer-links { grid-template-columns: 1fr 1fr 1fr; }
}
.footer-links h3 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
}
.footer-links a {
  display: block;
  color: rgba(255,255,255,0.84);
  text-decoration: none;
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.footer-links a:hover { color: var(--mint); }

.page-404 { text-align: left; padding: 4rem 0 5rem; }
.page-404 h1 { margin-bottom: 0.8rem; }

.cta-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.cta-secondary:hover { background: var(--navy); color: var(--white); }
.band-navy .cta-secondary {
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.band-navy .cta-secondary:hover { background: rgba(255,255,255,0.1); color: var(--white); }

/* Real homeowner accounts — no stars or ratings */
.quotes-block { margin: 2rem 0 1rem; }
.quotes-block h2 { margin-top: 0; }
.quotes-grid {
  display: grid;
  gap: 1.1rem;
  margin: 1rem 0 0.75rem;
}
@media (min-width: 800px) { .quotes-grid { grid-template-columns: 1fr 1fr; } }
.quote {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.35rem 1.4rem;
}
.band-surface .quote { box-shadow: 0 8px 24px rgba(31,42,85,0.05); }
.quote blockquote { margin: 0 0 0.9rem; }
.quote blockquote p, .quote > p {
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--navy);
  font-weight: 600;
  margin: 0;
}
.quote figcaption {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.45;
}
.quote figcaption strong { color: var(--navy); }
