/* =============================================
   ENERGYSPOC — SHARED STYLES
   Minimalist Light Design
============================================= */

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

/* ---------- CSS VARIABLES ---------- */
:root {
  /* Core palette — light & warm */
  --navy: #1a1a2e;
  --navy-mid: #222240;
  --charcoal: #111827;
  --slate: #334155;

  /* Accent — Amber/Orange */
  --amber: #d97706;
  --amber-light: #f59e0b;
  --amber-glow: #fbbf24;
  --amber-dim: #b45309;
  --amber-bg: rgba(217,119,6,0.06);

  /* Gold kept for compatibility */
  --gold: #d97706;
  --gold-light: #f59e0b;
  --gold-glow: #fbbf24;
  --gold-dim: #b45309;
  --gold-bg: rgba(217,119,6,0.06);

  /* Neutrals */
  --white: #ffffff;
  --off-white: #fafafa;
  --cream: #f5f5f4;
  --warm-gray: #f0eeeb;
  --mid-gray: #9ca3af;
  --border: #e5e7eb;
  --border-dark: rgba(255,255,255,0.1);
  --border-gold: rgba(217,119,6,0.2);

  /* Text */
  --text: #111827;
  --text-light: #4b5563;
  --text-muted: #6b7280;
  --text-on-dark: #e5e7eb;
  --text-dim: rgba(255,255,255,0.55);

  /* Effects */
  --glass: rgba(255,255,255,0.6);
  --glass-border: rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-gold: 0 4px 16px rgba(217,119,6,0.15);
  --shadow-dark: 0 4px 16px rgba(0,0,0,0.2);

  /* Sizing */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1140px;

  /* Animation */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.25s var(--ease);
  --transition-slow: 0.4s var(--ease);

  /* Typography */
  --font-display: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--charcoal);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: 720px; }
.container-wide { max-width: 1320px; }

/* ---------- TOP BRAND STRIP ---------- */
.brand-strip {
  background: var(--charcoal);
  padding: 6px 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
}

.brand-strip span {
  color: var(--amber);
}

