/* ============================================================
   DÉTECTIVE THOMAS — custom theme styles
   Design system: Corporate Startup Menthe (fonts)
   Palette: teal noir #032e2e + bronze gold #c18f59 (concurrent Investipole)
   ============================================================ */

/* ---------- 1. VARIABLES ROOT ---------- */
:root {
  --abf-primary:    #032e2e;
  --abf-primary-2:  #063e3e;
  --abf-accent:     #c18f59;
  --abf-accent-2:   #a87544;
  --abf-text:       #1F2A2A;
  --abf-text-soft:  #5A6868;
  --abf-bg:         #FFFFFF;
  --abf-surface:    #F7F8F8;
  --abf-line:       #E2E8E8;
  --abf-shadow-sm:  0 1px 3px rgba(3,46,46,0.08);
  --abf-shadow-md:  0 6px 24px rgba(3,46,46,0.12);
  --abf-shadow-lg:  0 16px 48px rgba(3,46,46,0.20);
  --abf-radius:     10px;
  --abf-radius-lg:  14px;
  --abf-font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --abf-font-body:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --abf-container:    1240px;
  --abf-header-h:     76px;
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--abf-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--abf-text);
  background: var(--abf-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main, .abf-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: 50vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--abf-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--abf-accent); }
a:focus-visible { outline: 2px solid var(--abf-accent); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--abf-font-heading);
  color: var(--abf-primary);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .8rem;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }

.abf-container {
  max-width: var(--abf-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- 3. BUTTONS ---------- */
.abf-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: var(--abf-radius);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background .25s, color .25s, transform .15s, box-shadow .25s;
}
.abf-btn--primary {
  background: var(--abf-primary);
  color: #fff;
}
.abf-btn--primary:hover {
  background: var(--abf-primary-2);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--abf-shadow-md);
}
.abf-btn--cta {
  background: var(--abf-accent);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.abf-btn--cta:hover {
  background: var(--abf-accent-2);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(193,143,89,0.35);
}
.abf-btn--ghost {
  background: transparent;
  color: var(--abf-primary);
  border: 1.5px solid var(--abf-line);
}
.abf-btn--ghost:hover {
  border-color: var(--abf-primary);
  color: var(--abf-primary);
}

/* ---------- 4. HEADER STICKY-MINIMAL ---------- */
.abf-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--abf-line);
  transition: box-shadow .25s, padding .25s;
}
.abf-header.is-scrolled {
  box-shadow: var(--abf-shadow-sm);
}
.abf-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--abf-header-h);
  padding: 0 1.5rem;
  max-width: var(--abf-container);
  margin: 0 auto;
}

.abf-brand-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--abf-primary);
  flex-shrink: 0;
}
.abf-brand-logo {
  width: auto;
  display: block;
}
.abf-brand-name {
  font-family: var(--abf-font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--abf-primary);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* Desktop nav — horizontal centered */
.abf-nav-desktop {
  display: none;
}
.abf-nav-desktop-list {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.abf-nav-desktop-list a {
  color: var(--abf-text);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: .4rem .15rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.abf-nav-desktop-list a:hover {
  border-bottom-color: var(--abf-accent);
  color: var(--abf-primary);
}

.abf-header-cta-desktop {
  margin-left: auto;
  flex-shrink: 0;
  padding: .55rem 1.1rem;
  font-size: .9rem;
}

/* Burger (mobile only) */
.abf-burger {
  margin-left: auto;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 8px !important;
  background: rgba(247,248,248,0.95) !important;
  border: 1.5px solid rgba(3,46,46,0.18) !important;
  border-radius: 8px !important;
  color: var(--abf-primary) !important;
  cursor: pointer !important;
  z-index: 10000 !important;
  flex-shrink: 0 !important;
  position: relative !important;
}
.abf-burger-bars,
.abf-burger > span {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 24px !important;
  height: 16px !important;
}
.abf-burger-bars span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .3s, opacity .3s;
}

/* ---------- 5. MOBILE DRAWER ---------- */
.abf-nav-mobile,
.abf-drawer {
  display: none;
}

.abf-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3,46,46,0.55);
  z-index: 9998;
  backdrop-filter: blur(2px);
}
.abf-drawer-overlay.is-open {
  display: block;
  animation: abf-fadein .25s ease;
}

