/* commercialenergyplan.com — Site Design System */

:root {
  --navy: #0f1e3c;
  --navy-light: #1a3060;
  --green: #16a34a;
  --green-dark: #15803d;
  --green-light: #dcfce7;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --white: #ffffff;
  --red: #dc2626;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-w: 1140px;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.12);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--green); }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ── Header / Nav ── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -.3px;
}

.site-logo span { color: #4ade80; }

.site-nav { display: flex; align-items: center; gap: 4px; }

.site-nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}

.site-nav a:hover { background: rgba(255,255,255,.1); color: var(--white); }

.site-nav .nav-cta {
  background: var(--green);
  color: var(--white);
  margin-left: 8px;
  padding: 8px 16px;
}

.site-nav .nav-cta:hover { background: var(--green-dark); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
  font-size: 1.4rem;
}

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 10px 0;
  font-size: .82rem;
  color: var(--gray-600);
}

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li::after { content: "›"; margin-left: 4px; color: var(--gray-400); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--gray-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb li:last-child { color: var(--gray-800); font-weight: 500; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 72px 0 60px;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 20px;
  max-width: 780px;
}

.hero h1 em { color: #4ade80; font-style: normal; }

.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255,255,255,.82);
  max-width: 660px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .1s, box-shadow .1s, background .15s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.btn:active { transform: translateY(0); }

.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline-white:hover { border-color: var(--white); color: var(--white); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); color: var(--white); }

.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }

/* ── Page Header (non-hero interior pages) ── */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 40px;
}

.page-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.4px;
  margin-bottom: 14px;
}

.page-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  max-width: 620px;
  line-height: 1.65;
}

/* ── Sections ── */
section { padding: 64px 0; }
section.section-sm { padding: 40px 0; }
section.section-lg { padding: 88px 0; }
section.bg-gray { background: var(--gray-50); }
section.bg-navy { background: var(--navy); color: var(--white); }
section.bg-green-light { background: var(--green-light); }

h2.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.4px;
  line-height: 1.25;
  margin-bottom: 12px;
}

p.section-lead {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 40px;
  max-width: 580px;
}

/* ── Article Content ── */
.article-body { max-width: 820px; }

.article-body h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
  margin: 48px 0 16px;
  color: var(--navy);
  letter-spacing: -.3px;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--gray-800);
}

.article-body p { margin-bottom: 18px; font-size: 1.02rem; line-height: 1.75; }

.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
}

.article-body li { margin-bottom: 8px; font-size: 1.02rem; line-height: 1.7; }

.article-body strong { color: var(--gray-800); }

.article-body a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--green); }

.article-body blockquote {
  border-left: 4px solid var(--green);
  padding: 16px 24px;
  background: var(--gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gray-600);
}

/* ── CTA Mid-Page ── */
.cta-mid {
  background: var(--gray-100);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 32px 0;
  font-size: .97rem;
}

.cta-mid a { color: var(--green-dark); font-weight: 600; }
.cta-mid a:hover { color: var(--green); }

/* ── CTA Block (full bottom) ── */
.cta-block {
  background: var(--navy);
  color: var(--white);
  padding: 52px 40px;
  border-radius: 10px;
  margin: 56px 0 0;
}

.cta-block h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -.3px;
}

.cta-block > p { color: rgba(255,255,255,.8); margin-bottom: 10px; max-width: 640px; }

.cta-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 36px;
}

.cta-option {
  background: rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid rgba(255,255,255,.12);
}

.cta-option h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
}

.cta-option p { font-size: .92rem; color: rgba(255,255,255,.7); margin-bottom: 20px; }

.cta-btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: .97rem;
  transition: background .15s;
}

.cta-btn:hover { background: var(--green-dark); color: var(--white); }

/* ── How It Works ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 20px;
}

.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: .95rem; color: var(--gray-600); line-height: 1.7; }

/* ── Industry / States Grids ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-decoration: none;
  color: var(--gray-800);
  transition: border-color .15s, box-shadow .15s, transform .1s;
  display: block;
}

.card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--navy);
}

.card .card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.card p { font-size: .87rem; color: var(--gray-600); line-height: 1.55; }

.state-link {
  display: block;
  padding: 10px 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-800);
  transition: background .12s, border-color .12s, color .12s;
}

.state-link:hover { background: var(--green-light); border-color: var(--green); color: var(--green-dark); }

/* ── Why Us ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.why-item { display: flex; gap: 16px; }
.why-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.why-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.why-item p { font-size: .92rem; color: var(--gray-600); line-height: 1.65; }

/* ── Stat strip ── */
.stat-strip {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 48px;
}

