/* ==========================================================================
   AEN Holdings Ltd — site theme
   Layered on top of Bootstrap 5 (grid and utilities only).

   1.  Tokens
   2.  Base & typography
   3.  Layout
   4.  Buttons & links
   5.  Top bar & header
   6.  Home hero
   7.  Cards & shared blocks
   8.  Home sections
   9.  Inner pages (page head, services, about, clients, contact)
   10. Portfolio gallery & lightbox
   11. Call-to-action band & footer
   12. Floating buttons, motion & utilities
   ========================================================================== */

/* 1. TOKENS ================================================================ */
:root {
  --aen-green-950: #072A19;
  --aen-green-900: #0B3521;
  --aen-green-800: #0F4229;
  --aen-green-700: #1B5E35;
  --aen-green-600: #2A7A30;
  --aen-green-500: #348E38;
  --aen-green-400: #4FA653;
  --aen-green-100: #D4EBD6;
  --aen-green-050: #E8F5E9;

  --aen-ink:       #0E1F16;
  --aen-body:      #4A5550;
  --aen-muted:     #7A857F;
  --aen-slate:     #525368;
  --aen-line:      #E1E7E3;
  --aen-line-soft: #ECF0ED;
  --aen-surface:   #F5F8F6;
  --aen-white:     #FFFFFF;

  --aen-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --aen-font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --aen-radius-sm: 7px;
  --aen-radius:    10px;
  --aen-radius-lg: 16px;
  --aen-shadow-sm: 0 2px 8px rgba(14, 31, 22, .06);
  --aen-shadow-md: 0 12px 30px -14px rgba(14, 31, 22, .22);
  --aen-shadow-lg: 0 26px 60px -28px rgba(14, 31, 22, .38);

  --aen-section-y: 6rem;
  --aen-header-h: 78px;
  --aen-ease: cubic-bezier(.4, 0, .2, 1);
}

@media (max-width: 991.98px) {
  :root { --aen-section-y: 4rem; --aen-header-h: 66px; }
}

/* 2. BASE & TYPOGRAPHY ===================================================== */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--aen-header-h) + 16px); }

body {
  font-family: var(--aen-font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--aen-body);
  background: var(--aen-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--aen-font-head);
  color: var(--aen-ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 .6rem;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.3rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.45rem); letter-spacing: -.026em; }
h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); }
h4 { font-size: 1.08rem; }

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

a { color: var(--aen-green-600); text-decoration: none; transition: color .18s var(--aen-ease); }
a:hover { color: var(--aen-green-800); }