@keyframes abf-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1023px) {
  .abf-nav-mobile {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 380px;
    background: #ffffff;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(3,46,46,0.30);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    display: flex !important;
    flex-direction: column;
    padding: 4.5rem 0 1.5rem;
  }
  .abf-nav-mobile.is-open {
    transform: translateX(0);
  }
  .abf-drawer-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--abf-surface);
    border: 1px solid var(--abf-line);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--abf-primary);
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .abf-nav-mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .abf-nav-mobile-list li {
    border-bottom: 1px solid var(--abf-line);
  }
  .abf-nav-mobile-list a {
    display: block;
    padding: 1rem 1.5rem;
    color: #0a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background .2s;
  }
  .abf-nav-mobile-list a:hover {
    background: var(--abf-surface);
    color: var(--abf-primary);
  }
  .abf-drawer-cta {
    display: block !important;
    margin: 2rem 1.5rem 1.5rem !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    background: var(--abf-accent) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
  }
  .abf-header-cta-desktop,
  .abf-header [class*="-btn--cta"]:not([class*="-drawer-"]) {
    display: none !important;
  }
  .abf-burger-label { display: none !important; }
}

@media (min-width: 1024px) {
  .abf-nav-desktop {
    display: flex;
    flex: 1;
    justify-content: center;
    margin: 0 1.5rem;
  }
  .abf-burger,
  .abf-drawer-overlay,
  .abf-nav-mobile,
  .abf-drawer-cta {
    display: none !important;
  }
}

/* ---------- 6. HERO (zoom-on-scroll + YouTube video bg) ---------- */
.abf-hero {
  position: relative;
  min-height: 75vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--abf-primary);
}
.abf-hero--has-video,
.abf-hero--zoom-on-scroll { /* same wrapper */ }

.abf-hero-video-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.abf-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: 0;
}
.abf-hero--has-video .abf-hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,46,46,0.45) 0%, rgba(3,46,46,0.78) 100%);
  z-index: 2;
}

/* fallback image hero (no video) — zoom-on-scroll effect */
.abf-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  /* zoom-on-scroll : geref via JS qui ajoute --scrollY */
  transform: scale(calc(1 + var(--abf-scrolly, 0) * 0.0008));
  transform-origin: center center;
  transition: transform .05s linear;
}

.abf-hero-inner {
  position: relative;
  z-index: 5;
  color: #fff;
  padding: 4rem 1.5rem;
  max-width: 880px;
}
.abf-hero--has-video .abf-hero-title,
.abf-hero--has-video .abf-hero-subtitle {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}
.abf-hero-title,
.abf-hero-inner .abf-hero-title,
.abf-hero .abf-hero-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}
.abf-hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.92);
  margin: 0 0 1.8rem;
  font-weight: 400;
  line-height: 1.55;
}
.abf-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.abf-hero-actions .abf-btn--cta {
  padding: 1rem 1.8rem;
  font-size: 1rem;
}
.abf-hero-actions .abf-btn--ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.abf-hero-actions .abf-btn--ghost:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.7);
}

/* ---------- 7. SECTIONS GENERIC ---------- */
.abf-section {
  padding: 5rem 0;
}
.abf-section--alt {
  background: var(--abf-surface);
}
.abf-section-title {
  text-align: center;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: .6rem;
  color: var(--abf-primary);
}
.abf-section-subtitle {
  text-align: center;
  color: var(--abf-text-soft);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto 3rem;
}

