/*
Theme Name: Eccleshall CFRs
Theme URI: https://www.eccleshallcfrs.org.uk/
Author: NCS Productions Ltd
Description: Custom theme for Eccleshall Community First Responders — events, fundraising appeals, news and supporters, all editable from the WordPress dashboard.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ecfr
*/

:root {
  --brand: #1b4332;
  --brand-700: #143326;
  --brand-500: #2d6a4f;
  --brand-300: #74b49b;
  --mint: #e7f2ec;
  --mint-2: #f2f8f4;
  --hivis: #ffd23f;
  --hivis-ink: #3a2f00;
  --red: #c8102e;
  --red-700: #a00d25;
  --ink: #15211b;
  --body: #34423b;
  --muted: #64746c;
  --line: #dde6e0;
  --paper: #fbfaf6;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 40, 30, .06), 0 8px 24px rgba(20, 40, 30, .08);
  --shadow-lg: 0 2px 4px rgba(20, 40, 30, .06), 0 18px 48px rgba(20, 40, 30, .14);
  --wrap: 1180px;
  --head: "Barlow", "Arial Narrow", system-ui, sans-serif;
  --text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-500); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 {
  font-family: var(--head);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto; z-index: 999; top: 8px; left: 8px;
  background: var(--white); padding: .6rem 1rem; border-radius: var(--radius-sm);
}
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tint { background: var(--mint-2); }
.section-dark { background: var(--brand); color: #d9ebe1; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--head); font-weight: 700; font-size: .85rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand-500);
  margin-bottom: .8rem;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--hivis); border-radius: 2px; }
.section-dark .eyebrow { color: var(--hivis); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { font-size: 1.15rem; color: var(--muted); }
.section-dark .section-head p { color: #b9d4c6; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head-row .section-head { margin-bottom: 0; }

/* Battenburg stripe — the hi-vis chequer used on UK emergency vehicles */
.battenburg {
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--hivis) 0 40px, var(--brand-500) 40px 80px);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--head); font-weight: 700; font-size: 1.05rem; letter-spacing: .01em;
  padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-700); color: var(--white); }
.btn-green { background: var(--brand); color: var(--white); }
.btn-green:hover { background: var(--brand-700); color: var(--white); }
.btn-hivis { background: var(--hivis); color: var(--hivis-ink); }
.btn-hivis:hover { background: #ffdc66; color: var(--hivis-ink); }
.btn-ghost { border-color: currentColor; color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand); border-color: var(--brand); color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: var(--white); background: transparent; }
.btn-ghost-light:hover { background: var(--white); color: var(--brand); border-color: var(--white); }
.btn-lg { font-size: 1.15rem; padding: 1rem 1.7rem; }
.btn-sm { font-size: .95rem; padding: .55rem 1rem; }
.link-arrow { font-family: var(--head); font-weight: 700; text-decoration: none; color: var(--brand-500); }
.link-arrow::after { content: " →"; transition: margin .15s; }
.link-arrow:hover::after { margin-left: 4px; }

/* Emergency bar */
.emergency-bar {
  background: var(--red); color: var(--white); font-size: .95rem;
  text-align: center; padding: 7px 16px; font-weight: 600;
}
.emergency-bar strong { font-family: var(--head); font-size: 1.05rem; letter-spacing: .03em; }
.emergency-bar a { color: var(--white); }

/* Header */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand-text { font-family: var(--head); font-weight: 800; color: var(--brand); font-size: 1.2rem; line-height: 1.05; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block; padding: .5rem .8rem; border-radius: 999px;
  font-family: var(--head); font-weight: 600; font-size: 1.05rem;
  color: var(--ink); text-decoration: none;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-menu-ancestor > a { background: var(--mint); color: var(--brand); }
.main-nav .menu-donate a { background: var(--red); color: var(--white); padding: .55rem 1.2rem; margin-left: 6px; }
.main-nav .menu-donate a:hover { background: var(--red-700); color: var(--white); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  width: 46px; height: 46px; border-radius: 10px;
}
.nav-toggle span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-top: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 12px 20px 20px;
  }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: .8rem 1rem; font-size: 1.15rem; border-radius: 10px; }
  .main-nav .menu-donate a { margin: 8px 0 0; text-align: center; }
  .brand img { height: 44px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: var(--brand-700);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,40,28,.96) 0%, rgba(14,40,28,.82) 45%, rgba(14,40,28,.25) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(64px, 10vw, 120px); }
.hero-content { max-width: 640px; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--hivis); }
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #d7e9df; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 22px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: .4rem .9rem .4rem .45rem; border-radius: 999px; font-size: .95rem; color: #e9f4ee;
}
.hero-badge b { background: var(--hivis); color: var(--hivis-ink); border-radius: 999px; padding: .1rem .6rem; font-family: var(--head); font-size: .85rem; letter-spacing: .05em; }

/* Stats strip */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--brand); line-height: 1; }
.stat-label { color: var(--muted); font-size: .98rem; margin-top: 6px; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-body > :last-child { margin-bottom: 0; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--brand-500); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mint); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-meta { font-size: .92rem; color: var(--muted); margin-bottom: .5rem; }
.card-foot { margin-top: auto; padding-top: 12px; }

