/* ============================================================
   MT DUNEED ELECTRICAL — Premium UI Overlay
   "Surf Coast Editorial" — confident coastal trade.
   Restrained · Typographic · Hairline-precise · Warmly textured.
   ============================================================ */

/* Editorial body lift — Fraunces optical axis + Plus Jakarta tracking */
body {
  font-feature-settings: 'ss01' on, 'cv01' on, 'cv11' on;
  letter-spacing: -0.005em;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'wght' 600;
  letter-spacing: -0.02em;
}
h1 { font-variation-settings: 'opsz' 144, 'SOFT' 80, 'wght' 600; }

/* Subtle grain on warm bg (slightly toned down on darker cream) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--noise-url);
  background-size: 200px 200px;
  opacity: 0.4;
  mix-blend-mode: multiply;
}
[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: 0.35; }

/* Dark-mode editorial tie-in — display headlines pull a warm cream
   (echoing the light-mode logo paper). Body stays cool/legible. */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] .section-title-xl,
[data-theme="dark"] .mte-service__title,
[data-theme="dark"] .cta-band__title {
  color: #efe6d3;
}
[data-theme="dark"] .section-title-xl em {
  background: linear-gradient(120deg, #efe6d3 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="dark"] .cap-label {
  color: #d6c8a8;
}

/* Editorial small-caps label */
.cap-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.cap-label::before {
  content: '';
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* Hairline divider — editorial rule */
.hairline {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  border: 0;
  margin: 0;
}

/* Button variants used by the homepage */
.btn--accent {
  background: var(--grad-accent);
  color: #0a1822;
  font-weight: 700;
  letter-spacing: 0.005em;
}
.btn--accent:hover { box-shadow: var(--shadow-glow); }

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--ghost:hover {
  background: var(--color-surface-2);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.cta-band .btn--ghost,
.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.cta-band .btn--ghost:hover,
.hero .btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

/* Tighten hero h1 with em accent + gradient.
   line-height bumped + padding-bottom prevents Fraunces italic descenders
   and background-clip:text from clipping the lowest stems. */
.hero h1 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'SOFT' 60, 'wght' 600;
  font-weight: 600;
  font-size: clamp(2.4rem, 1.5rem + 4.5vw, 5rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
  padding-bottom: 0.1em;
}
.hero h1 span {
  display: block;
  background: linear-gradient(120deg, #fff 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 500;
  /* Italic serifs ride lower; give the descenders room. */
  line-height: 1.18;
  padding-block: 0.05em 0.15em;
  margin-top: 0.05em;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr !important; }
}

/* Footer Facebook button — official brand mark, clickable badge.
   The icon is the recognised Facebook logo (no recolouring on hover so
   brand attribution stays clear); the surrounding label lifts subtly. */
.footer__fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1;
  transition: background var(--transition-interactive),
              border-color var(--transition-interactive),
              color var(--transition-interactive),
              transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}
.footer__fb-icon {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
  /* Logo is full-bleed inside its 24×24 viewBox — the rounded shadow
     gives it a tidy edge against the dark footer. */
  filter: drop-shadow(0 2px 6px rgba(24,119,242,0.35));
  transition: transform 0.25s var(--ease-out), filter var(--transition-interactive);
}
.footer__fb-label {
  white-space: nowrap;
}
.footer__fb-btn:hover,
.footer__fb-btn:focus-visible {
  background: rgba(24,119,242,0.14);
  border-color: rgba(24,119,242,0.55);
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}
.footer__fb-btn:hover .footer__fb-icon,
.footer__fb-btn:focus-visible .footer__fb-icon {
  transform: scale(1.06);
  filter: drop-shadow(0 4px 14px rgba(24,119,242,0.55));
}
.footer__fb-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(24,119,242,0.45);
}

/* ----- Light theme (footer is dark in both, but in case the footer
        ever appears on a light surface) ----- */
[data-theme="light"] .footer__fb-btn:not([class*="footer__"]):not(.footer__fb-btn) {
  /* no-op: kept for future overrides */
}


/* ---- Brand-mark (image logo + textmark) ---- */
.mte-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.mte-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}
.mte-brand__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Default: dark mark on light bg */
.mte-brand__logo--light { display: none; }
.mte-brand__logo--dark  { display: inline; }
/* Hero (header transparent over dark gradient) → use light variant */
.header:not(.header--scrolled) .mte-brand__logo--dark  { display: none; }
.header:not(.header--scrolled) .mte-brand__logo--light { display: inline; }
/* Dark theme always uses light variant */
[data-theme="dark"] .mte-brand__logo--dark  { display: none; }
[data-theme="dark"] .mte-brand__logo--light { display: inline; }

