/*
  Animales Las Varillas – Estilos principales
  Paleta: Marfil (fondo), Carbón (texto), Verde Oscuro (acentos)
*/

/* ── Google Fonts ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;600;700;800&display=swap');

/* ── Custom Properties ────────────────────────────── */
:root {
  /* Base palette */
  --ivory: #FAF6F0;
  --ivory-mid: #F0EBE2;
  --ivory-dark: #E5DFD5;
  --charcoal: #2D2D2D;
  --charcoal-light: #4A4A4A;
  --charcoal-muted: #6B6B6B;
  --green-dark: #1B4332;
  --green: #2D5A3D;
  --green-mid: #3A7D53;
  --green-light: #4A9E68;
  --green-pale: #D4E7DC;
  --green-ghost: #EDF5F0;
  --red-emergency: #C0392B;
  --red-light: #F9E4E1;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ── Reset ────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--ivory);
  color: var(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ── Header / Navbar ──────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 246, 240, 0.92);
  border-bottom: 1px solid rgba(45, 45, 45, 0.08);
  transition: box-shadow var(--transition);
}

@supports (backdrop-filter: blur(16px)) {
  .site-header {
    background: rgba(250, 246, 240, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 55px;
  width: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green-dark);
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--green-dark);
  line-height: 1.2;
}

.brand-text .subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--charcoal-muted);
}

/* Navigation */
.main-nav ul {
  display: flex;
  gap: 0.25rem;
}

.main-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-full);
  color: var(--charcoal-light);
  transition: all var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus {
  background-color: var(--green-pale);
  color: var(--green-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--charcoal);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: var(--ivory-dark);
}

/* ── Hero Section ─────────────────────────────────── */
.hero {
  position: relative;
  background-color: var(--green-dark);
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(27, 67, 50, 0.55) 0%,
      rgba(27, 67, 50, 0.45) 40%,
      rgba(45, 90, 61, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  margin: 0 auto;
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  margin: 0 auto 1.5rem;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hero h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero .slogan {
  font-size: 1.15rem;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.hero .location {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* Paw decorations in hero */
.paw-deco {
  position: absolute;
  font-size: 2rem;
  opacity: 0.08;
  pointer-events: none;
}

.paw-deco:nth-child(1) {
  top: 15%;
  left: 10%;
  transform: rotate(-25deg);
  font-size: 3rem;
}

.paw-deco:nth-child(2) {
  top: 60%;
  right: 8%;
  transform: rotate(15deg);
  font-size: 2.5rem;
}

.paw-deco:nth-child(3) {
  bottom: 10%;
  left: 20%;
  transform: rotate(-10deg);
}

.paw-deco:nth-child(4) {
  top: 25%;
  right: 15%;
  transform: rotate(30deg);
  font-size: 1.8rem;
}

/* ── Section Generics ─────────────────────────────── */
.section {
  padding: 4rem 1.5rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--charcoal);
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  transition: width var(--transition);
}

.section:hover .section-title::after {
  width: 70px;
}

.section-description {
  font-size: 0.95rem;
  color: var(--charcoal-light);
  max-width: 640px;
  line-height: 1.7;
}

/* Alternate background */
.section-alt {
  background-color: var(--ivory-mid);
}

/* ── Filter Tabs ──────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--ivory-dark);
  background: var(--white);
  color: var(--charcoal-light);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.filter-tab:hover {
  border-color: var(--green-pale);
  background: var(--green-ghost);
}

.filter-tab.active {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}

/* ── Card Grid ────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--charcoal);
}

.card-text {
  font-size: 0.88rem;
  color: var(--charcoal-light);
  flex-grow: 1;
  line-height: 1.6;
}

.card-contact {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--ivory-mid);
}

/* No posts message */
.no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--charcoal-muted);
  font-size: 0.95rem;
  background: var(--green-ghost);
  border-radius: var(--radius-md);
  border: 2px dashed var(--green-pale);
}

/* ── How to Help ──────────────────────────────────── */
.help-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.help-item {
  flex: 1 1 300px;
  max-width: 380px;
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.help-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--green), var(--green-mid));
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transition: transform 0.35s ease;
  transform-origin: top;
}

