/*
Theme Name: Serrurier Courbevoie Block
Theme URI: https://serruriercourbevoie.fr/
Author: Les ArtisansPros
Description: Thème block-based Trust & Pro pour Les ArtisansPros, serrurier à Courbevoie. Mobile-first, conversion-orientée appel téléphonique. WCAG AA, PageSpeed 95+. Palette navy/red certifiée.
Version: 2.0.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: serrurier-courbevoie-block
Tags: block-styles, full-site-editing, wide-blocks, mobile-first
*/

/* ============================================
   FONTS — Inter local (perf!)
   ============================================ */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   ROOT TOKENS — Trust & Pro palette
   navy on white = 14.6:1 ✓, red on white = 4.59:1 ✓
   ============================================ */
:root {
  --primary: #0F1F3A;
  --accent: #E8152D;
  --accent-dark: #B30C20;
  --accent-light: #FFEEF0;
  --surface: #F4F6FA;
  --text: #0F1F3A;
  --muted: #64748B;
  --bg: #FFFFFF;
  --border: #E2E8F0;
  --footer-bg: #0F1F3A;
  --footer-text: #F4F6FA;
  --shadow-sm: 0 2px 8px rgba(15, 31, 58, .06);
  --shadow-md: 0 8px 24px rgba(15, 31, 58, .12);
  --shadow-cta: 0 6px 18px rgba(232, 21, 45, .25);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(0.95rem, 0.4vw + 0.875rem, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* Fluid typography */
h1, .has-huge-font-size {
  font-size: clamp(1.875rem, 3vw + 1rem, 3.125rem) !important;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
}
h2, .has-x-large-font-size {
  font-size: clamp(1.4rem, 1.8vw + 0.85rem, 2.25rem) !important;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--primary);
}
h3, .has-large-font-size {
  font-size: clamp(1.15rem, 1vw + 0.9rem, 1.5rem) !important;
  line-height: 1.3;
  font-weight: 600;
  color: var(--primary);
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent-dark); }

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

/* Focus visible — accessibilité clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================
   ICON SPRITE
   ============================================ */
.icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.icon-lg { width: 64px; height: 64px; }
.icon-md { width: 40px; height: 40px; }
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 14px; height: 14px; }

/* ============================================
   TOP BAR (slim, navy, ~32px)
   ============================================ */
.cb-topbar {
  background: var(--primary);
  color: var(--footer-text);
  font-size: 0.8125rem;
  line-height: 1;
}
.cb-topbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  gap: 1rem;
}
.cb-topbar__left,
.cb-topbar__right {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--footer-text);
  text-decoration: none;
}
.cb-topbar a { color: var(--footer-text); text-decoration: none; }
.cb-topbar a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 640px) {
  .cb-topbar { font-size: 0.72rem; }
  .cb-topbar__inner { padding: 0.4rem 0.75rem; gap: 0.5rem; }
  .cb-topbar__left { flex: 1 1 auto; min-width: 0; }
  .cb-topbar__left span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cb-topbar__right { flex-shrink: 0; }
  .cb-topbar__right .cb-topbar__email-text { display: none; }
}

/* ============================================
   MAIN BAR — sticky white header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
  gap: 0.5rem;
}
.site-header__logo img,
.wp-block-site-logo img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 200px;
}
@media (max-width: 480px) {
  .site-header__logo img,
  .wp-block-site-logo img { height: 36px; max-width: 140px; }
}

/* Primary nav — desktop */
.site-nav-wrap { display: block; }
.site-nav {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}
.site-nav a:hover,
.site-nav .current-menu-item a,
.site-nav .current_page_item a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Header CTA group — double CTA (right side) */
.site-header__ctas {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* CTA buttons — outline (red) + filled (navy) */
.btn-cta-outline,
.btn-cta-filled {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all .15s ease;
  line-height: 1.1;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-cta-outline {
  background: var(--bg);
  color: var(--accent) !important;
  border-color: var(--accent);
}
.btn-cta-outline:hover {
  background: var(--accent-light);
  color: var(--accent-dark) !important;
  border-color: var(--accent-dark);
}
.btn-cta-filled {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
}
.btn-cta-filled:hover {
  background: #1a3057;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Bigger CTA for hero / sections */
.btn-cta-outline--xl,
.btn-cta-filled--xl {
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  border-radius: 10px;
}

/* Accent (red) version of filled, for very visible hero CTA */
.btn-cta-accent {
  background: var(--accent);
  color: #fff !important;
  border: 2px solid var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  transition: all .15s;
  box-shadow: var(--shadow-cta);
}
.btn-cta-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(232, 21, 45, .35);
}

/* Mobile menu toggle */
.menu-toggle {
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: none;
  cursor: pointer;
  position: relative;
  padding: 0;
  flex-shrink: 0;
}
.menu-toggle__bar {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: all .2s;
}
.menu-toggle__bar:nth-child(1) { top: 14px; }
.menu-toggle__bar:nth-child(2) { top: 21px; }
.menu-toggle__bar:nth-child(3) { top: 28px; }

/* Mobile drawer */
@media (max-width: 1024px) {
  .menu-toggle { display: inline-block; }
  .site-nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 31, 58, .1);
    padding: 1rem;
    border-top: 1px solid var(--border);
  }
  .menu-toggle[aria-expanded="true"] + .site-nav-wrap,
  .site-header__inner:has(.menu-toggle[aria-expanded="true"]) .site-nav-wrap {
    display: block;
  }
  .site-nav { flex-direction: column; gap: 0; align-items: stretch; }
  .site-nav li { border-bottom: 1px solid var(--border); }
  .site-nav li:last-child { border-bottom: none; }
  .site-nav a { display: block; padding: 0.85rem 0.5rem; border-bottom: 0; }
  .site-nav a:hover { color: var(--accent); border-bottom: 0; background: var(--surface); }
}
@media (max-width: 720px) {
  .site-header__ctas .btn-cta-outline { display: none; }
  .site-header__ctas .btn-cta-filled { padding: 0.55rem 0.85rem; font-size: 0.85rem; }
}