.mte-brand__name {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  font-size: 1.02rem;
  color: var(--color-text);
}
.mte-brand__name small {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.18rem;
}
.header:not(.header--scrolled) .mte-brand__name,
.header:not(.header--scrolled) .mte-brand__name small {
  color: #fff;
}
.header:not(.header--scrolled) .mte-brand__name small {
  color: rgba(255,255,255,0.72);
}

/* ---- Footer brand block (full logo with text) ---- */
.footer__logo-link {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 1rem;
}
.footer__logo-img {
  width: 170px;
  height: auto;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.2));
}

/* ---- Header phone CTA ---- */
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  background: var(--grad-accent);
  color: #061824 !important;
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.header__phone:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.header__phone svg { width: 16px; height: 16px; }
.header:not(.header--scrolled) .header__phone {
  color: #061824 !important;
}
.header__phone::after { display: none !important; }

/* ---- Hero (electrical premium treatment) ---- */
.hero--mte {
  background: var(--grad-hero);
  min-height: 92vh;
}

/* Light-mode veil — softens the deep-coastal gradient against the cream
   light theme so the hero feels of-a-piece with the rest of the page,
   not bolted on. The white wash blends into the cream surface beneath. */
[data-theme="light"] .hero--mte {
  position: relative;
}
[data-theme="light"] .hero--mte::before,
[data-theme="light"] .hero--mte::after { z-index: 1; }
[data-theme="light"] .hero--mte > .container { position: relative; z-index: 2; }
[data-theme="light"] .hero--mte::before {
  /* Re-tinted radial accents (warmer, brighter) + a subtle top-down
     white veil so the hero edges blend into the cream paper below. */
  background:
    radial-gradient(circle at 18% 30%, rgba(244,168,58,0.28) 0%, transparent 38%),
    radial-gradient(circle at 82% 78%, rgba(108,197,232,0.22) 0%, transparent 50%),
    linear-gradient(180deg, rgba(248,244,236,0.10) 0%, rgba(248,244,236,0.22) 100%);
}
/* Soft fade between hero and the section that follows — kills the hard
   edge between the dark hero and the cream surface beneath it. */
[data-theme="light"] .hero--mte::after {
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(180deg, transparent 70%, rgba(248,244,236,0.55) 100%);
  background-size: 60px 60px, 60px 60px, 100% 100%;
}
.hero--mte::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(244,168,58,0.22) 0%, transparent 38%),
    radial-gradient(circle at 82% 78%, rgba(108,197,232,0.18) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
  animation: mte-hero-glow 14s ease-in-out infinite alternate;
}
.hero--mte::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  z-index: 1;
  pointer-events: none;
}
@keyframes mte-hero-glow {
  0%   { opacity: 0.85; transform: scale(1); }
  100% { opacity: 1;    transform: scale(1.05); }
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-bottom: var(--space-6);
}
.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero__chip svg { width: 14px; height: 14px; color: var(--color-accent); }

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-8);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-12);
  color: rgba(255,255,255,0.78);
  font-size: 0.85rem;
}
.hero__trust strong { color: #fff; font-weight: 600; }
.hero__trust .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  display: inline-block;
}