.brand-strip a {
  color: var(--amber-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 12px;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 28px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

/* Dark header for pages with dark hero */
.header--dark {
  background: transparent;
}

.header--light {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header.scrolled {
  top: 0;
  padding: 10px 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header.scrolled .logo-img {
  height: 40px !important;
  min-height: 40px;
}

/* Override dark text when scrolled */
/* Logo image doesn't need color overrides on scroll */
.header.scrolled .nav-links a { color: var(--text-light) !important; }
.header.scrolled .nav-links a:hover { color: var(--charcoal) !important; }
.header.scrolled .nav-links a.active { color: var(--amber) !important; }
.header.scrolled .mobile-toggle span { background: var(--charcoal) !important; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.logo-img {
  height: 52px !important;
  min-height: 52px;
  width: auto;
  display: block;
  -webkit-transform: translateZ(0);
}

/* Hero brand badge — white pill with black outline */
.hero-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: var(--white);
  border: 1.5px solid var(--charcoal);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-brand-badge img {
  height: 22px;
  width: auto;
}

/* Brighten logo on dark backgrounds (footer, dark headers) */
.footer .logo-img {
  filter: brightness(0) invert(1);
  height: 48px !important;
  min-height: 48px;
}

.header--dark .logo-img {
  filter: brightness(0) invert(1);
}

/* Hide old CSS logo elements if any remain */
.logo-mark { display: none; }
.logo-text { display: none; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.header--dark .nav-links a { color: rgba(255,255,255,0.7); }
.header--dark .nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.header--light .nav-links a { color: var(--text-light); }
.header--light .nav-links a:hover { color: var(--charcoal); background: var(--cream); }
.nav-links a.active { color: var(--amber) !important; }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  font-size: 0.82rem;
  color: var(--text-light) !important;
  border-radius: 6px;
}

.nav-dropdown-menu a:hover {
  background: var(--cream) !important;
  color: var(--amber) !important;
}

.header-cta { margin-left: 8px; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 10;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  border-radius: 2px;
  transition: var(--transition);
}

.header--dark .mobile-toggle span { background: var(--white); }
.header--light .mobile-toggle span { background: var(--charcoal); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  padding: 80px 24px 40px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.mobile-nav.active { display: flex; }

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover { color: var(--amber); }

.mobile-nav .btn {
  margin-top: 20px;
  justify-content: center;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.84rem;
  transition: var(--transition);
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-gold,
.btn-amber {
  background: var(--amber);
  color: var(--white);
}

.btn-gold:hover,
.btn-amber:hover {
  background: var(--amber-dim);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn-white {
  background: var(--white);
  color: var(--charcoal);
}

.btn-white:hover {
  background: var(--off-white);
  box-shadow: var(--shadow-md);
}

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

.btn-dark:hover {
  background: var(--slate);
  transform: translateY(-1px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--amber);
  border: 1.5px solid var(--border-gold);
}

.btn-outline-gold:hover {
  background: var(--amber-bg);
  border-color: var(--amber);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-dark {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--border);
}

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

.btn-sm { padding: 8px 16px; font-size: 0.78rem; }
.btn-lg { padding: 14px 32px; font-size: 0.9rem; }

/* ---------- SECTIONS ---------- */
.section {
  padding: 80px 0;
  position: relative;
}

/* Brand watermark — subtle large text behind content */
.section--branded::before {
  content: 'EnergySpoc';
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%) rotate(-90deg);
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 800;
  color: rgba(217,119,6,0.03);
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.section--dark.section--branded::before {
  color: rgba(217,119,6,0.06);
}

.section--dark {
  background: var(--charcoal);
  color: var(--text-on-dark);
}

.section--cream {
  background: var(--cream);
}

.section--off-white {
  background: var(--off-white);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--amber);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 14px;
}

.section--dark .section-title { color: var(--white); }

.section-title em {
  font-style: italic;
  color: var(--amber);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

.section--dark .section-subtitle { color: var(--text-dim); }

.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

/* ---------- CARDS ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(217,119,6,0.15);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card--dark {
  background: var(--charcoal);
  border-color: rgba(255,255,255,0.06);
  color: var(--text-on-dark);
}

.card--dark:hover {
  border-color: rgba(217,119,6,0.2);
}

.card--glass {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border-color: var(--border);
}

.card--featured {
  background: var(--charcoal);
  border-color: rgba(217,119,6,0.2);
  color: var(--white);
}

/* ---------- ICON BOX ---------- */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box svg { width: 22px; height: 22px; }

.icon-box--gold {
  background: var(--amber-bg);
}

.icon-box--gold svg { color: var(--amber); }

.icon-box--dark {
  background: rgba(255,255,255,0.06);
}

.icon-box--dark svg { color: var(--amber); }

/* ---------- STATS ---------- */
.stats-bar {
  background: var(--charcoal);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  text-align: center;
  position: relative;
}

.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255,255,255,0.08);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ---------- TABLES ---------- */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 0.88rem;
}

.data-table thead { background: var(--charcoal); }

.data-table th {
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.data-table td {
  padding: 12px 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:nth-child(even) { background: var(--off-white); }
.data-table tbody tr:hover { background: var(--amber-bg); }

/* ---------- TAGS ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}

.tag--gold {
  background: var(--amber-bg);
  color: var(--amber);
}

.tag--dark {
  background: var(--charcoal);
  color: var(--amber);
}

.tag--new {
  background: var(--amber);
  color: var(--white);
}

/* ---------- BREADCRUMBS ---------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.breadcrumbs a { color: var(--text-dim); transition: var(--transition); }
.breadcrumbs a:hover { color: var(--amber); }
.breadcrumbs .sep { color: var(--text-dim); opacity: 0.3; }
.breadcrumbs .current { color: var(--amber); }

/* ---------- PAGE HERO ---------- */
.page-hero {
  padding: 140px 0 64px;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0.2;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 540px;
  line-height: 1.7;
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 16px;
  transition: var(--transition);
}

.faq-question:hover { color: var(--amber); }

.faq-chevron {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-chevron svg { width: 12px; height: 12px; color: var(--text-muted); transition: var(--transition); }

.faq-item.active .faq-chevron {
  background: var(--amber);
  border-color: var(--amber);
  transform: rotate(45deg);
}

.faq-item.active .faq-chevron svg { color: var(--white); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-answer-inner {
  padding: 0 0 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- WHATSAPP ---------- */
.whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 3px 14px rgba(37,211,102,0.35);
  transition: var(--transition);
}

.whatsapp:hover { transform: scale(1.06); }
.whatsapp svg { width: 26px; height: 26px; color: var(--white); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--charcoal);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--amber);
  margin-top: 14px;
  margin-bottom: 0;
}

.footer-about p {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 280px;
  margin-top: 14px;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover { background: var(--amber); border-color: var(--amber); }
.footer-social a svg { width: 14px; height: 14px; color: var(--text-dim); }
.footer-social a:hover svg { color: var(--white); }

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer ul li { margin-bottom: 8px; }

.footer ul a {
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: var(--transition);
}

.footer ul a:hover { color: var(--amber); }

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

.footer-bottom p {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.2);
}

/* ---------- FORMS ---------- */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-bg);
}

.form-input::placeholder { color: var(--mid-gray); }
.form-textarea { min-height: 100px; resize: vertical; }

.form-input--dark,
.form-select--dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  color: var(--white);
}

/* ---------- TABS ---------- */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--cream);
  padding: 3px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.tab-btn {
  padding: 9px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 50px;
  transition: var(--transition);
  flex: 1;
  text-align: center;
}

.tab-btn.active {
  background: var(--charcoal);
  color: var(--white);
}

.tab-btn:hover:not(.active) { color: var(--charcoal); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .header-cta { display: none; }
  .mobile-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .brand-strip { font-size: 0.65rem; padding: 5px 12px; }
  .brand-strip a { display: none; }
  .section { padding: 56px 0; }
  .page-hero { padding: 120px 0 48px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-number { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }
  .btn-lg { width: 100%; justify-content: center; }
}