strong, b { font-weight: 650; color: var(--aen-ink); }
img { max-width: 100%; height: auto; }
::selection { background: var(--aen-green-500); color: #fff; }

:focus-visible { outline: 2px solid var(--aen-green-500); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 2000;
  padding: .6rem 1rem; background: var(--aen-green-800); color: #fff; border-radius: var(--aen-radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

.lead-text { font-size: 1.08rem; line-height: 1.75; }
.text-ink { color: var(--aen-ink) !important; }

/* 3. LAYOUT ================================================================ */
.container { max-width: 1200px; }

.section { padding-block: var(--aen-section-y); position: relative; }
.section--tight { padding-block: calc(var(--aen-section-y) * .6); }
.section--surface { background: var(--aen-surface); }
.section--dark { background: var(--aen-green-800); color: rgba(255, 255, 255, .75); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aen-green-500);
  margin-bottom: .85rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light, .section--dark .eyebrow { color: var(--aen-green-100); }

.section-head { margin-bottom: 3rem; }
.section-head p { max-width: 62ch; }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center p { margin-inline: auto; }

/* 4. BUTTONS & LINKS ======================================================= */
.btn-aen, .btn-aen-dark, .btn-aen-outline, .btn-aen-light {
  --_bg: transparent; --_fg: var(--aen-ink); --_bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .74rem 1.4rem;
  font-family: var(--aen-font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid var(--_bd);
  border-radius: var(--aen-radius-sm);
  background: var(--_bg);
  color: var(--_fg);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s var(--aen-ease), border-color .18s var(--aen-ease), color .18s var(--aen-ease),
              transform .18s var(--aen-ease), box-shadow .18s var(--aen-ease);
}
.btn-aen { --_bg: var(--aen-green-500); --_fg: #fff; --_bd: var(--aen-green-500); }
.btn-aen:hover { --_bg: var(--aen-green-600); --_bd: var(--aen-green-600); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(52, 142, 56, .8); }

.btn-aen-dark { --_bg: var(--aen-green-800); --_fg: #fff; --_bd: var(--aen-green-800); }
.btn-aen-dark:hover { --_bg: var(--aen-green-700); --_bd: var(--aen-green-700); color: #fff; transform: translateY(-1px); }

.btn-aen-outline { --_fg: var(--aen-ink); --_bd: var(--aen-line); }
.btn-aen-outline:hover { --_bg: #fff; --_bd: var(--aen-green-500); color: var(--aen-green-700); }

.btn-aen-light { --_bg: #fff; --_fg: var(--aen-green-800); --_bd: #fff; }
.btn-aen-light:hover { --_bg: var(--aen-green-050); --_bd: var(--aen-green-050); color: var(--aen-green-800); }

.hero .btn-aen-outline, .page-head .btn-aen-outline, .section--dark .btn-aen-outline, .cta-band .btn-aen-outline {
  --_fg: #fff; --_bd: rgba(255, 255, 255, .32);
}
.hero .btn-aen-outline:hover, .page-head .btn-aen-outline:hover, .section--dark .btn-aen-outline:hover, .cta-band .btn-aen-outline:hover {
  --_bg: rgba(255, 255, 255, .08); --_bd: rgba(255, 255, 255, .7); color: #fff;
}

.btn-sm-aen { padding: .52rem 1.05rem; font-size: .88rem; }
.btn-lg-aen { padding: .92rem 1.7rem; font-size: 1rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .93rem; color: var(--aen-green-600); }
.link-arrow i { transition: transform .2s var(--aen-ease); }
.link-arrow:hover { color: var(--aen-green-800); }
.link-arrow:hover i { transform: translateX(3px); }

/* 5. TOP BAR & HEADER ====================================================== */
.topbar { background: var(--aen-green-950); color: rgba(255, 255, 255, .72); font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 42px; }
.topbar__list { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.topbar__list li { display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.topbar__list i { color: var(--aen-green-400); }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: #fff; }
.topbar__social { gap: .85rem !important; padding-left: 1.2rem; border-left: 1px solid rgba(255, 255, 255, .14); }
.topbar__social i { color: rgba(255, 255, 255, .7); }
.topbar__social a:hover i { color: #fff; }
@media (max-width: 991.98px) { .topbar { display: none; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--aen-line-soft);
  transition: box-shadow .25s var(--aen-ease);
}
.site-header.is-stuck { box-shadow: 0 1px 20px rgba(14, 31, 22, .08); }
.site-header__inner { height: var(--aen-header-h); display: flex; align-items: center; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 150px; height: auto; }
@media (max-width: 991.98px) { .brand img { width: 124px; } }

.nav-main { display: none; margin-left: auto; }
@media (min-width: 992px) { .nav-main { display: flex; align-items: center; gap: .2rem; } }
.nav-main__link {
  position: relative;
  padding: .55rem .85rem;
  border-radius: var(--aen-radius-sm);
  font-size: .95rem;
  font-weight: 550;
  color: var(--aen-body);
}
.nav-main__link:hover { color: var(--aen-ink); background: var(--aen-surface); }
.nav-main__link.is-active { color: var(--aen-green-600); font-weight: 650; }
.nav-main__link.is-active::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: -2px; height: 2px;
  background: var(--aen-green-500); border-radius: 2px;
}

.header-cta { display: none; }
@media (min-width: 992px) { .header-cta { display: flex; margin-left: .75rem; } }

.nav-toggle {
  margin-left: auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--aen-line);
  border-radius: var(--aen-radius-sm);
  background: #fff;
  color: var(--aen-ink);
  font-size: 1.5rem;
}
@media (min-width: 992px) { .nav-toggle { display: none; } }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--aen-line-soft);
  background: #fff;
  padding: .75rem 0 1.5rem;
  max-height: calc(100vh - var(--aen-header-h));
  overflow-y: auto;
}
.nav-mobile.is-open { display: block; }
.nav-mobile__link {
  display: block;
  padding: .8rem 0;
  border-bottom: 1px solid var(--aen-line-soft);
  font-weight: 600;
  color: var(--aen-ink);
}
.nav-mobile__link.is-active { color: var(--aen-green-600); }
@media (min-width: 992px) { .nav-mobile { display: none !important; } }

/* 6. HOME HERO ============================================================= */
.hero {
  position: relative;
  background: var(--aen-green-800);
  color: rgba(255, 255, 255, .78);
  padding: 5.5rem 0 6.5rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(79, 166, 83, .28), transparent 60%),
    linear-gradient(180deg, rgba(7, 42, 25, 0) 60%, rgba(7, 42, 25, .5));
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero__lead { font-size: 1.1rem; line-height: 1.75; max-width: 54ch; margin-bottom: 1.75rem; }

.hero__badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .38rem .9rem .38rem .45rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 100px;
  background: rgba(255, 255, 255, .06);
  font-size: .84rem;
  color: rgba(255, 255, 255, .85);
}
.hero__badge b {
  padding: .12rem .6rem; border-radius: 100px;
  background: var(--aen-green-500); color: #fff; font-size: .74rem; font-weight: 650; letter-spacing: .02em;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }

.hero__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.5rem; list-style: none; padding: 0; margin: 0; }
.hero__points li { display: flex; gap: .55rem; align-items: flex-start; font-size: .93rem; }
.hero__points i { color: var(--aen-green-400); margin-top: .12rem; }
@media (max-width: 575.98px) { .hero__points { grid-template-columns: 1fr; } }

.hero-visual { position: relative; padding: 0 0 2.5rem 2.5rem; }
.hero-visual__main {
  border-radius: var(--aen-radius-lg);
  overflow: hidden;
  box-shadow: var(--aen-shadow-lg);
  aspect-ratio: 4 / 3.4;
}
.hero-visual__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual__inset {
  position: absolute; left: 0; bottom: 0;
  width: 44%;
  border-radius: var(--aen-radius);
  overflow: hidden;
  border: 5px solid var(--aen-green-800);
  box-shadow: var(--aen-shadow-lg);
  aspect-ratio: 1 / 1;
}
.hero-visual__inset img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual__card {
  position: absolute; right: -10px; bottom: 1rem;
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.1rem;
  background: #fff;
  border-radius: var(--aen-radius);
  box-shadow: var(--aen-shadow-lg);
  color: var(--aen-body);
  font-size: .82rem;
  line-height: 1.35;
}
.hero-visual__card img { width: 44px; height: 44px; object-fit: contain; }
.hero-visual__card strong { display: block; font-size: .92rem; }
@media (max-width: 991.98px) {
  .hero { padding: 3.5rem 0 4rem; }
  .hero-visual { margin-top: 1rem; padding: 0 0 2rem 1.5rem; }
  .hero-visual__card { right: 0; }
}

/* Stats strip under the hero */
.stats-strip { position: relative; margin-top: -3.25rem; z-index: 2; }
.stats-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--aen-line);
  border-radius: var(--aen-radius-lg);
  box-shadow: var(--aen-shadow-md);
}
.stat { padding: 1.6rem 1.75rem; border-left: 1px solid var(--aen-line-soft); }
.stat:first-child { border-left: 0; }
.stat__value { display: block; font-family: var(--aen-font-head); font-size: 2rem; font-weight: 800; color: var(--aen-green-600); line-height: 1.1; letter-spacing: -.02em; }
.stat__value--sm { font-size: 1.12rem; padding-block: .45rem; letter-spacing: 0; }
.stat__label { display: block; font-size: .87rem; color: var(--aen-muted); margin-top: .35rem; }
@media (max-width: 767.98px) {
  .stats-strip__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 1.2rem; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--aen-line-soft); }
}

/* 7. CARDS & SHARED BLOCKS ================================================= */
.icon-tile {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--aen-green-050);
  color: var(--aen-green-600);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.icon-tile--sm { width: 42px; height: 42px; font-size: 1.15rem; border-radius: 10px; }

.card-aen {
  height: 100%;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--aen-line);
  border-radius: var(--aen-radius-lg);
  transition: border-color .2s var(--aen-ease), box-shadow .2s var(--aen-ease), transform .2s var(--aen-ease);
}
.card-aen:hover { border-color: var(--aen-green-100); box-shadow: var(--aen-shadow-md); transform: translateY(-2px); }
.card-aen h3, .card-aen h4 { margin-top: 1.1rem; }
.card-aen p { font-size: .95rem; }

/* Service card: photo on top, text below */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--aen-line);
  border-radius: var(--aen-radius-lg);
  overflow: hidden;
  transition: box-shadow .22s var(--aen-ease), transform .22s var(--aen-ease), border-color .22s var(--aen-ease);
}
.service-card:hover { box-shadow: var(--aen-shadow-md); transform: translateY(-3px); border-color: var(--aen-green-100); }
.service-card__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--aen-surface); }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--aen-ease); }
.service-card:hover .service-card__img img { transform: scale(1.04); }
.service-card__body { position: relative; padding: 0 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.service-card__body .icon-tile { margin-top: -26px; border: 4px solid #fff; box-sizing: content-box; background: var(--aen-green-500); color: #fff; }
.service-card h3 { font-size: 1.12rem; margin: 1rem 0 .55rem; }
.service-card p { font-size: .93rem; margin-bottom: 1.2rem; }
.service-card .link-arrow { margin-top: auto; }
.service-card .stretch-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.tag-new {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: .25rem .7rem;
  border-radius: 100px;
  background: #fff;
  color: var(--aen-green-700);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: var(--aen-shadow-sm);
}

/* Tick list */
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.tick-list li { display: flex; gap: .65rem; align-items: flex-start; }
.tick-list i { color: var(--aen-green-500); font-size: 1.05rem; margin-top: .12rem; }
.tick-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.5rem; }
@media (max-width: 575.98px) { .tick-list--2 { grid-template-columns: 1fr; } }

/* Logo marquee */
.logo-strip { padding: 4.5rem 0 3.5rem; }
.logo-strip__label { text-align: center; font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--aen-muted); margin-bottom: 1.75rem; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; gap: 1rem; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  width: 170px; height: 88px;
  display: grid; place-items: center;
  padding: .8rem 1.1rem;
  background: #fff;
  border: 1px solid var(--aen-line-soft);
  border-radius: var(--aen-radius);
}
.marquee__item img { max-width: 100%; max-height: 58px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Logo tiles (clients and partners pages) */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.logo-tile {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--aen-line);
  border-radius: var(--aen-radius);
  overflow: hidden;
  transition: box-shadow .2s var(--aen-ease), border-color .2s var(--aen-ease), transform .2s var(--aen-ease);
}
.logo-tile:hover { box-shadow: var(--aen-shadow-md); border-color: var(--aen-green-100); transform: translateY(-2px); }
.logo-tile__img { height: 124px; display: grid; place-items: center; padding: 1.1rem 1.25rem; }
.logo-tile__img img { max-width: 100%; max-height: 84px; object-fit: contain; }
.logo-tile__name {
  padding: .7rem .9rem;
  border-top: 1px solid var(--aen-line-soft);
  background: var(--aen-surface);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--aen-ink);
  text-align: center;
  min-height: 3.4em;
  display: grid; place-items: center;
}