/* ---- Hero scroll indicator ---- */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}
.hero__scroll::before {
  content: '';
  width: 3px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  animation: mte-scroll 1.6s ease-in-out infinite;
}
@keyframes mte-scroll {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(10px); opacity: 0.2; }
}

/* ---- Wave divider ---- */
.wave-divider {
  position: relative;
  height: 70px;
  margin-top: -70px;
  z-index: 2;
  pointer-events: none;
}
.wave-divider svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.wave-divider path { fill: var(--color-bg); }

/* ---- USP strip (under hero) ---- */
.usp-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: calc(var(--space-12) * -1);
  position: relative;
  z-index: 3;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
.usp-strip__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
}
.usp-strip__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  flex-shrink: 0;
}
.usp-strip__icon svg { width: 20px; height: 20px; }
.usp-strip__label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  line-height: 1.3;
}
.usp-strip__label strong {
  font-weight: 600;
  color: var(--color-text);
}
.usp-strip__label span {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

/* ---- Service cards (Power / Lighting / Comms) ---- */
.mte-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}
.mte-service {
  position: relative;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
}
.mte-service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  z-index: 0;
}
.mte-service::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.05;
  transition: opacity 0.4s var(--ease-out);
}
.mte-service:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-xl);
}
.mte-service:hover::before { opacity: 1; }
.mte-service:hover::after { opacity: 0.18; }
.mte-service:hover .mte-service__icon { background: rgba(255,255,255,0.18); color: #fff; }
.mte-service:hover .mte-service__title,
.mte-service:hover .mte-service__desc,
.mte-service:hover .mte-service__list li { color: #fff; }
.mte-service:hover .mte-service__list li::before { color: var(--color-accent); }
.mte-service:hover .mte-service__cta { color: var(--color-accent); }

.mte-service > * { position: relative; z-index: 1; }

.mte-service__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.mte-service__icon svg { width: 28px; height: 28px; }
.mte-service__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
  transition: color 0.4s var(--ease-out);
}
.mte-service__desc {
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  font-size: 0.95rem;
  line-height: 1.65;
  transition: color 0.4s var(--ease-out);
}
.mte-service__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mte-service__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  transition: color 0.4s var(--ease-out);
}
.mte-service__list li::before {
  content: '⚡';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
  transition: color 0.4s var(--ease-out);
}
.mte-service__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.4s var(--ease-out);
}
.mte-service__cta svg {
  width: 14px; height: 14px;
  transition: transform 0.3s var(--ease-out);
}
.mte-service:hover .mte-service__cta svg { transform: translateX(4px); }

/* ---- Stat band ---- */
.stat-band {
  background: var(--grad-cta);
  padding-block: var(--space-12);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stat-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
}
.stat-band__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-6);
  text-align: center;
  position: relative;
}
.stat-band__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.5rem + 3vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.stat-band__label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}

/* ---- Section eyebrow ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

/* ---- Section title polish ---- */
.section-title-xl {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.section-title-xl em {
  font-style: normal;
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- CTA band ---- */
.cta-band {
  position: relative;
  margin-block: var(--space-16);
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--radius-xl);
  background: var(--grad-cta);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(244,168,58,0.35) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(108,197,232,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
}
.cta-band__actions { justify-content: center; }
.cta-band__sub { max-width: 56ch; margin-inline: auto; }
.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 1.8vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.4rem;
  letter-spacing: -0.015em;
}
.cta-band__sub {
  color: rgba(255,255,255,0.85);
  margin: 0;
  font-size: 1rem;
}
.cta-band__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ---- Premium testimonial cards ---- */
.testimonial--mte {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6) var(--space-6);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.testimonial--mte::before {
  content: '"';
  position: absolute;
  top: -22px;
  left: 22px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  background: var(--grad-accent);
  color: #061824;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.testimonial--mte:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}
.testimonial--mte__stars {
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: var(--space-3);
  letter-spacing: 2px;
}
.testimonial--mte__quote {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: var(--space-5);
}
.testimonial--mte__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-4);
}
.testimonial--mte__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-hero);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}
.testimonial--mte__name { font-weight: 600; color: var(--color-text); font-size: 0.9rem; }
.testimonial--mte__sub { font-size: 0.78rem; color: var(--color-text-muted); }