/* Split layout */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Events */
.event-feature {
  display: grid; grid-template-columns: 1fr 1.1fr; background: var(--white);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.event-feature-media { position: relative; min-height: 300px; background: var(--brand); }
.event-feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-feature-body { padding: clamp(24px, 4vw, 44px); }
.event-feature .tag { margin-bottom: 14px; }
@media (max-width: 860px) { .event-feature { grid-template-columns: 1fr; } .event-feature-media { min-height: 220px; } }

.datebadge {
  flex: none; width: 68px; border-radius: 12px; overflow: hidden; text-align: center;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); font-family: var(--head);
}
.datebadge .m { background: var(--red); color: var(--white); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 0; }
.datebadge .d { font-weight: 800; font-size: 1.8rem; color: var(--ink); line-height: 1.15; padding-top: 4px; }
.datebadge .w { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding-bottom: 6px; }
.event-feature-media .datebadge { position: absolute; top: 18px; left: 18px; z-index: 2; }

.event-list { display: grid; gap: 14px; }
.event-row {
  display: flex; gap: 20px; align-items: center; padding: 18px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.event-row:hover { border-color: var(--brand-300); box-shadow: var(--shadow); transform: translateY(-1px); color: inherit; }
.event-row h3 { margin: 0 0 .25rem; font-size: 1.25rem; }
.event-row .info { flex: 1; min-width: 0; }
.event-row .thumb { flex: none; width: 120px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--mint); }
.event-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .event-row .thumb { display: none; } }
.meta-line { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: .95rem; }
.meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.meta-line svg { width: 16px; height: 16px; flex: none; color: var(--brand-500); }
.tag {
  display: inline-block; font-family: var(--head); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--hivis); color: var(--hivis-ink); padding: .25rem .65rem; border-radius: 999px;
}
.tag-green { background: var(--mint); color: var(--brand); }
.tag-grey { background: #eceeed; color: var(--muted); }
.empty-state {
  text-align: center; padding: 48px 24px; background: var(--white); border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted);
}

.event-facts { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.event-facts dl { margin: 0 0 20px; display: grid; gap: 14px; }
.event-facts dt { font-family: var(--head); font-weight: 700; color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.event-facts dd { margin: 2px 0 0; }
.event-facts .btn { width: 100%; margin-top: 8px; }
.event-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.event-layout aside { position: sticky; top: 100px; }
@media (max-width: 900px) { .event-layout { grid-template-columns: 1fr; } .event-layout aside { position: static; } }

/* Appeals / progress */
.appeal {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
}
.appeal-media { position: relative; min-height: 280px; background: var(--brand); }
.appeal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.appeal-body { padding: clamp(24px, 4vw, 44px); }
.appeal-body h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
@media (max-width: 860px) { .appeal { grid-template-columns: 1fr; } .appeal-media { min-height: 200px; } }
.progress { margin: 22px 0 8px; }
.progress-track { height: 14px; background: var(--mint); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--brand)); border-radius: 999px; position: relative; min-width: 14px; }
.progress-fill::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.14) 0 10px, transparent 10px 20px);
}
.progress-nums { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; gap: 12px; flex-wrap: wrap; }
.progress-nums .raised { font-family: var(--head); font-weight: 800; font-size: 1.6rem; color: var(--brand); }
.progress-nums .target { color: var(--muted); }
.appeal-card .progress { margin-top: auto; }
.appeal-card .card-body { gap: 4px; }