.partner-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.partner-row .logo-tile__img { height: 130px; }
@media (max-width: 767.98px) { .partner-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 8. HOME SECTIONS ========================================================= */
.about-media { position: relative; padding: 0 3rem 3rem 0; }
.about-media__main { border-radius: var(--aen-radius-lg); overflow: hidden; aspect-ratio: 4 / 3.3; }
.about-media__main img, .about-media__side img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-media__side {
  position: absolute; right: 0; bottom: 0;
  width: 46%;
  aspect-ratio: 1 / 1;
  border-radius: var(--aen-radius);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--aen-shadow-lg);
}
.about-media__badge {
  position: absolute; top: 1.25rem; left: 1.25rem;
  padding: 1rem 1.2rem;
  background: var(--aen-green-800);
  color: rgba(255, 255, 255, .8);
  border-radius: var(--aen-radius);
  font-size: .82rem;
  line-height: 1.3;
  box-shadow: var(--aen-shadow-md);
}
.about-media__badge strong { display: block; color: #fff; font-family: var(--aen-font-head); font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: .2rem; }
@media (max-width: 575.98px) { .about-media { padding: 0 1.5rem 1.5rem 0; } }

.vmg { display: grid; gap: 1rem; }
.vmg__item { display: flex; gap: 1rem; padding: 1.25rem 1.35rem; border: 1px solid var(--aen-line); border-radius: var(--aen-radius); background: #fff; }
.vmg__item h4 { margin-bottom: .3rem; }
.vmg__item p { font-size: .93rem; }

/* Battery spotlight */
.spotlight { overflow: hidden; }
.spotlight__media { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1rem; }
.spotlight__media figure { margin: 0; border-radius: var(--aen-radius-lg); overflow: hidden; }
.spotlight__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spotlight__media figure:first-child { grid-row: span 2; aspect-ratio: 3 / 4; }
.spotlight__media figure:not(:first-child) { aspect-ratio: 4 / 3; }
.spotlight .tick-list i { color: var(--aen-green-400); }
.spotlight .tick-list li { color: rgba(255, 255, 255, .85); }

.product-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 2rem; }
.product-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .9rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 100px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-size: .88rem;
  font-weight: 550;
}
.product-chip i { color: var(--aen-green-400); }

