/*
Theme Name: ENEREXX
Theme URI: https://enerexx.com/
Author: ENEREXX
Author URI: https://enerexx.com/
Description: A specialised WordPress theme for energy consulting and project advisory firms. Ships with a full one-page front page (hero, about, values, services, industries, projects, insights, contact), custom post types for Services, Core Values, Industries and Projects, a working contact form, and deep Customizer control. Looks complete the moment it is activated — every section falls back to sensible ENEREXX defaults until you add your own content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: enerexx
Tags: business, blog, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks, editor-style, full-width-template
*/

/* ==========================================================================
   ENEREXX — design tokens
   ========================================================================== */
:root {
  --ene-primary: #0A2540;
  --ene-primary-light: #1A3A5C;
  --ene-accent: #10B981;
  --ene-accent-light: #34D399;
  --ene-accent-dark: #059669;
  --ene-amber: #F59E0B;
  --ene-sky: #0EA5E9;
  --ene-violet: #7C3AED;
  --ene-red: #DC2626;

  --ene-surface: #FFFFFF;
  --ene-bg: #F8FAFC;
  --ene-body: #475569;
  --ene-muted: #64748B;
  --ene-border: rgba(10, 37, 64, .12);

  --ene-elevation-1: 0 2px 4px rgba(10,37,64,.08);
  --ene-elevation-2: 0 4px 12px rgba(10,37,64,.10);
  --ene-elevation-4: 0 8px 24px rgba(10,37,64,.12);
  --ene-elevation-8: 0 20px 40px rgba(10,37,64,.16);
  --ene-elevation-16: 0 30px 60px rgba(10,37,64,.20);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 80px;
  --content-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--ene-surface);
  color: var(--ene-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--ene-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* WordPress admin bar offset for the sticky header */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
body.admin-bar { --admin-bar-h: 32px; }

/* ==========================================================================
   Accessibility helpers
   ========================================================================== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--ene-elevation-4);
  clip: auto !important;
  clip-path: none;
  color: var(--ene-primary);
  display: block;
  font-size: .875rem;
  font-weight: 700;
  height: auto;
  left: 16px;
  line-height: normal;
  padding: 16px 24px;
  text-decoration: none;
  top: 16px;
  width: auto;
  z-index: 100000;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ene-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 16px;
}
.container--narrow { max-width: 820px; }

.section { padding-block: 96px; }
.section--bg { background: var(--ene-bg); }
.section--dark { background: var(--ene-primary); }
.section--tight { padding-block: 64px; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 { color: var(--ene-primary); line-height: 1.2; font-weight: 700; }

.eyebrow {
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ene-accent);
  margin-bottom: 16px;
}
.eyebrow--light { color: var(--ene-accent-light); }

.h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 700; line-height: 1.15; }
.h2 { font-size: clamp(1.875rem, 4.4vw, 3rem); margin-bottom: 16px; line-height: 1.15; }
.h3 { font-size: 1.25rem; margin-bottom: 12px; }

.lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ene-body);
}
.lead + .lead { margin-top: 24px; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section--dark .section-head h2 { color: #fff; }
.section--dark .section-head .lead { color: rgba(255,255,255,.6); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  isolation: isolate;
}
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  transform: translate(-50%, -50%);
  transition: width .6s, height .6s;
  z-index: -1;
}
.btn:active::before { width: 320px; height: 320px; }

.btn--accent {
  background: var(--ene-accent);
  color: #fff;
  box-shadow: var(--ene-elevation-4);
}
.btn--accent:hover {
  background: var(--ene-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--ene-elevation-8);
}

.btn--ghost {
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
}
.btn--ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  transform: translateY(-2px);
}

.btn--outline {
  border: 2px solid var(--ene-primary);
  color: var(--ene-primary);
}
.btn--outline:hover { background: var(--ene-primary); color: #fff; }

.btn--sm { padding: 12px 24px; font-size: .9375rem; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ene-accent);
}
.link-more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-more:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--ene-surface);
  border-radius: var(--radius);
  box-shadow: var(--ene-elevation-2);
  padding: 32px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover {
  box-shadow: var(--ene-elevation-8);
  transform: translateY(-4px);
}
.card p { line-height: 1.7; }

.card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform .3s var(--ease);
}
.card-icon svg { width: 28px; height: 28px; }
.card:hover .card-icon { transform: scale(1.08); }

.card-icon--lg { width: 64px; height: 64px; }
.card-icon--lg svg { width: 32px; height: 32px; }

.feature-list { display: grid; gap: 8px; margin-bottom: 24px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--ene-body);
}
.feature-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
  background: var(--card-accent, var(--ene-accent));
}

.check-list { display: grid; gap: 12px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .875rem;
  line-height: 1.6;
}
.check-list svg {
  width: 20px; height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--ene-accent);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--ene-elevation-2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ene-primary) 0%, var(--ene-accent) 200%);
  box-shadow: var(--ene-elevation-2);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ene-primary);
  line-height: 1.1;
}
.brand-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ene-accent);
}
.custom-logo { max-height: 56px; width: auto; }

/* Bundled logo lockup: artwork stacked over the tagline */
.brand--logo {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.brand-logo {
  height: 50px;
  width: auto;
  max-width: 100%;
}
.brand--logo .brand-tag {
  display: block;
  font-size: 9px;
  letter-spacing: .14em;
  line-height: 1;
}
.brand--footer.brand--logo .brand-logo { height: 56px; }
.brand--footer.brand--logo .brand-tag { letter-spacing: .155em; }

/* Desktop navigation */
.nav-desktop { display: flex; align-items: center; }
.nav-desktop ul { display: flex; align-items: center; gap: 4px; }
.nav-desktop li { position: relative; }
.nav-desktop a {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ene-primary);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav-desktop a:hover,
.nav-desktop .current-menu-item > a,
.nav-desktop .current_page_item > a { background: rgba(16,185,129,.1); color: var(--ene-accent-dark); }

/* Dropdowns */
.nav-desktop .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  display: block;
  flex-direction: column;
  gap: 0;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--ene-elevation-8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 60;
}
.nav-desktop li:hover > .sub-menu,
.nav-desktop li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-desktop .sub-menu a { font-size: .9375rem; }
.nav-desktop .sub-menu .sub-menu { top: 0; left: 100%; }

.header-cta { margin-left: 16px; padding: 12px 24px; box-shadow: var(--ene-elevation-2); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  place-items: center;
  color: var(--ene-primary);
  transition: background-color .2s var(--ease);
  flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(10,37,64,.06); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-mobile {
  display: none;
  border-top: 1px solid rgba(10,37,64,.08);
  padding: 12px 0 20px;
}
.nav-mobile.is-open { display: block; }
.nav-mobile ul { display: block; }
.nav-mobile a {
  display: block;
  padding: 14px 8px;
  font-weight: 500;
  color: var(--ene-primary);
  border-radius: var(--radius-sm);
}
.nav-mobile a:hover { background: rgba(16,185,129,.08); }
.nav-mobile .sub-menu { padding-left: 16px; border-left: 2px solid rgba(16,185,129,.25); margin-left: 8px; }
.nav-mobile .sub-menu a { font-size: .9375rem; color: var(--ene-body); }
.nav-mobile .btn { width: 100%; margin-top: 12px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ene-primary);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  animation: floatGlow 6s ease-in-out infinite;
}
.hero-glow--a {
  top: 0; right: 0;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(16,185,129,.15) 0%, transparent 70%);
}
.hero-glow--b {
  bottom: 0; left: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,.1) 0%, transparent 70%);
  animation-delay: 2s;
}
.hero-grid {
  position: absolute; inset: 0;
  opacity: .05;
  background-image:
    linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero-inner { position: relative; padding-block: 128px; }
.hero h1 { color: #fff; margin-bottom: 24px; }
.gradient-text {
  background: linear-gradient(135deg, var(--ene-accent) 0%, var(--ene-accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-copy {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.75;
  color: rgba(255,255,255,.7);
  margin-bottom: 32px;
  max-width: 620px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.3);
  font-size: .875rem;
  font-weight: 500;
  color: var(--ene-accent-light);
}
.badge svg { width: 16px; height: 16px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.stat-value {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-label { font-size: .875rem; color: rgba(255,255,255,.5); }

.figure-wrap { position: relative; }
.media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--ene-elevation-16);
}
.media img { width: 100%; height: 500px; object-fit: cover; }
.media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,37,64,.4) 0%, rgba(16,185,129,.2) 100%);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--ene-elevation-8);
  animation: floatCard 5s ease-in-out infinite;
}
.float-card--tl { top: -24px; left: -24px; }
.float-card--br { bottom: -24px; right: -24px; animation-delay: 1.5s; }
.float-card .tile {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.float-card .tile svg { width: 24px; height: 24px; }
.float-card strong { display: block; font-size: .875rem; color: #111827; }
.float-card span { font-size: .75rem; color: #6B7280; }

/* ==========================================================================
   About / Vision / Mission
   ========================================================================== */
.about-split { margin-bottom: 96px; }
.about-split .media { box-shadow: var(--ene-elevation-8); }
.about-split .media img { height: 400px; }
.about-split .media::after {
  background: linear-gradient(135deg, rgba(10,37,64,.2) 0%, transparent 100%);
}

.pillar-card { padding: 40px; }
.pillar-card h3 { font-size: 1.5rem; margin-bottom: 16px; }

/* ==========================================================================
   Industries (dark cards)
   ========================================================================== */
.industry-card {
  padding: 24px;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}
.industry-card:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255,255,255,.08);
  border-color: rgba(16,185,129,.4);
}
.industry-card .card-icon {
  margin: 0 auto 16px;
  width: 64px; height: 64px;
  background: rgba(16,185,129,.2);
  color: var(--ene-accent-light);
}
.industry-card .card-icon svg { width: 32px; height: 32px; }
.industry-card h3 { color: #fff; font-size: 1.125rem; margin-bottom: 8px; }
.industry-card p { font-size: .875rem; color: rgba(255,255,255,.6); line-height: 1.7; }

/* ==========================================================================
   Why ENEREXX
   ========================================================================== */
.why .media { box-shadow: var(--ene-elevation-8); }
.why .media img { height: 450px; }
.why .media::after {
  background: linear-gradient(135deg, rgba(10,37,64,.3) 0%, rgba(16,185,129,.15) 100%);
}
.stat-badge {
  position: absolute;
  bottom: -24px; right: -24px;
  padding: 24px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--ene-elevation-8);
}
.stat-badge .value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ene-accent);
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-badge .label { font-size: .875rem; font-weight: 500; color: var(--ene-body); }

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.advantage {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--ene-primary);
}
.advantage svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--ene-accent); }