/* ---------- 8. CATEGORIES GRID (rubriques) ---------- */
.abf-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.abf-cat-card {
  position: relative;
  display: block;
  border-radius: var(--abf-radius-lg);
  overflow: hidden;
  background: var(--abf-primary);
  text-decoration: none;
  aspect-ratio: 4/3;
  box-shadow: var(--abf-shadow-sm);
  transition: transform .35s, box-shadow .35s;
}
.abf-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--abf-shadow-md);
}
.abf-cat-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: transform .55s, filter .35s;
  display: block;
}
.abf-cat-card:hover .abf-cat-card-img {
  transform: scale(1.06);
  filter: brightness(1);
}
.abf-cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,46,46,0.20) 0%, rgba(3,46,46,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #fff;
}
.abf-cat-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  letter-spacing: -.01em;
}
.abf-cat-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  margin-top: .35rem;
  color: var(--abf-accent);
  font-weight: 600;
}

/* ---------- 9. ARTICLES GRID (latest posts on home) ---------- */
.abf-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.6rem;
}
.abf-article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--abf-line);
  border-radius: var(--abf-radius-lg);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.abf-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--abf-shadow-md);
  border-color: var(--abf-accent);
}
.abf-article-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--abf-surface);
}
.abf-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.abf-article-card:hover .abf-article-thumb img {
  transform: scale(1.05);
}
.abf-article-content {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  flex: 1;
}
.abf-article-cat {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--abf-accent);
  text-decoration: none;
}
.abf-article-title {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
}
.abf-article-title a {
  color: var(--abf-primary);
  text-decoration: none;
}
.abf-article-title a:hover {
  color: var(--abf-accent);
}
.abf-article-excerpt {
  font-size: .92rem;
  color: var(--abf-text-soft);
  margin: 0;
  line-height: 1.55;
  flex: 1;
}
.abf-article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: var(--abf-text-soft);
  margin-top: auto;
  border-top: 1px solid var(--abf-line);
  padding-top: .8rem;
}

/* ---------- 10. EDITORIAL BLOCK (after categories - 1/3 variant) ---------- */
.abf-editorial {
  background: var(--abf-surface);
  padding: 4.5rem 0;
  position: relative;
}
.abf-editorial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--abf-accent);
  border-radius: 2px;
}
.abf-editorial-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.abf-editorial h2 {
  color: var(--abf-primary);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  text-align: center;
  margin-bottom: 1rem;
}
.abf-editorial h3 {
  color: var(--abf-primary);
  font-size: 1.3rem;
  margin-top: 2rem;
  border-left: 3px solid var(--abf-accent);
  padding-left: 1rem;
}
.abf-editorial p {
  color: var(--abf-text);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}
.abf-editorial .abf-editorial-callout {
  background: var(--abf-primary);
  color: #fff;
  padding: 1.8rem 2rem;
  border-radius: var(--abf-radius-lg);
  margin: 2.5rem 0 1rem;
  border-left: 5px solid var(--abf-accent);
}
.abf-editorial .abf-editorial-callout h3 {
  color: var(--abf-accent);
  border-left: none;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: .6rem;
}
.abf-editorial .abf-editorial-callout p {
  color: rgba(255,255,255,0.95);
  margin-bottom: 0;
  font-size: .98rem;
}

/* ---------- 11. CATEGORY PAGE (tldr-detailed layout) ---------- */
.abf-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  display: flex;
}
.abf-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.abf-cat-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--abf-container);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
}
.abf-cat-hero-inner h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.abf-cat-intro {
  padding: 3.5rem 0 2rem;
}
.abf-cat-intro-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
}
.abf-cat-intro p {
  color: var(--abf-text);
}

.abf-cat-articles {
  padding: 1.5rem 0 3.5rem;
}

.abf-cat-outro {
  background: var(--abf-surface);
  padding: 3.5rem 0;
}
.abf-cat-outro-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
  line-height: 1.75;
}
.abf-cat-outro h2 {
  color: var(--abf-primary);
  border-left: 3px solid var(--abf-accent);
  padding-left: 1rem;
}

/* ---------- 12. PERSONA PHOTO ---------- */
.abf-persona-photo {
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
  border-radius: var(--abf-radius-lg);
  margin: 0 auto 2rem;
  border: 4px solid #fff;
  box-shadow: var(--abf-shadow-md);
}

