/* Kasi People's First — Civic Editorial Theme */
:root {
  --editorial-paper: #f4f1e9;
  --editorial-paper-light: #fbfaf6;
  --editorial-ink: #18231e;
  --editorial-muted: #59645e;
  --editorial-green: #174b34;
  --editorial-green-dark: #0e3424;
  --editorial-gold: #c99835;
  --editorial-gold-ink: #8a6518;
  --editorial-rule: #c9cec8;
  --editorial-display: Georgia, 'Times New Roman', serif;
  --editorial-sans: 'Segoe UI', Arial, sans-serif;
}

html {
  font-size: 16px;
}

body {
  color: var(--editorial-ink);
  background: var(--editorial-paper-light);
  font-family: var(--editorial-sans);
  line-height: 1.65;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--editorial-ink);
  font-family: var(--editorial-display);
  letter-spacing: -0.025em;
}

p {
  text-wrap: pretty;
}

.responsive-picture {
  display: block;
  width: 100%;
  height: 100%;
}

header {
  background: rgba(251, 250, 246, 0.97);
  border-bottom: 1px solid var(--editorial-rule);
  box-shadow: none;
  transition: box-shadow 220ms ease, background-color 220ms ease;
}

header:hover {
  box-shadow: none;
}

header.is-scrolled,
header.is-scrolled:hover {
  background: rgba(251, 250, 246, 0.99);
  box-shadow: 0 8px 28px rgba(14, 52, 36, 0.1);
}

.nav-container {
  min-height: 78px;
  padding-block: 0.8rem;
}

