/*
Theme Name: Energystorage
Theme URI: https://www.energystorage.cc
Author: Energystorage Team
Author URI: https://www.energystorage.cc
Description: Energy storage news and company intelligence platform — a bold deep-green design built for industry news publishing and company profiles.
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: energystorage
Tags: custom-background, custom-logo, custom-menu, featured-images, full-width-template, theme-options, translation-ready, news, business
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --es-primary-dark:   #0a2e23;
  --es-primary:        #1a4d3a;
  --es-primary-mid:    #2d6a4f;
  --es-primary-light:  #40916c;
  --es-accent:         #d4af37;
  --es-accent-light:   #e8c84a;
  --es-bg:             #f4f7f5;
  --es-bg-white:       #ffffff;
  --es-text:           #1c2b25;
  --es-text-muted:     #5a6e65;
  --es-border:         #dce8e2;
  --es-shadow:         0 4px 24px rgba(10, 46, 35, 0.10);
  --es-shadow-lg:      0 12px 48px rgba(10, 46, 35, 0.16);
  --es-radius:         8px;
  --es-radius-lg:      16px;
  --es-font-sans:      "Inter", "Helvetica Neue", Arial, sans-serif;
  --es-font-display:   "Inter", Georgia, serif;
  --es-transition:     0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --es-container:      1280px;
  --es-header-height:  72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--es-font-sans);
  color: var(--es-text);
  background: var(--es-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--es-primary-mid);
  text-decoration: none;
  transition: color var(--es-transition);
}

a:hover {
  color: var(--es-primary-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--es-font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--es-primary-dark);
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.es-container {
  max-width: var(--es-container);
  margin: 0 auto;
  padding: 0 24px;
}

.es-section {
  padding: 80px 0;
}

.es-section--dark {
  background: var(--es-primary-dark);
  color: #fff;
}

.es-section--dark h2,
.es-section--dark h3 {
  color: #fff;
}

.es-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.es-section-header__label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--es-accent);
  margin-bottom: 12px;
}

.es-section-header__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.es-section-header__desc {
  font-size: 1.0625rem;
  color: var(--es-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.es-section--dark .es-section-header__desc {
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.es-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--es-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--es-transition);
  text-decoration: none;
  line-height: 1.4;
}

.es-btn--primary {
  background: var(--es-accent);
  color: var(--es-primary-dark);
  border-color: var(--es-accent);
}

.es-btn--primary:hover {
  background: var(--es-accent-light);
  border-color: var(--es-accent-light);
  color: var(--es-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}

.es-btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.es-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.es-btn--green {
  background: var(--es-primary-mid);
  color: #fff;
  border-color: var(--es-primary-mid);
}

.es-btn--green:hover {
  background: var(--es-primary-light);
  border-color: var(--es-primary-light);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.es-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--es-header-height);
  background: rgba(10, 46, 35, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--es-transition), box-shadow var(--es-transition);
}

.es-header.is-scrolled {
  background: rgba(10, 46, 35, 0.98);
  box-shadow: var(--es-shadow);
}

.es-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--es-header-height);
}

.es-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.es-logo__icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--es-accent), var(--es-primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.es-logo__text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.es-logo__text span {
  color: var(--es-accent);
}

.es-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.es-nav .menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.es-nav .menu li a {
  display: block;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--es-radius);
  transition: all var(--es-transition);
}

.es-nav .menu li a:hover,
.es-nav .menu li.current-menu-item > a,
.es-nav .menu li.current_page_item > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.es-nav__cta {
  margin-left: 16px;
}

.es-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.es-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--es-transition);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.es-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--es-primary-dark) 0%, var(--es-primary) 50%, var(--es-primary-mid) 100%);
  overflow: hidden;
  padding-top: var(--es-header-height);
}

.es-hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    radial-gradient(circle at 20% 80%, var(--es-accent) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--es-primary-light) 0%, transparent 50%);
}

.es-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.es-hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 80px 0;
}

.es-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--es-accent);
  margin-bottom: 28px;
}

.es-hero__title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 24px;
}

.es-hero__title em {
  font-style: normal;
  color: var(--es-accent);
}

.es-hero__desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
  max-width: 580px;
  line-height: 1.8;
}

.es-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.es-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.es-hero__stat-value {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--es-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.es-hero__stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.es-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.es-card {
  background: var(--es-bg-white);
  border-radius: var(--es-radius-lg);
  overflow: hidden;
  box-shadow: var(--es-shadow);
  transition: transform var(--es-transition), box-shadow var(--es-transition);
}

.es-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--es-shadow-lg);
}

.es-card__thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--es-primary-dark);
}

.es-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.es-card:hover .es-card__thumb img {
  transform: scale(1.06);
}

.es-card__cat {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  background: var(--es-accent);
  color: var(--es-primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.es-card__body {
  padding: 24px;
}

.es-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--es-text-muted);
  margin-bottom: 12px;
}

.es-card__title {
  font-size: 1.125rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.es-card__title a {
  color: var(--es-primary-dark);
  text-decoration: none;
}

.es-card__title a:hover {
  color: var(--es-primary-mid);
}

.es-card__excerpt {
  font-size: 0.9375rem;
  color: var(--es-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Company Card */
