/*
Theme Name: Ferret Aid Society
Theme URI: https://ferretaid.org
Author: Shawn Watkins
Author URI: https://ferretaid.org
Description: Custom WordPress theme for the Ferret Aid Society — a 100% volunteer-run, no-kill ferret rescue in the Greater Toronto Area. Features a custom Ferrets post type with auto-age calculation, adoption/foster forms, FAQ accordion, donation page, and a modern responsive design.
Version: 1.3.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ferretaid
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ========================================
   FERRET AID SOCIETY — WordPress Theme
   ======================================== */

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

:root {
  --purple: #6B3FA0;
  --purple-dark: #5A2D8C;
  --purple-light: #EDE4F7;
  --green: #3DA35D;
  --green-dark: #2E8B4A;
  --green-light: #E8F5E9;
  --coral: #E8636F;
  --coral-dark: #C94E5A;
  --warm-bg: #FFF9F5;
  --light-bg: #F7F4F0;
  --card-bg: #FFFFFF;
  --text: #2D2A32;
  --text-muted: #6B6775;
  --border: #E5E0EB;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(107, 63, 160, 0.08);
  --shadow-lg: 0 8px 30px rgba(107, 63, 160, 0.12);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--warm-bg);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--purple); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--purple-dark); }

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
}

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

ul { list-style: none; }

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

.text-center { text-align: center; }
.hidden { display: none !important; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }

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