/* ---- Service-area pill grid ---- */
.area-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  max-width: 760px;
  margin: 0 auto;
}
.area-pill {
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--color-text);
  text-decoration: none;
  transition: transform var(--transition-interactive), border-color var(--transition-interactive), background var(--transition-interactive), color var(--transition-interactive);
}
.area-pill:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- Sticky mobile call CTA ---- */
.sticky-call {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 90;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  background: var(--grad-accent);
  color: #061824;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  font-size: 0.9rem;
}
.sticky-call svg { width: 18px; height: 18px; }
@media (max-width: 768px) {
  .sticky-call { display: inline-flex; }
  .hero { min-height: 88vh; }
}

/* ---- FAQ premium ---- */
.faq--mte details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.faq--mte details[open] {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.faq--mte summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq--mte summary::-webkit-details-marker { display: none; }
.faq--mte summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.3s var(--ease-out);
  line-height: 1;
}
.faq--mte details[open] summary::after { transform: rotate(45deg); }
.faq--mte details > p {
  margin-top: 0.85rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---- Trust footer band ---- */
.footer-trust {
  background: var(--color-primary-deep, #073f5a);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-block: var(--space-6);
}
.footer-trust__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6) var(--space-8);
  align-items: center;
}
.footer-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
}
.footer-trust__item strong { color: var(--color-accent); font-weight: 700; }
.footer-trust__item svg { width: 18px; height: 18px; color: var(--color-accent); }

/* ---- Footer rich (electrician) ---- */
.footer__brand-block { max-width: 340px; }
.footer__brand-block .mte-brand__name { color: #fff; }
.footer__brand-block .mte-brand__name small { color: rgba(255,255,255,0.6); }
.footer__brand-block .footer__desc { margin-top: var(--space-4); }
.footer__contact-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
}
.footer__contact-line:hover { color: var(--color-accent); }
.footer__contact-line svg { width: 16px; height: 16px; color: var(--color-accent); flex-shrink: 0; }

.footer__bottom-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}
.footer__bottom-meta strong { color: rgba(255,255,255,0.85); font-weight: 600; }
.footer__bottom-meta a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer__bottom-meta a:hover { color: var(--color-accent); }

/* ---- Responsive trims ---- */
@media (max-width: 768px) {
  .hero__cta-row { flex-direction: column; align-items: stretch; }
  .hero__cta-row .btn { width: 100%; }
  .cta-band__inner { align-items: center; text-align: center; }
  .footer-trust__row { gap: 1rem 1.25rem; }
}

/* ============================================================
   PROJECT GALLERY — horizontal swipe rail + lightbox
   Powers the homepage [mte_gallery_rail] shortcode and the
   /gallery/ page template. Touch-first; drag-to-scroll on desktop.
   ============================================================ */

.gallery-rail {
    position: relative;
    margin: 1.25rem 0 0;
}

/* "Drag, swipe or click" hint sits below the rail — small, mono, neutral.
   Auto-hides once the user actually scrolls / drags / clicks the rail
   (.has-interacted is added by gallery.js on first interaction). */