.es-company-card {
  background: var(--es-bg-white);
  border-radius: var(--es-radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--es-shadow);
  transition: all var(--es-transition);
  border: 1px solid var(--es-border);
}

.es-company-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--es-shadow-lg);
  border-color: var(--es-primary-light);
}

.es-company-card__logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: var(--es-radius);
  overflow: hidden;
  background: var(--es-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--es-border);
}

.es-company-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.es-company-card__name {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.es-company-card__name a {
  color: var(--es-primary-dark);
}

.es-company-card__type {
  font-size: 0.8125rem;
  color: var(--es-primary-mid);
  font-weight: 600;
  margin-bottom: 12px;
}

.es-company-card__desc {
  font-size: 0.875rem;
  color: var(--es-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Features / Categories
   ========================================================================== */
.es-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.es-feature {
  padding: 36px 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--es-radius-lg);
  text-align: center;
  transition: all var(--es-transition);
}

.es-feature:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--es-accent);
  transform: translateY(-4px);
}

.es-feature__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--es-accent), var(--es-primary-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.es-feature__title {
  font-size: 1.0625rem;
  color: #fff;
  margin-bottom: 10px;
}

.es-feature__desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.es-cta {
  background: linear-gradient(135deg, var(--es-primary) 0%, var(--es-primary-mid) 100%);
  border-radius: var(--es-radius-lg);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.es-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.es-cta__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  margin-bottom: 16px;
  position: relative;
}

.es-cta__desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.es-cta__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

/* ==========================================================================
   Archive / Single
   ========================================================================== */
.es-page-hero {
  background: linear-gradient(135deg, var(--es-primary-dark), var(--es-primary));
  padding: calc(var(--es-header-height) + 60px) 0 60px;
  text-align: center;
}

.es-page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: #fff;
  margin-bottom: 12px;
}

.es-page-hero__desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.0625rem;
}

.es-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.es-breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.es-breadcrumb a:hover {
  color: var(--es-accent);
}

.es-content-area {
  padding: 60px 0;
}

.es-content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.es-article {
  background: var(--es-bg-white);
  border-radius: var(--es-radius-lg);
  overflow: hidden;
  box-shadow: var(--es-shadow);
}

.es-article__thumb {
  aspect-ratio: 21/9;
  overflow: hidden;
}

.es-article__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.es-article__body {
  padding: 40px;
}

.es-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--es-text-muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--es-border);
}

.es-article__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 24px;
}

.es-article__content {
  font-size: 1.0625rem;
  line-height: 1.9;
}

.es-article__content p {
  margin-bottom: 1.5em;
}

.es-article__content h2,
.es-article__content h3 {
  margin: 2em 0 0.75em;
}

.es-article__content img {
  border-radius: var(--es-radius);
  margin: 1.5em 0;
}

.es-article__content blockquote {
  border-left: 4px solid var(--es-accent);
  padding: 16px 24px;
  margin: 1.5em 0;
  background: var(--es-bg);
  border-radius: 0 var(--es-radius) var(--es-radius) 0;
  font-style: italic;
  color: var(--es-text-muted);
}

/* Sidebar */
.es-sidebar {
  position: sticky;
  top: calc(var(--es-header-height) + 24px);
}

.es-widget {
  background: var(--es-bg-white);
  border-radius: var(--es-radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--es-shadow);
}

.es-widget__title {
  font-size: 1rem;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--es-primary-mid);
  color: var(--es-primary-dark);
}

.es-widget ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--es-border);
}

.es-widget ul li:last-child {
  border-bottom: none;
}

.es-widget ul li a {
  font-size: 0.9375rem;
  color: var(--es-text);
}

.es-widget ul li a:hover {
  color: var(--es-primary-mid);
}

/* Company Profile */
.es-company-profile {
  background: var(--es-bg-white);
  border-radius: var(--es-radius-lg);
  box-shadow: var(--es-shadow);
  overflow: hidden;
}

