/*
Theme Name: Acorn Peach Energy
Theme URI: mailto:teamswsajid@gmail.com
Author: TeamSWSAJID
Author URI: mailto:teamswsajid@gmail.com
Description: Modern, dark-mode corporate renewable energy WordPress theme and Elementor template kit for Acorn Peach Energy Ltd. Built for UK renewable power generation (solar, wind, hydro), wholesale electricity & gas trading, utility-scale battery storage, and 100% carbon-offset gas supply. Developed By TeamSWSAJID (teamswsajid@gmail.com).
Version: 2.0.0
Tested up to: 6.7
Requires at least: 5.8
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: acorn-peach-energy
Tags: clean-energy, dark, corporate, elementor, responsive-layout, custom-header, custom-menu, featured-images, translation-ready
*/

:root {
  --ape-bg-deep: #0B1011;
  --ape-bg-main: #121011;
  --ape-bg-surface: #1C1819;
  --ape-bg-card: #1C1819;
  --ape-bg-chart: #161D1F;
  --ape-terracotta: #D95E3D;
  --ape-terracotta-hover: #C04E2F;
  --ape-primary: #9B2A12;
  --ape-accent: #E4B404;
  --ape-accent-light: #F2C230;
  --ape-accent-soft: #FFE27A;
  --ape-coral: #E0714F;
  --ape-text-white: #FFFFFF;
  --ape-text-light: #F1F3F2;
  --ape-text-muted: #B5AFA9;
  --ape-text-cool-muted: #AEB8B9;
  --ape-border-dark: rgba(255, 255, 255, 0.11);
  --ape-border-subtle: rgba(255, 255, 255, 0.08);
  --ape-font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ape-font-heading: 'Archivo', sans-serif;
  --ape-font-mono: 'IBM Plex Mono', monospace;
  --ape-container: 1180px;
}

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

html {
  font-family: var(--ape-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ape-text-light);
  background-color: var(--ape-bg-main);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: var(--ape-font-sans);
  color: var(--ape-text-light);
  background-color: var(--ape-bg-main);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ape-font-heading);
  color: var(--ape-text-white);
  margin-top: 0;
  line-height: 1.08;
  font-weight: 800;
}

p {
  margin-top: 0;
  margin-bottom: 1.15rem;
}