.gallery-rail__hint {
    margin: 1rem 0 0;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.gallery-rail__hint .gallery-rail__hint-arrow {
    display: inline-block;
    width: 18px;
    height: 12px;
    color: var(--color-accent);
}
.gallery-rail__hint .gallery-rail__hint-arrow svg {
    width: 100%;
    height: 100%;
    display: block;
    /* glide-right animation suggests "swipe through" without being noisy */
    animation: gallery-hint-glide 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.gallery-rail.has-interacted .gallery-rail__hint {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
}
@keyframes gallery-hint-glide {
    0%   { transform: translateX(-4px); opacity: 0.4; }
    50%  { transform: translateX(4px);  opacity: 1; }
    100% { transform: translateX(-4px); opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
    .gallery-rail__hint .gallery-rail__hint-arrow svg { animation: none; }
}

.gallery-rail__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    /* hide scrollbar (rail has its own arrow controls) */
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    /* gentle fade-edges so the row reads as a rail, not a clipped row */
    mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
    padding: 4px 32px;
    margin: 0 -32px;
}
.gallery-rail__viewport::-webkit-scrollbar { display: none; }
.gallery-rail__viewport.is-dragging { cursor: grabbing; scroll-behavior: auto; }

.gallery-rail__track {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    width: max-content;
}

.gallery-rail__item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: clamp(260px, 32vw, 420px);
}

.gallery-tile {
    display: block;
    position: relative;
    width: 100%;
    /* Locked 4:3 viewport. Aspect-ratio reserves the box even before the
       image loads, preventing layout shift and guaranteeing every tile
       displays at the same size regardless of source dimensions. */
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface-2);
    padding: 0;
    cursor: zoom-in;
    transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s, border-color 0.25s;
    border-radius: 0;
    text-align: left;
    color: inherit;
    font: inherit;
    /* Fallback for older browsers without aspect-ratio: locks 75% intrinsic ratio (3/4 = 0.75) */
}
@supports not (aspect-ratio: 4/3) {
    .gallery-tile { padding-top: 75%; height: 0; }
    .gallery-tile > * { position: absolute; inset: 0; }
}
.gallery-tile:hover,
.gallery-tile:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 30, 50, 0.14);
    border-color: var(--color-primary);
    outline: none;
}
.gallery-tile img {
    /* Fill the 4:3 box, cover the entire area, never stretch.
       object-position centred horizontally + slightly above centre so
       portraits (ceiling fans, downlights) keep their subject in frame
       even when the user uploads an uncropped phone photo. */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
    transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.gallery-tile:hover img,
.gallery-tile:focus-visible img { transform: scale(1.04); }

.gallery-tile__meta {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 22, 36, 0.78) 60%, rgba(8, 22, 36, 0.92) 100%);
    color: #fff;
    pointer-events: none;
}
.gallery-tile__cat {
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
}
.gallery-tile__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.gallery-rail__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s, transform 0.2s;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(15, 30, 50, 0.10);
}
.gallery-rail__nav:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.gallery-rail__nav:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.gallery-rail__nav[disabled] { opacity: 0; pointer-events: none; transform: translateY(-50%) scale(0.9); }
.gallery-rail__nav svg { width: 20px; height: 20px; }
.gallery-rail__nav--prev { left: -8px; }
.gallery-rail__nav--next { right: -8px; }

/* First-load attention pulse on the next arrow — runs 4 times then stops.
   Killed instantly when the user interacts with the rail (.has-interacted). */
.gallery-rail:not(.has-interacted) .gallery-rail__nav--next {
    animation: gallery-nav-pulse 1.6s cubic-bezier(0.4, 0, 0.2, 1) 4;
}
@keyframes gallery-nav-pulse {
    0%, 60%, 100% { transform: translateY(-50%) translateX(0);   box-shadow: 0 4px 14px rgba(15,30,50,0.10); }
    30%           { transform: translateY(-50%) translateX(8px); box-shadow: 0 8px 22px rgba(15,30,50,0.18); }
}
@media (prefers-reduced-motion: reduce) {
    .gallery-rail:not(.has-interacted) .gallery-rail__nav--next { animation: none; }
}

@media (max-width: 720px) {
    .gallery-rail__nav { display: none; }
    .gallery-rail__viewport { padding: 4px 16px; margin: 0 -16px; }
    .gallery-rail__track { gap: 0.75rem; }
    .gallery-rail__item { width: 78vw; }
}

.gallery-rail--empty {
    border: 1px dashed var(--color-border);
    padding: 2.5rem;
    text-align: center;
    color: var(--color-text-muted);
    background: var(--color-surface-2);
}
.gallery-rail__empty-msg { margin: 0; }