/* ==========================================================================
   Projects
   ========================================================================== */
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--ene-elevation-2);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--ene-elevation-8); }
.project-media { position: relative; overflow: hidden; background: var(--ene-bg); }
.project-media img {
  width: 100%; height: 220px;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.project-card:hover .project-media img { transform: scale(1.06); }
.project-tag {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(10,37,64,.85);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.project-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-body h3 { font-size: 1.125rem; margin: 0; }
.project-body p { font-size: .9375rem; line-height: 1.7; flex: 1; }
.project-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  color: var(--ene-muted);
}
.project-meta svg { width: 16px; height: 16px; color: var(--ene-accent); flex-shrink: 0; }

/* ==========================================================================
   Insights / posts
   ========================================================================== */
.insight-card { display: flex; flex-direction: column; gap: 16px; }
.insight-thumb {
  margin: -32px -32px 8px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.insight-thumb img { width: 100%; height: 200px; object-fit: cover; transition: transform .6s var(--ease); }
.insight-card:hover .insight-thumb img { transform: scale(1.05); }
.insight-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ene-accent);
}
.insight-kicker svg { width: 14px; height: 14px; }
.insight-card h3 { font-size: 1.125rem; margin: 0; }
.insight-card h3 a:hover { color: var(--ene-accent-dark); }
.insight-card p { font-size: .9375rem; flex: 1; }
.insight-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  color: var(--ene-muted);
  padding-top: 8px;
  border-top: 1px solid rgba(10,37,64,.08);
}
.insight-foot svg { width: 14px; height: 14px; }
.insight-foot .sep { opacity: .5; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: 80px;
  background: linear-gradient(135deg, var(--ene-primary) 0%, var(--ene-primary-light) 100%);
  text-align: center;
}
.cta-band .hero-glow--a { width: 500px; height: 500px; top: -150px; right: -100px; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p {
  position: relative;
  color: rgba(255,255,255,.7);
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto 32px;
}
.cta-band .hero-actions { position: relative; justify-content: center; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-split { align-items: start; }

.contact-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(10,37,64,.08);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item .tile {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(16,185,129,.1);
  color: var(--ene-accent);
}
.contact-item .tile svg { width: 22px; height: 22px; }
.contact-item strong {
  display: block;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ene-primary);
  margin-bottom: 4px;
}
.contact-item a:hover { color: var(--ene-accent-dark); }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ene-primary);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--ene-border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--ene-accent);
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}
.field input::placeholder, .field textarea::placeholder { color: #94A3B8; }
.field--honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .8125rem; color: var(--ene-muted); }