/* Waste hierarchy steps */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.step {
  position: relative;
  padding: 1.5rem 1.25rem;
  background: #fff;
  border: 1px solid var(--aen-line);
  border-radius: var(--aen-radius-lg);
}
.step__num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--aen-green-050);
  color: var(--aen-green-700);
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: 1rem;
}
.step h4 { font-size: 1rem; margin-bottom: .35rem; }
.step p { font-size: .88rem; }
@media (max-width: 991.98px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .steps { grid-template-columns: 1fr; } }

/* Recent work mosaic on the home page */
.work-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 1rem; }
.work-mosaic a { position: relative; display: block; border-radius: var(--aen-radius); overflow: hidden; background: var(--aen-surface); }
.work-mosaic a:first-child { grid-column: span 2; grid-row: span 2; }
.work-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--aen-ease); }
.work-mosaic a:hover img { transform: scale(1.05); }
.work-mosaic figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem 1rem .85rem;
  background: linear-gradient(transparent, rgba(7, 42, 25, .85));
  color: #fff;
  font-size: .86rem;
  font-weight: 550;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s var(--aen-ease), transform .25s var(--aen-ease);
}
.work-mosaic a:hover figcaption, .work-mosaic a:focus-visible figcaption { opacity: 1; transform: none; }
@media (max-width: 767.98px) {
  .work-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
}