/* ----- Section header with side link ----- */
.section-header--with-link {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: end;
    text-align: left;
}
.section-header--with-link > div { flex: 1 1 320px; }
.section-header--with-link > .btn { flex: 0 0 auto; }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ----- Lightbox ----- */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(8, 18, 30, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4vw;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.gallery-lightbox.is-open {
    display: flex;
    opacity: 1;
}

.gallery-lightbox__figure {
    margin: 0;
    max-width: min(1400px, 92vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transform: scale(0.985);
    transition: transform 0.25s cubic-bezier(.2,.7,.2,1);
}
.gallery-lightbox.is-open .gallery-lightbox__figure { transform: scale(1); }
.gallery-lightbox__img {
    /* Lightbox uses contain — never crops, never stretches. The image
       always shows in its native aspect, scaled down to fit the viewport. */
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: #000;
    box-shadow: 0 30px 90px rgba(0,0,0,0.55);
}
.gallery-lightbox__caption {
    text-align: center;
    color: rgba(255,255,255,0.85);
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.005em;
    max-width: 60ch;
    margin: 0 auto;
}
.gallery-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.gallery-lightbox__close:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px; height: 56px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}
.gallery-lightbox__nav:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.gallery-lightbox__nav--prev { left: 12px; }
.gallery-lightbox__nav--next { right: 12px; }

@media (max-width: 720px) {
    .gallery-lightbox__nav { width: 44px; height: 44px; font-size: 24px; }
    .gallery-lightbox__caption { font-size: 0.82rem; }
}

/* ============================================================
   /gallery/ archive page — masonry-ish grid
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.25rem;
    margin: 2rem 0 0;
}
.gallery-grid .gallery-tile {
    aspect-ratio: 4 / 3;
}
@media (min-width: 880px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-grid .gallery-rail__item:nth-child(7n+1) { grid-column: span 2; }
    .gallery-grid .gallery-rail__item:nth-child(7n+1) .gallery-tile { aspect-ratio: 16 / 9; }
}

.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0 0;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
}
.gallery-filter__btn {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s;
}
.gallery-filter__btn:hover,
.gallery-filter__btn[aria-pressed="true"] {
    background: var(--color-text);
    color: var(--color-surface);
    border-color: var(--color-text);
}

/* ============================================================
   BLOG / FIELD NOTES — editorial post ledger
   Uses the same component vocabulary as the homepage so /blog/
   and the article view feel like part of the same site.
   ============================================================ */

.hero--inner {
    /* shorter hero on inner pages — keeps body content above the fold */
    min-height: auto;
    padding-top: clamp(5rem, 8vw, 8rem);
    padding-bottom: clamp(4rem, 6vw, 6rem);
}

/* Post-ledger: numbered post cards in a vertical stream */
.post-ledger {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--color-border);
}
.post-card {
    border-bottom: 1px solid var(--color-border);
}
.post-card__inner {
    display: grid;
    grid-template-columns: 64px 200px minmax(0, 1fr) auto;
    gap: clamp(1rem, 2.5vw, 2.25rem);
    align-items: center;
    padding: clamp(1.5rem, 2.6vw, 2.25rem) 0;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: padding 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.post-card__inner::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: var(--color-accent);
    transition: width 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
    pointer-events: none;
}
.post-card__inner:hover::before { width: 4px; }
.post-card__inner:hover { padding-left: 18px; background: var(--color-surface-2); }

.post-card__num {
    font-family: var(--font-display);
    font-variation-settings: 'opsz' 144, 'SOFT' 30, 'wght' 500;
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--color-text-faint);
    transition: color 0.25s var(--ease-out);
}
.post-card__inner:hover .post-card__num { color: var(--color-accent); }

.post-card__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
}
.post-card__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.post-card__inner:hover .post-card__thumb img { transform: scale(1.04); }