/* ---------- 13. CONTACT FORM ---------- */
.abf-contact-form {
  margin: 2rem 0;
  background: var(--abf-surface);
  border-radius: var(--abf-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--abf-line);
}
.abf-contact-form iframe {
  width: 100%;
  border: 0;
  border-radius: 8px;
}

/* ---------- 14. FOOTER (growth_columns 4 cols) ---------- */
.abf-footer {
  background: var(--abf-primary);
  color: rgba(255,255,255,0.92);
  padding: 4rem 0 1.8rem;
  margin-top: 4rem;
}
.abf-footer-inner {
  max-width: var(--abf-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.abf-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 880px) {
  .abf-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
  .abf-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.abf-footer-col {
  display: flex;
  flex-direction: column;
}
.abf-footer-logo {
  width: 96px;
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(1.05) drop-shadow(0 0 0 transparent);
}
.abf-footer-brand-name {
  font-family: var(--abf-font-heading);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.05rem;
  margin-bottom: .6rem;
}
.abf-footer-brand-pitch {
  color: rgba(255,255,255,0.78);
  font-size: .92rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.abf-footer-brand-cta {
  color: var(--abf-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: .92rem;
  display: inline-block;
}
.abf-footer-brand-cta:hover {
  color: #fff;
}
.abf-footer-title {
  font-family: var(--abf-font-heading);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--abf-accent);
  margin: 0 0 1rem;
  font-weight: 700;
}
.abf-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.abf-footer-links li {
  margin-bottom: .55rem;
}
.abf-footer-links a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: .92rem;
  transition: color .2s;
}
.abf-footer-links a:hover {
  color: var(--abf-accent);
}
.abf-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: rgba(255,255,255,0.6);
}
.abf-footer-social {
  display: flex;
  gap: .6rem;
}
.abf-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  transition: background .2s, color .2s;
}
.abf-footer-social a:hover {
  background: var(--abf-accent);
  color: #fff;
}
.abf-footer-social svg {
  width: 18px;
  height: 18px;
}

/* ---------- 15. METRICS LINKS BLOCK (mid-home) ---------- */
.abf-metrics-block {
  background: var(--abf-primary);
  color: #fff;
  padding: 3rem 0;
}
.abf-metrics-inner {
  max-width: var(--abf-container);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
.abf-metrics-block h2 {
  color: #fff;
  margin-bottom: 1rem;
}
.abf-metrics-block .abf-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.abf-metrics-block .abf-metric-item {
  background: rgba(255,255,255,0.06);
  padding: 1.4rem;
  border-radius: var(--abf-radius);
  border: 1px solid rgba(255,255,255,0.12);
}
.abf-metrics-block .abf-metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--abf-accent);
}
.abf-metrics-block .abf-metric-label {
  font-size: .85rem;
  opacity: .85;
}

/* ---------- 16. UTILITIES & ACCESSIBILITY ---------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.abf-skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--abf-primary);
  color: #fff;
  padding: .8rem 1.4rem;
  z-index: 99999;
}
.abf-skip-link:focus {
  top: 0;
}

/* ---------- 17. RESPONSIVE TUNING ---------- */
@media (max-width: 768px) {
  .abf-section { padding: 3rem 0; }
  .abf-hero { min-height: 60vh; }
  .abf-hero-inner { padding: 3rem 1.5rem; }
  .abf-editorial { padding: 3rem 0; }
  .abf-cat-hero { height: 240px; }
}

/* ---------- 18. PRINT ---------- */
@media print {
  .abf-header, .abf-footer, .abf-burger, .abf-hero-video-wrap { display: none !important; }
  body { color: #000; background: #fff; }
}

/* ---------- 19. ANIMATIONS (cta_keyframes / ctr / cto) ---------- */
/* injected by builder from animations.cta_keyframes_css */

/* ---------- 20. FALLBACK CATEGORY IMAGE (if file missing) ---------- */
.abf-cat-card-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--abf-primary) 0%, var(--abf-primary-2) 100%);
}
