/*
Theme Name: AK-Energy
Theme URI: https://ak-energy.pl/
Author: AK-Energy
Author URI: https://ak-energy.pl/
Description: Minimalistyczny, szybki motyw WordPress dla elektryka — pomiary, protokoły SEP, instalacje elektryczne, fotowoltaika i diagnostyka termowizyjna. Zoptymalizowany pod SEO lokalne i Core Web Vitals.
Version: 1.9.8
Requires at least: 6.4
Requires PHP: 8.0
Tested up to: 6.7
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: akenergy
*/

/* =========================================================
   0. FONTS (self-hosted — no third-party requests/GDPR issue)
========================================================= */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}

/* =========================================================
   1. RESET
========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
.icon { width: 1em; height: 1em; flex-shrink: 0; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* =========================================================
   2. DESIGN TOKENS
========================================================= */
:root {
  --color-navy: #0c2036;
  --color-navy-2: #14314f;
  --color-ink: #16202b;
  --color-body: #4d5966;
  --color-muted: #7c8896;
  --color-bg: #ffffff;
  --color-bg-alt: #eef1f5;
  --color-bg-navy: #0c2036;
  --color-border: #e4e8ec;
  --color-accent: #e0a13a;
  --color-accent-dark: #b9791d;
  --color-accent-ink: #3a2405;
  --color-success: #2f8f5b;
  --color-success-bg: #eaf6ef;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Manrope', var(--font-sans);

  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(12, 32, 54, 0.07), 0 2px 6px rgba(12, 32, 54, 0.05);
  --shadow-md: 0 16px 40px -8px rgba(12, 32, 54, 0.22);
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/></svg>");
  --grid-dots: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28'><circle cx='1' cy='1' r='1' fill='%23ffffff' fill-opacity='0.09'/></svg>");
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --header-h: 76px;
}

/* =========================================================
   3. BASE
========================================================= */
body {
  font-family: var(--font-sans);
  color: var(--color-body);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.5rem); letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 1.35rem + 1.1vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
p { max-width: 68ch; }
a { transition: color .15s ease; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 640px) { .container { padding-inline: var(--space-6); } }