.post-card__title {
    font-family: var(--font-display);
    font-variation-settings: 'opsz' 144, 'SOFT' 50, 'wght' 600;
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--color-text);
    margin: 0 0 0.4rem;
}
.post-card__excerpt {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card__meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.post-card__meta .pip { color: var(--color-text-faint); }
.post-card__cat { color: var(--color-accent); }

.post-card__arrow {
    width: 56px;
    height: 56px;
    border: 1px solid var(--color-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: background 0.25s var(--ease-out), color 0.25s, transform 0.25s, border-color 0.25s;
    flex-shrink: 0;
}
.post-card__arrow svg { width: 20px; height: 14px; }
.post-card__inner:hover .post-card__arrow {
    background: var(--color-accent);
    color: #0a1822;
    border-color: var(--color-accent);
    transform: rotate(-45deg);
}

@media (max-width: 880px) {
    .post-card__inner {
        grid-template-columns: 48px minmax(0, 1fr) 44px;
        grid-template-rows: auto auto;
        gap: 0.75rem 1rem;
    }
    .post-card__num { grid-row: 1 / span 2; align-self: start; padding-top: 0.4rem; font-size: 1.75rem; }
    .post-card__thumb {
        grid-column: 2 / -1;
        grid-row: 2;
        aspect-ratio: 16 / 9;
        max-height: 200px;
    }
    .post-card__body { grid-column: 2; grid-row: 1; }
    .post-card__arrow { grid-column: 3; grid-row: 1; align-self: start; width: 44px; height: 44px; }
    .post-card__excerpt { -webkit-line-clamp: 3; line-clamp: 3; }
}

/* Single post — dateline */
.post-hero h1 {
    font-size: clamp(2.2rem, 1.4rem + 3.5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}
.post-dateline {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.16);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
}
[data-theme="light"] .post-dateline { color: rgba(255,255,255,0.85); }
.post-dateline .pip { opacity: 0.4; }

/* Single post — featured image plate */
.post-featured {
    margin: 0;
    border: 1px solid var(--color-border);
    background: #000;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.post-featured img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* Single post — body uses .prose; tag list & post-nav */
.post-body { max-width: 720px; margin: 0 auto; }
.post-foot {
    max-width: 720px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}
.post-foot__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.post-foot__tags a {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid var(--color-border);
    padding: 0.4rem 0.8rem;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.post-foot__tags a:hover {
    background: var(--color-accent);
    color: #0a1822;
    border-color: var(--color-accent);
}

.post-nav {
    max-width: 720px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.post-nav__link {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.5rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, padding 0.2s;
}
.post-nav__link--prev { border-right: 1px solid var(--color-border); }
.post-nav__link--next { text-align: right; }
.post-nav__link:hover { background: var(--color-surface-2); }
.post-nav__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.25;
    letter-spacing: -0.005em;
    color: var(--color-text);
}
@media (max-width: 720px) {
    .post-nav { grid-template-columns: 1fr; }
    .post-nav__link--prev { border-right: none; border-bottom: 1px solid var(--color-border); }
    .post-nav__link--next { text-align: left; }
}

/* Pagination — used on index + archive */
.lpi__pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.lpi__pagination .page-numbers {
    width: 44px; height: 44px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.lpi__pagination .page-numbers:hover { background: var(--color-text); color: var(--color-surface); }
.lpi__pagination .page-numbers.current {
    background: var(--color-accent);
    color: #0a1822;
    border-color: var(--color-accent);
}
.lpi__pagination .prev, .lpi__pagination .next { width: auto; padding: 0 1rem; }

/* ============================================================
   ABN — neutralise any auto-detected `tel:` styling
   The format-detection meta tags should already prevent auto-linking,
   but some Android browsers ignore them. Belt-and-braces: any <a> the
   user-agent injects inside .abn inherits the surrounding colour and
   has no underline, so the ABN never reads as a clickable link.
   ============================================================ */
.abn,
.abn a,
.abn a:link,
.abn a:visited,
.abn a:hover,
.abn a:active {
    color: inherit !important;
    text-decoration: none !important;
    cursor: text !important;
    pointer-events: none;
}
.abn strong { color: inherit; font-weight: 600; }