.es-company-profile__header {
  background: linear-gradient(135deg, var(--es-primary-dark), var(--es-primary-mid));
  padding: 48px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.es-company-profile__logo {
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: var(--es-radius-lg);
  padding: 12px;
  flex-shrink: 0;
}

.es-company-profile__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.es-company-profile__info h1 {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.es-company-profile__info p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
}

.es-company-profile__body {
  padding: 40px;
}

.es-company-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.es-company-meta-item {
  padding: 20px;
  background: var(--es-bg);
  border-radius: var(--es-radius);
  border-left: 3px solid var(--es-primary-mid);
}

.es-company-meta-item__label {
  font-size: 0.8125rem;
  color: var(--es-text-muted);
  margin-bottom: 4px;
}

.es-company-meta-item__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--es-primary-dark);
}

/* Filter Bar */
.es-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  padding: 20px 24px;
  background: var(--es-bg-white);
  border-radius: var(--es-radius-lg);
  box-shadow: var(--es-shadow);
}

.es-filter-bar a {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--es-text-muted);
  border: 1px solid var(--es-border);
  transition: all var(--es-transition);
}

.es-filter-bar a:hover,
.es-filter-bar a.is-active {
  background: var(--es-primary-mid);
  color: #fff;
  border-color: var(--es-primary-mid);
}

/* Pagination */
.es-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.es-pagination a,
.es-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--es-radius);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid var(--es-border);
  color: var(--es-text);
  background: var(--es-bg-white);
  transition: all var(--es-transition);
}

.es-pagination a:hover,
.es-pagination span.current {
  background: var(--es-primary-mid);
  color: #fff;
  border-color: var(--es-primary-mid);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.es-footer {
  background: var(--es-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 80px;
}

.es-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.es-footer__brand .es-logo__text {
  margin-bottom: 16px;
  display: block;
}

.es-footer__brand p {
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.es-footer__social {
  display: flex;
  gap: 12px;
}

.es-footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--es-radius);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  transition: all var(--es-transition);
}

.es-footer__social a:hover {
  background: var(--es-accent);
  color: var(--es-primary-dark);
}

.es-footer__col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--es-accent);
  display: inline-block;
}

.es-footer__col ul li {
  margin-bottom: 12px;
}

.es-footer__col ul li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  transition: color var(--es-transition);
}

.es-footer__col ul li a:hover {
  color: var(--es-accent);
}

.es-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.875rem;
}

.es-footer__bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.es-footer__bottom a:hover {
  color: var(--es-accent);
}

/* ==========================================================================
   Search
   ========================================================================== */
.es-search-form {
  display: flex;
  gap: 0;
  max-width: 480px;
}

.es-search-form input[type="search"] {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid var(--es-border);
  border-right: none;
  border-radius: var(--es-radius) 0 0 var(--es-radius);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--es-transition);
}

.es-search-form input[type="search"]:focus {
  border-color: var(--es-primary-mid);
}

.es-search-form button {
  padding: 12px 24px;
  background: var(--es-primary-mid);
  color: #fff;
  border: 2px solid var(--es-primary-mid);
  border-radius: 0 var(--es-radius) var(--es-radius) 0;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background var(--es-transition);
}

.es-search-form button:hover {
  background: var(--es-primary-light);
  border-color: var(--es-primary-light);
}

/* ==========================================================================
   404
   ========================================================================== */
.es-404 {
  text-align: center;
  padding: 120px 0;
}

.es-404__code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--es-primary-mid);
  line-height: 1;
  opacity: 0.3;
}

.es-404__title {
  font-size: 2rem;
  margin: 24px 0 16px;
}

.es-404__desc {
  color: var(--es-text-muted);
  margin-bottom: 32px;
}

/* ==========================================================================
   WordPress Core
   ========================================================================== */
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image img { border-radius: var(--es-radius); }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .es-card-grid { grid-template-columns: repeat(2, 1fr); }
  .es-features { grid-template-columns: repeat(2, 1fr); }
  .es-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .es-content-layout { grid-template-columns: 1fr; }
  .es-hero__stats { grid-template-columns: repeat(2, 1fr); }
  .es-company-meta-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .es-section { padding: 56px 0; }

  .es-nav .menu {
    display: none;
    position: absolute;
    top: var(--es-header-height);
    left: 0;
    right: 0;
    background: var(--es-primary-dark);
    flex-direction: column;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .es-nav .menu.is-open { display: flex; }
  .es-nav .menu li a { padding: 12px 16px; }
  .es-menu-toggle { display: flex; }
  .es-nav__cta { display: none; }

  .es-card-grid { grid-template-columns: 1fr; }
  .es-features { grid-template-columns: 1fr; }
  .es-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .es-hero__stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .es-company-meta-grid { grid-template-columns: 1fr; }
  .es-company-profile__header { flex-direction: column; text-align: center; }
  .es-cta { padding: 40px 24px; }
  .es-footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}