/* ============================================
   STICKY BOTTOM CTA TEL (mobile only)
   ============================================ */
.sticky-cta-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--accent);
  color: #fff !important;
  text-align: center;
  padding: 0.95rem 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none !important;
  z-index: 999;
  box-shadow: 0 -4px 14px rgba(15, 31, 58, .18);
}
.sticky-cta-mobile:hover { background: var(--accent-dark); color: #fff !important; }

@media (max-width: 768px) {
  .sticky-cta-mobile { display: block; }
  body { padding-bottom: 60px; }
}

/* ============================================
   HERO — 2-col layout, badges + h1 + ctas + photo
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--surface) 0%, #fff 70%);
  padding: clamp(2rem, 4vw, 4.5rem) 1rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(232, 21, 45, .06) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.hero__content { text-align: left; }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hero h1 {
  margin: 0 0 1rem;
  letter-spacing: -0.025em;
  color: var(--primary);
}
.hero h1 .hero__accent {
  color: var(--accent);
  white-space: nowrap;
}
.hero__subtitle {
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.18rem);
  color: var(--muted);
  margin: 0 0 1.75rem;
  line-height: 1.6;
  max-width: 56ch;
}
.hero__ctas {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hero__trust {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
  list-style: none;
  margin: 0; padding: 0;
}
.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.hero__trust .icon { color: var(--accent); }

/* Hero photo */
.hero-photo {
  width: 100%;
  aspect-ratio: 1280 / 600;
  border-radius: 14px;
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.hero-photo--placeholder {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3057 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero__content { text-align: left; }
  .hero-photo { aspect-ratio: 16 / 9; }
}

/* ============================================
   SECTION GENERIC
   ============================================ */
.section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 1rem;
  max-width: 1280px;
  margin: 0 auto;
}
.section--surface {
  background: var(--surface);
  max-width: 100%;
}
.section--surface .section__inner {
  max-width: 1280px;
  margin: 0 auto;
}
.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}
.section__eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}
.section__head h2 { margin: 0 0 0.75rem; }
.section__lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ============================================
   SERVICES GRID — 3-col × 3-row, hover lift
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  transition: all .2s ease;
  text-decoration: none !important;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.service-card__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--accent-light);
  flex-shrink: 0;
}
.service-card__icon-wrap .icon { width: 36px; height: 36px; }
.service-card h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1.18rem;
}
.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.55;
  flex-grow: 1;
}
.service-card__link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
}
.service-card:hover .service-card__link { color: var(--accent-dark); }

/* ============================================
   TRUST PILLARS — pourquoi nous choisir
   ============================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 800px) {
  .pillars-grid { grid-template-columns: 1fr; gap: 1rem; }
}
.pillar {
  text-align: center;
  background: #fff;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
}
.pillar__icon-wrap {
  display: inline-flex;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent-light);
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.pillar__icon-wrap .icon { width: 40px; height: 40px; }
.pillar h3 { margin: 0 0 0.5rem; font-size: 1.15rem; color: var(--primary); }
.pillar p { margin: 0; font-size: 0.95rem; color: var(--muted); line-height: 1.55; }

/* ============================================
   CTA BOTTOM BLOCK (full-width navy)
   ============================================ */
