/*
Theme Name: Energy Storage Pro
Theme URI: https://example.com/energy-storage-pro
Author: OpenAI
Description: A bilingual English/Arabic B2B energy-storage showcase theme with Gutenberg-editable demo content.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: energy-storage-pro
*/

:root {
  --ess-green: #06352b;
  --ess-green-2: #0b4b3d;
  --ess-green-3: #0f6a52;
  --ess-amber: #f5aa18;
  --ess-amber-dark: #de9306;
  --ess-ink: #10201c;
  --ess-muted: #66736f;
  --ess-line: #dfe7e3;
  --ess-soft: #f4f7f5;
  --ess-white: #ffffff;
  --ess-container: 1024px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ess-ink);
  background: #fff;
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.ess-container { width: min(calc(100% - 48px), var(--ess-container)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.ess-topbar { height: 38px; color: rgba(255,255,255,.82); background: #052e26; font-size: 12px; letter-spacing: .04em; }
.ess-topbar .ess-container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ess-topbar-contact { display: flex; align-items: center; gap: 36px; }
.ess-topbar a:hover { color: #fff; }

.ess-header { position: relative; z-index: 50; height: 86px; background: #fff; border-bottom: 1px solid rgba(6,53,43,.08); }
.ess-header.is-sticky { position: sticky; top: 0; box-shadow: 0 12px 30px rgba(6,53,43,.09); }
.ess-header-inner { height: 100%; display: flex; align-items: center; gap: 30px; }
.ess-brand { display: inline-flex; align-items: center; gap: 13px; margin-right: auto; min-width: 250px; }
.ess-brand .custom-logo-link { display: inline-flex; align-items: center; }
.ess-brand .custom-logo { display: block; width: auto; max-width: 230px; max-height: 58px; }
.ess-brand-mark { display: flex; align-items: end; gap: 4px; width: 34px; height: 39px; transform: skew(-9deg); }
.ess-brand-mark i { display: block; width: 8px; border-radius: 1px; }
.ess-brand-mark i:nth-child(1) { height: 20px; background: #0f6a52; }
.ess-brand-mark i:nth-child(2) { height: 31px; background: #f5aa18; }
.ess-brand-mark i:nth-child(3) { height: 39px; background: #1c725d; }
.ess-brand-copy strong { display: block; font-size: 17px; line-height: 1; letter-spacing: .16em; }
.ess-brand-copy small { display: block; margin-top: 8px; color: #81908b; font-size: 7px; letter-spacing: .24em; }
.ess-nav { display: flex; align-items: center; gap: 32px; }
.ess-nav ul { display: flex; align-items: center; gap: 29px; padding: 0; margin: 0; list-style: none; }
.ess-nav a { position: relative; display: inline-flex; align-items: center; min-height: 42px; font-weight: 650; font-size: 13px; color: #18231f; }
.ess-nav a::after { content: ""; position: absolute; left: 0; bottom: 5px; width: 0; height: 2px; background: var(--ess-amber); transition: width .2s ease; }
.ess-nav a:hover::after, .ess-nav .current-menu-item > a::after, .ess-nav .current_page_item > a::after { width: 100%; }
.ess-language { margin-left: 28px; font-weight: 700; font-size: 13px; }
.ess-quote { display: inline-flex; align-items: center; gap: 16px; min-height: 42px; padding: 0 20px; color: #14221d; background: var(--ess-amber); font-size: 13px; font-weight: 750; transition: background .2s ease, transform .2s ease; }
.ess-quote:hover { background: #ffc03f; transform: translateY(-1px); }
.ess-menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; }
.ess-menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--ess-green); }

.ess-main { overflow: hidden; }
.entry-content > * { margin-block-start: 0; margin-block-end: 0; }
.entry-content > .alignfull { width: 100%; margin-left: 0; margin-right: 0; }
.entry-content > .alignwide { width: min(calc(100% - 48px), var(--ess-container)); max-width: none; margin-inline: auto; }

.ess-hero-slider { position: relative; min-height: 626px; color: #fff; background: var(--ess-green); overflow: hidden; }
.ess-hero-slide { position: absolute; inset: 0; min-height: 626px; padding: 0 !important; margin: 0 !important; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s ease; }
.ess-hero-slide.is-active { opacity: 1; visibility: visible; }
.ess-hero-slide .wp-block-cover__background { background: linear-gradient(90deg, rgba(3,35,29,.94) 0%, rgba(3,35,29,.73) 41%, rgba(3,35,29,.20) 72%, rgba(3,35,29,.04) 100%) !important; opacity: 1 !important; }
.ess-hero-slide .wp-block-cover__inner-container { width: min(calc(100% - 48px), var(--ess-container)); margin-inline: auto; }
.ess-hero-content { width: min(610px, 66%); padding-top: 108px; }
.ess-eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; font-size: 11px; font-weight: 750; letter-spacing: .24em; text-transform: uppercase; }
.ess-eyebrow::before { content: ""; width: 31px; height: 2px; background: var(--ess-amber); }
.ess-hero-title { max-width: 610px; margin: 0 !important; color: #fff; font-size: clamp(48px, 5.2vw, 67px) !important; font-weight: 650 !important; line-height: 1.01 !important; letter-spacing: -.045em; }
.ess-hero-title strong { color: var(--ess-amber); font-weight: inherit; }
.ess-hero-copy { max-width: 590px; margin-top: 26px !important; color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.9; }
.ess-hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 32px !important; }
.ess-hero-actions .wp-block-button__link { border-radius: 0 !important; padding: 16px 26px !important; font-size: 13px; font-weight: 750; }
.ess-hero-actions .is-style-fill .wp-block-button__link { color: #17231f !important; background: var(--ess-amber) !important; }
.ess-hero-actions .is-style-outline .wp-block-button__link { padding-inline: 0 6px !important; color: #fff !important; background: transparent !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.55) !important; }
.ess-hero-stats { position: absolute; right: 0; bottom: 0; z-index: 5; display: flex; min-width: 457px; padding: 35px 38px; background: rgba(3,54,44,.96); }
.ess-hero-stat { display: flex; align-items: center; gap: 16px; flex: 1; padding: 0 28px; }
.ess-hero-stat + .ess-hero-stat { border-left: 1px solid rgba(255,255,255,.18); }
.ess-hero-stat strong { color: var(--ess-amber); font-size: 33px; line-height: 1; }
.ess-hero-stat span { max-width: 78px; color: rgba(255,255,255,.78); font-size: 10px; line-height: 1.35; }
.ess-slider-controls { position: absolute; left: max(24px, calc((100vw - var(--ess-container))/2)); bottom: 35px; z-index: 8; display: flex; align-items: center; gap: 10px; }
.ess-slider-dot { width: 23px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.ess-slider-dot.is-active { width: 50px; background: var(--ess-amber); }
.ess-slider-count { margin-left: 8px; font-size: 12px; color: rgba(255,255,255,.78); }

.ess-section { padding: 96px 0; }
.ess-section.is-soft { background: var(--ess-soft); }
.ess-section.is-green { color: #fff; background: var(--ess-green); }
.ess-inner { width: min(calc(100% - 48px), var(--ess-container)); margin-inline: auto; }
.ess-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 42px; }
.ess-kicker { margin-bottom: 9px !important; color: var(--ess-green-3); font-size: 11px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.is-green .ess-kicker { color: var(--ess-amber); }
.ess-h2 { max-width: 660px; margin: 0 !important; color: var(--ess-green); font-size: clamp(34px, 4vw, 48px) !important; font-weight: 650 !important; line-height: 1.13 !important; letter-spacing: -.035em; }
.is-green .ess-h2 { color: #fff; }
.ess-lead { max-width: 670px; margin-top: 20px !important; color: var(--ess-muted); font-size: 17px; }
.is-green .ess-lead { color: rgba(255,255,255,.68); }
.ess-text-link { display: inline-flex; align-items: center; gap: 11px; color: var(--ess-green); font-size: 13px; font-weight: 750; border-bottom: 1px solid #aebbb7; }
.is-green .ess-text-link { color: #fff; border-color: rgba(255,255,255,.35); }

.ess-about-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 74px; align-items: center; }
.ess-image-frame { position: relative; }
.ess-image-frame img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ess-image-frame::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 48%; height: 48%; z-index: -1; background: var(--ess-amber); }
.ess-feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: 30px; }
.ess-feature { padding-top: 18px; border-top: 1px solid var(--ess-line); }
.ess-feature strong { display: block; color: var(--ess-green); font-size: 15px; }
.ess-feature span { display: block; margin-top: 4px; color: var(--ess-muted); font-size: 13px; line-height: 1.55; }

.ess-card-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 64px)/5); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.ess-card-track::-webkit-scrollbar { display: none; }
.ess-product-card { position: relative; min-height: 340px; overflow: hidden; scroll-snap-align: start; background: #dfe8e4; }
.ess-product-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.ess-product-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 33%, rgba(3,36,29,.93)); }
.ess-product-card:hover img { transform: scale(1.04); }
.ess-product-card-content { position: absolute; z-index: 2; left: 19px; right: 19px; bottom: 19px; color: #fff; }
.ess-product-card-content small { display: block; margin-bottom: 7px; color: var(--ess-amber); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.ess-product-card-content h3 { margin: 0; font-size: 16px; line-height: 1.34; }
.ess-product-card-content span { display: inline-block; margin-top: 10px; font-size: 17px; }

.ess-solution-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); }
.ess-solution-card { min-height: 255px; padding: 34px 27px; background: #0a4035; transition: background .25s ease; }
.ess-solution-card:hover { background: #115747; }
.ess-solution-number { color: var(--ess-amber); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.ess-solution-card h3 { margin: 55px 0 12px; font-size: 19px; line-height: 1.35; }
.ess-solution-card p { margin: 0; color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.65; }

.ess-project-grid { display: grid; grid-template-columns: 1.3fr .85fr .85fr; gap: 18px; }
.ess-project-card { position: relative; min-height: 430px; overflow: hidden; }
.ess-project-card:nth-child(n+2) { min-height: 360px; margin-top: 70px; }
.ess-project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ess-project-card:hover img { transform: scale(1.04); }
.ess-project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(3,34,28,.9)); }
.ess-project-copy { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 24px; color: #fff; }
.ess-project-copy small { color: var(--ess-amber); font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.ess-project-copy h3 { margin: 8px 0 0; font-size: 21px; line-height: 1.3; }

.ess-news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.ess-news-card { border-bottom: 1px solid var(--ess-line); }
.ess-news-card img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.ess-news-card-content { padding: 21px 0 23px; }
.ess-news-card time { color: var(--ess-green-3); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ess-news-card h3 { margin: 8px 0 7px; color: var(--ess-green); font-size: 19px; line-height: 1.42; }
.ess-news-card p { margin: 0; color: var(--ess-muted); font-size: 14px; line-height: 1.65; }

.ess-cta { display: grid; grid-template-columns: 1fr 1fr; }
.ess-cta-copy { display: flex; flex-direction: column; justify-content: center; min-height: 470px; padding: 70px max(46px, calc((100vw - var(--ess-container))/2)); color: #fff; background: var(--ess-green); }
.ess-cta-copy h2 { margin: 0; max-width: 500px; font-size: clamp(34px,4vw,50px); line-height: 1.08; letter-spacing: -.035em; }
.ess-cta-copy p { max-width: 500px; color: rgba(255,255,255,.68); }
.ess-cta-form { min-height: 470px; padding: 60px max(46px, calc((100vw - var(--ess-container))/2)) 60px 55px; background: #f6f8f7; }
.ess-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ess-field { margin-bottom: 16px; }
.ess-field label { display: block; margin-bottom: 6px; color: #40504b; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.ess-field input, .ess-field textarea { width: 100%; min-height: 48px; padding: 12px 14px; color: var(--ess-ink); background: #fff; border: 1px solid #d7e0dc; border-radius: 0; outline: none; }
.ess-field input:focus, .ess-field textarea:focus { border-color: var(--ess-green-3); box-shadow: 0 0 0 2px rgba(15,106,82,.08); }
.ess-field textarea { min-height: 124px; resize: vertical; }
.ess-field.is-wide { grid-column: 1/-1; }
.ess-submit { min-height: 49px; padding: 0 24px; border: 0; color: #17231f; background: var(--ess-amber); font-weight: 800; cursor: pointer; }
.ess-submit:hover { background: #ffc03f; }
.ess-form-message { margin-bottom: 18px; padding: 10px 14px; background: #e9f5ef; border-left: 3px solid var(--ess-green-3); }

.ess-page-hero { position: relative; display: grid; place-items: center; min-height: 330px; color: #fff; background: linear-gradient(90deg,rgba(2,35,29,.88),rgba(2,35,29,.45)), url("assets/images/hero-industrial.webp") center/cover; }
.ess-page-hero .ess-inner { position: relative; z-index: 2; }
.ess-page-hero h1 { margin: 0; max-width: 760px; font-size: clamp(42px,5vw,64px); line-height: 1.06; letter-spacing: -.04em; }
.ess-page-hero p { max-width: 650px; margin: 18px 0 0; color: rgba(255,255,255,.72); font-size: 17px; }
.ess-breadcrumb { margin-bottom: 18px; color: var(--ess-amber); font-size: 11px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }

.ess-content-wrap { width: min(calc(100% - 48px), var(--ess-container)); margin: 0 auto; padding: 85px 0; }
.ess-content-wrap h2 { color: var(--ess-green); font-size: 34px; line-height: 1.2; }
.ess-content-wrap h3 { color: var(--ess-green); }
.ess-content-wrap p { color: var(--ess-muted); }
.ess-split { display: grid; grid-template-columns: 1fr 1fr; gap: 62px; align-items: center; }
.ess-split img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.ess-cert-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 35px; }
.ess-cert-card { display: grid; place-items: center; min-height: 245px; padding: 28px; text-align: center; background: #fff; border: 1px solid var(--ess-line); }
.ess-cert-seal { display: grid; place-items: center; width: 82px; height: 82px; margin: 0 auto 20px; color: var(--ess-green); border: 2px solid var(--ess-amber); border-radius: 50%; font-size: 13px; font-weight: 850; letter-spacing: .05em; }
.ess-cert-card h3 { margin: 0; font-size: 16px; }
.ess-cert-card p { margin: 5px 0 0; font-size: 12px; }

.ess-products-layout { display: grid; grid-template-columns: 245px minmax(0,1fr); gap: 48px; }
.ess-product-sidebar { align-self: start; position: sticky; top: 112px; }
.ess-product-sidebar h2 { margin: 0 0 19px; padding-bottom: 14px; color: var(--ess-green); font-size: 20px; border-bottom: 2px solid var(--ess-green); }
.ess-product-sidebar ul { list-style: none; padding: 0; margin: 0; }
.ess-product-sidebar li { border-bottom: 1px solid var(--ess-line); }
.ess-product-sidebar a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 4px; color: #47564f; font-size: 13px; line-height: 1.4; }
.ess-product-sidebar a:hover, .ess-product-sidebar .is-current { color: var(--ess-green); font-weight: 750; }
.ess-products-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 25px; }
.ess-catalog-card { background: #fff; border: 1px solid var(--ess-line); transition: transform .2s ease, box-shadow .2s ease; }
.ess-catalog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 35px rgba(6,53,43,.10); }
.ess-catalog-card img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ess-catalog-card-copy { padding: 22px; }
.ess-catalog-card-copy h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; }
.ess-catalog-card-copy p { margin: 0 0 12px; font-size: 13px; }

.ess-detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.ess-detail-grid > img { width: 100%; aspect-ratio: 1/1; object-fit: cover; position: sticky; top: 112px; }
.ess-detail-copy h1 { margin: 0 0 15px; color: var(--ess-green); font-size: 40px; line-height: 1.12; letter-spacing: -.035em; }
.ess-detail-copy .ess-product-code { color: var(--ess-green-3); font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.ess-detail-copy ul { padding-left: 20px; color: var(--ess-muted); }
.ess-spec-table { width: 100%; margin: 26px 0; border-collapse: collapse; }
.ess-spec-table th, .ess-spec-table td { padding: 12px 14px; text-align: left; border: 1px solid var(--ess-line); font-size: 13px; }
.ess-spec-table th { width: 38%; color: var(--ess-green); background: var(--ess-soft); }

.ess-contact-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 45px; }
.ess-contact-card { padding: 28px; background: var(--ess-soft); border-top: 3px solid var(--ess-amber); }
.ess-contact-card strong { display: block; margin-bottom: 8px; color: var(--ess-green); }
.ess-contact-card span, .ess-contact-card a { color: var(--ess-muted); font-size: 14px; }
.ess-social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ess-social-row a { display: inline-grid; place-items: center; min-width: 41px; height: 41px; padding: 0 12px; color: #fff; background: var(--ess-green); font-size: 11px; font-weight: 750; }

.ess-article { max-width: 760px; margin: 0 auto; padding: 80px 24px; }
.ess-article header { margin-bottom: 35px; }
.ess-article h1 { margin: 0; color: var(--ess-green); font-size: clamp(38px,5vw,58px); line-height: 1.08; letter-spacing: -.04em; }
.ess-article-meta { margin-top: 14px; color: var(--ess-green-3); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ess-article img { margin-block: 28px; }
.ess-article h2 { margin-top: 40px; color: var(--ess-green); font-size: 30px; line-height: 1.2; }
.ess-article p, .ess-article li { color: #53615c; }

.ess-footer { color: rgba(255,255,255,.68); background: #032a22; }
.ess-footer-main { display: grid; grid-template-columns: 1.25fr .75fr .9fr 1.1fr; gap: 42px; padding: 70px 0 55px; }
.ess-footer .ess-brand { color: #fff; }
.ess-footer h3 { margin: 0 0 18px; color: #fff; font-size: 14px; letter-spacing: .05em; }
.ess-footer p, .ess-footer li, .ess-footer a { font-size: 13px; }
.ess-footer ul { list-style: none; padding: 0; margin: 0; }
.ess-footer li { margin-bottom: 9px; }
.ess-footer a:hover { color: #fff; }
.ess-footer-contact p { margin: 0 0 10px; }
.ess-footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.11); font-size: 11px; }
.ess-footer-bottom .ess-container { display: flex; justify-content: space-between; gap: 20px; }

.rtl-page { direction: rtl; text-align: right; }
.rtl-page .ess-eyebrow { justify-content: flex-start; }
.rtl-page .ess-hero-content { margin-left: auto; }
.rtl-page .ess-feature-list, .rtl-page .ess-section-heading { direction: rtl; }

@media (max-width: 980px) {
  :root { --ess-container: 90vw; }
  .ess-topbar { display: none; }
  .ess-header { height: 76px; }
  .ess-brand { min-width: 215px; }
  .ess-menu-toggle { display: block; margin-left: auto; }
  .ess-nav { position: absolute; left: 0; right: 0; top: 76px; display: none; flex-direction: column; align-items: stretch; padding: 22px 5vw 28px; background: #fff; box-shadow: 0 18px 35px rgba(6,53,43,.13); }
  .ess-nav.is-open { display: flex; }
  .ess-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .ess-nav a { min-height: 44px; }
  .ess-language { margin-left: 0; }
  .ess-quote { justify-content: center; }
  .ess-card-track { grid-auto-columns: calc((100% - 32px)/3); }
  .ess-solution-grid { grid-template-columns: 1fr 1fr; }
  .ess-project-grid { grid-template-columns: 1fr 1fr; }
  .ess-project-card:first-child { grid-column: 1/-1; }
  .ess-project-card:nth-child(n+2) { min-height: 340px; margin-top: 0; }
  .ess-footer-main { grid-template-columns: 1fr 1fr; }
  .ess-products-layout { grid-template-columns: 210px minmax(0,1fr); gap: 30px; }
}

@media (max-width: 720px) {
  :root { --ess-container: 95vw; }
  .ess-container, .ess-inner, .ess-content-wrap, .entry-content > .alignwide { width: 95vw; }
  .ess-brand { min-width: 0; }
  .ess-brand-copy strong { font-size: 15px; }
  .ess-brand-copy small { font-size: 6px; }
  .ess-hero-slider, .ess-hero-slide { min-height: 650px; }
  .ess-hero-slide .wp-block-cover__inner-container { width: 95vw; }
  .ess-hero-content { width: 100%; padding-top: 72px; }
  .ess-hero-title { font-size: 45px !important; }
  .ess-hero-copy { font-size: 15px; }
  .ess-hero-actions { gap: 19px; flex-wrap: wrap; }
  .ess-hero-stats { left: 0; right: 0; min-width: 0; padding: 25px 18px; }
  .ess-hero-stat { padding: 0 16px; }
  .ess-hero-stat strong { font-size: 27px; }
  .ess-slider-controls { left: 2.5vw; bottom: 115px; }
  .ess-section { padding: 70px 0; }
  .ess-section-heading { align-items: start; flex-direction: column; margin-bottom: 30px; }
  .ess-about-grid, .ess-split, .ess-cta, .ess-detail-grid { grid-template-columns: 1fr; gap: 35px; }
  .ess-feature-list { grid-template-columns: 1fr; }
  .ess-card-track { grid-auto-columns: 72vw; }
  .ess-solution-grid { grid-template-columns: 1fr; }
  .ess-solution-card { min-height: 220px; }
  .ess-solution-card h3 { margin-top: 35px; }
  .ess-project-grid, .ess-news-grid { grid-template-columns: 1fr; }
  .ess-project-card, .ess-project-card:nth-child(n+2) { min-height: 360px; margin: 0; }
  .ess-cta-copy, .ess-cta-form { min-height: 0; padding: 55px 5vw; }
  .ess-form-grid { grid-template-columns: 1fr; }
  .ess-page-hero { min-height: 300px; }
  .ess-content-wrap { padding: 65px 0; }
  .ess-cert-grid { grid-template-columns: 1fr 1fr; }
  .ess-products-layout { grid-template-columns: 1fr; }
  .ess-product-sidebar { position: static; }
  .ess-product-sidebar ul { display: flex; gap: 8px; overflow-x: auto; }
  .ess-product-sidebar li { flex: 0 0 230px; border: 1px solid var(--ess-line); }
  .ess-product-sidebar a { padding: 12px; }
  .ess-products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ess-catalog-card-copy { padding: 15px; }
  .ess-catalog-card-copy h3 { font-size: 15px; }
  .ess-detail-grid > img { position: static; }
  .ess-contact-cards { grid-template-columns: 1fr; }
  .ess-footer-main { grid-template-columns: 1fr; padding: 55px 0 42px; }
  .ess-footer-bottom .ess-container { flex-direction: column; }
}

@media (max-width: 450px) {
  .ess-products-grid, .ess-cert-grid { grid-template-columns: 1fr; }
  .ess-hero-title { font-size: 39px !important; }
  .ess-hero-stat { gap: 9px; padding: 0 10px; }
  .ess-hero-stat strong { font-size: 24px; }
  .ess-hero-stat span { font-size: 9px; }
}

/* Gutenberg editor alignment */
.editor-styles-wrapper { font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif; }
.editor-styles-wrapper .ess-section, .editor-styles-wrapper .ess-content-wrap { border: 1px dashed #cbd7d2; }