.form-status {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
}
.form-status--success {
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.3);
  color: var(--ene-accent-dark);
}
.form-status--error {
  background: rgba(220,38,38,.08);
  border: 1px solid rgba(220,38,38,.3);
  color: var(--ene-red);
}

/* ==========================================================================
   Page / post content
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--ene-primary);
  padding-block: 80px;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.page-hero p { color: rgba(255,255,255,.7); margin-top: 16px; font-size: 1.0625rem; max-width: 720px; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.breadcrumbs a:hover { color: var(--ene-accent-light); }

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  margin-top: 20px;
}
.entry-meta .item { display: inline-flex; align-items: center; gap: 6px; }
.entry-meta svg { width: 16px; height: 16px; color: var(--ene-accent-light); }

.entry-thumb {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--ene-elevation-8);
  margin-bottom: 48px;
}
.entry-thumb img { width: 100%; max-height: 520px; object-fit: cover; }

.entry-content { font-size: 1.0625rem; line-height: 1.8; }
.entry-content > * + * { margin-top: 1.5em; }
.entry-content h1 { font-size: 2.25rem; }
.entry-content h2 { font-size: 1.875rem; margin-top: 2em; }
.entry-content h3 { font-size: 1.5rem; margin-top: 1.8em; }
.entry-content h4 { font-size: 1.25rem; }
.entry-content a {
  color: var(--ene-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content a:hover { color: var(--ene-primary); }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: .5em; }
.entry-content li::marker { color: var(--ene-accent); }
.entry-content blockquote {
  border-left: 4px solid var(--ene-accent);
  padding: 8px 0 8px 24px;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--ene-primary);
}
.entry-content blockquote cite { display: block; margin-top: 12px; font-size: .875rem; font-style: normal; color: var(--ene-muted); }
.entry-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--ene-bg);
  border: 1px solid var(--ene-border);
  border-radius: 6px;
  padding: 2px 6px;
}
.entry-content pre {
  background: var(--ene-primary);
  color: #E2E8F0;
  padding: 24px;
  border-radius: var(--radius);
  overflow-x: auto;
}
.entry-content pre code { background: none; border: 0; padding: 0; color: inherit; }
.entry-content img { border-radius: var(--radius); }
.entry-content hr { border: 0; border-top: 1px solid var(--ene-border); margin-block: 2.5em; }
.entry-content table { font-size: .9375rem; }
.entry-content th, .entry-content td { border: 1px solid var(--ene-border); padding: 12px 16px; text-align: left; }
.entry-content th { background: var(--ene-bg); color: var(--ene-primary); font-weight: 600; }

.entry-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--ene-border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ene-bg);
  border: 1px solid var(--ene-border);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ene-primary);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.tag-list a:hover { background: var(--ene-accent); border-color: var(--ene-accent); color: #fff; }

/* WordPress core alignment + media classes */
.alignleft { float: left; margin: .5em 1.5em 1em 0; }
.alignright { float: right; margin: .5em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { width: min(100vw - 32px, 1100px); margin-inline: auto; max-width: none; }
.alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.entry-content .alignwide, .entry-content .alignfull { border-radius: 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-block-image figcaption {
  font-size: .875rem;
  color: var(--ene-muted);
  text-align: center;
  margin-top: 12px;
}
.sticky .insight-kicker::after { content: '★'; }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.gallery-item img { border-radius: var(--radius-sm); }
.bypostauthor { display: block; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
}
.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ene-border);
  font-weight: 600;
  color: var(--ene-primary);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.pagination .page-numbers:hover { background: var(--ene-bg); }
.pagination .page-numbers.current {
  background: var(--ene-accent);
  border-color: var(--ene-accent);
  color: #fff;
}
.pagination .dots { border: 0; }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.post-nav a {
  display: block;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--ene-border);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.post-nav a:hover { border-color: var(--ene-accent); box-shadow: var(--ene-elevation-2); }
.post-nav .label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ene-accent);
  margin-bottom: 8px;
}
.post-nav .title { color: var(--ene-primary); font-weight: 600; }
.post-nav .next { text-align: right; }

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--ene-border); }
.comments-title, .comment-reply-title { font-size: 1.5rem; margin-bottom: 32px; }
.comment-list { display: grid; gap: 32px; }
.comment-list .children { display: grid; gap: 32px; margin-top: 32px; padding-left: 32px; border-left: 2px solid var(--ene-border); }
.comment-body {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
}
.comment-body .avatar { border-radius: 50%; }
.comment-meta { grid-column: 2; }
.comment-author { font-weight: 600; color: var(--ene-primary); }
.comment-metadata { font-size: .8125rem; color: var(--ene-muted); margin-top: 2px; }
.comment-content { grid-column: 2; margin-top: 12px; }
.comment-content > * + * { margin-top: 1em; }
.reply { grid-column: 2; margin-top: 12px; }
.comment-reply-link {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ene-accent-dark);
}
.comment-form { display: grid; gap: 20px; margin-top: 16px; }
.comment-form p { display: grid; gap: 8px; }
.comment-form label { font-size: .8125rem; font-weight: 600; color: var(--ene-primary); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--ene-border);
  border-radius: var(--radius-sm);
}
.comment-form .form-submit input {
  padding: 16px 32px;
  border: 0;
  border-radius: 999px;
  background: var(--ene-accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.comment-form .form-submit input:hover { background: var(--ene-accent-dark); }
.comment-notes, .comment-form-cookies-consent { font-size: .8125rem; color: var(--ene-muted); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; }

/* ==========================================================================
   Search form / 404
   ========================================================================== */
.search-form { display: flex; gap: 12px; }
.search-form input[type="search"] {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--ene-border);
  border-radius: var(--radius-sm);
}
.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--ene-accent);
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}
.search-form button { flex-shrink: 0; }