/* Ways to help */
.help-card { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.help-card .ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--mint); color: var(--brand);
}
.help-card .ico svg { width: 28px; height: 28px; }
.help-card.is-red .ico { background: #fde8eb; color: var(--red); }
.help-card.is-yellow .ico { background: #fff4c9; color: #8a6d00; }
.help-card p { color: var(--muted); }
.help-card .link-arrow { margin-top: auto; }

/* Sponsorship tiers */
.tier { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.tier h3 { margin-bottom: .3rem; font-size: 1.2rem; }
.tier p { margin: 0; color: var(--muted); font-size: 1rem; }
.tier .price { font-family: var(--head); font-weight: 800; font-size: 1.7rem; color: var(--brand); white-space: nowrap; }

/* CPR steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--head); font-weight: 800; font-size: 1.3rem; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 50%; background: var(--hivis); color: var(--hivis-ink); margin-bottom: 16px;
}
.step p { color: #c4dccf; margin: 0; }
.section-tint .step, .section .steps-light .step { background: var(--white); border-color: var(--line); }
.steps-light .step p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Team */
.team-card { text-align: center; }
.team-card .photo { width: 140px; height: 140px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; border: 4px solid var(--white); box-shadow: var(--shadow); background: var(--mint); }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin: 0; font-size: 1.2rem; }
.team-card .role { color: var(--muted); }

/* Supporters */
.supporters { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.supporter {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  text-decoration: none; color: var(--muted); min-height: 140px; transition: box-shadow .15s, transform .15s;
}
a.supporter:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.supporter img { max-height: 70px; width: auto; object-fit: contain; }
.supporter.is-dark { background: var(--ink); }
.supporter.is-dark p { color: #b9c6bf; }
.supporter p { margin: 0; font-size: .92rem; }
.supporter strong { color: var(--ink); font-family: var(--head); }

/* Page header */
.page-hero { background: var(--brand); color: #d4e8dc; position: relative; overflow: hidden; }
.page-hero .wrap { padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(48px, 7vw, 84px); position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero p { font-size: 1.2rem; max-width: 640px; margin: 0; }
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%;
  border: 50px solid rgba(255,255,255,.05);
}
.breadcrumb { font-size: .92rem; margin-bottom: 14px; color: #a9cbb9; }
.breadcrumb a { color: #d4e8dc; }

/* Prose */
.prose { font-size: 1.1rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.9rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 1.5em 0; padding: 1em 1.4em; border-left: 4px solid var(--hivis); background: var(--white); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose > :first-child { margin-top: 0; }
.prose .wp-block-image { margin: 1.5em 0; }
.callout {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius);
  background: #fde8eb; color: #6e0918; border: 1px solid #f6c3cb;
}
.callout svg { width: 24px; height: 24px; flex: none; color: var(--red); margin-top: 2px; }
.callout p { margin: 0; }

/* Bank details */
.bank { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.bank div { background: var(--white); padding: 18px 20px; }
.bank span { display: block; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: var(--head); font-weight: 700; }
.bank strong { font-family: var(--head); font-size: 1.3rem; color: var(--ink); letter-spacing: .02em; }
@media (max-width: 700px) { .bank { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: 16px; }
.form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form input[type=text], .form input[type=email], .form textarea, .form select {
  width: 100%; font: inherit; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(45,106,79,.15); }
.form textarea { min-height: 160px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; }
.notice-ok { background: var(--mint); color: var(--brand); border: 1px solid #bcd9c8; }
.notice-err { background: #fde8eb; color: #6e0918; border: 1px solid #f6c3cb; }

/* Donate CTA band */
.cta-band { background: var(--red); color: #ffe3e7; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.14), transparent 45%);
}
.cta-band .wrap { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { color: var(--white); margin-bottom: .2em; }
.cta-band p { margin: 0; font-size: 1.15rem; max-width: 560px; }
.cta-band .btn-hivis { font-size: 1.15rem; padding: 1rem 1.8rem; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers { padding: .5rem .9rem; border-radius: 10px; border: 1px solid var(--line); background: var(--white); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--brand); color: var(--white); border-color: var(--brand); }

/* Footer */
.site-footer { background: var(--ink); color: #a9b8b0; font-size: .98rem; }
.site-footer a { color: #dfe9e4; text-decoration: none; }
.site-footer a:hover { color: var(--hivis); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 40px; }
.footer-grid h4 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-logo { background: var(--white); display: inline-block; padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; }
.footer-logo img { height: 46px; width: auto; }
.footer-999 { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 18px; }
.footer-999 .big { font-family: var(--head); font-weight: 800; font-size: 2.4rem; color: var(--white); line-height: 1; }
.footer-999 .big span { color: #ff6b7f; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--hivis); color: var(--ink); }
.social svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: 40px; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; }
.stack > * + * { margin-top: 16px; }
.alignwide, .alignfull { max-width: 100%; }

/* Logo lock-up (mark + live text + award) */
.lockup { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.lockup-mark { height: 56px; width: auto; flex: none; }
.lockup-name { display: flex; flex-direction: column; line-height: 1.02; font-family: var(--head); }
.lockup-name .l1, .lockup-name .l2 { font-weight: 700; font-size: 1.28rem; letter-spacing: -.01em; color: var(--ink); }
.lockup-name .l3 { font-family: var(--text); font-weight: 600; font-size: .74rem; color: var(--brand-500); margin-top: 5px; letter-spacing: .01em; white-space: nowrap; }
.lockup-name .l3 i { font-style: normal; color: var(--line); margin: 0 3px; }
.lockup-award { display: flex; align-items: center; gap: 8px; padding-left: 12px; margin-left: 2px; border-left: 1px solid var(--line); }
.lockup-crown { height: 40px; width: auto; }
.lockup-award span { font-size: .68rem; line-height: 1.2; color: #6b3fa0; font-weight: 600; }
.site-header .brand .lockup-mark { height: 56px; }
.site-header .brand .lockup-crown { height: 40px; }
.footer-logo .lockup-mark { height: 46px; }
.footer-logo .lockup-crown { height: 34px; }
@media (max-width: 1100px) { .lockup-header .lockup-award { display: none; } }
@media (max-width: 520px) {
  .site-header .brand .lockup-mark { height: 44px; }
  .lockup-name .l1, .lockup-name .l2 { font-size: 1.05rem; }
  .lockup-header .lockup-name .l3 { display: none; }
}
.footer-logo { max-width: 100%; }
@media (max-width: 700px) {
  .lockup-footer .lockup-award { display: none; }
  .lockup-footer .lockup-name .l3 { white-space: normal; }
}