a {
  color: var(--ape-accent-light);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

a:hover, a:focus {
  color: var(--ape-accent-soft);
}

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

.ape-container {
  width: 100%;
  max-width: var(--ape-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 767px) {
  .ape-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ==========================================================================
   Typography Eyebrows & Badges
   ========================================================================== */
.eyebrow {
  font-family: var(--ape-font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ape-coral);
  margin-bottom: 12px;
  display: block;
  line-height: 1.3;
}

.eyebrow-accent {
  color: var(--ape-accent);
}

.eyebrow-soft {
  color: var(--ape-accent-soft);
}

.eyebrow-light {
  color: var(--ape-text-light);
}

.ape-pill-badge {
  display: inline-block;
  font-family: var(--ape-font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background-color: rgba(228, 180, 4, 0.16);
  color: var(--ape-accent-light);
  padding: 7px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--ape-bg-surface);
  border-bottom: 1px solid var(--ape-border-dark);
  padding: 12px 0;
  transition: all 0.25s ease;
}

.site-header .ape-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-branding .ape-logo-badge,
.site-branding .custom-logo-link {
  display: inline-flex;
  align-items: center;
  background-color: #FFFFFF;
  padding: 7px 14px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.site-branding img {
  height: 36px;
  width: auto;
  max-width: 210px;
  display: block;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--ape-font-sans);
  font-size: 15px;
  font-weight: 400;
  color: #D5CFCB;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--ape-accent);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ape-border-dark);
  border-radius: 6px;
  padding: 9px 10px;
  cursor: pointer;
  color: #FFFFFF;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background-color: #FFFFFF;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-drawer {
  display: none;
}

@media (max-width: 991px) {
  .nav-links,
  .header-cta-desktop {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: inline-block;
  }

  .mobile-drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--ape-bg-surface);
    border-bottom: 1px solid var(--ape-border-dark);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
    padding: 20px 0 24px;
    z-index: 999;
  }

  .mobile-drawer.is-open {
    display: block;
  }

  .mobile-drawer ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-drawer li {
    border-bottom: 1px solid var(--ape-border-subtle);
  }

  .mobile-drawer a {
    font-size: 16px;
    font-weight: 500;
    color: var(--ape-text-light);
    display: block;
    padding: 12px 0;
  }

  .mobile-drawer .header-cta-mobile {
    margin-top: 16px;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ape-font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 16px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-terracotta {
  background-color: var(--ape-terracotta);
  color: #FFFFFF !important;
  border-color: var(--ape-terracotta);
}

.btn-terracotta:hover,
.btn-terracotta:focus {
  background-color: var(--ape-terracotta-hover);
  border-color: var(--ape-terracotta-hover);
  color: #FFFFFF !important;
}

.btn-gold {
  background-color: var(--ape-accent);
  color: #1A1200 !important;
  border-color: var(--ape-accent);
}

.btn-gold:hover,
.btn-gold:focus {
  background-color: var(--ape-accent-light);
  border-color: var(--ape-accent-light);
  color: #1A1200 !important;
}

.btn-outline-white {
  background-color: transparent;
  color: #FFFFFF !important;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.btn-outline-white:hover,
.btn-outline-white:focus {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
  color: #FFFFFF !important;
}

/* ==========================================================================
   Section 1: Hero
   ========================================================================== */
.ape-hero-section {
  position: relative;
  background-color: #0E0908;
  background-image: linear-gradient(100deg, rgba(14, 9, 8, 0.88) 0%, rgba(14, 9, 8, 0.45) 55%, rgba(14, 9, 8, 0.15) 85%), url('assets/images/hero-wind-turbines-sunset.jpg');
  background-size: cover;
  background-position: center center;
  padding: 140px 0 96px;
  color: #FFFFFF;
}

.ape-hero-title {
  font-size: clamp(42px, 6.5vw, 80px);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.0;
  margin-bottom: 22px;
  max-width: 650px;
  letter-spacing: -0.5px;
}

.ape-hero-title span {
  color: var(--ape-accent);
}

.ape-hero-lead {
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 30px;
}

.ape-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.ape-hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.ape-hero-bullets li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ape-hero-bullets li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--ape-accent);
  flex-shrink: 0;
}

.ape-hero-credit {
  position: absolute;
  right: 20px;
  bottom: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--ape-font-sans);
}

@media (max-width: 767px) {
  .ape-hero-section {
    padding: 84px 0 60px;
  }
  .ape-hero-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Section 2: 5-Column Capability Strip
   ========================================================================== */
.ape-strip-section {
  background-color: var(--ape-bg-surface);
  border-top: 1px solid var(--ape-border-subtle);
  border-bottom: 1px solid var(--ape-border-dark);
  padding: 26px 0;
}

.ape-strip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.ape-strip-item {
  border-right: 1px solid var(--ape-border-dark);
  padding: 4px 16px 4px 0;
}

.ape-strip-item:last-child {
  border-right: none;
  padding-right: 0;
}

.ape-strip-item .eyebrow {
  font-size: 12px;
  margin-bottom: 6px;
}

.ape-strip-item h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ape-text-light);
  margin: 0;
}

.ape-strip-item a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.ape-strip-item a:hover h3 {
  color: var(--ape-accent);
}

@media (max-width: 991px) {
  .ape-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ape-strip-item {
    border-right: none;
    border-bottom: 1px solid var(--ape-border-subtle);
    padding: 10px 0;
  }
  .ape-strip-item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 575px) {
  .ape-strip-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ==========================================================================
   Section 3: Power Generation & Bento Mosaic Grid
   ========================================================================== */
.ape-section-dark {
  background-color: var(--ape-bg-main);
  padding: 96px 0;
}

.ape-section-surface {
  background-color: var(--ape-bg-surface);
  padding: 96px 0;
}

.ape-section-deep {
  background-color: var(--ape-bg-deep);
  padding: 96px 0;
}

@media (max-width: 767px) {
  .ape-section-dark,
  .ape-section-surface,
  .ape-section-deep {
    padding: 64px 0;
  }
}

.ape-section-intro {
  max-width: 740px;
  margin-bottom: 44px;
}

.ape-section-title {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.ape-section-lead {
  font-size: 17px;
  color: var(--ape-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Bento Grid */
.ape-bento-grid {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: 20px;
}

.ape-bento-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ape-bento-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ape-bento-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--ape-bg-surface);
  background-size: cover;
  background-position: center center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.ape-bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.05) 28%, rgba(8, 8, 8, 0.88) 100%);
  z-index: 1;
}

