/* ==========================================================================
   METRA ENERGY - CORPORATE DESIGN SYSTEM
   Minimalist, Modern & High-Impact Energy Corporation Style
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Brand Colors */
  --color-primary: #EE5822;         /* Metra Orange */
  --color-primary-dark: #C94212;
  --color-primary-light: #FF7544;
  --color-primary-subtle: rgba(238, 88, 34, 0.12);
  --color-primary-glow: rgba(238, 88, 34, 0.25);
  
  /* Metra Green (Clean Energy Division) */
  --color-green: #10B981;
  --color-green-dark: #059669;
  --color-green-subtle: rgba(16, 185, 129, 0.12);
  --color-green-glow: rgba(16, 185, 129, 0.25);

  /* Corporate Dark Palette */
  --bg-dark-900: #080C14;          /* Main Deep Black/Navy */
  --bg-dark-800: #0E1524;          /* Card Background Dark */
  --bg-dark-700: #162035;          /* Elevated Surfaces */
  --bg-dark-600: #202D49;          /* Borders / Dividers Dark */

  /* Neutral Slate Palette */
  --color-slate-900: #0F172A;
  --color-slate-800: #1E293B;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-400: #94A3B8;
  --color-slate-300: #CBD5E1;
  --color-slate-200: #E2E8F0;
  --color-slate-100: #F1F5F9;
  --color-slate-50:  #F8FAFC;
  
  /* Pure Neutrals */
  --color-white: #FFFFFF;
  --color-black: #000000;
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-orange: 0 10px 30px -10px rgba(238, 88, 34, 0.4);
  --shadow-green: 0 10px 30px -10px rgba(16, 185, 129, 0.4);
  
  --glass-bg: rgba(14, 21, 36, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(16px);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 1280px;
  --header-height: 84px;
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  --border-radius-full: 9999px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark-900);
  color: var(--color-slate-300);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background-color: var(--color-primary);
  color: var(--color-white);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 960px;
}

.container-wide {
  max-width: 1400px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }

p {
  margin-bottom: 1rem;
}

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

.text-gradient-orange {
  background: linear-gradient(135deg, #FF7544 0%, #EE5822 50%, #FFB088 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-green {
  background: linear-gradient(135deg, #34D399 0%, #10B981 50%, #6EE7B7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-muted {
  color: var(--color-slate-400);
}

.text-white {
  color: var(--color-white);
}

.font-mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color var(--transition-normal), 
              backdrop-filter var(--transition-normal), 
              border-color var(--transition-normal), 
              box-shadow var(--transition-normal);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(8, 12, 20, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.navbar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1002;
  text-decoration: none;
}

.nav-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  background: #FFFFFF;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: transform var(--transition-fast);
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.03);
}

/* Nav Menu Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-slate-300);
  position: relative;
  padding: 0.5rem 0;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-white);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  cursor: pointer;
  z-index: 1002;
  transition: background var(--transition-fast);
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-white);
  margin: 3px 0;
  transition: all var(--transition-normal);
  border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  letter-spacing: 0.01em;
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(238, 88, 34, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(238, 88, 34, 0.5);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  color: var(--color-white);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: var(--color-white);
}

.btn-green {
  background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #34D399 0%, var(--color-green) 100%);
  color: var(--color-white);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  border-radius: var(--border-radius-sm);
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
  border-radius: var(--border-radius-md);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--border-radius-full);
}

/* Badge / Pill */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--border-radius-full);
}

.badge-orange {
  background: var(--color-primary-subtle);
  color: var(--color-primary-light);
  border: 1px solid rgba(238, 88, 34, 0.3);
}

.badge-green {
  background: var(--color-green-subtle);
  color: var(--color-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-slate-300);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pulse Dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 0 0 rgba(238, 88, 34, 0.7);
  animation: pulse 2s infinite;
}

.pulse-dot-green {
  background-color: var(--color-green);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(238, 88, 34, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(238, 88, 34, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(238, 88, 34, 0);
  }
}

/* ==========================================================================
   SECTIONS & LAYOUT BLOCKS
   ========================================================================== */

.section {
  padding: 6.5rem 0;
  position: relative;
  overflow: hidden;
}

.section-dark {
  background-color: var(--bg-dark-900);
}

.section-dark-alt {
  background-color: var(--bg-dark-800);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-light {
  background-color: var(--color-slate-50);
  color: var(--color-slate-700);
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4 {
  color: var(--color-slate-900);
}

.section-light .text-muted {
  color: var(--color-slate-600);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-subtitle {
  margin-top: 1rem;
  font-size: 1.15rem;
  color: var(--color-slate-400);
  line-height: 1.6;
}

/* Background Gradients & Accents */
.bg-glow-orange {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(238, 88, 34, 0.15) 0%, rgba(238, 88, 34, 0) 70%);
  top: 10%;
  right: -10%;
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
}

.bg-glow-blue {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.15) 0%, rgba(14, 116, 144, 0) 70%);
  bottom: 5%;
  left: -10%;
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
}

.bg-glow-green {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0) 70%);
  top: 30%;
  right: 5%;
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
}

/* Page Inner Hero */
.page-hero {
  padding-top: calc(var(--header-height) + 4.5rem);
  padding-bottom: 5rem;
  background: radial-gradient(circle at 50% 0%, var(--bg-dark-700) 0%, var(--bg-dark-900) 100%);
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.7;
  pointer-events: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background-color: #05070B;
  color: var(--color-slate-400);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 5rem;
  padding-bottom: 2rem;
  font-size: 0.92rem;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  background: #FFFFFF;
  padding: 4px 10px;
  border-radius: 8px;
  align-self: flex-start;
  margin-bottom: 0.5rem;
}

.footer-description {
  color: var(--color-slate-400);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-slate-300);
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-col-title {
  color: var(--color-white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-link {
  color: var(--color-slate-400);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link:hover {
  color: var(--color-primary-light);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
  color: var(--color-slate-300);
}

.footer-contact-icon {
  color: var(--color-primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

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

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--color-slate-500);
}

.footer-bottom-links a:hover {
  color: var(--color-slate-300);
}

/* Compliance Badges in Footer */
.compliance-strip {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-md);
  margin-bottom: 3.5rem;
}

.compliance-badge-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-slate-300);
}

.compliance-badge-item svg {
  color: var(--color-primary);
}

/* Scroll to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-dark-700);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-orange);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }
