/*
Theme Name:  Zdrowy Bajtel
Theme URI:   https://zdrowybajtel.sum.edu.pl
Description: Premium WordPress theme dla programu profilaktycznego "Zdrowy Bajtel" — Katedra Żywienia SUM. Profilaktyka nadwagi i otyłości u dzieci w Zabrzu. Classic PHP theme, WCAG 2.1 AA, mobile-first.
Author:      Katedra Żywienia, Śląski Uniwersytet Medyczny w Katowicach
Author URI:  https://sum.edu.pl
Version:     1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: zdrowy-bajtel
Tags:        custom-logo, custom-colors, custom-menu, featured-images, accessibility-ready, mobile-first
*/

/* ══════════════════════════════════════════════════════════════
   ZDROWY BAJTEL — SYSTEM STYLU
   Konwersja 1:1 z Lovable (React/Tailwind → Vanilla CSS)
   Tokeny wyekstrahowane z src/styles.css (zb-* zmienne)
   ══════════════════════════════════════════════════════════════

   Struktura pliku:
    1.  CSS Custom Properties (Design Tokens)
    2.  WCAG — klasy na <html>
    3.  Reset & Base
    4.  Typografia
    5.  Dostępność (focus, skip link)
    6.  Layout
    7.  Sticky Footer
    8.  Accessibility Bar (top bar)
    9.  Site Header (2 rzędy)
   10.  Footer
   11.  Page Hero (wewnętrzne strony)
   12.  WordPress Core
   13.  Utilities & Print
   ══════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES — z Lovable styles.css
   ──────────────────────────────────────────────────────────────
   Oryginalne zmienne Lovable: --color-zb-* → mapuję na --zb-*
   Gradient i shadow zachowane 1:1
   ────────────────────────────────────────────────────────────── */
:root {
  /* ── Kolory brand ── */
  --zb-green:        #2E7D32;
  --zb-green-mid:    #388E3C;
  --zb-green-light:  #66BB6A;
  --zb-green-pale:   #E8F5E9;
  --zb-green-dark:   #1B5E20;
  --zb-orange:       #E65100;
  --zb-orange-light: #FF8F00;
  --zb-orange-pale:  #FFF8E1;
  --zb-blue:         #11395c;
  --zb-purple:       #6A1B9A;
  --zb-purple-pale:  #F3E5F5;
  --zb-navy:         #1A2F4E;
  --zb-text:         #2D3748;
  --zb-muted:        #718096;
  --zb-border:       #DDE8DA;
  --zb-bg:           #FBFFFE;
  --zb-gray-bg:      #F5F7F5;

  /* ── Gradienty (1:1 z Lovable) ── */
  --gradient-hero:   linear-gradient(135deg, #1B5E20 0%, #2E7D32 55%, #388E3C 100%);
  --gradient-accent: linear-gradient(135deg, #E65100, #FF8F00);
  --gradient-card:   linear-gradient(135deg, rgba(46,125,50,.06), rgba(230,81,0,.04));

  /* ── Cienie ── */
  --shadow-card:  0 4px 20px rgba(46,125,50,.08);
  --shadow-hover: 0 12px 40px rgba(46,125,50,.16);
  --shadow-navy:  0 8px 32px rgba(26,47,78,.20);
  --shadow-header: 0 2px 12px rgba(46,125,50,.06);

  /* ── Zaokrąglenia (z Lovable --radius-*) ── */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  28px;
  --r-3xl:  36px;
  --r-full: 9999px;

  /* ── Typografia ── */
  --font-display: 'Nunito', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter',  system-ui, -apple-system, sans-serif;

  /* ── Spacing ── */
  --container-max:  1280px;
  --container-px:   1.5rem;
  --section-y:      5rem;    /* 80px — py-20 */
  --section-y-md:   6rem;    /* 96px — md:py-24 */

  /* ── Layout ── */
  --header-bar-h:   44px;   /* accessibility bar */
  --header-logos-h: 64px;   /* logos row */
  --header-nav-h:   56px;   /* nav row */
  --header-h:       120px;  /* suma logo + nav */

  /* ── WCAG font scale (zmieniana przez JS) ── */
  --zb-font-scale: 16px;

  /* ── Focus ── */
  --focus-ring: 3px solid var(--zb-green);
  --focus-offset: 2px;

  /* ── Transitions ── */
  --tr: 200ms ease;
  --tr-slow: 350ms ease;
}


/* ──────────────────────────────────────────────────────────────
   2. WCAG — klasy na <html> (sterowane przez JS)
   ────────────────────────────────────────────────────────────── */

/* Font scale — ustawiany inline przez accessibility-bar.js */
html { font-size: var(--zb-font-scale, 16px); }

/* Wysoki kontrast */
html.zb-contrast {
  filter: contrast(1.35) saturate(1.1);
}
html.zb-contrast .site-header { background: #fff !important; }

/* Podkreśl linki */
html.zb-underline a { text-decoration: underline !important; }


/* ──────────────────────────────────────────────────────────────
   3. RESET & BASE
   ────────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

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

img, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: var(--zb-green); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--zb-green-mid); }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
hr { border: none; border-top: 1px solid var(--zb-border); margin-block: 2rem; }


/* ──────────────────────────────────────────────────────────────
   4. TYPOGRAFIA
   ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  color: var(--zb-navy);
  letter-spacing: -0.02em;
}

/* Fluid headings — clamp(min, vw, max) */
h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p { color: var(--zb-muted); line-height: 1.7; }
p + p { margin-top: 1rem; }
strong, b { color: var(--zb-navy); font-weight: 700; }

/* Treść edytora */
.entry-content h2,
.page-content  h2 { margin: 2.5rem 0 1rem; }
.entry-content h3,
.page-content  h3 { margin: 2rem 0 0.75rem; }
.entry-content p,
.page-content  p  { margin-bottom: 1.25rem; }
.entry-content ul,
.entry-content ol,
.page-content  ul,
.page-content  ol { list-style: initial; padding-left: 1.5rem; margin: 1rem 0; }
.entry-content li,
.page-content  li { margin-bottom: 0.5rem; }
.entry-content a,
.page-content  a  { color: var(--zb-green); text-decoration: underline; }


/* ──────────────────────────────────────────────────────────────
   5. DOSTĘPNOŚĆ
   ────────────────────────────────────────────────────────────── */

/* Skip link — Tab → widoczny, WCAG 2.4.1 */
.skip-link {
  position: absolute;
  top: -200px;
  left: 1rem;
  padding: 0.625rem 1.25rem;
  background: var(--zb-green);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  z-index: 9999;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; outline: var(--focus-ring); outline-offset: 0; }

/* SR-only */
.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;
}
.sr-only-focusable:focus { position: static; width: auto; height: auto; overflow: visible; clip: auto; }

/* Focus — globalny */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: var(--r-sm);
}


/* ──────────────────────────────────────────────────────────────
   6. LAYOUT
   ────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

section { padding-block: var(--section-y); }
@media (min-width: 768px) { section { padding-block: var(--section-y-md); } }

/* Kolory sekcji */
.section--green-dark  { background: var(--zb-green-dark); color: #fff; }
.section--green-pale  { background: #F1F8F1; }
.section--orange-pale { background: var(--zb-orange-pale); }
.section--white       { background: #fff; }
.section--gray        { background: var(--zb-gray-bg); }
.section--navy        { background: var(--zb-navy); color: #fff; }


/* ──────────────────────────────────────────────────────────────
   7. STICKY FOOTER
   .site-wrapper = flex container. .site-main = flex: 1
   ────────────────────────────────────────────────────────────── */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main    { flex: 1 0 auto; }
.site-footer  { flex-shrink: 0; }


/* ──────────────────────────────────────────────────────────────
   8. ACCESSIBILITY BAR (top, bg-zb-navy)
   Lovable: <AccessibilityBar /> — nav bar z A/A+/A++ i kontrastem
   ────────────────────────────────────────────────────────────── */
.accessibility-bar {
  background: var(--zb-navy);
  color: #fff;
  font-size: 0.75rem;
  position: relative;
  z-index: 50;
}
.accessibility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
  min-height: var(--header-bar-h);
}
.accessibility-bar__label {
  color: rgba(255,255,255,.60);
  font-size: 0.75rem;
}
@media (max-width: 639px) { .accessibility-bar__label { display: none; } }

.accessibility-bar__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.accessibility-bar__sep {
  color: rgba(255,255,255,.30);
  padding-inline: 0.25rem;
}
@media (max-width: 480px) { .accessibility-bar__sep { display: none; } }

/* Przyciski A/A+/A++ i Wysoki kontrast */
.a11y-btn {
  padding: 0.125rem 0.5rem;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  color: rgba(255,255,255,.80);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  transition: background var(--tr);
}
.a11y-btn:hover { background: rgba(255,255,255,.12); }
.a11y-btn.is-active,
.a11y-btn[aria-pressed="true"] { background: rgba(255,255,255,.20); }
.a11y-btn:focus-visible { outline: 2px solid var(--zb-green-light); outline-offset: 1px; }


/* ──────────────────────────────────────────────────────────────
   9. SITE HEADER — 2 rzędy (identycznie jak Lovable)
   Row 1: logos + site name
   Row 2: navigation + CTA
   ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--zb-border);
  box-shadow: var(--shadow-header);
  transition: box-shadow var(--tr-slow);
}
.site-header.is-scrolled { box-shadow: 0 4px 24px rgba(46,125,50,.12); }

/* Rząd 1: loga + site name */
.header-logos-row {
  border-bottom: 1px solid rgba(221,232,218,.60);
  padding-block: 0.75rem;
}
.header-logos-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo link (wraps all 3 placeholders) */
.header-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo-link:focus-visible { outline: var(--focus-ring); border-radius: var(--r-sm); }

/* Nowa struktura: loga z opcjonalnymi linkami (zb_logo_*_url w Customizer) */
.header-logos-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.header-logo-link-wrap {
  display: block;
  line-height: 0;
  border-radius: var(--r-sm);
  transition: opacity var(--tr);
}
a.header-logo-link-wrap:hover { opacity: .72; }
a.header-logo-link-wrap:focus-visible {
  outline: 3px solid var(--zb-green);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Pojedynczy placeholder / obrazek logo */
.header-logo-item {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-logo-item img {
  height: 48px;
  width: auto;
  display: block;
}
/* Placeholder gdy brak obrazka */
.header-logo-placeholder {
  height: 48px;
  padding-inline: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--zb-border);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--zb-muted);
  white-space: nowrap;
}

/* Separator między logami */
.header-logo-sep {
  width: 1px;
  height: 2rem;
  background: var(--zb-border);
  flex-shrink: 0;
}
@media (max-width: 479px) { .header-logo-sep + .header-logo-item:last-child { display: none; } }

/* Site name (prawa strona row 1) */
.header-site-name {
  text-align: right;
  text-decoration: none;
  flex-shrink: 0;
}
@media (max-width: 767px) { .header-site-name { display: none; } }
.header-site-name__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--zb-navy);
  line-height: 1;
  display: block;
}
.header-site-name__sub {
  font-size: 0.6875rem;
  color: var(--zb-muted);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.375rem;
}
.header-site-name__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--zb-green);
  display: inline-block;
  flex-shrink: 0;
}

/* Rząd 2: nawigacja + CTA */
.header-nav-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-nav-h);
}

/* Nawigacja desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-menu > li > a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--zb-navy);
  text-decoration: none;
  transition: background var(--tr), color var(--tr);
  white-space: nowrap;
}
.nav-menu > li > a:hover { background: var(--zb-green-pale); color: var(--zb-green); }
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-page-ancestor > a {
  background: var(--zb-green-pale);
  color: var(--zb-green);
}
.nav-menu > li > a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* CTA "Zapisz dziecko" */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--r-full);
  background: var(--zb-green);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  margin-left: auto;
  white-space: nowrap;
  transition: background var(--tr), transform 0.15s;
  flex-shrink: 0;
}
.header-cta:hover { background: var(--zb-green-mid); color: #fff; transform: translateY(-1px); }
.header-cta:focus-visible { outline: 2px solid var(--zb-green); outline-offset: 2px; }

/* Hamburger button */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  border-radius: var(--r-md);
  color: var(--zb-navy);
  cursor: pointer;
  transition: background var(--tr);
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--zb-green-pale); }
.nav-toggle:focus-visible { outline: var(--focus-ring); }
.nav-toggle svg { width: 24px; height: 24px; }

/* Mobile nav */
@media (max-width: 1023px) {
  .nav-menu,
  .header-cta.desktop-only { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
}

/* Mobile overlay menu */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}
.mobile-menu-overlay.is-open { display: block; }
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26,47,78,.50);
}
.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(85%, 384px);
  background: #fff;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 40px rgba(0,0,0,.15);
  transform: translateX(100%);
  transition: transform var(--tr-slow);
}
.mobile-menu-overlay.is-open .mobile-menu-panel { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.mobile-menu-title {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--zb-navy);
  font-size: 1.125rem;
}
.mobile-menu-close {
  width: 36px; height: 36px;
  border: none; background: none;
  border-radius: var(--r-md);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--zb-navy);
  transition: background var(--tr);
}
.mobile-menu-close:hover { background: var(--zb-green-pale); }
.mobile-menu-close:focus-visible { outline: var(--focus-ring); }
.mobile-menu-close svg { width: 20px; height: 20px; }

.mobile-nav-list { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav-list a {
  display: block;
  padding: 0.75rem 0.75rem;
  border-radius: var(--r-lg);
  font-size: 1rem;
  font-weight: 600;
  color: var(--zb-navy);
  text-decoration: none;
  transition: background var(--tr);
}
.mobile-nav-list a:hover,
.mobile-nav-list .current-menu-item a { background: var(--zb-green-pale); color: var(--zb-green); }
.mobile-nav-cta {
  display: block;
  margin-top: 1rem;
  padding: 0.875rem;
  border-radius: var(--r-full);
  background: var(--zb-green);
  color: #fff;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}

/* Admin bar — sticky header fix */
@media screen {
  .admin-bar .site-header { top: 32px; }
  @media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
}


/* ──────────────────────────────────────────────────────────────
   10. FOOTER — bg-zb-navy, 4 kolumny
   ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--zb-navy);
  color: rgba(255,255,255,.80);
  margin-top: 6rem;
}
.footer-inner {
  padding-block: 4rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 1023px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px)  { .footer-inner { grid-template-columns: 1fr; } }

/* Logo w stopce */
.footer-logo-box {
  height: 48px;
  width: 8rem;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
}
.footer-logo-box img { height: 100%; width: auto; }
.footer-site-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  display: block;
  margin-bottom: 0.75rem;
}
.footer-description {
  font-size: 0.875rem;
  color: rgba(255,255,255,.70);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--zb-green-light);
  margin-bottom: 1rem;
}

.footer-nav-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav-list a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.80);
  text-decoration: none;
  transition: color var(--tr);
}
.footer-nav-list a:hover { color: #fff; }

.footer-address { font-style: normal; }
.footer-address-row {
  font-size: 0.875rem;
  color: rgba(255,255,255,.80);
  line-height: 1.6;
  margin-bottom: 0.25rem;
}
.footer-address-row a { color: rgba(255,255,255,.80); transition: color var(--tr); }
.footer-address-row a:hover { color: #fff; }

.footer-info { font-size: 0.875rem; color: rgba(255,255,255,.70); line-height: 1.6; margin-bottom: 0.25rem; }
.footer-info a { color: rgba(255,255,255,.80); text-decoration: underline; }
.footer-info a:hover { color: #fff; }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
}
.footer-bottom-inner {
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,.55);
}
.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
}
.footer-bottom-links a { color: rgba(255,255,255,.55); text-decoration: none; transition: color var(--tr); }
.footer-bottom-links a:hover { color: #fff; }


/* ──────────────────────────────────────────────────────────────
   11. PAGE HERO (wewnętrzne strony)
   Lovable: gradient-hero bg, breadcrumb, H1, subtitle
   ────────────────────────────────────────────────────────────── */
.page-hero {
  background: var(--gradient-hero);
  color: #fff;
  padding-block: 4rem 5rem;
}
@media (min-width: 768px) { .page-hero { padding-block: 5rem 6rem; } }
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,.70);
  margin-bottom: 1rem;
}
.page-hero__breadcrumb a { color: rgba(255,255,255,.70); text-decoration: none; }
.page-hero__breadcrumb a:hover { color: #fff; }
.page-hero__breadcrumb svg { width: 14px; height: 14px; flex-shrink: 0; }
.page-hero__title { color: #fff; margin-bottom: 1rem; }
.page-hero__subtitle { font-size: 1.125rem; color: rgba(255,255,255,.85); max-width: 42rem; line-height: 1.6; }


/* ──────────────────────────────────────────────────────────────
   12. WORDPRESS CORE
   ────────────────────────────────────────────────────────────── */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { text-align: center; margin-inline: auto; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 0 0 1rem; } }

.gallery { display: grid; gap: 1rem; }
.gallery-columns-2 { grid-template-columns: repeat(2,1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3,1fr); }
.gallery-item img { border-radius: var(--r-md); width: 100%; }
@media (max-width: 600px) { .gallery-columns-3 { grid-template-columns: repeat(2,1fr); } }

/* Pagination */
.nav-links, .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3rem;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1px solid var(--zb-border);
  background: #fff;
  color: var(--zb-navy);
  text-decoration: none;
  transition: background var(--tr), color var(--tr), border-color var(--tr);
}
.page-numbers.current,
.page-numbers:hover { background: var(--zb-green); color: #fff; border-color: var(--zb-green); }
.page-numbers.dots { background: transparent; border: none; pointer-events: none; }

/* Page in progress placeholder */
.page-in-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 1.5rem;
  text-align: center;
  background: var(--zb-green-pale);
  border: 1.5px dashed var(--zb-green-light);
  border-radius: var(--r-2xl);
  margin: 2.5rem 0;
}
.page-in-progress p {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--zb-navy);
  margin: 0;
}

/* Section label (eyebrow) */
.section-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--zb-green);
  margin-bottom: 0.75rem;
}
.section-label--orange { color: var(--zb-orange); }


/* ──────────────────────────────────────────────────────────────
   13. UTILITIES & PRINT
   ────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-white  { color: #fff !important; }
.text-navy   { color: var(--zb-navy) !important; }
.text-green  { color: var(--zb-green) !important; }
.text-muted  { color: var(--zb-muted) !important; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; } }

/* Buttons base */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--tr), color var(--tr), border-color var(--tr), transform 0.15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }

.btn-primary {
  background: #fff;
  color: var(--zb-green);
  border-color: #fff;
}
.btn-primary:hover { background: var(--zb-green-pale); color: var(--zb-green); border-color: var(--zb-green-pale); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.50);
}
.btn-outline-white:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.80); }

.btn-green {
  background: var(--zb-green);
  color: #fff;
  border-color: var(--zb-green);
}
.btn-green:hover { background: var(--zb-green-mid); border-color: var(--zb-green-mid); color: #fff; }

/* Card base */
.card {
  background: #fff;
  border: 1px solid var(--zb-border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--tr), transform var(--tr);
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }

/* Icon circle */
.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--zb-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-circle svg { width: 24px; height: 24px; color: var(--zb-green); }
.icon-circle--orange { background: var(--zb-orange-pale); }
.icon-circle--orange svg { color: var(--zb-orange); }

@media print {
  .site-header, .site-footer,
  .accessibility-bar, .wcag-widget,
  .cookie-banner, .skip-link { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .75em; }
  .container { max-width: 100%; padding: 0; }
}