.section { padding-block: var(--space-8) calc(var(--space-8) + .75rem); }
.section--tight { padding-block: var(--space-7) calc(var(--space-7) + .5rem); }
.section--alt { background: var(--color-bg-alt); }
.section--navy { position: relative; background: var(--color-navy); background-image: var(--grid-dots), var(--noise); color: rgba(255,255,255,.82); }
.section--navy h2, .section--navy h3 { color: #fff; }

/* Homepage section rhythm: a hairline seam between stacked sections so
   consecutive same-toned blocks (e.g. two white sections) still read as
   distinct zones, independent of which optional sections render. */
.home main > section + section { border-top: 1px solid var(--color-border); }
.home main > section:not(.section--alt) {
  position: relative;
  background-image: radial-gradient(70% 45% at 50% 0%, rgba(12,32,54,.03), transparent 70%);
}

/* =========================================================
   3b. SCROLL-REVEAL (progressive enhancement, JS-driven)
========================================================= */
[data-reveal] > * {
  opacity: 0;
  transition: opacity .7s ease-out;
}
[data-reveal].is-visible > * { opacity: 1; }
[data-reveal].is-visible > *:nth-child(2) { transition-delay: .08s; }
[data-reveal].is-visible > *:nth-child(3) { transition-delay: .16s; }
[data-reveal].is-visible > *:nth-child(4) { transition-delay: .24s; }
[data-reveal].is-visible > *:nth-child(5) { transition-delay: .32s; }
[data-reveal].is-visible > *:nth-child(6) { transition-delay: .4s; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: rgba(224, 161, 58, .12);
  padding: .4rem .9rem;
  border-radius: 999px;
}
.eyebrow svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.section--navy .eyebrow { color: var(--color-accent); background: rgba(224,161,58,.15); }

.section-head { max-width: 46rem; margin-bottom: var(--space-7); }
.section-head p { margin-top: var(--space-3); font-size: 1.05rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.lead { font-size: 1.15rem; color: var(--color-body); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 0; top: -60px;
  background: var(--color-navy);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* =========================================================
   4. BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  transition: transform .15s cubic-bezier(.16,1,.3,1), background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-accent { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: 0 8px 20px -6px rgba(224,161,58,.55); }
.btn-accent:hover { background: var(--color-accent-dark); color: #fff; box-shadow: 0 10px 24px -6px rgba(185,121,29,.6); }
.btn-outline { background: transparent; border-color: var(--color-border); color: var(--color-ink); }
.btn-outline:hover { border-color: var(--color-navy); }
.section--navy .btn-outline,
.cta-band .btn-outline,
.aside-card--navy .btn-outline { border-color: rgba(255,255,255,.3); color: #fff; }
.section--navy .btn-outline:hover,
.cta-band .btn-outline:hover,
.aside-card--navy .btn-outline:hover { border-color: #fff; }
.btn-ghost { background: transparent; color: inherit; padding-inline: .4rem; }
.btn-block { width: 100%; }

/* =========================================================
   5. HEADER
========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-h);
}
.site-branding { display: flex; align-items: center; gap: .6rem; min-width: 0; flex-shrink: 1; }
.site-branding img { max-height: 44px; width: auto; flex-shrink: 0; }
.site-branding__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.site-branding__name { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; color: var(--color-navy); letter-spacing: -.02em; white-space: nowrap; }
.site-branding__tag {
  display: none;
  font-size: .72rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: .06em;
  overflow: hidden; max-width: 480px;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
@media (min-width: 1300px) {
  .site-branding__tag { display: -webkit-box; }
}

.primary-nav { display: none; }
@media (min-width: 960px) {
  .primary-nav { display: flex; align-items: center; gap: var(--space-6); margin-inline: auto; flex-shrink: 0; }
  .primary-nav ul { display: flex; gap: var(--space-5); }
  .primary-nav a { font-weight: 600; font-size: .96rem; color: var(--color-ink); padding: .5rem 0; position: relative; white-space: nowrap; }
  .primary-nav a:hover { color: var(--color-accent-dark); }
  .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--color-navy); }
  .primary-nav .current-menu-item > a::after, .primary-nav .current_page_item > a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--color-accent);
  }
}

.header-cta { display: flex; align-items: center; gap: var(--space-4); flex-shrink: 0; }
.header-cta__phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--color-navy); white-space: nowrap; }
.header-cta__phone svg { width: 1.15em; height: 1.15em; color: var(--color-accent-dark); }
@media (max-width: 767px) {
  .header-cta__phone {
    justify-content: center; width: 44px; height: 44px;
    border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff;
  }
  .header-cta__phone svg { width: 22px; height: 22px; }
  .header-cta__phone span {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
}
.header-cta .btn { display: none; }
@media (min-width: 640px) { .header-cta .btn { display: inline-flex; } }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 960px) { .menu-toggle { display: none; } }

.mobile-nav {
  display: none;
  position: fixed; inset: var(--header-h) 0 0 0;
  background: #fff;
  overflow-y: auto;
  z-index: 90;
  padding: var(--space-6) var(--space-5);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav li { border-bottom: 1px solid var(--color-border); }
.mobile-nav a { display: block; padding: 1rem 0; font-weight: 600; font-size: 1.1rem; color: var(--color-ink); }
.mobile-nav .current-menu-item > a { color: var(--color-accent-dark); }
.mobile-nav__cta { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
@media (min-width: 960px) { .mobile-nav { display: none !important; } }

/* =========================================================
   6. HERO (homepage)
========================================================= */
.hero {
  position: relative;
  padding-block: var(--space-8) var(--space-9);
  background:
    radial-gradient(60% 55% at 85% 8%, rgba(224,161,58,.14), transparent 70%),
    radial-gradient(50% 50% at 8% 30%, rgba(12,32,54,.06), transparent 70%),
    linear-gradient(180deg, var(--color-bg-alt), #fff 65%);
  overflow: clip;
}
.hero__grid { position: relative; display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1fr 1fr; } }
.hero__title { margin-top: var(--space-4); }
.hero__title .accent { color: var(--color-accent-dark); }
.hero__lead { margin-top: var(--space-4); font-size: 1.15rem; max-width: 42rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }
.hero__trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-5); margin-top: var(--space-7); }
/* Google rating badge under the hero buttons */
.hero__rating { display: inline-flex; align-items: center; gap: .6rem; margin-top: var(--space-5); font-size: .95rem; color: var(--color-ink); text-decoration: none; min-height: 32px; }
.hero__rating:hover { text-decoration: underline; }
.hero__rating-stars { display: inline-flex; gap: 2px; color: var(--color-accent-dark); }
.hero__rating-stars svg { width: 18px; height: 18px; fill: currentColor; }
@media (min-width: 480px) { .hero__trust { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } }
.hero__trust-item { display: flex; align-items: flex-start; gap: .6rem; }
.hero__trust-item svg { width: 22px; height: 22px; color: var(--color-accent-dark); flex-shrink: 0; margin-top: 2px; }
.hero__trust-item strong { display: block; font-size: .92rem; color: var(--color-ink); }
.hero__trust-item span { font-size: .82rem; color: var(--color-muted); }

.hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-navy); background-image: var(--grid-dots), var(--noise), radial-gradient(120% 100% at 100% 100%, rgba(224,161,58,.18), transparent 60%); aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media-badge {
  position: absolute; left: var(--space-5); bottom: var(--space-5);
  background: rgba(255,255,255,.96); color: var(--color-ink);
  padding: .75rem 1rem; border-radius: var(--radius-md);
  display: flex; align-items: center; gap: .6rem; font-size: .88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.hero__media-badge svg { width: 20px; height: 20px; color: var(--color-accent-dark); flex-shrink: 0; }
@media (max-width: 640px) {
  .hero__media-badge {
    left: var(--space-4); bottom: var(--space-4);
    max-width: 56%;
    padding: .55rem .7rem;
    font-size: .78rem;
    gap: .45rem;
  }
  .hero__media-badge svg { width: 16px; height: 16px; }
}

/* =========================================================
   7. STATS
========================================================= */
.stats-float { position: relative; z-index: 3; margin-top: calc(var(--space-9) * -1); margin-bottom: var(--space-6); }
.stats-float__inner {
  position: relative;
  background: var(--color-navy);
  background-image: var(--grid-dots), var(--noise), radial-gradient(120% 140% at 15% -10%, rgba(224,161,58,.16), transparent 60%);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  box-shadow: var(--shadow-md);
  overflow: clip;
}
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); text-align: center; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats__num { font-family: var(--font-heading); font-size: clamp(1.8rem, 1.5rem + 1vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #fff; }
.stats__num .unit { color: var(--color-accent); }
.stats__label { font-size: .88rem; color: rgba(255,255,255,.65); margin-top: .25rem; }

/* =========================================================
   8. GRIDS & CARDS
========================================================= */
.grid { display: grid; gap: var(--space-6); }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex; flex-direction: column;
  height: 100%;
  transform: translateY(var(--stagger-y, 0px));
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s cubic-bezier(.16,1,.3,1);
}
.card:hover {
  border-color: rgba(224,161,58,.5);
  box-shadow: 0 20px 36px -18px rgba(224,161,58,.35), 0 6px 18px -6px rgba(12,32,54,.12);
  transform: translateY(calc(var(--stagger-y, 0px) - 4px));
}
.card__index {
  position: absolute; top: var(--space-5); right: var(--space-6);
  font-family: var(--font-heading); font-weight: 800; font-size: 2.4rem;
  line-height: 1; letter-spacing: -.02em;
  color: var(--color-border);
  transition: color .2s ease;
}
.card:hover .card__index { color: rgba(224,161,58,.4); }
.card__icon {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: rgba(224,161,58,.08); color: var(--color-accent-dark);
  margin-bottom: var(--space-4);
  transition: transform .2s cubic-bezier(.16,1,.3,1);
}
.card__icon::before, .card__icon::after {
  content: ""; position: absolute; width: 9px; height: 9px;
  border: 1.5px solid var(--color-accent); opacity: .8;
}
.card__icon::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.card__icon::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { transform: scale(1.06); }
.card h3 { margin-bottom: var(--space-2); max-width: 80%; }
.card p { font-size: .95rem; margin-bottom: var(--space-4); }
.card__link { margin-top: auto; font-weight: 700; font-size: .92rem; color: var(--color-navy); display: inline-flex; align-items: center; gap: .35rem; }
.card__link svg { width: 16px; height: 16px; transition: transform .15s ease; }
.card:hover .card__link svg { transform: translateX(3px); }

.filter-pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: var(--space-7); }
.filter-pill {
  padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--color-border);
  font-size: .88rem; font-weight: 700; color: var(--color-ink);
}
.filter-pill:hover { border-color: var(--color-navy); }
.filter-pill.is-active { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }

.project-card {
  border-radius: var(--radius-md); overflow: hidden; background: #fff;
  border: 1px solid var(--color-border);
  transform: translateY(var(--stagger-y, 0px));
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s cubic-bezier(.16,1,.3,1);
}
.project-card:hover {
  border-color: rgba(224,161,58,.5);
  box-shadow: 0 20px 36px -18px rgba(224,161,58,.35), 0 6px 18px -6px rgba(12,32,54,.12);
  transform: translateY(calc(var(--stagger-y, 0px) - 4px));
}
.project-card__media { aspect-ratio: 16/11; overflow: hidden; background: var(--color-bg-alt); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.project-card:hover .project-card__media img { transform: scale(1.06); }
.project-card__body { padding: var(--space-5); }
.project-card__tag { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--color-accent-dark); }
.project-card h3 { margin-top: .4rem; font-size: 1.15rem; }

.testimonial {
  background: #fff; border-radius: var(--radius-md); padding: var(--space-6); height: 100%;
  border: 1px solid var(--color-border);
  transform: translateY(var(--stagger-y, 0px));
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s cubic-bezier(.16,1,.3,1);
}
.testimonial:hover { border-color: rgba(224,161,58,.5); box-shadow: 0 20px 36px -18px rgba(224,161,58,.35), 0 6px 18px -6px rgba(12,32,54,.12); }
.testimonial__stars { display: flex; gap: .2rem; color: var(--color-accent); margin-bottom: var(--space-3); }
.testimonial__stars svg { width: 18px; height: 18px; }

/* Trustindex widget wrapper: keep the plugin's own styling, just contain it. */
.reviews-widget { max-width: 100%; overflow: hidden; min-height: 120px; }
.reviews-widget .ti-widget { margin-inline: auto; }
.testimonial__quote { font-size: .98rem; color: var(--color-ink); }
.testimonial__author { margin-top: var(--space-4); font-weight: 700; font-size: .9rem; color: var(--color-navy); }
.testimonial__location { font-size: .82rem; color: var(--color-muted); font-weight: 400; }

/* =========================================================
   9. WHY US / FEATURE LIST
========================================================= */
.feature-list { display: grid; gap: var(--space-5); }
@media (min-width: 700px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
.feature-item { display: flex; gap: var(--space-4); }
.feature-item__icon {
  position: relative;
  flex-shrink: 0; width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: rgba(224,161,58,.08); color: var(--color-accent-dark);
  display: flex; align-items: center; justify-content: center;
}
.feature-item__icon::before, .feature-item__icon::after {
  content: ""; position: absolute; width: 9px; height: 9px;
  border: 1.5px solid var(--color-accent); opacity: .8;
}
.feature-item__icon::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.feature-item__icon::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.feature-item__icon svg { width: 22px; height: 22px; }
.feature-item h4 { margin-bottom: .3rem; }
.feature-item p { font-size: .93rem; }

/* =========================================================
   10. CTA BAND
========================================================= */
.cta-band {
  position: relative;
  background: var(--color-navy);
  background-image: var(--grid-dots), var(--noise), radial-gradient(90% 120% at 100% 0%, rgba(224,161,58,.14), transparent 60%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  display: flex; flex-direction: column; gap: var(--space-5);
  align-items: flex-start;
  overflow: clip;
}
@media (min-width: 860px) {
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; }
}
.cta-band h2 { color: #fff; margin-bottom: var(--space-2); }
.cta-band p { color: rgba(255,255,255,.75); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); flex-shrink: 0; }

/* =========================================================
   11. PAGE HEADER (inner pages)
========================================================= */
.page-header {
  position: relative;
  background: var(--color-navy);
  background-image: var(--grid-dots), var(--noise);
  color: rgba(255,255,255,.85);
  padding-block: var(--space-7);
  overflow: clip;
}
.page-header h1 { color: #fff; margin-top: var(--space-2); }
.page-header__cta { margin-top: var(--space-5); }
@media (min-width: 768px) { .page-header__cta { display: none; } }
.page-header p { color: rgba(255,255,255,.7); margin-top: var(--space-3); max-width: 55ch; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: rgba(255,255,255,.55); }
.breadcrumbs a { color: rgba(255,255,255,.8); }
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumbs .sep { color: rgba(255,255,255,.35); }
body:not(.home) .breadcrumbs { color: var(--color-muted); }
body:not(.home) .breadcrumbs a { color: var(--color-body); }
/* Breadcrumbs always sit on the navy page header; the muted/body greys above were ~2.4:1 there. */
body .page-header .breadcrumbs { color: rgba(255,255,255,.72); }
body .page-header .breadcrumbs a { color: rgba(255,255,255,.92); }
body .page-header .breadcrumbs .sep { color: rgba(255,255,255,.5); }
@media (max-width: 767px) {
  .breadcrumbs a { display: inline-flex; align-items: center; min-height: 32px; }
  .footer-col ul { gap: .1rem; }
  .footer-col li > a, .footer-contact a { display: inline-flex; align-items: center; min-height: 44px; }
  .card__link { min-height: 44px; }
}

/* =========================================================
   12. SINGLE SERVICE / PROJECT
========================================================= */
.entry-content { max-width: 72ch; }
.entry-content > * + * { margin-top: var(--space-5); }
.entry-content h2 { margin-top: var(--space-7); }
.entry-content h3 { margin-top: var(--space-6); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; max-width: 68ch; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: .4em; }
.entry-content img, .entry-content figure { border-radius: var(--radius-md); }
.entry-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-5);
  font-style: italic;
  color: var(--color-ink);
}
.entry-content a { color: var(--color-navy-2); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--color-accent-dark); }

.service-layout, .project-layout { display: grid; gap: var(--space-8); }
@media (min-width: 960px) { .service-layout, .project-layout { grid-template-columns: 2fr 1fr; } }
.service-aside { display: flex; flex-direction: column; gap: var(--space-5); }
.aside-card { background: var(--color-bg-alt); border-radius: var(--radius-md); padding: var(--space-5); }
.aside-card h4 { margin-bottom: var(--space-3); }
.aside-card ul { display: flex; flex-direction: column; gap: var(--space-3); }
.aside-card li { display: flex; gap: .6rem; font-size: .92rem; align-items: flex-start; }
.aside-card li svg { width: 18px; height: 18px; color: var(--color-accent-dark); flex-shrink: 0; margin-top: 2px; }
.aside-card--navy { background: var(--color-navy); color: rgba(255,255,255,.85); }
.aside-card--navy h4 { color: #fff; }

.project-meta { display: flex; flex-direction: column; gap: var(--space-3); font-size: .92rem; }
.project-meta dt { font-weight: 700; color: var(--color-ink); }
.project-meta dd { color: var(--color-body); }

/* =========================================================
   13. BLOG
========================================================= */
.post-list { display: grid; gap: var(--space-6); }
@media (min-width: 700px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-list { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  border-radius: var(--radius-md); overflow: hidden; background: #fff; display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--color-border);
  transform: translateY(var(--stagger-y, 0px));
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s cubic-bezier(.16,1,.3,1);
}
.post-card:hover {
  border-color: rgba(224,161,58,.5);
  box-shadow: 0 20px 36px -18px rgba(224,161,58,.35), 0 6px 18px -6px rgba(12,32,54,.12);
  transform: translateY(calc(var(--stagger-y, 0px) - 4px));
}
.post-card__media { aspect-ratio: 16/10; background: var(--color-bg-alt); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.post-card__date { font-size: .78rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: .04em; }
.post-card h3 { margin-top: .4rem; font-size: 1.1rem; }
.post-card p { font-size: .92rem; margin-top: .5rem; }
.post-card .card__link { margin-top: var(--space-4); }

.single-post-header { max-width: 72ch; }
.single-post-header .breadcrumbs { margin-bottom: var(--space-4); }
.post-meta-row { display: flex; flex-wrap: wrap; gap: var(--space-4); font-size: .85rem; color: var(--color-muted); margin-top: var(--space-3); }
.post-meta-row span { display: inline-flex; align-items: center; gap: .35rem; }
.post-meta-row svg { width: 15px; height: 15px; }
.post-featured-image { margin-top: var(--space-6); border-radius: var(--radius-lg); overflow: hidden; }
.post-featured-image img { width: 100%; height: auto; }

.pagination { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--space-8); }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); font-weight: 600; font-size: .9rem; padding-inline: .5rem; }
.pagination .current { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }
.pagination a:hover { border-color: var(--color-navy); }

/* =========================================================
   14. FORMS
========================================================= */
.form-grid { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field label { font-size: .88rem; font-weight: 700; color: var(--color-ink); }
.form-field input, .form-field textarea, .form-field select {
  padding: .75rem .9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: .96rem;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--color-accent-dark);
  outline: none;
  box-shadow: 0 0 0 3px rgba(224,161,58,.2);
}
.form-field--check { flex-direction: row; align-items: flex-start; gap: .6rem; }
.form-field--check input { margin-top: .25rem; width: auto; }
.form-field--check label { font-weight: 400; font-size: .85rem; color: var(--color-body); }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: var(--space-4); border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: var(--space-5); }
.form-notice--success { background: var(--color-success-bg); color: var(--color-success); border: 1px solid rgba(47,143,91,.25); }
.form-notice--error { background: #fdecec; color: #b3261e; border: 1px solid rgba(179,38,30,.25); }

/* =========================================================
   15. CONTACT PAGE
========================================================= */
.contact-layout { display: grid; gap: var(--space-8); }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 1fr 1.1fr; } }
.contact-info-list { display: flex; flex-direction: column; gap: var(--space-5); margin-top: var(--space-6); }
.contact-info-item { display: flex; gap: var(--space-4); }
.contact-info-item__icon {
  position: relative;
  flex-shrink: 0; width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: rgba(224,161,58,.08); color: var(--color-accent-dark);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-item__icon::before, .contact-info-item__icon::after {
  content: ""; position: absolute; width: 9px; height: 9px;
  border: 1.5px solid var(--color-accent); opacity: .8;
}
.contact-info-item__icon::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.contact-info-item__icon::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.contact-info-item__icon svg { width: 22px; height: 22px; }
.contact-info-item h4 { font-size: .95rem; margin-bottom: .2rem; }
.contact-info-item a, .contact-info-item p { font-size: .92rem; }
.contact-map { margin-top: var(--space-7); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); aspect-ratio: 16/9; background: linear-gradient(100deg, var(--color-bg-alt, #eef1f5) 30%, #f8fafc 50%, var(--color-bg-alt, #eef1f5) 70%) 0 0 / 200% 100%; animation: akenergy-skeleton 1.6s linear infinite; }
@keyframes akenergy-skeleton { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .contact-map { animation: none; } }
.contact-map iframe { width: 100%; height: 100%; border: 0; }
.contact-form-wrap { background: var(--color-bg-alt); border-radius: var(--radius-lg); padding: var(--space-7); }

/* =========================================================
   16. FOOTER
========================================================= */
.site-footer { position: relative; background: var(--color-navy); background-image: var(--grid-dots), var(--noise); color: rgba(255,255,255,.65); overflow: clip; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--color-accent); }
.footer-top { padding-block: var(--space-8); display: grid; gap: var(--space-7); }
@media (min-width: 780px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.footer-brand__name { font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; color: #fff; letter-spacing: -.01em; }
.footer-brand p { margin-top: var(--space-3); font-size: .92rem; max-width: 32ch; }
.footer-social { display: flex; gap: .6rem; margin-top: var(--space-5); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { border-color: var(--color-accent); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h5 { color: #fff; font-size: .92rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: var(--space-4); }
.footer-col ul { display: flex; flex-direction: column; gap: .7rem; }
.footer-col a, .footer-col span { font-size: .92rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.footer-contact svg { width: 17px; height: 17px; margin-top: 2px; color: var(--color-accent); flex-shrink: 0; }
.footer-bottom-bar { background: rgba(0,0,0,.16); border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom {
  padding-block: var(--space-4);
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  align-items: center; justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}
.footer-bottom-links { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* =========================================================
   16b. COMMENTS
========================================================= */
.comments-area { max-width: 72ch; }
.comment-list { display: flex; flex-direction: column; gap: var(--space-5); }
.comment-list .children { margin-top: var(--space-5); margin-left: var(--space-6); }
.comment-body { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-5); }
.comment-author .fn { font-weight: 700; color: var(--color-ink); }
.comment-metadata { font-size: .8rem; color: var(--color-muted); margin-bottom: var(--space-2); }
.comment-reply-link { font-weight: 700; font-size: .85rem; color: var(--color-navy-2); }
.comment-respond { margin-top: var(--space-7); }
.comment-form p { margin-top: var(--space-4); }
.comment-form label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .4rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
}

/* =========================================================
   17. 404 / SEARCH
========================================================= */
.error-404 { text-align: center; padding-block: var(--space-9); }
.error-404__code { font-size: clamp(4rem, 3rem + 5vw, 7rem); font-weight: 800; color: var(--color-accent); line-height: 1; }
.error-404 .btn { margin-top: var(--space-6); }
.search-form { display: flex; gap: var(--space-3); max-width: 32rem; margin-top: var(--space-6); margin-inline: auto; }
.search-form input[type="search"] { flex: 1; padding: .85rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }

/* =========================================================
   18. WP CORE / BLOCK LIBRARY MINIMAL OVERRIDES
========================================================= */
.alignwide { max-width: 90ch; }
.alignfull { max-width: none; }
.wp-block-image, .wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--color-muted); margin-top: .5rem; }
.screen-reader-text { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* =========================================================
   19. THIRD-PARTY OVERRIDES
========================================================= */
/*
 * SureCookie consent banner: on mobile its 4 stacked full-width buttons
 * take up roughly half the viewport height and fully cover the hero CTA
 * and phone number on first visit. Cap its height with internal scroll
 * and tighten spacing instead of letting it push over the fold content.
 * Selectors come from the plugin's actual markup (surecookie-* classes
 * are not part of this theme) — re-check them after a SureCookie update.
 */
.surecookie-public-banner {
  max-height: 70vh !important;
  overflow-y: auto !important;
}
@media (max-width: 480px) {
  .surecookie-public-banner { padding: 12px !important; }
  .surecookie-banner-content-box { gap: 12px !important; }
  .surecookie-banner-description {
    font-size: .78rem !important; line-height: 1.3 !important;
    display: -webkit-box !important; -webkit-box-orient: vertical !important; -webkit-line-clamp: 2 !important; overflow: hidden !important;
  }
  .surecookie-banner-buttons-box {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: .4rem !important;
  }
  .surecookie-preferences-btn,
  .surecookie-decline-btn {
    grid-column: span 1 !important;
  }
  .surecookie-btn-base { padding-block: .4rem !important; font-size: .85rem !important; }
}