.cta-strip {
  background: var(--primary);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 4rem) 1rem;
  text-align: center;
}
.cta-strip__inner {
  max-width: 800px;
  margin: 0 auto;
}
.cta-strip h2 {
  color: #fff;
  margin: 0 0 0.75rem;
}
.cta-strip p {
  color: rgba(255,255,255,.85);
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
}
.cta-strip__buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.cta-strip .btn-cta-outline {
  background: transparent;
  color: #fff !important;
  border-color: #fff;
}
.cta-strip .btn-cta-outline:hover {
  background: #fff;
  color: var(--primary) !important;
  border-color: #fff;
}

/* ============================================
   BREADCRUMB + PAGE HEADER STRIP (single page)
   ============================================ */
.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb__separator {
  margin: 0 0.4rem;
  color: var(--border);
}

.page-header-strip {
  background: var(--primary);
  color: #fff;
  padding: clamp(2rem, 4vw, 3.5rem) 1rem;
  text-align: center;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-header-strip__inner {
  max-width: 900px;
  margin: 0 auto;
}
.page-header-strip h1,
.page-header-strip .wp-block-post-title {
  color: #fff !important;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}
.page-header-strip .icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
}
/* Override icon stroke to white on navy background */
.page-header-strip .icon * {
  stroke: #fff !important;
}
.page-header-strip .icon [fill="#E8152D"] {
  fill: #fff !important;
}

/* Related services strip */
.related-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .related-services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .related-services { grid-template-columns: 1fr; }
}
.related-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none !important;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all .15s;
}
.related-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  color: var(--text);
}
.related-card__icon-wrap {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--accent-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.related-card__icon-wrap .icon { width: 28px; height: 28px; }
.related-card__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  margin: 0;
}

/* ============================================
   FOOTER — 4 cols on navy bg
   ============================================ */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3.5rem 1rem 1rem;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto 2.5rem;
}
@media (max-width: 900px) {
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
}
@media (max-width: 480px) {
  .site-footer__cols { grid-template-columns: 1fr; gap: 1.5rem; }
}
.site-footer__col h3 {
  color: #fff;
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.site-footer__col a {
  color: var(--footer-text);
  text-decoration: none;
}
.site-footer__col a:hover {
  color: #fff;
  text-decoration: underline;
}
.site-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer__col li {
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.5;
}
.site-footer__col p {
  font-size: 0.92rem;
  margin: 0 0 0.55rem;
  line-height: 1.5;
  opacity: 0.85;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,.65);
}
.site-footer__bottom a { color: rgba(255,255,255,.85); }
.site-footer__bottom-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
}
.site-footer__bottom-cta:hover { color: var(--accent) !important; }

/* ============================================
   FAQ accordéon
   ============================================ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background: #fff;
  overflow: hidden;
}
.faq summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 3rem;
  color: var(--primary);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p, .faq details > div { padding: 0 1.25rem 1rem; color: var(--muted); }

/* ============================================
   PAGE TOC + content blocks
   ============================================ */
.page-toc {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
  max-width: 720px;
}
.page-toc__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.page-toc ol {
  margin: 0;
  padding-left: 1.5rem;
  list-style: decimal;
}
.page-toc li {
  margin-bottom: 0.4rem;
  font-size: 0.97rem;
}
.page-toc a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.page-toc a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

h2[id], h3[id] { scroll-margin-top: 90px; }

/* Home content (post-content) styling */
.home-content > * { max-width: 760px; margin-inline: auto; }
.home-content h2 { margin-top: 2.5rem; }
.home-content h3 { margin-top: 1.5rem; }
.home-content > .faq,
.home-content > .page-toc { max-width: none; }

/* Pricing table fallback */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 1rem 0;
}
.pricing-table th {
  background: var(--surface);
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: var(--primary);
}
.pricing-table td {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
}
.pricing-table tr:hover { background: var(--surface); }

/* ============================================
   ACCESSIBILITY UTILITIES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--accent);
  color: #fff !important;
  padding: 8px 14px;
  text-decoration: none !important;
  border-radius: 4px;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus { top: 6px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* WordPress core block alignment */
.alignwide { max-width: 1280px; margin-inline: auto; }
.alignfull { width: 100%; }
.wp-block-group { padding: 0; }

/* Generic block-content polish */
.wp-block-post-content > * + * { margin-top: 1.1rem; }
.wp-block-post-content ul, .wp-block-post-content ol { padding-left: 1.4rem; }
.wp-block-post-content li { margin-bottom: 0.4rem; }
.wp-block-post-content strong { color: var(--primary); }