.stat strong { display: block; font-size: 2rem; font-weight: 800; color: #4ade80; }
.stat span { font-size: .9rem; color: rgba(255,255,255,.7); }

/* ── FAQ ── */
.faq-section { margin-top: 48px; }
.faq-section h2 { margin-bottom: 28px; }

.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 24px 0;
}

.faq-item:first-of-type { border-top: 1px solid var(--gray-200); }

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.45;
}

.faq-item p { font-size: .97rem; color: var(--gray-600); line-height: 1.75; }
.faq-item p + p { margin-top: 10px; }

/* ── Table ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  margin: 24px 0;
}

.data-table th {
  background: var(--navy);
  color: var(--white);
  text-align: left;
  padding: 12px 16px;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.data-table td { padding: 11px 16px; border-bottom: 1px solid var(--gray-200); }
.data-table tr:nth-child(even) td { background: var(--gray-50); }
.data-table tr:hover td { background: var(--green-light); }

/* ── Calculator Tool ── */
.calculator-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 36px;
  box-shadow: var(--shadow-md);
  max-width: 640px;
}

.calc-group { margin-bottom: 20px; }
.calc-group label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; color: var(--gray-800); }
.calc-group input, .calc-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--gray-800);
  transition: border-color .15s;
}
.calc-group input:focus, .calc-group select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22,163,74,.1);
}

.calc-result {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
  display: none;
}

.calc-result.visible { display: block; }
.calc-result h4 { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: rgba(255,255,255,.7); margin-bottom: 4px; }
.calc-result .result-number { font-size: 2.2rem; font-weight: 800; color: #4ade80; }

/* ── Notice / Disclaimer ── */
.notice {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: .87rem;
  color: var(--gray-600);
  margin: 24px 0;
}

/* ── Tags / Labels ── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.tag-navy { background: var(--navy); color: var(--white); }
.tag-green { background: var(--green-light); color: var(--green-dark); }
.tag-gray { background: var(--gray-200); color: var(--gray-600); }

/* ── Footer ── */
.site-footer {
  background: var(--gray-800);
  color: rgba(255,255,255,.75);
  padding: 56px 0 28px;
  margin-top: 80px;
  font-size: .9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 44px;
}

.footer-col h4 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }

.footer-col a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .87rem;
  transition: color .12s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal { font-size: .8rem; color: rgba(255,255,255,.45); max-width: 700px; line-height: 1.65; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.55); font-size: .82rem; text-decoration: none; }
.footer-links a:hover { color: var(--white); }

/* ── Disclosure Box ── */
.disclosure {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .82rem;
  color: var(--gray-600);
  margin: 40px 0 0;
  font-style: italic;
}

/* ── Internal links section ── */
.related-links {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  margin: 40px 0;
}

.related-links h3 { font-size: .92rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; color: var(--gray-600); }
.related-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.related-links a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .88rem;
  text-decoration: none;
  color: var(--navy);
  transition: border-color .12s, color .12s;
}
.related-links a:hover { border-color: var(--green); color: var(--green-dark); }

/* ── Highlight box ── */
.highlight-box {
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 20px 24px;
  background: var(--green-light);
  margin: 28px 0;
}

.highlight-box strong { color: var(--green-dark); }

/* ── Two-col layout ── */
.layout-article {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-card h4 { font-size: .9rem; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--gray-600); }
.sidebar-cta { background: var(--navy); color: var(--white); }
.sidebar-cta h4 { color: rgba(255,255,255,.7); }
.sidebar-cta p { font-size: .88rem; color: rgba(255,255,255,.7); margin-bottom: 14px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .layout-article { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-options { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  section { padding: 44px 0; }
  .hero { padding: 48px 0 40px; }
  .page-header { padding: 36px 0 30px; }
  .cta-block { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .hero-cta-row { flex-direction: column; align-items: flex-start; }
  .nav-toggle { display: block; }
  .site-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 12px 16px; }
  .stat-strip { gap: 28px; }
}

/* Booking modal */
.booking-modal { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; }
.booking-modal[hidden] { display: none; }
.booking-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); cursor: pointer; }
.booking-modal-box { position: relative; z-index: 1; background: #fff; border-radius: 12px; width: min(720px, 95vw); height: min(680px, 90vh); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.booking-modal-close { position: absolute; top: 10px; right: 14px; z-index: 2; background: none; border: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--navy); padding: 4px 8px; border-radius: 4px; }
.booking-modal-close:hover { background: var(--light); }
.booking-modal-box iframe { flex: 1; width: 100%; border: none; }
@media (max-width: 600px) {
  .booking-modal-box { width: 100vw; height: 100dvh; border-radius: 0; }
}