/* 9. INNER PAGES =========================================================== */
.page-head {
  position: relative;
  padding: 5rem 0 4.5rem;
  background: var(--aen-green-800);
  color: rgba(255, 255, 255, .8);
  overflow: hidden;
}
.page-head__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .22;
}
.page-head::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--aen-green-800) 25%, rgba(15, 66, 41, .55));
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { color: #fff; margin-bottom: .75rem; }
.page-head p { font-size: 1.08rem; max-width: 60ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .86rem; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: rgba(255, 255, 255, .4); }
.crumbs a { color: var(--aen-green-100); }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: rgba(255, 255, 255, .7); }
@media (max-width: 767.98px) { .page-head { padding: 3.5rem 0 3rem; } }

/* Services page: alternating rows */
.service-row { padding-block: 3.5rem; border-top: 1px solid var(--aen-line-soft); }
.service-row:first-child { border-top: 0; padding-top: 0; }
.service-row__img { position: relative; border-radius: var(--aen-radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.service-row__img img { width: 100%; height: 100%; object-fit: cover; }
.service-row__num { font-family: var(--aen-font-head); font-size: .85rem; font-weight: 700; color: var(--aen-green-500); letter-spacing: .08em; }
.service-row h2 { font-size: clamp(1.45rem, 1.15rem + 1vw, 1.95rem); margin: .4rem 0 .9rem; }
@media (min-width: 992px) { .service-row:nth-child(even) .service-row__media { order: 2; } }

/* Service index chips */
.chip-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-nav a {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .9rem;
  border: 1px solid var(--aen-line);
  border-radius: 100px;
  background: #fff;
  color: var(--aen-ink);
  font-size: .87rem;
  font-weight: 550;
}
.chip-nav a:hover { border-color: var(--aen-green-500); color: var(--aen-green-700); }
.chip-nav i { color: var(--aen-green-500); }

/* Contact page */
.contact-card { padding: 2.25rem; background: #fff; border: 1px solid var(--aen-line); border-radius: var(--aen-radius-lg); box-shadow: var(--aen-shadow-sm); }
.info-list { display: grid; gap: 1rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.3rem; border: 1px solid var(--aen-line); border-radius: var(--aen-radius); background: #fff; }
.info-item h4 { font-size: .95rem; margin-bottom: .2rem; }
.info-item p, .info-item a { font-size: .94rem; }
.info-item a { color: var(--aen-body); }
.info-item a:hover { color: var(--aen-green-600); }
.map-frame { border-radius: var(--aen-radius-lg); overflow: hidden; border: 1px solid var(--aen-line); min-height: 380px; }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

.form-label { font-size: .88rem; font-weight: 600; color: var(--aen-ink); margin-bottom: .4rem; }
.form-control {
  padding: .78rem .95rem;
  border: 1px solid var(--aen-line);
  border-radius: var(--aen-radius-sm);
  font-size: .95rem;
  color: var(--aen-ink);
  background: #fff;
}
.form-control::placeholder { color: #A3ACA6; }
.form-control:focus { border-color: var(--aen-green-500); box-shadow: 0 0 0 3px rgba(52, 142, 56, .15); }
.form-note { font-size: .84rem; color: var(--aen-muted); }

/* 404 */
.error-code { font-family: var(--aen-font-head); font-size: clamp(5rem, 3rem + 8vw, 9rem); font-weight: 800; line-height: 1; color: var(--aen-green-050); -webkit-text-stroke: 2px var(--aen-green-500); }

/* 10. PORTFOLIO GALLERY & LIGHTBOX ======================================== */
.gallery-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .95rem;
  border: 1px solid var(--aen-line);
  border-radius: 100px;
  background: #fff;
  color: var(--aen-body);
  font-size: .88rem;
  font-weight: 550;
  cursor: pointer;
  transition: all .18s var(--aen-ease);
}
.filter-chip span { font-size: .75rem; color: var(--aen-muted); font-weight: 600; }
.filter-chip:hover { border-color: var(--aen-green-500); color: var(--aen-green-700); }
.filter-chip.is-active { background: var(--aen-green-800); border-color: var(--aen-green-800); color: #fff; }
.filter-chip.is-active span { color: var(--aen-green-100); }
.gallery-count { font-size: .88rem; color: var(--aen-muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 991.98px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item { margin: 0; }
.gallery-item[hidden] { display: none; }
.gallery-item__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--aen-radius);
  overflow: hidden;
  background: var(--aen-surface);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.gallery-item__btn img:not([src]) { display: none; }
.gallery-item__btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--aen-ease); }
.gallery-item__btn:hover img { transform: scale(1.05); }
.gallery-item__btn::after {
  content: "\F52A";
  font-family: "bootstrap-icons";
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--aen-green-800);
  font-size: 1rem;
  opacity: 0;
  transform: scale(.85);
  transition: all .22s var(--aen-ease);
}
.gallery-item__btn:hover::after, .gallery-item__btn:focus-visible::after { opacity: 1; transform: none; }
.gallery-item figcaption { padding: .7rem .15rem 0; font-size: .88rem; line-height: 1.4; }
.gallery-item figcaption strong { display: block; color: var(--aen-ink); font-weight: 600; }
.gallery-item figcaption span { font-size: .78rem; color: var(--aen-green-600); font-weight: 600; letter-spacing: .02em; }
.gallery-item.is-entering { animation: fadeUp .4s var(--aen-ease) both; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; margin-top: 3rem; }
.pager button {
  min-width: 42px; height: 42px;
  padding: 0 .8rem;
  border: 1px solid var(--aen-line);
  border-radius: var(--aen-radius-sm);
  background: #fff;
  color: var(--aen-ink);
  font-weight: 600;
  font-size: .9rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
}
.pager button:hover:not(:disabled) { border-color: var(--aen-green-500); color: var(--aen-green-700); }
.pager button[aria-current="page"] { background: var(--aen-green-500); border-color: var(--aen-green-500); color: #fff; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager__gap { padding: 0 .3rem; color: var(--aen-muted); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 3000;
  display: none;
  flex-direction: column;
  background: rgba(5, 20, 12, .95);
  color: #fff;
}
.lightbox.is-open { display: flex; animation: fadeIn .2s ease both; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.lightbox__stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 4.5rem; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); user-select: none; }
.lightbox__caption { padding: 1rem 1.25rem 1.5rem; text-align: center; font-size: .95rem; color: rgba(255, 255, 255, .85); min-height: 3.5rem; }
.lightbox button {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 1.25rem;
  transition: background .18s var(--aen-ease);
}
.lightbox button:hover { background: rgba(255, 255, 255, .16); }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
@media (max-width: 575.98px) {
  .lightbox__stage { padding: 0 .5rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: -3.75rem; transform: none; }
  .lightbox__prev { left: 1.25rem; }
  .lightbox__next { right: 1.25rem; }
  .lightbox__caption { padding-inline: 4.5rem; }
}

/* 11. CTA BAND & FOOTER ==================================================== */
.cta-band { padding: 0 0 5rem; }
.cta-band__inner {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 3.25rem 3.5rem;
  border-radius: var(--aen-radius-lg);
  background: var(--aen-green-800);
  color: rgba(255, 255, 255, .78);
  overflow: hidden;
}
.cta-band__inner::before {
  content: "";
  position: absolute; right: -120px; top: -160px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 166, 83, .35), transparent 70%);
}
.cta-band__inner > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); max-width: 26ch; }
.cta-band p { max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 767.98px) { .cta-band__inner { padding: 2.25rem 1.5rem; } }