.help-item:hover::before {
  transform: scaleY(1);
}

.help-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

/* Featured card (Donaciones) */
.help-featured {
  border-color: var(--green-pale);
  background: linear-gradient(180deg, rgba(215, 232, 220, 0.15) 0%, var(--white) 100%);
}

/* Icon circle */
.help-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-pale), var(--green-ghost));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.help-item:hover .help-icon-wrap {
  transform: scale(1.08);
}

.help-icon {
  font-size: 1.6rem;
  display: block;
  line-height: 1;
}

.help-item h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.help-item p {
  font-size: 0.88rem;
  color: var(--charcoal-light);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

/* Donation alias chips */
.donation-aliases {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.alias-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ivory);
  border: 1px solid var(--ivory-dark);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.5rem 0.4rem 0.6rem;
  transition: all var(--transition);
}

.alias-chip:hover {
  background: var(--green-ghost);
  border-color: var(--green-pale);
}

.alias-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
  background: var(--green);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.alias-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-dark);
  font-family: var(--font-body);
  letter-spacing: 0.2px;
}

/* Help bullet list */
.help-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.help-list li {
  font-size: 0.85rem;
  color: var(--charcoal-light);
  padding: 0.35rem 0.6rem;
  background: var(--ivory);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.help-list li:hover {
  background: var(--green-ghost);
}

/* WhatsApp Button for Help Items */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.6rem 1.2rem;
  background: var(--green-ghost);
  border: 1px solid var(--green-pale);
  border-radius: var(--radius-full);
  color: var(--green-dark);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  width: max-content;
}

.whatsapp-btn:hover {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.15);
}

.whatsapp-icon {
  font-size: 1.1rem;
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green);
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
}

.btn-outline:hover {
  background: var(--green-dark);
  color: var(--white);
}

/* ── Emergency Section ────────────────────────────── */
.section-emergency {
  background: linear-gradient(135deg, var(--red-light) 0%, var(--ivory) 100%);
}

.emergency-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.emergency-card {
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--red-emergency);
  transition: all var(--transition);
}

.emergency-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.emergency-card strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--charcoal);
  display: block;
  margin-bottom: 0.25rem;
}

.emergency-card .vet-name {
  font-size: 0.88rem;
  color: var(--charcoal-light);
  margin-bottom: 0.4rem;
}

.emergency-card .tel {
  color: var(--red-emergency);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.emergency-card .tel:hover {
  text-decoration: underline;
}

/* ── Contact Section ──────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-card {
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
  min-width: 0;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.contact-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-ghost);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--charcoal-muted);
  font-weight: 500;
}

.contact-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-value:hover {
  color: var(--green-mid);
}

/* ── WhatsApp Button ─────────────────────────────── */
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: #25D366;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  transition: all var(--transition);
}

.wa-btn:hover {
  background: #1EBE5A;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

/* ── Adoption Button ─────────────────────────────── */
.btn-adopt {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(27, 67, 50, 0.25);
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.btn-adopt:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.35);
  background: linear-gradient(135deg, var(--green), var(--green-mid));
}

/* ── Page Banner (for section pages) ──────────── */
.page-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}

.page-banner h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-banner p {
  font-size: 0.95rem;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Category Grid (homepage) ─────────────────── */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.category-card {
  flex: 1 1 200px;
  max-width: 250px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-pale);
}

.category-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.25rem;
}

.category-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-dark);
}

.category-card p {
  font-size: 0.82rem;
  color: var(--charcoal-muted);
  line-height: 1.5;
}

.category-card .card-arrow {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  transition: transform var(--transition);
}