.ape-bento-card > * {
  position: relative;
  z-index: 2;
}

.ape-bento-solar {
  min-height: 520px;
  background-image: url('assets/images/solar-field.jpg');
}

.ape-bento-wind {
  min-height: 245px;
  background-image: url('assets/images/offshore-wind.jpg');
}

.ape-bento-water {
  min-height: 245px;
  background-image: url('assets/images/hydro-station.jpg');
}

.ape-bento-plants {
  min-height: 255px;
  background-image: url('assets/images/solar-thermal-plant.jpg');
}

.ape-bento-card .eyebrow {
  color: var(--ape-accent);
  margin-bottom: 6px;
}

.ape-bento-card h3 {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.ape-bento-wind h3,
.ape-bento-water h3 {
  font-size: 22px;
  margin-bottom: 0;
}

.ape-bento-card p {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 991px) {
  .ape-bento-grid {
    grid-template-columns: 1fr;
  }
  .ape-bento-solar {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .ape-bento-top-row {
    grid-template-columns: 1fr;
  }
  .ape-bento-solar,
  .ape-bento-wind,
  .ape-bento-water,
  .ape-bento-plants {
    min-height: 260px;
  }
}

/* ==========================================================================
   Section 4: How It Fits Together (4 Steps)
   ========================================================================== */
.ape-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.ape-step-item {
  position: relative;
  border-top: 2px solid var(--ape-accent);
  padding-top: 20px;
}

.ape-step-item:not(:last-child)::after {
  content: "›";
  position: absolute;
  top: 38px;
  right: -18px;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
  line-height: 1;
}

.ape-step-item .eyebrow {
  color: var(--ape-coral);
  margin-bottom: 8px;
}

.ape-step-item h3 {
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.ape-step-item p {
  font-size: 15.5px;
  color: var(--ape-text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 991px) {
  .ape-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ape-step-item::after {
    display: none;
  }
}

@media (max-width: 575px) {
  .ape-steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================================================
   Section 5: Trading Desks
   ========================================================================== */
.ape-trading-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.ape-trading-card {
  background-color: var(--ape-bg-card);
  border: 1px solid var(--ape-border-dark);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ape-trading-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.ape-trading-card-body {
  padding: 28px;
}

.ape-trading-card-body h3 {
  font-size: 26px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.ape-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ape-check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ape-text-muted);
}

.ape-check-list li:last-child {
  margin-bottom: 0;
}

.ape-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ape-coral);
  font-weight: 700;
}

.ape-check-list strong {
  color: var(--ape-text-light);
}

@media (max-width: 860px) {
  .ape-trading-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Section 6: Battery Energy Storage & Interactive SVG Chart
   ========================================================================== */
.ape-storage-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.ape-storage-callouts {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.ape-storage-callout {
  border-left: 2px solid var(--ape-accent);
  padding-left: 16px;
  font-size: 15.5px;
  color: var(--ape-text-cool-muted);
  line-height: 1.55;
}

.ape-storage-callout strong {
  display: block;
  font-family: var(--ape-font-heading);
  font-size: 18px;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.ape-chart-box {
  margin: 0;
  background: var(--ape-bg-chart);
  border: 1px solid var(--ape-border-dark);
  border-radius: 6px;
  padding: 20px 18px 14px;
  color: var(--ape-text-light);
  font-family: var(--ape-font-mono);
}

.ape-chart-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.ape-chart-title {
  font-family: var(--ape-font-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: #FFFFFF;
}

.ape-chart-legend {
  font-size: 11.5px;
  color: var(--ape-text-cool-muted);
}

.ape-legend-item {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
}

.ape-legend-item:first-child {
  margin-left: 0;
}

.ape-legend-color {
  display: inline-block;
  width: 12px;
  height: 8px;
  margin-right: 6px;
}

.ape-legend-line {
  display: inline-block;
  width: 12px;
  height: 2px;
  margin-right: 6px;
}

.ape-chart-svg-wrap {
  overflow-x: auto;
}

.ape-chart-svg-wrap svg {
  width: 100%;
  min-width: 420px;
  height: auto;
  display: block;
}

.ape-chart-caption {
  font-size: 12px;
  color: var(--ape-text-cool-muted);
  margin-top: 8px;
}

@media (max-width: 991px) {
  .ape-storage-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ==========================================================================
   Section 7: Sustainability (Photo + 3 Horizontal Offset Cards)
   ========================================================================== */
.ape-sustain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.ape-sustain-photo-wrap img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 6px;
}

.ape-sustain-photo-credit {
  font-size: 12px;
  color: #8A827C;
  margin-top: 8px;
  margin-bottom: 0;
}

.ape-offset-cards {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.ape-offset-card {
  background-color: var(--ape-bg-card);
  border: 1px solid var(--ape-border-dark);
  border-radius: 6px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ape-offset-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(228, 180, 4, 0.15);
  color: var(--ape-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.ape-offset-card strong {
  display: block;
  font-family: var(--ape-font-heading);
  font-size: 17px;
  color: #FFFFFF;
  margin-bottom: 3px;
}

.ape-offset-card span {
  display: block;
  font-size: 15px;
  color: var(--ape-text-muted);
  line-height: 1.5;
}

@media (max-width: 991px) {
  .ape-sustain-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .ape-sustain-photo-wrap img {
    height: 320px;
  }
}

/* ==========================================================================
   Section 8: Collaborate With Us & Working Form
   ========================================================================== */
.ape-partner-section {
  background-color: var(--ape-terracotta);
  color: #FFFFFF;
  padding: 96px 0;
}

@media (max-width: 767px) {
  .ape-partner-section {
    padding: 64px 0;
  }
}

.ape-partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}

.ape-partner-list {
  margin-top: 24px;
}

.ape-partner-item {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding: 13px 0;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

.ape-partner-item strong {
  display: block;
  font-family: var(--ape-font-heading);
  font-size: 18px;
  color: #FFFFFF;
  margin-bottom: 2px;
}

@media (max-width: 991px) {
  .ape-partner-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Form Card & Inputs */
.ape-form-wrapper {
  background: var(--ape-bg-card);
  border: 1px solid var(--ape-border-dark);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  color: var(--ape-text-light);
}

@media (max-width: 767px) {
  .ape-form-wrapper {
    padding: 24px 18px;
  }
}

.ape-form-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.ape-form-mark {
  width: 32px;
  height: 32px;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 3px;
  object-fit: contain;
  flex-shrink: 0;
}

.ape-form-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #FFFFFF;
}

.ape-form-subtitle {
  font-size: 15px;
  color: var(--ape-text-muted);
  margin-bottom: 20px;
}

.ape-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 575px) {
  .ape-form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.ape-form-group {
  margin-bottom: 14px;
}

.ape-form-group label {
  display: block;
  font-family: var(--ape-font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ape-text-light);
  margin-bottom: 5px;
}

.ape-form-group .required-star {
  color: var(--ape-coral);
}

.ape-form-control,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea,
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="tel"],
.wpforms-form select,
.wpforms-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background-color: var(--ape-bg-main) !important;
  font-family: var(--ape-font-sans);
  font-size: 14.5px;
  color: #FFFFFF !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ape-form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.ape-form-control:focus,
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus,
.wpforms-form input:focus,
.wpforms-form select:focus,
.wpforms-form textarea:focus {
  outline: none;
  border-color: var(--ape-accent);
  box-shadow: 0 0 0 3px rgba(228, 180, 4, 0.18);
}

textarea.ape-form-control,
.wpcf7 textarea,
.wpforms-form textarea {
  min-height: 105px;
  resize: vertical;
}

.ape-submit-btn,
.wpcf7 input[type="submit"],
.wpforms-form button[type="submit"] {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background-color: var(--ape-terracotta) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 6px !important;
  font-family: var(--ape-font-sans) !important;
  font-size: 15.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
  text-align: center;
  margin-top: 6px;
}

.ape-submit-btn:hover,
.wpcf7 input[type="submit"]:hover,
.wpforms-form button[type="submit"]:hover {
  background-color: var(--ape-terracotta-hover) !important;
}

.ape-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.ape-form-talk-note {
  font-size: 13px;
  color: var(--ape-text-muted);
  margin-top: 14px;
  margin-bottom: 0;
  text-align: center;
}

.ape-form-talk-note strong,
.ape-form-talk-note a {
  color: var(--ape-text-light);
}

.ape-form-alert {
  display: none;
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.ape-form-alert.is-success {
  display: block;
  background-color: rgba(46, 125, 50, 0.2);
  border: 1px solid #66BB6A;
  color: #A5D6A7;
}

.ape-form-alert.is-error {
  display: block;
  background-color: rgba(198, 40, 40, 0.2);
  border: 1px solid #EF5350;
  color: #FFCDD2;
}

.ape-hp-field {
  display: none !important;
  visibility: hidden !important;
}

/* ==========================================================================
   Section 9: Offices
   ========================================================================== */
.ape-offices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.ape-office-card {
  background-color: var(--ape-bg-card);
  border: 1px solid var(--ape-border-dark);
  border-radius: 6px;
  padding: 28px;
}

.ape-office-card h3 {
  font-size: 26px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.ape-office-address {
  font-size: 15.5px;
  color: var(--ape-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.ape-office-phone {
  font-size: 15.5px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
}

.ape-office-phone a {
  color: #FFFFFF;
  text-decoration: none;
}

.ape-office-phone a:hover {
  color: var(--ape-accent);
}

@media (max-width: 767px) {
  .ape-offices-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Section 10: Footer & Credits
   ========================================================================== */
.site-footer {
  background-color: var(--ape-bg-deep);
  color: var(--ape-text-cool-muted);
  padding: 64px 0 36px;
  font-size: 14.5px;
  border-top: 1px solid var(--ape-border-subtle);
}

.site-footer a {
  color: var(--ape-text-light);
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--ape-accent);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo-box {
  display: inline-block;
  background-color: #FFFFFF;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.footer-logo-box img {
  height: 58px;
  width: auto;
  display: block;
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-bottom {
  border-top: 1px solid var(--ape-border-dark);
  padding-top: 20px;
}

.footer-credits {
  font-size: 12px;
  line-height: 1.6;
  color: #8A9496;
  margin-bottom: 14px;
}

.footer-credits a {
  color: var(--ape-text-light);
  text-decoration: underline;
}

.footer-copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--ape-font-mono);
  font-size: 12px;
  color: var(--ape-text-cool-muted);
}

.footer-author-credit {
  color: var(--ape-text-light);
  font-weight: 500;
}

.footer-author-credit a {
  color: var(--ape-accent-soft);
  text-decoration: underline;
  font-weight: 600;
}

.footer-author-credit a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   Elementor Compatibility Overrides
   ========================================================================== */
.ape-elementor-canvas {
  background-color: var(--ape-bg-main);
  color: var(--ape-text-light);
}

.elementor-widget-heading .elementor-heading-title {
  font-family: var(--ape-font-heading);
}

/* ==========================================================================
   Elementor Mobile Responsive Header, Nav Drawer & Section Overrides
   (Desktop > 991px remains 100% untouched)
   ========================================================================== */
.ape-el-mobile-toggle,
.ape-el-mobile-drawer {
  display: none;
}

/* Fix form icon mark size inside Elementor so img { height: auto } never squashes it */
.elementor img.ape-form-mark,
img.ape-form-mark {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  object-fit: contain !important;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 3px;
}

@media (max-width: 991px) {
  /* Sticky Elementor Header Bar */
  .elementor-element-30323e7,
  .ape-el-header-section {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background-color: #1C1819 !important;
    padding: 10px 16px !important;
  }

  .elementor-element-30323e7 > .elementor-container,
  .ape-el-header-section > .elementor-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  /* Keep Logo column compact on the left */
  .elementor-element-30323e7 .elementor-element-146ccd4,
  .ape-el-header-section > .elementor-container > .elementor-column:first-child {
    width: auto !important;
    flex: 0 1 auto !important;
  }

  .elementor-element-30323e7 .elementor-element-c101d59 img {
    max-width: 175px !important;
    height: auto !important;
  }

  /* Hide desktop links column and desktop CTA column on tablet/mobile (moved into drawer) */
  .elementor-element-30323e7 .elementor-element-2790cea,
  .elementor-element-30323e7 .elementor-element-d520547 {
    display: none !important;
  }

  /* Hamburger Menu Toggle Button */
  .ape-el-mobile-toggle {
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .ape-el-mobile-toggle:hover,
  .ape-el-mobile-toggle.is-active {
    background: rgba(228, 180, 4, 0.15);
    border-color: #E4B404;
  }

  .ape-el-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #FFFFFF;
    margin: 2.5px 0;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

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

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

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

  /* Slide-Down Mobile Menu Drawer */
  .ape-el-mobile-drawer {
    display: none;
    width: 100%;
    background: #1C1819;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    padding: 12px 4px 8px;
  }

  .ape-el-mobile-drawer.is-open {
    display: block !important;
  }

  .ape-el-mobile-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .ape-el-mobile-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 !important;
  }

  .ape-el-mobile-list li a {
    display: block;
    padding: 13px 6px;
    font-family: var(--ape-font-sans);
    font-size: 16px;
    font-weight: 500;
    color: #F1F3F2 !important;
    text-decoration: none !important;
  }

  .ape-el-mobile-list li a:hover,
  .ape-el-mobile-list li a:focus {
    color: #E4B404 !important;
  }

  .ape-el-mobile-cta {
    padding-top: 14px;
    padding-bottom: 4px;
  }

  .ape-el-mobile-cta-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background-color: #D95E3D !important;
    color: #FFFFFF !important;
    font-family: var(--ape-font-sans);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    text-decoration: none !important;
  }
}

@media (max-width: 767px) {
  /* Hero Mobile Refinements */
  .elementor-element-45e979c {
    padding: 72px 16px 52px !important;
  }

  .elementor-element-1ef7b9a .elementor-heading-title {
    font-size: clamp(34px, 9.5vw, 44px) !important;
    line-height: 1.05 !important;
  }

  /* Hero inline bullets stack cleanly on mobile */
  .elementor-element-bc76581 .elementor-icon-list-items.elementor-inline-items {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .elementor-element-bc76581 .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item {
    margin: 0 !important;
  }

  /* 5-Column Strip mobile spacing */
  .elementor-element-ab518bd .elementor-column {
    padding: 10px 0 !important;
  }

  /* Generation Bento Tiles mobile spacing */
  .elementor-element-65b358f,
  .elementor-element-0674424,
  .elementor-element-6dc7ce0,
  .elementor-element-1f9886a {
    margin-bottom: 16px !important;
  }

  /* How It Fits Together 4 Steps mobile spacing */
  .elementor-element-6a4b5c1 .elementor-column {
    margin-bottom: 24px !important;
  }

  /* SVG Chart responsive scaling on mobile (prevent horizontal page scroll) */
  .ape-chart-box {
    padding: 16px 12px 12px !important;
  }

  #ape-store-chart {
    min-width: 0 !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Sustainability & Partner sections mobile spacing */
  .elementor-element-e9016ff,
  .elementor-element-c8b26a8 {
    margin-bottom: 24px !important;
  }

  /* Footer columns mobile spacing */
  .elementor-element-1abc264,
  .elementor-element-6bab794 {
    margin-bottom: 24px !important;
  }
}

@media (max-width: 480px) {
  /* Full-width Hero buttons on narrow phones */
  .elementor-element-1c86c81,
  .elementor-element-62b5fe4 {
    width: 100% !important;
  }

  .elementor-element-1c86c81 .elementor-button,
  .elementor-element-62b5fe4 .elementor-button {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
}