.no-results { text-align: center; max-width: 560px; margin-inline: auto; }
.no-results .search-form { margin-top: 32px; }
.error-code {
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--ene-primary) 0%, var(--ene-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ene-primary);
  color: rgba(255,255,255,.6);
  padding-block: 64px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer .brand-name { color: #fff; }
.footer-about { max-width: 340px; margin-top: 20px; font-size: .9375rem; line-height: 1.8; }
.footer-col h4 {
  color: #fff;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 20px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: .9375rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--ene-accent-light); }
.footer-col .widget + .widget { margin-top: 32px; }
.footer-col .widget-title {
  color: #fff;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 20px;
}

.socials { display: flex; gap: 12px; margin-top: 24px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.socials a:hover {
  background: rgba(16,185,129,.2);
  color: var(--ene-accent-light);
  transform: translateY(-2px);
}
.socials svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: .875rem;
}
.footer-bottom ul { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--ene-accent-light); }

.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 40;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ene-accent);
  color: #fff;
  box-shadow: var(--ene-elevation-4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ene-accent-dark); }
.to-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   Animation
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
@keyframes floatGlow {
  0%, 100% { transform: translateY(0) scale(1); opacity: .3; }
  50%      { transform: translateY(-20px) scale(1.05); opacity: .5; }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.reveal { opacity: 0; }
.reveal.is-visible {
  animation: fadeInUp .7s var(--ease) both;
  animation-delay: var(--delay, 0s);
}
.no-js .reveal { opacity: 1; }
/* Never hide content inside the block editor or the Customizer preview */
.wp-admin .reveal { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal.is-visible { opacity: 1; animation: none; }
  .card:hover, .project-card:hover, .industry-card:hover { transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 640px) {
  .container { padding-inline: 24px; }
}
@media (min-width: 1024px) {
  .container { padding-inline: 32px; }
}

@media (max-width: 1023px) {
  .nav-desktop, .header-cta { display: none; }
  .nav-toggle { display: grid; }
  .hero .figure-wrap { display: none; }
  .hero-inner { padding-block: 96px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .grid--3, .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about-split { margin-bottom: 64px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .section { padding-block: 64px; }
  .hero-inner { padding-block: 72px; }
  .page-hero { padding-block: 56px; }
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
  .advantage-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 40px; }
  .pillar-card { padding: 28px; }
  .card { padding: 24px; }
  .insight-thumb { margin: -24px -24px 8px; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stat-badge { right: 16px; bottom: -16px; padding: 16px; }
  .to-top { right: 16px; bottom: 16px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .comment-list .children { padding-left: 16px; }
  .gallery { grid-template-columns: 1fr; }
  .alignleft, .alignright { float: none; margin-inline: 0; }
}

@media (max-width: 480px) {
  .brand-logo { height: 40px; }
  .brand--footer.brand--logo .brand-logo { height: 46px; }
}

@media (max-width: 380px) {
  .brand-tag, .brand--logo .brand-tag { display: none; }
  .brand-logo { height: 36px; }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .site-header, .to-top, .hero-bg, .cta-band, .comments-area, .post-nav { display: none !important; }
  body { color: #000; background: #fff; }
  .reveal { opacity: 1 !important; animation: none !important; }
  .card, .project-card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
}
