/* ===================================
   Energy Billing — Landing Page Styles
   Exact replica of paybills.html design
   =================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: inherit;
  color: #111827;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

img, svg, video {
  display: block;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

/* --- Layout Utility --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex-grow: 1;
}

/* --- Top Bar --- */
.top-bar {
  background: linear-gradient(to right, #2563eb, #1d4ed8);
  color: #fff;
  padding: 0.5rem 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.15s;
}

.top-bar-links a:hover {
  color: #dbeafe;
}

.top-bar-links a .font-semibold {
  font-weight: 600;
}

.top-bar-availability {
  font-size: 0.75rem;
}

/* --- Header / Nav --- */
.site-header {
  background: #fff;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  position: relative;
  background: linear-gradient(to bottom right, #3b82f6, #1d4ed8);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  color: #2563eb;
  fill: currentColor;
  stroke: currentColor;
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.25;
}

.logo-tagline {
  font-size: 0.75rem;
  color: #4b5563;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1.25;
  border-top: 1px solid #2563eb;
  padding-top: 0.125rem;
  margin-top: 0.125rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: #374151;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #2563eb;
}

.btn-pay-now {
  background: #2563eb;
  color: #fff !important;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background 0.15s;
}

.btn-pay-now:hover {
  background: #1d4ed8;
}

/* --- Mobile Menu Toggle (hamburger) --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #374151;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(to bottom right, #eff6ff, #fff);
  padding: 4rem 0;
}

.hero-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.hero p {
  font-size: 1.25rem;
  color: #374151;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #2563eb;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  transition: background 0.15s;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.btn-call:hover {
  background: #1d4ed8;
}

.btn-email {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #2563eb;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  transition: background 0.15s;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  border: 2px solid #2563eb;
}

.btn-email:hover {
  background: #f9fafb;
}

/* --- Features Grid --- */
.features {
  padding: 4rem 0;
  background: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.feature-icon.blue { background: #dbeafe; }
.feature-icon.green { background: #dcfce7; }
.feature-icon.orange { background: #ffedd5; }

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-icon.blue svg { color: #2563eb; }
.feature-icon.green svg { color: #16a34a; }
.feature-icon.orange svg { color: #ea580c; }

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: #4b5563;
}

/* --- Services Section --- */
.services {
  padding: 4rem 0;
  background: #f9fafb;
}

.services-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.services h2 {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 2.25rem;
}

.services .subtitle {
  text-align: center;
  color: #4b5563;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2563eb;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #374151;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.service-list li svg {
  color: #22c55e;
  margin-top: 0.125rem;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* CTA Banner */
.cta-banner {
  background: #2563eb;
  color: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
}

.cta-banner h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.btn-cta {
  display: inline-block;
  background: #fff;
  color: #2563eb;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background 0.15s;
}

.btn-cta:hover {
  background: #f3f4f6;
}

/* --- Providers Section --- */
.providers {
  padding: 4rem 0;
  background: #fff;
}

.providers h2 {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  line-height: 2.25rem;
}

.providers-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.providers-intro {
  text-align: center;
  color: #4b5563;
  margin-bottom: 2rem;
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.provider-tag {
  background: #f9fafb;
  padding: 0.75rem;
  border-radius: 0.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: #374151;
  transition: background 0.15s, color 0.15s;
}

.provider-tag:hover {
  background: #eff6ff;
  color: #2563eb;
}

.providers-footer {
  text-align: center;
  color: #4b5563;
  margin-top: 2rem;
}

/* --- How-To Section --- */
.how-to {
  padding: 4rem 0;
  background: linear-gradient(to bottom right, #f9fafb, #eff6ff);
}

.how-to-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.how-to h2 {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  line-height: 2.25rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  text-align: center;
}

.step-number {
  background: #2563eb;
  color: #fff;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p {
  color: #4b5563;
}

/* --- Final CTA Section --- */
.final-cta {
  padding: 4rem 0;
  background: #fff;
}

.final-cta-card {
  max-width: 56rem;
  margin: 0 auto;
  background: linear-gradient(to right, #2563eb, #1d4ed8);
  color: #fff;
  padding: 3rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.final-cta-card h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 2.25rem;
}

.final-cta-card > p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.final-cta-actions {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
}

.btn-final-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #fff;
  color: #2563eb;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  transition: background 0.15s;
}

.btn-final-call:hover {
  background: #f3f4f6;
}

.btn-final-email {
  display: inline-block;
  background: #1e40af;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  transition: background 0.15s;
}

.btn-final-email:hover {
  background: #1e3a8a;
}

/* --- Footer --- */
.site-footer {
  background: #111827;
  color: #d1d5db;
}

.footer-inner {
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Footer logo */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  position: relative;
  background: linear-gradient(to bottom right, #60a5fa, #2563eb);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-icon svg {
  color: #fff;
  fill: currentColor;
  stroke: currentColor;
}

.footer-logo-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.footer-logo-tagline {
  font-size: 10px;
  color: #dbeafe;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1.25;
  border-top: 1px solid #fff;
  padding-top: 0.125rem;
  margin-top: 0.125rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer-col ul a {
  transition: color 0.15s;
}

.footer-col ul a:hover {
  color: #60a5fa;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-contact li svg {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.footer-contact li a {
  transition: color 0.15s;
}

.footer-contact li a:hover {
  color: #60a5fa;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid #1f2937;
  margin-top: 2rem;
  padding-top: 2rem;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: #9ca3af;
  text-align: center;
  margin-bottom: 1rem;
}

.footer-bottom .disclaimer strong {
  color: #fff;
}

.footer-bottom .copyright {
  font-size: 0.75rem;
}

/* =========================
   RESPONSIVE BREAKPOINTS
   ========================= */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .providers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }
  .top-bar-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Mobile nav */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    padding: 1rem;
    gap: 1rem;
    z-index: 49;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .nav-bar {
    position: relative;
  }

  .hero h1 {
    font-size: 2.25rem;
  }
  .hero p {
    font-size: 1.125rem;
  }
  .hero-actions {
    flex-direction: column;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .providers-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .final-cta-actions {
    flex-direction: column;
  }
  .final-cta-card {
    padding: 2rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .providers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