.logo {
  display: inline-grid;
  gap: 0.22rem;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.logo-name {
  display: block;
}

.logo-subtext {
  display: block;
  color: var(--editorial-green);
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: 0.09em;
}

.logo::after {
  bottom: -0.42rem;
}

.nav-menu {
  gap: 0.15rem;
}

.nav-menu a,
.dropdown-toggle {
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.nav-menu a.is-current,
.dropdown-toggle.has-current {
  color: var(--editorial-green);
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--editorial-gold);
}

.btn-nav-primary {
  border-radius: 2px;
  background: var(--editorial-green) !important;
  box-shadow: none !important;
}

.dropdown-menu {
  margin: 0;
  padding-inline-start: 0;
  list-style: none;
  border-radius: 0;
  border-top: 3px solid var(--editorial-gold);
  box-shadow: 0 14px 35px rgba(12, 29, 21, 0.13);
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dropdown-menu li::marker {
  content: "";
}

.hero,
body[class^='page-'] > .hero {
  min-height: 430px;
  padding: clamp(5rem, 9vw, 8rem) 1.5rem;
  place-items: end start;
  text-align: left;
  border-bottom: 6px solid var(--editorial-gold);
}

.hero--image {
  min-height: min(720px, 78vh);
}

body .hero.hero--image {
  animation: editorialHeroDrift 18s ease-in-out infinite alternate;
}

.hero-content {
  width: min(100%, 1200px);
  margin-inline: auto;
}

.hero h1 {
  max-width: 950px;
  margin-bottom: 1.25rem;
  font-size: clamp(3.5rem, 7.5vw, 6.8rem);
  font-weight: 600;
  line-height: 0.96;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.28);
}

body[class^='page-'] .hero h1 {
  font-size: clamp(3.4rem, 7vw, 6rem);
}

.hero p {
  max-width: 720px;
  margin-inline: 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-eyebrow,
.section-kicker {
  font-family: var(--editorial-sans);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero-eyebrow {
  color: var(--editorial-gold);
}

.section-kicker {
  color: var(--editorial-gold-ink);
}

.hero-actions {
  justify-content: flex-start;
}

.btn {
  border-radius: 2px;
  box-shadow: none;
  font-family: var(--editorial-sans);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease,
    border-color 180ms ease, transform 180ms ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
}

.btn-primary,
.btn-footer-cta {
  background: var(--editorial-green);
}

.btn-secondary {
  background: var(--editorial-green);
}

.btn-outline {
  color: var(--editorial-green);
  border-color: var(--editorial-green);
  background: transparent;
}

.trust-strip {
  background: var(--editorial-paper);
  border-bottom-color: var(--editorial-rule);
  box-shadow: none;
}

.trust-strip__inner > div {
  padding: 1.5rem 2rem;
  text-align: left;
}

.trust-strip strong {
  color: var(--editorial-green);
  font-family: var(--editorial-display);
  font-size: 1.15rem;
}

.container {
  max-width: 1200px;
}

main > .container,
.community-gallery .container {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.home-content {
  padding-bottom: 0 !important;
}

.community-gallery .container {
  padding-top: clamp(3.5rem, 5vw, 5rem);
  padding-bottom: 0;
}

.section {
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

main > .container > .section:last-child {
  margin-bottom: 0;
}

.section-title {
  max-width: 850px;
  margin-bottom: 2.5rem;
  color: var(--editorial-green-dark);
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 600;
  line-height: 1;
  text-align: left;
}

.section-kicker.text-center,
.text-center.section-kicker {
  text-align: left;
}

.text-center-constrained,
.text-center-constrained-no-margin {
  max-width: 760px;
  margin-inline: 0;
  text-align: left;
  font-size: 1.05rem;
}

.mission-intro {
  grid-template-columns: 1.15fr 0.85fr;
  border-top: 1px solid var(--editorial-rule);
  padding-top: 1.5rem;
}

.mission-intro__image,
.image-text-section__image {
  border-radius: 0;
  box-shadow: none;
}

.mission-intro__content h2 {
  color: var(--editorial-green-dark);
  font-weight: 600;
  line-height: 1;
}

.card-grid {
  gap: clamp(1.5rem, 3vw, 3rem);
}

.card {
  padding: 1.5rem 0.25rem 2rem;
  overflow: visible;
  border: 0;
  border-top: 3px solid var(--editorial-green);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.card::before {
  display: none;
}

.card:hover {
  border-color: var(--editorial-gold);
  box-shadow: none;
  transform: none;
}

.card h3 {
  color: var(--editorial-green-dark);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 600;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--editorial-paper);
}

.bg-light {
  margin-inline: calc(50% - 50vw);
  padding: clamp(4rem, 8vw, 7rem) max(1rem, calc((100vw - 1200px) / 2));
  border-block: 1px solid var(--editorial-rule);
  border-radius: 0;
  background: var(--editorial-paper);
  box-shadow: none;
}

.community-gallery {
  padding: 0 0 clamp(3.5rem, 5vw, 5rem);
  background: var(--editorial-paper-light);
}

.gallery-grid {
  grid-auto-flow: dense;
  grid-auto-rows: clamp(190px, 18vw, 270px);
  gap: 0.75rem;
}

.gallery-grid:focus-visible {
  outline: 3px solid var(--editorial-green);
  outline-offset: 5px;
}

.gallery-item,
.gallery-item--large {
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.gallery-item img {
  transition: transform 600ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.gallery-item:hover img,
.gallery-item:focus-within img {
  transform: scale(1.035);
}

.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:nth-child(4) {
  grid-column: span 2;
}

.gallery-note {
  margin-top: 1.5rem;
  border-radius: 0;
  border-left: 6px solid var(--editorial-gold);
  background: var(--editorial-green-dark);
}

.article-card {
  max-width: 900px;
  margin-bottom: 0;
  padding: 3rem 0;
  border: 0;
  border-top: 1px solid var(--editorial-rule);
  border-radius: 0;
}

.article-card:hover {
  background: transparent;
  transform: none;
}

.article-card h2 {
  color: var(--editorial-green-dark);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
}

.article-date {
  color: var(--editorial-green);
  font-family: var(--editorial-sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.archive-notice,
.document-viewer {
  border-radius: 0;
  box-shadow: none;
}

.news-container {
  max-width: 1280px;
}

.news-edition {
  display: grid;
  gap: clamp(3rem, 6vw, 5.5rem);
}

.news-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--editorial-rule);
}

.news-section-header .section-kicker {
  margin-bottom: 0.9rem;
}

.news-section-header h2 {
  max-width: 720px;
  margin: 0;
  color: var(--editorial-green-dark);
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 600;
  line-height: 0.96;
}

.news-section-header .archive-notice {
  margin: 0;
  padding: 0 0 0 1.5rem;
  display: block;
  color: var(--editorial-muted);
  background: transparent;
  border: 0;
  border-left: 4px solid var(--editorial-gold);
}

.news-section-header .archive-notice strong {
  margin-bottom: 0.35rem;
  color: var(--editorial-green-dark);
  font-family: var(--editorial-sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-section-header .archive-notice p {
  font-size: 0.95rem;
}

.news-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: stretch;
  gap: clamp(2rem, 5vw, 5rem);
}

.news-lead-media {
  margin: 0;
  overflow: hidden;
}

.news-lead-media img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.news-lead:hover .news-lead-media img {
  transform: scale(1.025);
}

.news-lead-media figcaption {
  padding-top: 0.65rem;
  color: var(--editorial-muted);
  font-size: 0.78rem;
  font-style: italic;
}

.news-lead-content {
  padding-top: 1.4rem;
  border-top: 5px solid var(--editorial-gold);
}

.news-lead h3,
.news-card h3 {
  color: var(--editorial-green-dark);
  font-weight: 600;
  line-height: 1.03;
}

.news-lead h3 {
  margin: 1rem 0 1.5rem;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
}

.news-lead p,
.news-card p {
  color: var(--editorial-muted);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2.5rem, 6vw, 6rem);
  row-gap: 0;
  border-bottom: 1px solid var(--editorial-rule);
}

.news-card {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  border-top: 1px solid var(--editorial-rule);
}

.news-card h3 {
  max-width: 560px;
  margin: 0.9rem 0 1.35rem;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  transition: color 180ms ease;
}

.news-card:hover h3 {
  color: var(--editorial-green);
}

.news-card:last-child {
  grid-column: 1 / -1;
}

.news-card:last-child p {
  max-width: 760px;
}

.news-cta {
  margin-top: clamp(4rem, 8vw, 7rem);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 2rem;
  color: white;
  background: var(--editorial-green-dark);
  border-left: 6px solid var(--editorial-gold);
}

.news-cta .section-kicker {
  margin-bottom: 0.65rem;
  color: var(--editorial-gold);
}

.news-cta h2 {
  margin: 0;
  color: white;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 600;
  line-height: 1;
}

.news-cta-action {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
}

.news-cta-action p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.news-cta .btn {
  color: var(--editorial-green-dark);
  background: var(--editorial-gold);
}

.form-container {
  max-width: 760px;
}

.form-group input,
.form-group textarea,
.form-group select {
  border: 0;
  border-bottom: 2px solid #87918b;
  border-radius: 0;
  background: transparent;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--editorial-green);
  box-shadow: none;
}

.delivery-message {
  color: var(--editorial-green-dark);
  background: #edf5ef;
  border: 0;
  border-left: 4px solid var(--editorial-green);
  border-radius: 0;
}

.delivery-message p {
  margin: 0;
}

.delivery-message__copy {
  margin-top: 0.85rem;
  padding: 0.65rem 0.9rem;
  color: var(--editorial-green-dark);
  background: transparent;
  border: 1px solid var(--editorial-green);
  border-radius: 2px;
  font: 750 0.75rem/1 var(--editorial-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.delivery-message__copy:hover,
.delivery-message__copy:focus-visible {
  color: white;
  background: var(--editorial-green);
}

.text-small,
.legal-updated {
  color: var(--editorial-muted);
}

main .link-primary {
  color: var(--editorial-green);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

main .link-primary:hover,
main .link-primary:focus-visible {
  color: var(--editorial-green-dark);
  text-decoration-thickness: 0.14em;
}

.error-page {
  min-height: calc(100dvh - 78px);
  display: grid;
  place-items: center;
  background:
    linear-gradient(110deg, rgba(9, 43, 80, 0.94), rgba(14, 52, 36, 0.88)),
    url('../images/kpf-4.webp') center / cover;
  border-bottom: 6px solid var(--editorial-gold);
}

.error-page__inner {
  width: min(100%, 1200px);
  padding: clamp(4rem, 10vw, 8rem) 1rem;
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
}

.error-page__code {
  margin: 0;
  color: var(--editorial-gold);
  font-family: var(--editorial-display);
  font-size: clamp(8rem, 22vw, 18rem);
  font-weight: 600;
  line-height: 0.7;
  letter-spacing: -0.08em;
}

.error-page__content {
  padding-top: 1.5rem;
  color: white;
  border-top: 5px solid var(--editorial-gold);
}

.error-page__content .section-kicker {
  margin-bottom: 0.75rem;
  color: var(--editorial-gold);
}

.error-page__content h1 {
  max-width: 720px;
  margin: 0 0 1.25rem;
  color: white;
  font-size: clamp(3.25rem, 7vw, 6rem);
  font-weight: 600;
  line-height: 0.95;
}

.error-page__content > p:not(.section-kicker) {
  max-width: 620px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.error-page__actions .btn-outline {
  color: white;
  border-color: rgba(255, 255, 255, 0.8);
}

.error-page__actions .btn-outline:hover,
.error-page__actions .btn-outline:focus-visible {
  color: var(--editorial-green-dark);
  background: white;
}

footer {
  margin-top: 0;
  border-top: 6px solid var(--editorial-gold);
  background: var(--editorial-green-dark);
}

.footer-main {
  padding-block: 4rem 3rem;
}

.footer-logo h3 {
  font-family: var(--editorial-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.footer-identity-subtext {
  position: relative;
  width: fit-content;
  margin: 0 0 1.1rem;
  padding-bottom: 0.7rem;
  color: #f4f1e9;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.13em;
}

.footer-identity-subtext::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 84px;
  height: 3px;
  background: linear-gradient(90deg, #f2c230 0 25%, #159447 25% 50%, #d93642 50% 75%, #2565ae 75%);
}

.footer-tagline,
.social-label,
.partners-label {
  color: #d8b969;
}

.footer-tagline {
  max-width: 100%;
  font-size: clamp(0.66rem, 1.1vw, 0.8rem);
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.footer-section-title {
  font-family: var(--editorial-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.footer-section-title::after {
  height: 2px;
  background: var(--editorial-gold);
  box-shadow: none;
}

.footer-links a,
.contact-item a,
.contact-item span {
  font-size: 0.9rem;
}

.social-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: none;
}

.social-icon-text {
  display: none;
}

.social-icon-emoji svg {
  width: 21px;
  height: 21px;
}

.social-icon::before {
  display: none;
}

.social-icon:hover,
.social-icon:focus-visible {
  color: var(--editorial-gold);
  border-color: var(--editorial-gold);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.social-icon:hover .social-icon-emoji svg,
.social-icon:focus-visible .social-icon-emoji svg {
  fill: currentColor;
}

.social-icon-emoji {
  transition: transform 180ms ease;
}

.social-icon:hover .social-icon-emoji,
.social-icon:focus-visible .social-icon-emoji {
  transform: scale(1.12);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.18);
}

.legal-page {
  background: var(--editorial-paper);
}

.legal-content h1 {
  color: var(--editorial-green-dark);
  font-weight: 600;
}

main .footer-links a {
  color: var(--editorial-green);
}

main .footer-links a:hover,
main .footer-links a:focus-visible {
  color: var(--editorial-green-dark);
  background: rgba(23, 75, 52, 0.08);
}

/* Floating WhatsApp support selector */
.whatsapp-widget {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 1200;
  transition: opacity 280ms ease, transform 280ms ease;
}

.motion-ready .whatsapp-widget:not(.is-ready) {
  opacity: 0;
  transform: translateY(18px);
}

.whatsapp-toggle {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: #1f8f4e;
  border: 2px solid var(--editorial-paper-light);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(4, 39, 23, 0.25);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.whatsapp-toggle::before,
.whatsapp-toggle::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2px solid rgba(31, 143, 78, 0.7);
  border-radius: inherit;
  animation: whatsappBreathe 2.6s ease-out infinite;
  pointer-events: none;
}

.whatsapp-toggle::after {
  animation-delay: 1.3s;
}

.whatsapp-toggle svg {
  position: relative;
  z-index: 1;
  width: 29px;
  height: 29px;
  fill: currentColor;
  transform-origin: center;
  animation: whatsappHello 5s ease-in-out 1.8s infinite;
}

.whatsapp-status {
  position: absolute;
  top: 1px;
  right: 1px;
  z-index: 2;
  width: 12px;
  height: 12px;
  background: #b9f28d;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(185, 242, 141, 0.65);
  animation: whatsappStatus 1.7s ease-out infinite;
}

.whatsapp-widget.is-open .whatsapp-toggle::before,
.whatsapp-widget.is-open .whatsapp-toggle::after {
  opacity: 0;
  animation: none;
}

.whatsapp-widget.is-open .whatsapp-toggle svg {
  animation-play-state: paused;
}

.whatsapp-toggle:hover,
.whatsapp-toggle:focus-visible,
.whatsapp-widget.is-open .whatsapp-toggle {
  background: var(--editorial-green-dark);
  transform: translateY(-2px);
}

.whatsapp-toggle:focus-visible {
  outline: 3px solid var(--editorial-gold);
  outline-offset: 3px;
}

.whatsapp-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(320px, calc(100vw - 2rem));
  max-height: calc(100dvh - 7.5rem);
  padding: 1.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--editorial-ink);
  background: var(--editorial-paper-light);
  border: 1px solid var(--editorial-rule);
  border-top: 4px solid var(--editorial-gold);
  box-shadow: 0 18px 45px rgba(7, 35, 23, 0.2);
  transform-origin: right bottom;
  animation: whatsappPanelIn 220ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.whatsapp-panel[hidden] {
  display: none;
}

.whatsapp-panel__eyebrow {
  margin: 0 0 0.25rem;
  color: var(--editorial-green);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.whatsapp-panel h2 {
  margin: 0 0 1rem;
  color: var(--editorial-green-dark);
  font-size: 1.45rem;
  line-height: 1.15;
}

.whatsapp-panel__links {
  display: grid;
  gap: 0.55rem;
}

.whatsapp-panel__links a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 0;
  color: var(--editorial-ink);
  border-top: 1px solid var(--editorial-rule);
  text-decoration: none;
}

.whatsapp-panel__links a::after {
  content: '→';
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--editorial-green);
  font-size: 1.3rem;
  transition: transform 180ms ease;
}

.whatsapp-panel__links span {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.whatsapp-panel__links strong {
  font-family: var(--editorial-display);
  font-size: 1.05rem;
}

.whatsapp-panel__links a:hover,
.whatsapp-panel__links a:focus-visible {
  color: var(--editorial-green);
}

.whatsapp-panel__links a:hover::after,
.whatsapp-panel__links a:focus-visible::after {
  transform: translateX(4px);
}

.whatsapp-panel__links a:focus-visible {
  outline: 2px solid var(--editorial-gold);
  outline-offset: 3px;
}

.motion-ready .editorial-reveal {
  transform: translateY(24px);
  transition: transform 620ms cubic-bezier(0.2, 0.7, 0.25, 1)
    var(--reveal-delay, 0ms);
}

.motion-ready .editorial-reveal.is-revealed {
  transform: translateY(0);
}

@keyframes editorialHeroDrift {
  from {
    background-position: center 47%;
  }
  to {
    background-position: center 53%;
  }
}

@keyframes whatsappBreathe {
  0% {
    opacity: 0.85;
    transform: scale(0.94);
  }
  72%,
  100% {
    opacity: 0;
    transform: scale(1.48);
  }
}

@keyframes whatsappHello {
  0%,
  78%,
  100% {
    transform: rotate(0) scale(1);
  }
  82% {
    transform: rotate(-10deg) scale(1.08);
  }
  86% {
    transform: rotate(9deg) scale(1.1);
  }
  90% {
    transform: rotate(-6deg) scale(1.05);
  }
  94% {
    transform: rotate(0) scale(1);
  }
}

@keyframes whatsappStatus {
  0% {
    box-shadow: 0 0 0 0 rgba(185, 242, 141, 0.7);
  }
  75%,
  100% {
    box-shadow: 0 0 0 7px rgba(185, 242, 141, 0);
  }
}

@keyframes whatsappPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 769px) and (max-width: 960px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 78px);
    padding: 1rem 0;
    flex-direction: column;
    overflow-y: auto;
    background: var(--editorial-paper-light);
    box-shadow: 0 18px 35px rgba(12, 29, 21, 0.14);
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .nav-dropdown .dropdown-menu {
    display: none !important;
    position: static;
    border-top: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-dropdown.dropdown-active .dropdown-menu {
    display: block !important;
  }
}

@media (max-width: 768px) {
  body .hero.hero--image {
    background-image:
      linear-gradient(110deg, rgba(9, 43, 80, 0.94), rgba(25, 100, 61, 0.82)),
      url('../images/kpf-1-800.webp');
  }

  body.page-about .hero {
    background-image: linear-gradient(110deg, rgba(9, 43, 80, 0.94), rgba(25, 100, 61, 0.82)), url('../images/kpf-7-800.webp');
  }

  body.page-objectives .hero {
    background-image: linear-gradient(110deg, rgba(9, 43, 80, 0.94), rgba(25, 100, 61, 0.82)), url('../images/kpf-4-800.webp');
  }

  body.page-programs .hero {
    background-image: linear-gradient(110deg, rgba(9, 43, 80, 0.94), rgba(25, 100, 61, 0.82)), url('../images/kpf-5-600.webp');
  }

  body.page-governance .hero {
    background-image: linear-gradient(110deg, rgba(9, 43, 80, 0.94), rgba(25, 100, 61, 0.82)), url('../images/kpf-6-600.webp');
  }

  body.page-news .hero {
    background-image: linear-gradient(110deg, rgba(9, 43, 80, 0.94), rgba(25, 100, 61, 0.82)), url('../images/kpf-3-800.webp');
  }

  body.page-contact .hero {
    background-image: linear-gradient(110deg, rgba(9, 43, 80, 0.94), rgba(25, 100, 61, 0.82)), url('../images/kpf-8-600.webp');
  }

  body.page-constitution .hero {
    background-image: linear-gradient(110deg, rgba(9, 43, 80, 0.94), rgba(25, 100, 61, 0.82)), url('../images/kpf-2-800.webp');
  }

  .hero,
  body[class^='page-'] > .hero {
    min-height: 520px;
    padding: 5rem 1rem 3.5rem;
    place-items: end start;
  }

  .hero--image {
    min-height: 640px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.75rem, 11.8vw, 3.8rem);
    line-height: 0.98;
  }

  .hero-summary {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-eyebrow {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 0.68rem !important;
    line-height: 1.5;
    white-space: normal;
  }

  .hero-actions {
    width: 100%;
  }

  .trust-strip__inner > div {
    text-align: left;
  }

  main > .container {
    padding-block: 4rem;
  }

  .section-title {
    font-size: clamp(2.4rem, 11vw, 3.6rem);
  }

  .mission-intro {
    grid-template-columns: 1fr;
  }

  .card {
    padding-inline: 0;
  }

  .bg-light {
    padding-inline: 1rem;
  }

  .gallery-grid {
    display: flex;
    grid-auto-rows: auto;
    gap: 0.75rem;
  }

  .community-gallery .container {
    padding-top: 3rem;
  }

  .gallery-item,
  .gallery-item--large,
  .gallery-item:nth-child(4) {
    flex: 0 0 88%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .gallery-note {
    border-left-width: 0;
    border-top: 5px solid var(--editorial-gold);
  }

  .news-edition {
    gap: 3.25rem;
  }

  .news-section-header,
  .news-lead,
  .news-grid,
  .news-cta {
    grid-template-columns: 1fr;
  }

  .news-section-header {
    align-items: start;
    gap: 2rem;
  }

  .news-section-header h2 {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
  }

  .news-section-header .archive-notice {
    padding: 1.25rem 0 0;
    border-left: 0;
    border-top: 4px solid var(--editorial-gold);
  }

  .news-lead {
    gap: 2rem;
  }

  .news-lead-media img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .news-lead h3 {
    font-size: clamp(2.5rem, 12vw, 3.7rem);
  }

  .news-card {
    padding-block: 2.75rem;
  }

  .news-card h3 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .news-card:last-child {
    grid-column: auto;
  }

  .news-cta {
    margin-top: 4rem;
    padding: 2.25rem 1.5rem;
    align-items: start;
    border-left: 0;
    border-top: 5px solid var(--editorial-gold);
  }

  .footer-main {
    padding-block: 2.5rem 1.75rem;
  }

  .footer-content {
    gap: 1.35rem 1rem;
  }

  .footer-brand {
    margin-bottom: 0;
  }

  .footer-description {
    max-width: 34rem;
    margin-bottom: 1rem;
    line-height: 1.55;
  }

  .footer-section-title {
    margin-bottom: 0.85rem;
  }

  .footer-links {
    display: grid;
    gap: 0.2rem;
  }

  .footer-links li {
    margin-bottom: 0;
  }

  main .footer-links a,
  .footer-links a {
    min-height: 38px;
    padding-block: 0.35rem;
  }

  .footer-contact {
    margin-bottom: 0.85rem;
  }

  .contact-item {
    margin-bottom: 0.8rem;
  }

  .footer-newsletter {
    padding-top: 1rem;
  }

  .footer-bottom {
    padding-block: 1rem;
  }

  .error-page__inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2.5rem;
    padding-block: 4rem;
  }

  .error-page {
    background-image:
      linear-gradient(110deg, rgba(9, 43, 80, 0.94), rgba(14, 52, 36, 0.88)),
      url('../images/kpf-4-800.webp');
  }

  .error-page__code {
    font-size: clamp(7rem, 38vw, 11rem);
  }

  .error-page__content h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .footer-logo h3 {
    font-size: 1.8rem;
  }

  .footer-identity-subtext {
    margin-inline: auto;
  }

  .whatsapp-widget {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .whatsapp-toggle {
    width: 52px;
    height: 52px;
  }

  .whatsapp-toggle svg {
    width: 26px;
    height: 26px;
  }

  .whatsapp-panel {
    bottom: calc(100% + 0.6rem);
    width: min(300px, calc(100vw - 1.5rem));
    max-height: calc(100dvh - 5.75rem - env(safe-area-inset-bottom));
    padding: 0.9rem 1rem;
    border-top-width: 3px;
    box-shadow: 0 14px 34px rgba(7, 35, 23, 0.24);
  }

  .whatsapp-panel__eyebrow {
    margin-bottom: 0.15rem;
    font-size: 0.64rem;
  }

  .whatsapp-panel h2 {
    margin-bottom: 0.65rem;
    font-size: 1.2rem;
  }

  .whatsapp-panel__links {
    gap: 0;
  }

  .whatsapp-panel__links a {
    gap: 0.5rem;
    min-height: 58px;
    padding: 0.55rem 0;
  }

  .whatsapp-panel__links span {
    font-size: 0.68rem;
  }

  .whatsapp-panel__links strong {
    font-size: 0.98rem;
  }

  .whatsapp-panel__links a::after {
    font-size: 1.1rem;
  }
}

@media (max-height: 500px) {
  .whatsapp-panel {
    max-height: calc(100dvh - 5rem - env(safe-area-inset-bottom));
    padding-block: 0.7rem;
  }

  .whatsapp-panel h2 {
    margin-bottom: 0.4rem;
  }

  .whatsapp-panel__links a {
    min-height: 50px;
    padding-block: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .hero.hero--image,
  .whatsapp-toggle::before,
  .whatsapp-toggle::after,
  .whatsapp-toggle svg,
  .whatsapp-status,
  .whatsapp-panel {
    animation: none;
  }

  .motion-ready .editorial-reveal,
  .motion-ready .editorial-reveal.is-revealed,
  .motion-ready .whatsapp-widget:not(.is-ready) {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gallery-item img,
  .news-lead-media img,
  .news-card h3,
  .btn,
  .social-icon-emoji {
    transition: none;
  }
}