.site-footer { background: var(--aen-green-950); color: rgba(255, 255, 255, .66); font-size: .93rem; padding-top: 4.5rem; }
.footer-brand { display: inline-block; padding: .6rem .85rem; background: #fff; border-radius: var(--aen-radius); margin-bottom: 1.25rem; }
.footer-brand img { width: 140px; height: auto; display: block; }
.footer-about { max-width: 36ch; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 1.1rem; letter-spacing: 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-col a { color: rgba(255, 255, 255, .66); }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact i { color: var(--aen-green-400); margin-top: .15rem; }
.footer-contact span { word-break: break-word; }

.social-row { display: flex; gap: .5rem; margin-top: 1.5rem; }
.social-row a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  color: rgba(255, 255, 255, .8);
}
.social-row a:hover { background: var(--aen-green-500); border-color: var(--aen-green-500); color: #fff; }

.footer-bottom { margin-top: 3.5rem; border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.4rem 0; font-size: .85rem; }
.footer-bottom__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
.footer-bottom a { color: #fff; }
.footer-bottom a:hover { color: var(--aen-green-400); }

/* 12. FLOATING BUTTONS, MOTION & UTILITIES ================================ */
.float-wa, .back-to-top {
  position: fixed; right: 20px; z-index: 1040;
  display: grid; place-items: center;
  border-radius: 50%;
  box-shadow: var(--aen-shadow-md);
}
.float-wa { bottom: 20px; width: 54px; height: 54px; background: #25D366; color: #fff; font-size: 1.6rem; }
.float-wa:hover { color: #fff; transform: translateY(-2px); }
.back-to-top {
  bottom: 86px; width: 44px; height: 44px;
  border: 1px solid var(--aen-line);
  background: #fff;
  color: var(--aen-green-700);
  font-size: 1.1rem;
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--aen-ease), visibility .25s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--aen-ease), transform .6s var(--aen-ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

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

/* AdSense units sit in their own full-width row instead of pushing into layouts */
body > ins.adsbygoogle { display: block; margin: 0 auto; }

/* Wide help card that closes the home services grid */
.help-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--aen-green-050);
  border-color: var(--aen-green-100);
}
.help-card > div:first-child { flex: 1 1 320px; }
.help-card .icon-tile { background: #fff; }
.help-card p { max-width: 48ch; margin-bottom: 0; }
.help-card__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.help-card .btn-aen-outline { background: #fff; }

/* Hero sizing: on desktop the whole hero fits the first screen without scrolling */
@media (min-width: 992px) {
  .hero { padding: clamp(1.75rem, 4.5vh, 3.5rem) 0 clamp(4.5rem, 8vh, 5.5rem); }
  .hero h1 { font-size: clamp(2.2rem, 1.2rem + 2.1vw, 3.2rem); margin-bottom: 1rem; }
  .hero__badge { margin-bottom: 1.1rem; }
  .hero__lead { font-size: 1.05rem; margin-bottom: 1.5rem; max-width: 60ch; }
  .hero__actions { margin-bottom: 1.6rem; }
  .hero-visual { padding: 0 0 1.75rem 1.75rem; }
  .hero-visual__main { aspect-ratio: auto; height: clamp(300px, calc(100vh - 330px), 470px); }
  .hero-visual__inset { width: 40%; }
}
/* Short laptop screens: drop the tick list so the hero still fits */
@media (min-width: 992px) and (max-height: 760px) {
  .hero__points { display: none; }
  .hero__actions { margin-bottom: 0; }
}

/* Contact form: sending state and result message */
.btn-submit__busy { display: none; align-items: center; gap: .6rem; }
.btn-submit.is-busy { cursor: progress; opacity: .85; transform: none; box-shadow: none; }
.btn-submit.is-busy .btn-submit__label { display: none; }
.btn-submit.is-busy .btn-submit__busy { display: inline-flex; }
.spinner {
  width: 1.05em; height: 1.05em;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-alert {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .95rem 1.1rem;
  border-radius: var(--aen-radius-sm);
  border: 1px solid;
  font-size: .94rem;
  line-height: 1.5;
  animation: fadeUp .3s var(--aen-ease) both;
}
.form-alert[hidden] { display: none; }
.form-alert i { font-size: 1.15rem; margin-top: .05rem; }
.form-alert--success { background: var(--aen-green-050); border-color: var(--aen-green-100); color: var(--aen-green-800); }
.form-alert--error { background: #FDF0EE; border-color: #F3CFC9; color: #9B2C1F; }
.form-control.is-invalid { border-color: #D0574A; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(208, 87, 74, .15); }
