/*
Theme Name:  000 Energy
Theme URI:   https://000energy.com
Author:      000 Energy
Description: Custom WordPress theme for 000energy.com — energy rate comparison marketing site. Converted from the static ooo-website-v3 template.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: ooo-energy
*/

/* ============================================================
   000 ENERGY — SHARED DESIGN SYSTEM
   Blue to green gradient brand identity
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Brand — from 000 Energy logo */
  --blue:          #1A5DAF;
  --blue-dark:     #134A8E;
  --blue-mid:      #1870C8;
  --blue-light:    #E1ECFA;
  --blue-xlight:   #F0F6FE;
  --green:         #2DB04B;
  --green-dark:    #229038;
  --green-mid:     #35C455;
  --green-light:   #E2F7E8;
  --green-xlight:  #F0FBF3;
  --navy:          #1A3A6B;

  /* Gradient (left=blue, right=green — mirrors logo) */
  --grad:          linear-gradient(90deg, #1A5DAF 0%, #2DB04B 100%);
  --grad-135:      linear-gradient(135deg, #1A5DAF 0%, #20998D 50%, #2DB04B 100%);
  --grad-btn:      linear-gradient(90deg, #1870C8 0%, #2DB04B 100%);

  /* Neutrals */
  --ink:        #0D1F3C;
  --gray-800:   #1C2B3A;
  --gray-700:   #2D3E50;
  --gray-600:   #4A5568;
  --gray-500:   #718096;
  --gray-400:   #A0AEC0;
  --gray-200:   #E2E8F0;
  --gray-100:   #F7FAFC;
  --gray-50:    #FAFBFC;
  --white:      #FFFFFF;

  /* Semantic */
  --cta:           #1A5DAF;
  --cta-hover:     #134A8E;
  --accent:        #2DB04B;
  --accent-hover:  #229038;

  /* Radii */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-pill: 50px;

  /* Shadows */
  --shadow-sm:   0 1px 6px rgba(0,0,0,0.07);
  --shadow-md:   0 4px 18px rgba(0,0,0,0.10);
  --shadow-lg:   0 10px 36px rgba(0,0,0,0.13);
  --shadow-blue: 0 6px 20px rgba(26,93,175,0.30);
  --shadow-green:0 6px 20px rgba(45,176,75,0.28);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { transition: color 0.18s; }
h1, h2, h3, h4, h5 {
  font-family: 'DM Sans', sans-serif;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

/* ── LAYOUT ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 5%; }
section { padding: 88px 5%; }

/* ── TYPE HELPERS ── */
.section-label {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-title .hl-blue  { color: var(--blue); }
.section-title .hl-green { color: var(--green); }
.section-sub {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 600px;
  line-height: 1.75;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--grad-btn);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.18s, transform 0.18s, box-shadow 0.18s;
  box-shadow: var(--shadow-blue);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(26,93,175,0.36); }
.btn-green {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
  box-shadow: var(--shadow-green);
}
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--blue);
  padding: 13px 30px;
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--blue);
  transition: background 0.18s, color 0.18s;
}
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-outline-white {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 13px 30px;
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.5);
  transition: background 0.18s;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }

/* ── NAVIGATION ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 5%;
  max-width: 1400px;
  margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 48px; width: auto; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: background 0.14s, color 0.14s;
}
.nav-links a:hover { background: var(--blue-xlight); color: var(--blue); }
.nav-links a.active { color: var(--blue); font-weight: 600; }
.nav-cta {
  background: var(--grad-btn) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  border-radius: var(--r-sm) !important;
  padding: 9px 20px !important;
  box-shadow: var(--shadow-blue);
}
.nav-cta:hover { opacity: 0.9 !important; color: var(--white) !important; }
.nav-shop {
  background: var(--green) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  border-radius: var(--r-sm) !important;
  padding: 9px 20px !important;
}
.nav-shop:hover { background: var(--green-dark) !important; color: var(--white) !important; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--grad-135);
  color: white;
  padding: 80px 5% 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 30%, rgba(255,255,255,0.08) 0%, transparent 55%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; margin-bottom: 16px; position: relative; }
.page-hero p { font-size: 1.1rem; opacity: 0.88; max-width: 600px; margin: 0 auto 28px; position: relative; font-weight: 300; }
.breadcrumb { font-size: 12.5px; opacity: 0.55; margin-bottom: 22px; position: relative; }
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb a:hover { color: white; }

/* ── FOOTER ── */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.52); }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 5% 48px;
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand img { height: 44px; width: auto; margin-bottom: 16px; object-fit: contain; }
.footer-brand p { font-size: 13.5px; line-height: 1.72; max-width: 280px; }
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 14px; transition: color 0.18s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 5%;
  max-width: 1400px;
  margin: 0 auto;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,0.38); text-decoration: none; font-size: 12px; }
.footer-bottom-links a:hover { color: white; }

/* ── TAGS ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag-elec  { background: var(--blue-light); color: var(--blue-dark); }
.tag-gas   { background: var(--green-light); color: var(--green-dark); }
.tag-green { background: #D1FAE5; color: #065F46; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { section { padding: 64px 5%; } .footer-top { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 600px) { .nav-inner { flex-wrap: wrap; gap: 10px; } .nav-links { gap: 2px; flex-wrap: wrap; } .nav-links a { font-size: 13px; padding: 6px 10px; } }