.category-card:hover .card-arrow {
  transform: translateX(4px);
}

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.footer-brand p {
  font-size: 0.82rem;
  opacity: 0.7;
  max-width: 300px;
  margin-top: 0.3rem;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-light);
  margin-bottom: 0.75rem;
}

.footer-links a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.2rem 0;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-dedication {
  text-align: center;
  padding: 1.75rem 0;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dedication-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.dedication-text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.dedication-text strong {
  color: var(--green-light);
  font-weight: 600;
}

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ── Scroll Reveal Animation ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.card-grid .card.reveal {
  transition-delay: calc(var(--i, 0) * 0.08s);
}

/* ── Admin Styles ─────────────────────────────────── */
.admin-header {
  background: var(--green-dark);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-header .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-header .brand img {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
}

.admin-header h1 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
}

.admin-header .badge {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}

.admin-header .back-link {
  color: var(--white);
  font-size: 0.75rem;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.admin-header .back-link:hover {
  opacity: 1;
}

.admin-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.admin-card h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.login-form,
.admin-panel {
  display: none;
}

.login-form.active,
.admin-panel.active {
  display: block;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--charcoal);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--ivory-dark);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--ivory);
  color: var(--charcoal);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-pale);
}

.posts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.posts-table th {
  text-align: left;
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--charcoal-muted);
  border-bottom: 2px solid var(--ivory-dark);
}

.posts-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--ivory-mid);
  vertical-align: middle;
}

.posts-table tr:hover td {
  background: var(--green-ghost);
}

.delete-btn {
  background: var(--red-emergency);
  color: var(--white);
  border: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition);
}

.delete-btn:hover {
  background: #A93226;
  transform: scale(1.05);
}

.login-error {
  color: var(--red-emergency);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  display: none;
  padding: 0.5rem 0.75rem;
  background: var(--red-light);
  border-radius: var(--radius-sm);
}

/* Status badge for post categories */
.cat-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--green-ghost);
  color: var(--green-dark);
}

/* Image upload preview */
.image-upload-area {
  position: relative;
}

.image-upload-area input[type="file"] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--ivory-dark);
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: var(--ivory);
  color: var(--charcoal);
  cursor: pointer;
  transition: border-color var(--transition);
}

.image-upload-area input[type="file"]:hover {
  border-color: var(--green);
}

.image-preview {
  margin-top: 0.5rem;
  display: none;
}

.image-preview img {
  max-width: 120px;
  max-height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--ivory-dark);
}

/* Table overflow fix */
.admin-card {
  overflow-x: auto;
}

.posts-table {
  min-width: 500px;
}

/* ── Search Bar (section pages) ──────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.search-bar input {
  flex: 1;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  border: 1.5px solid var(--ivory-dark);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--charcoal);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-pale);
}

.search-bar .search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.5;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .hero h2 {
    font-size: 2.2rem;
  }

  .hero {
    padding: 4rem 1.5rem 3rem;
  }
}

@media (max-width: 768px) {

  /* Mobile nav: dropdown below header */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 999;
    padding: 0.75rem 0;
    border-top: 1px solid var(--ivory-dark);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 0;
    border-bottom: 1px solid var(--ivory-mid);
  }

  .main-nav a:hover {
    background-color: var(--green-ghost);
  }

  .main-nav li:last-child a {
    border-bottom: none;
  }

  .nav-toggle {
    display: block;
    z-index: 1001;
    position: relative;
  }

  .hero {
    background-position: center 35%;
    min-height: 350px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero-logo {
    width: 90px;
    height: 90px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .footer-top {
    flex-direction: column;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-banner h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0.5rem 1rem;
  }

  .brand-text h1 {
    font-size: 1rem;
  }

  .hero {
    padding: 3rem 1rem 2.5rem;
    min-height: 300px;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .help-grid {
    grid-template-columns: 1fr;
  }

  .emergency-list {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }
}