.btn-donate { background: var(--coral); color: #fff; border-color: var(--coral); }
.btn-donate:hover { background: var(--coral-dark); border-color: var(--coral-dark); color: #fff; }

.btn-primary { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn-primary:hover { background: var(--purple-dark); border-color: var(--purple-dark); color: #fff; }

.btn-outline { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: #fff; }

/* ---------- HEADER ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
}

.logo { display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; flex-shrink: 0; }
.logo:hover { color: var(--purple); }
.logo-icon { font-size: 2rem; }
.logo-text strong { display: block; font-size: 1.15rem; line-height: 1.2; }
.logo-text small { font-size: 0.75rem; color: var(--text-muted); }

.main-nav ul { display: flex; gap: 0.25rem; align-items: center; }
.main-nav ul a {
  display: block; padding: 0.5rem 0.9rem; border-radius: 8px;
  font-weight: 600; font-size: 0.9rem; color: var(--text); transition: all var(--transition);
}
.main-nav ul a:hover, .main-nav a.active,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  background: var(--purple-light);
  color: var(--purple);
}

.header-buttons { display: flex; gap: 0.5rem; flex-shrink: 0; }

.mobile-cta { display: none; }

/* Mobile menu */
.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.mobile-menu-btn span {
  display: block; width: 26px; height: 3px; background: var(--text);
  border-radius: 2px; transition: all var(--transition);
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translateY(8px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--purple) 0%, #8B5FBF 100%);
  color: #fff; padding: 5rem 0 4rem; position: relative; overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="80" r="30" fill="rgba(255,255,255,0.03)"/></svg>') no-repeat;
  background-size: cover;
}
.hero-content { position: relative; text-align: center; max-width: 750px; margin: 0 auto; }
.hero h1 { font-family: 'Libre Baskerville', serif; font-size: 2.8rem; margin-bottom: 1rem; line-height: 1.25; }
.hero-subtitle, .hero-sub { font-size: 1.15rem; opacity: 0.92; margin-bottom: 2rem; line-height: 1.7; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero .btn-adopt { background: #fff; color: var(--green-dark); border-color: #fff; }
.hero .btn-adopt:hover { background: var(--green-light); }
.hero .btn-donate { background: var(--coral); border-color: var(--coral); }

/* ---------- PAGE HERO ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--purple) 0%, #8B5FBF 100%);
  color: #fff; padding: 3rem 0 2.5rem; text-align: center;
}
.page-hero h1 { font-size: 2.2rem; margin-bottom: 0.75rem; }
.page-hero p { font-size: 1.05rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }
.page-hero-donate { background: linear-gradient(135deg, var(--coral) 0%, #D4546A 100%); }

/* ---------- STATS BAR ---------- */
.stats-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--purple); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

/* ---------- SECTIONS ---------- */
.section { padding: 4rem 0; }
.section-title {
  font-size: 2rem;
  text-align: center; margin-bottom: 0.5rem; color: var(--text);
}
.section-subtitle, .section-sub {
  text-align: center; color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1.05rem;
}

/* Text color utilities */
.text-coral { color: var(--coral); }
.text-purple { color: var(--purple); }
.text-green { color: var(--green); }

/* ---------- FERRET CARDS ---------- */
.featured-ferrets { text-align: center; }
.featured-ferrets .section-title,
.featured-ferrets .section-sub { text-align: center; }
.featured-ferrets .ferret-grid { text-align: left; }

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

.ferret-card {
  background: var(--card-bg); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition);
}
.ferret-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.ferret-card-image {
  width: 100%; height: 220px; background: var(--purple-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--purple); overflow: hidden;
  position: relative;
}
.ferret-card-image img { width: 100%; height: 100%; object-fit: cover; }

/* Card link — remove underline, inherit color */
.ferret-card-link {
  display: block; text-decoration: none; color: inherit;
}
.ferret-card-link:hover { color: inherit; }

/* Bonded badge — small overlay on image */
.bonded-badge {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: var(--green); color: #fff;
  padding: 0.25rem 0.75rem; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 2;
}

/* Status badge — pending overlay */
.status-badge {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(232, 99, 111, 0.9); color: #fff;
  text-align: center; padding: 0.4rem;
  font-size: 0.8rem; font-weight: 700;
}

/* Card info section */
.ferret-card-info { padding: 1.25rem 1.25rem 1rem; }
.ferret-card-body { padding: 1.25rem; }
.ferret-card-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.4rem; color: var(--text); }

.ferret-card-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }

/* Meta tags — small pill badges */
.meta-tag {
  display: inline-block; padding: 0.15rem 0.55rem; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700;
}
.meta-tag.age { background: var(--purple-light); color: var(--purple); }
.meta-tag.sex { background: #E8F0FE; color: #1A73E8; }
.meta-tag.location { background: #FFF3E0; color: #E65100; }

/* Legacy .ferret-tag classes */
.ferret-tag {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 50px;
  font-size: 0.78rem; font-weight: 700; background: var(--purple-light); color: var(--purple);
}
.ferret-tag.tag-sex { background: #E8F0FE; color: #1A73E8; }
.ferret-tag.tag-location { background: #FFF3E0; color: #E65100; }
.ferret-tag.tag-group { background: var(--green-light); color: var(--green-dark); }

.ferret-card-desc {
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.ferret-card-footer { display: flex; gap: 0.5rem; }

/* ---------- INFO BAR (legacy) ---------- */
.info-bar { background: var(--green-light); padding: 1.25rem 0; border-bottom: 2px solid var(--green); }
.info-bar-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.info-item { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.info-item strong { font-size: 1rem; }

/* ---------- ADOPT INFO CARDS ---------- */
.adopt-info-cards-section { padding: 2.5rem 0 1rem; }
.adopt-info-cards-wrap .wp-block-columns.adopt-info-cards,
.adopt-info-cards-wrap .wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: unset !important;
  margin-bottom: 0 !important;
}
.adopt-info-cards-wrap .wp-block-column {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all var(--transition);
  border-top: 4px solid var(--purple);
}
.adopt-info-cards-wrap .wp-block-column:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.adopt-info-cards-wrap .wp-block-column h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--purple);
}
.adopt-info-cards-wrap .wp-block-column p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}
.adopt-info-cards-wrap .wp-block-column p strong {
  color: var(--text);
}
.adopt-info-cards-wrap .wp-block-column p a {
  color: var(--purple);
  font-weight: 700;
  text-decoration: underline;
}
.adopt-info-cards-wrap .wp-block-column p a:hover {
  color: var(--coral);
}
@media (max-width: 768px) {
  .adopt-info-cards-wrap .wp-block-columns.adopt-info-cards,
  .adopt-info-cards-wrap .wp-block-columns {
    grid-template-columns: 1fr;
  }
}

/* ---------- FILTERS ---------- */
.filters-section, .filter-section { padding-top: 2rem; }
.filters,
.filter-bar {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end;
  margin-bottom: 1.5rem; background: #fff; padding: 1rem 1.25rem;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.filter-group { flex: 1 1 140px; min-width: 0; }
.filter-group label {
  display: block; font-size: 0.75rem; font-weight: 700; color: var(--text-muted);
  margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.filter-group select {
  width: 100%; padding: 0.5rem 0.65rem; border: 2px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: 0.85rem;
  background: #fff; color: var(--text); cursor: pointer; transition: border-color var(--transition);
}
.filter-group select:focus { outline: none; border-color: var(--purple); }

.results-count { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; font-weight: 600; }
.no-results { text-align: center; padding: 3rem 1rem; }
.no-results-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }

/* ---------- HOW TO HELP ---------- */
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.help-card {
  background: var(--card-bg); border-radius: var(--radius-lg);
  padding: 2rem; text-align: center; box-shadow: var(--shadow); transition: all var(--transition);
}
.help-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.help-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.help-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.help-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }

/* ---------- ABOUT PREVIEW ---------- */
.about-preview { background: var(--light-bg); }
.about-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-preview-text h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.about-preview-text p { margin-bottom: 1rem; color: var(--text-muted); }
.placeholder-image {
  background: var(--purple-light); border-radius: var(--radius-lg);
  padding: 3rem; text-align: center; font-size: 5rem;
}
.placeholder-image p { font-size: 0.9rem; color: var(--purple); font-weight: 700; margin-top: 0.5rem; }

/* ---------- WISH LIST ---------- */
.wish-list-section { background: var(--light-bg); }
.wish-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem; max-width: 800px; margin: 0 auto;
}
.wish-item {
  background: var(--card-bg); padding: 1rem; border-radius: var(--radius);
  text-align: center; font-weight: 700; box-shadow: var(--shadow); font-size: 0.95rem;
}

/* ---------- ADOPTION STEPS ---------- */
.adoption-process { background: var(--light-bg); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.step {
  background: var(--card-bg); border-radius: var(--radius-lg);
  padding: 2rem; text-align: center; box-shadow: var(--shadow);
}
.step-number {
  width: 50px; height: 50px; border-radius: 50%; background: var(--purple);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- CONTENT PAGES ---------- */
.content-page { max-width: 800px; margin: 0 auto; }
.content-block { margin-bottom: 3rem; }
.content-block h2 { font-size: 1.6rem; margin-bottom: 1rem; color: var(--text); }
.content-block h3 { margin-bottom: 0.5rem; margin-top: 1.25rem; }
.content-block p { margin-bottom: 1rem; color: var(--text-muted); line-height: 1.8; }
.content-block ul { margin: 0.75rem 0 1rem 1.5rem; list-style: disc; }
.content-block ul li { margin-bottom: 0.4rem; color: var(--text-muted); }

.highlight-box {
  background: var(--purple-light); padding: 2rem; border-radius: var(--radius-lg);
  border-left: 5px solid var(--purple);
}
.highlight-box p { color: var(--text); }

.founder-quote {
  background: var(--light-bg); border-left: 4px solid var(--purple);
  padding: 1.5rem 2rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.founder-quote p { font-style: italic; color: var(--text); margin-bottom: 0.75rem; }
.founder-quote cite { font-style: normal; font-weight: 700; color: var(--purple); }

.check-list { list-style: none !important; margin-left: 0 !important; }
.check-list li::before { content: "✅ "; }
.check-list li { color: var(--text) !important; }

/* ---------- VOLUNTEER ROLES ---------- */
.volunteer-roles-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.role-card { background: var(--light-bg); padding: 1.5rem; border-radius: var(--radius); transition: all var(--transition); }
.role-card:hover { box-shadow: var(--shadow); }
.role-card h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.role-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ---------- FORMS ---------- */
.contact-form { max-width: 600px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.65rem 0.85rem; border: 2px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: 0.95rem;
  transition: border-color var(--transition); background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--purple); }

/* ---------- DONATE PAGE ---------- */
.donate-methods-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem; margin-bottom: 3rem;
}
.donate-card {
  background: var(--card-bg); border-radius: var(--radius-lg);
  padding: 2.5rem; text-align: center; box-shadow: var(--shadow); transition: all var(--transition);
}
.donate-card:hover { box-shadow: var(--shadow-lg); }
.donate-card-featured { border: 3px solid var(--green); background: var(--green-light); }
.donate-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.donate-card h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.donate-card p { color: var(--text-muted); margin-bottom: 0.5rem; }
.donate-highlight {
  font-size: 1.3rem; font-weight: 800; color: var(--green-dark);
  background: #fff; padding: 0.75rem 1.5rem; border-radius: var(--radius);
  display: inline-block; margin: 0.5rem 0;
}
.donate-note { font-size: 0.88rem; }

.wish-list-detailed {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem; margin-top: 1.5rem;
}
.wish-category { background: var(--light-bg); padding: 1.5rem; border-radius: var(--radius); }
.wish-category h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.wish-category ul { list-style: disc; margin-left: 1.25rem; }
.wish-category li { margin-bottom: 0.3rem; font-size: 0.9rem; color: var(--text-muted); }

.impact-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.impact-item { background: var(--purple-light); padding: 1.5rem; border-radius: var(--radius); text-align: center; }
.impact-amount { display: block; font-size: 1.8rem; font-weight: 800; color: var(--purple); margin-bottom: 0.3rem; }
.impact-item p { margin: 0; font-size: 0.9rem; color: var(--text); }

/* ---------- CONTACT PAGE ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact-method { margin-bottom: 2rem; }
.contact-method h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.contact-method p { margin-bottom: 0.25rem; }
.contact-method ul { margin-top: 0.5rem; }
.contact-method li { margin-bottom: 0.5rem; }
.contact-method li a { font-weight: 600; }
.text-muted { color: var(--text-muted); font-size: 0.88rem; }
.contact-form-wrapper h2 { font-size: 1.4rem; margin-bottom: 1.5rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--card-bg); border-radius: var(--radius);
  margin-bottom: 0.75rem; box-shadow: var(--shadow); overflow: hidden;
}
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem; border: none; background: none;
  font-family: inherit; font-size: 1rem; font-weight: 700;
  color: var(--text); cursor: pointer; text-align: left; gap: 1rem;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--purple-light); }
.faq-icon { font-size: 1.5rem; font-weight: 300; color: var(--purple); flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; padding: 0 1.5rem;
}
.faq-item.open .faq-answer { max-height: 1000px; padding: 0 1.5rem 1.5rem; }
.faq-answer p { margin-bottom: 0.75rem; color: var(--text-muted); }
.faq-answer ul { list-style: disc; margin: 0.5rem 0 1rem 1.5rem; }
.faq-answer li { margin-bottom: 0.3rem; color: var(--text-muted); font-size: 0.92rem; }

.warning-box {
  background: #FFF3E0; border: 2px solid #FF9800;
  padding: 1rem; border-radius: var(--radius); color: #E65100 !important; font-weight: 700;
}

/* ---------- SOCIAL ICONS ---------- */
.social-links { display: flex; flex-direction: row; gap: 1rem; align-items: center; }
.social-links a { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; padding: 0.3rem 0; }
.social-icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.15em; fill: currentColor; }

/* ---------- FOOTER ---------- */
.site-footer { background: #2D2A32; color: #ccc; padding: 3rem 0 0; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: 1.05rem; }
.footer-col p { font-size: 0.9rem; margin-bottom: 0.5rem; line-height: 1.6; }
.footer-col a { color: #ccc; }
.footer-col a:hover { color: #fff; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a { font-size: 0.9rem; }

.footer-bottom { margin-top: 2rem; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.footer-bottom p { font-size: 0.85rem; color: #888; }

/* ---------- WORDPRESS-SPECIFIC ---------- */
/* WordPress alignment classes */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 0.5rem; }

/* WordPress block editor */
.wp-block-image img { border-radius: var(--radius); }

/* ---------- ENTRY CONTENT (Block Editor Output) ---------- */
.entry-content { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.entry-content p { margin-bottom: 1rem; line-height: 1.8; color: var(--text-muted); }
.entry-content h2 {
  font-size: 2rem;
  margin: 3rem 0 0.5rem; color: var(--text);
}
.entry-content h2 + p { color: var(--text-muted); margin-bottom: 2rem; }
.entry-content h3 { margin: 1.5rem 0 0.5rem; font-size: 1.2rem; color: var(--text); }
.entry-content ul, .entry-content ol { margin: 0.75rem 0 1rem 1.5rem; list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.4rem; color: var(--text-muted); line-height: 1.7; }
.entry-content blockquote {
  background: var(--light-bg); border-left: 4px solid var(--purple);
  padding: 1.5rem 2rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.entry-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.entry-content a { color: var(--purple); text-decoration: underline; }
.entry-content a:hover { color: var(--purple-dark); }

/* WordPress Block: Columns — card-style */
.entry-content .wp-block-columns {
  display: flex; gap: 1.25rem; margin: 1rem 0 1.5rem; flex-wrap: wrap;
}
.entry-content .wp-block-column {
  flex: 1; min-width: 220px;
  background: var(--card-bg); border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem; text-align: left;
  box-shadow: var(--shadow); transition: all var(--transition);
}
.entry-content .wp-block-column:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-4px);
}
/* Reset colors inside column cards */
.entry-content .wp-block-column h2 { margin: 0.5rem 0; font-size: 1.35rem; }
.entry-content .wp-block-column h3 { margin-top: 0.5rem; margin-bottom: 0.5rem; font-size: 1.15rem; }
.entry-content .wp-block-column p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.entry-content .wp-block-column ul { text-align: left; }

/* WordPress Block: Group with background */
.entry-content .wp-block-group { margin: 2rem 0; }
.entry-content .wp-block-group.has-background { padding: 2rem; border-radius: var(--radius-lg); }

/* WordPress Block: Separator */
.entry-content .wp-block-separator {
  border: none; border-top: 2px solid var(--border);
  margin: 3rem auto; max-width: 120px; opacity: 1;
}

/* WordPress Block: Buttons */
.entry-content .wp-block-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0; }
.entry-content .wp-block-button__link,
.entry-content .wp-block-button .wp-block-button__link {
  display: inline-block; padding: 0.7rem 1.75rem; border-radius: 50px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: all var(--transition);
  text-decoration: none !important;
  background: var(--purple) !important; color: #fff !important;
  border: 2px solid var(--purple) !important;
}
.entry-content .wp-block-button__link:hover,
.entry-content .wp-block-button .wp-block-button__link:hover {
  background: var(--purple-dark) !important; border-color: var(--purple-dark) !important;
  color: #fff !important; transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(107, 63, 160, 0.3);
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important; color: var(--purple) !important;
  border: 2px solid var(--purple) !important;
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--purple) !important; color: #fff !important;
}

/* Wide/full-width blocks break out of max-width container */
.entry-content .alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.entry-content .alignfull { max-width: none; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); width: 100vw; }

/* ---------- PAGE HEADER (Purple Banner) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--purple) 0%, #8B5FBF 100%);
  color: #fff; padding: 2.5rem 0; text-align: center;
  display: flex; align-items: center; justify-content: center;
}
.page-header .container { width: 100%; }
.page-header h1 {
  font-size: 2.2rem;
  margin: 0 0 0.5rem; color: #fff;
}
.page-header p { margin: 0; opacity: 0.9; }

/* Page content section spacing */
.page-content { padding: 3rem 0; }
.page-content .container { max-width: 1100px; margin: 0 auto; }
.page-content .section { padding: 3rem 0; }

/* When page-content wraps entry-content directly (old cached markup) */
.page-content > .entry-content {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
}

/* Impact amounts (Donate page — h3 with $ amounts) */
.entry-content .wp-block-column h3.wp-block-heading:first-child {
  color: var(--purple); font-size: 1.15rem;
}

/* Donate page — columns with lists should have left-aligned lists */
.entry-content .wp-block-column .wp-block-list {
  text-align: left; list-style: disc; margin-left: 1.25rem;
}
.entry-content .wp-block-column .wp-block-list li {
  margin-bottom: 0.3rem; font-size: 0.9rem; color: var(--text-muted);
}

/* First paragraph on pages (subtitle) */
.entry-content > p:first-child {
  font-size: 1.1rem; color: var(--text-muted); text-align: center;
  max-width: 700px; margin: 0 auto 2rem;
}

/* Home page entry-content section background */
.front-page-content { background: var(--light-bg); padding: 4rem 0; }
.front-page-content .entry-content { padding: 0 1.5rem; }

/* Single ferret page */
.single-ferret-header {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
    margin-bottom: 2rem; align-items: start;
}
.single-ferret-gallery { margin-bottom: 0; }
.gallery-main { margin-bottom: 0.75rem; }
.gallery-main img {
    width: 100%; max-height: 420px; object-fit: cover;
    border-radius: var(--radius); display: block;
}
.gallery-thumbs {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.gallery-thumb {
    width: 72px; height: 72px; padding: 0; border: 2px solid var(--border);
    border-radius: 8px; overflow: hidden; cursor: pointer;
    background: none; transition: border-color 0.2s;
}
.gallery-thumb:hover,
.gallery-thumb.active { border-color: var(--purple); }
.gallery-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.single-ferret-details h1 {
    font-family: var(--font-heading); color: var(--purple);
    font-size: 2rem; margin: 0 0 1rem;
}
.single-ferret-meta { margin-bottom: 1.5rem; }
.meta-row { display: flex; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.meta-label { font-weight: 700; min-width: 100px; color: #555; }
.meta-value { color: #222; }
.status-notice {
    padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.95rem;
}
.status-notice.pending { background: #fff3e0; border: 1px solid #ffcc80; color: #e65100; }
.status-notice.adopted { background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; }
.single-ferret-description { margin-top: 1.5rem; line-height: 1.8; }
.single-ferret-cta { margin-top: 1.5rem; text-align: center; }
.back-link {
    color: #fff; text-decoration: none; font-weight: 600; opacity: 0.9;
    transition: opacity 0.2s;
}
.back-link:hover { opacity: 1; text-decoration: underline; }

/* Individual member cards on single ferret page */
.single-ferret-members {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem; margin: 1.5rem 0;
}
.member-detail-card {
    background: var(--warm-bg, #FFF9F5); border: 1px solid var(--border, #e0e0e0);
    border-radius: var(--radius, 12px); overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.member-detail-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.member-detail-photo img {
    width: 100%; height: 180px; object-fit: cover; display: block;
}
.member-detail-info { padding: 1rem; }
.member-detail-name {
    font-family: var(--font-heading); font-size: 1.15rem;
    color: var(--purple, #6B3FA0); margin: 0 0 0.5rem;
}
.member-detail-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.meta-tag.colour {
    background: #f3e8ff; color: #7c3aed;
    font-size: 0.78rem; padding: 0.2rem 0.6rem; border-radius: 50px; font-weight: 600;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .about-preview-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .single-ferret-header { grid-template-columns: 1fr; }
  .mobile-menu-btn { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg); z-index: 99;
  }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; padding: 0.5rem; }
  .main-nav ul a { padding: 0.75rem 1rem; }
  .header-buttons { display: none; }
  .mobile-cta { display: flex; gap: 0.75rem; padding: 0.75rem 1rem 1rem; }
  .mobile-cta .btn { flex: 1; text-align: center; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle, .hero-sub { font-size: 1rem; }
  .page-hero h1 { font-size: 1.7rem; }
  .page-header h1 { font-size: 1.7rem; }
  .filters, .filter-bar { flex-direction: column; max-width: 100%; }
  .filter-group { min-width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .donate-methods-grid { grid-template-columns: 1fr; }
  /* Block columns go 2-column on tablet */
  .entry-content .wp-block-columns { gap: 1rem; }
  .entry-content .wp-block-column { min-width: calc(50% - 0.75rem); padding: 1.5rem 1rem; }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero-buttons { flex-direction: column; }
  .ferret-grid { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .stat-number { font-size: 1.5rem; }
  /* Block columns stack on mobile */
  .entry-content .wp-block-columns { flex-direction: column; gap: 1rem; }
  .entry-content .wp-block-column { min-width: 100%; }
  .entry-content h2 { font-size: 1.6rem; }
}

/* ---------- WPFORMS OVERRIDES ---------- */
div.wpforms-container-full .wpforms-form .wpforms-field-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  text-align: left;
}
div.wpforms-container-full .wpforms-form .wpforms-field {
  padding: 0 0 0.6rem;
}
div.wpforms-container-full .wpforms-form input.wpforms-field-large,
div.wpforms-container-full .wpforms-form textarea.wpforms-field-large {
  font-family: 'Nunito', sans-serif;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
div.wpforms-container-full .wpforms-form textarea.wpforms-field-large {
  min-height: 120px;
}
div.wpforms-container-full .wpforms-form input:focus,
div.wpforms-container-full .wpforms-form textarea:focus {
  border-color: var(--purple) !important;
  box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.1) !important;
}
div.wpforms-container-full .wpforms-form button[type="submit"].wpforms-submit {
  font-family: 'Nunito', sans-serif;
  background: var(--purple) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 0.75rem 2rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
}
div.wpforms-container-full .wpforms-form button[type="submit"].wpforms-submit:hover {
  background: var(--purple-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
/* Form inside column cards — left-align, no center */
.entry-content .wp-block-column .wpforms-container {
  text-align: left;
}

/* ========================================
   MULTI-STEP APPLICATION FORMS
   ======================================== */

/* ---------- Progress Bar ---------- */
.form-progress-section {
  padding: 2rem 0 0;
}
.form-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: 700px;
  margin: 0 auto;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.progress-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light-bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.progress-step.active .progress-circle {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(107, 63, 160, 0.2);
}
.progress-step.completed .progress-circle {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-size: 0;
}
.progress-step.completed .progress-circle::after {
  content: '✓';
  font-size: 0.85rem;
}
.progress-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.progress-step.active .progress-label { color: var(--purple); }
.progress-step.completed .progress-label { color: var(--green); }
.progress-line {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  min-width: 20px;
  max-width: 60px;
  margin-bottom: 1.4rem;
  transition: background var(--transition);
}
.progress-line.filled { background: var(--green); }

/* ---------- Form Steps ---------- */
.apply-section { padding-bottom: 3rem; }
.multi-step-form .form-step { display: none; }
.multi-step-form .form-step.active {
  display: block;
  animation: fadeInUp 0.35s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.step-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.step-header h2 {
  font-size: 1.5rem;
  color: var(--purple-dark);
  margin-bottom: 0.35rem;
}
.step-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.step-header p a { color: var(--purple); font-weight: 700; }

/* ---------- Form Card ---------- */
.form-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: 0 auto;
}

/* ---------- Form Row (2-col grid) ---------- */
.multi-step-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ---------- Form Group ---------- */
.multi-step-form .form-group {
  margin-bottom: 1.25rem;
}
.multi-step-form .form-group:last-child { margin-bottom: 0; }
.multi-step-form .form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--text);
  line-height: 1.4;
}
.multi-step-form .form-group input,
.multi-step-form .form-group select,
.multi-step-form .form-group textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition);
  background: #fff;
  box-sizing: border-box;
}
.multi-step-form .form-group input:focus,
.multi-step-form .form-group select:focus,
.multi-step-form .form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.1);
}

/* Half-width fields */
.multi-step-form .form-half {
  max-width: 320px;
}

/* ---------- Required asterisk ---------- */
.multi-step-form .required {
  color: var(--coral);
  font-weight: 800;
}

/* ---------- Validation errors ---------- */
.multi-step-form .field-error {
  display: block;
  font-size: 0.8rem;
  color: var(--coral);
  font-weight: 600;
  margin-top: 0.25rem;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.multi-step-form .field-error.visible { opacity: 1; }
.multi-step-form .has-error input,
.multi-step-form .has-error select,
.multi-step-form .has-error textarea {
  border-color: var(--coral) !important;
  box-shadow: 0 0 0 3px rgba(232, 99, 111, 0.15);
}
.multi-step-form .field-warning {
  background: #FFF3CD;
  border: 1px solid #FFECB5;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  margin-top: 0.5rem;
  color: #856404;
}

/* ---------- Radio & Checkbox Groups ---------- */
.multi-step-form .radio-group,
.multi-step-form .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.3rem;
}
.multi-step-form .radio-label,
.multi-step-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--light-bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.multi-step-form .radio-label:hover,
.multi-step-form .checkbox-label:hover {
  border-color: var(--purple);
  background: var(--purple-light);
}
.multi-step-form .radio-label input,
.multi-step-form .checkbox-label input {
  accent-color: var(--purple);
  width: 15px;
  height: 15px;
  padding: 0;
  margin: 0;
  border: none;
  box-shadow: none;
}
.multi-step-form .radio-label:has(input:checked),
.multi-step-form .checkbox-label:has(input:checked) {
  border-color: var(--purple);
  background: var(--purple-light);
  color: var(--purple-dark);
}
.multi-step-form .checkbox-group {
  flex-direction: column;
}
.multi-step-form .checkbox-label {
  width: fit-content;
}

/* ---------- Form Navigation ---------- */
.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 680px;
  margin: 1.5rem auto 0;
  gap: 1rem;
}
.form-step-indicator {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}
.form-nav .btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ---------- Success Message ---------- */
.form-success {
  text-align: center;
  padding: 3rem 0;
}
.success-inner {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
}
.success-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 1rem;
}
.success-inner h2 {
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}
.success-inner p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.success-inner .btn { margin-top: 1rem; }

/* ---------- Multi-step form responsive ---------- */
@media (max-width: 768px) {
  .form-card { padding: 1.5rem 1.25rem; }
  .multi-step-form .form-row { grid-template-columns: 1fr; }
  .multi-step-form .form-half { max-width: 100%; }
  .form-progress { gap: 0.25rem; }
  .progress-label { font-size: 0.6rem; }
  .progress-line { min-width: 12px; }
  .step-header h2 { font-size: 1.3rem; }
}
@media (max-width: 480px) {
  .form-progress { gap: 0.15rem; }
  .progress-circle { width: 28px; height: 28px; font-size: 0.75rem; }
  .progress-label { display: none; }
  .form-nav { flex-direction: column; gap: 0.75rem; }
  .form-card { padding: 1.25rem 1rem; }
}