/*
Theme Name: Redditch Cat Rescue
Theme URI: https://redditchcatrescue.co.uk
Author: Redditch Cat Rescue
Description: Custom theme for Redditch Cat Rescue — a volunteer-run charity rescuing, rehabilitating and rehoming cats in Redditch, Worcestershire. Registered Charity No. 1163874.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: redditch-cat-rescue
*/

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

:root {
  --blue-900: #0c2340;
  --blue-800: #133a5e;
  --blue-700: #1a517c;
  --blue-600: #21689a;
  --blue-500: #2980b9;
  --blue-400: #5198c9;
  --blue-300: #7ab0d9;
  --blue-200: #a3c8e9;
  --blue-100: #d1e4f4;
  --blue-50: #eaf2fa;
  --accent: #e8a838;
  --accent-dark: #d4922a;
  --warm-white: #fafbfd;
  --text-dark: #1a2332;
  --text-mid: #4a5568;
  --text-light: #718096;
  --shadow-sm: 0 1px 3px rgba(12,35,64,0.08);
  --shadow-md: 0 4px 16px rgba(12,35,64,0.10);
  --shadow-lg: 0 8px 32px rgba(12,35,64,0.14);
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--warm-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blue-100);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.5rem;
}
.nav-logo { height: 48px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-mid); font-weight: 500;
  font-size: 0.95rem; transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0;
  height: 2px; background: var(--blue-500); transition: width 0.3s;
}
.nav-links a:hover { color: var(--blue-600); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--blue-600); color: #fff !important; padding: 0.5rem 1.25rem;
  border-radius: 8px; font-weight: 600; transition: background 0.2s, transform 0.2s;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--blue-700); transform: translateY(-1px); }

.burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative;
}
.burger span {
  display: block; width: 100%; height: 2px; background: var(--text-dark);
  position: absolute; left: 0; transition: 0.3s;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3) { bottom: 0; }

/* ─── HERO ─── */
.hero-banner {
  width: 100%;
  margin-top: 70px;
}
.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem; border-radius: 10px;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.25s;
}
.btn-primary { background: var(--accent); color: var(--blue-900); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ─── SECTIONS ─── */
.section-label {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--blue-500); margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--blue-900); margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.1rem; color: var(--text-mid);
  max-width: 650px; line-height: 1.7; margin-bottom: 3rem;
}

/* ─── MISSION ─── */
.mission { padding: 5rem 1.5rem; background: #fff; }
.mission-inner { max-width: 1100px; margin: 0 auto; }
.mission-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.mission-card {
  padding: 2rem; border-radius: var(--radius);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  display: flex; gap: 1.25rem; align-items: flex-start;
  transition: transform 0.25s, box-shadow 0.25s;
}
.mission-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mission-icon {
  flex-shrink: 0; width: 48px; height: 48px;
  background: var(--blue-600); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.mission-icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mission-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--blue-900); margin-bottom: 0.35rem; }
.mission-card p { font-size: 0.95rem; color: var(--text-mid); line-height: 1.6; }

/* ─── CATS ─── */
.cats { padding: 5rem 1.5rem; background: linear-gradient(180deg, var(--warm-white), var(--blue-50)); }
.cats-inner { max-width: 1200px; margin: 0 auto; }
.cats-header { margin-bottom: 3rem; }
.cats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.cat-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--blue-100);
  transition: transform 0.3s, box-shadow 0.3s;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cat-image {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  background: var(--blue-100);
}
.cat-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-200));
  display: flex; align-items: center; justify-content: center;
}
.cat-placeholder svg { width: 64px; height: 64px; opacity: 0.4; }
.cat-body { padding: 1.5rem; }
.cat-status {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 20px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 0.75rem;
}
.cat-status.available { background: #e6f9ee; color: #1a7a3a; }
.cat-status.reserved { background: #fff3e0; color: #b86e00; }
.cat-status.rehomed { background: var(--blue-100); color: var(--blue-700); }
.cat-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem; color: var(--blue-900); margin-bottom: 0.25rem;
}
.cat-meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.75rem; }
.cat-desc { font-size: 0.92rem; color: var(--text-mid); line-height: 1.6; }
.cat-enquire {
  display: inline-block; margin-top: 1rem; font-weight: 600;
  color: var(--blue-600); text-decoration: none; font-size: 0.9rem;
}
.cat-enquire:hover { color: var(--blue-800); text-decoration: underline; }
.no-cats {
  text-align: center; padding: 4rem 2rem;
  background: #fff; border-radius: var(--radius-lg);
  border: 2px dashed var(--blue-200);
  grid-column: 1 / -1;
}
.no-cats p { color: var(--text-mid); font-size: 1.1rem; }

/* ─── DONATE ─── */
.donate { padding: 5rem 1.5rem; background: #fff; }
.donate-inner { max-width: 1100px; margin: 0 auto; }
.donate-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}
.donate-card {
  padding: 2.5rem 2rem; border-radius: var(--radius-lg);
  border: 1px solid var(--blue-100); background: #fff;
  text-align: center; transition: transform 0.3s, box-shadow 0.3s;
}
.donate-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.donate-card-icon {
  width: 64px; height: 64px; border-radius: 16px;
  margin: 0 auto 1.25rem; display: flex; align-items: center; justify-content: center;
}
.donate-card-icon.paypal { background: #ffeedd; }
.donate-card-icon.amazon { background: #fff4e0; }
.donate-card-icon.pound { background: var(--blue-50); }
.donate-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem; color: var(--blue-900); margin-bottom: 0.5rem;
}
.donate-card p { font-size: 0.95rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 1.25rem; }
.donate-card .btn { width: 100%; justify-content: center; font-size: 0.95rem; }
.btn-paypal { background: #0070ba; color: #fff; }
.btn-paypal:hover { background: #005ea6; }
.btn-amazon { background: #ff9900; color: #111; }
.btn-amazon:hover { background: #e68a00; }
.btn-pound { background: var(--blue-600); color: #fff; }
.btn-pound:hover { background: var(--blue-700); }
.bank-details {
  text-align: left; background: var(--blue-50); padding: 1rem 1.25rem;
  border-radius: 8px; font-size: 0.88rem; line-height: 1.8;
  color: var(--text-dark); margin-top: 0.5rem;
}
.bank-details strong { color: var(--blue-800); }

/* ─── CONTACT ─── */
.contact { padding: 5rem 1.5rem; background: linear-gradient(180deg, var(--blue-50), var(--warm-white)); }
.contact-inner { max-width: 800px; margin: 0 auto; }
.contact-form {
  background: #fff; padding: 2.5rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); border: 1px solid var(--blue-100);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; margin-bottom: 1rem; }
.form-group label {
  font-size: 0.88rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.4rem;
}
.form-group input, .form-group textarea, .form-group select {
  padding: 0.75rem 1rem; border: 1.5px solid var(--blue-200);
  border-radius: 8px; font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s; background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(41,128,185,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }
/* Required star and adoption hint */
.required-star { color: var(--blue-600); margin-left: 2px; }
.form-hint { font-weight: 400; color: var(--text-light); font-style: italic; margin-left: 4px; }
.form-group textarea { min-height: 80px; }
.form-note {
  text-align: center; margin-top: 1rem; font-size: 0.82rem; color: var(--text-light);
}
.form-note a { color: var(--blue-600); }
.form-success {
  background: #e6f9ee; color: #1a7a3a; padding: 1rem 1.5rem;
  border-radius: 8px; margin-bottom: 1.5rem; font-weight: 500;
}
.form-error {
  background: #fef2f2; color: #b91c1c; padding: 1rem 1.5rem;
  border-radius: 8px; margin-bottom: 1.5rem; font-weight: 500;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--blue-900); color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-top: 0.75rem; }
.footer-logo { height: 40px; filter: brightness(0) invert(1); opacity: 0.8; margin-bottom: 0.5rem; }
.footer h4 {
  color: #fff; font-size: 0.9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer ul a:hover { color: #fff; }
.footer-bottom {
  max-width: 1100px; margin: 2rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: #fff;
    padding: 1rem 1.5rem 1.5rem; gap: 0.75rem;
    box-shadow: var(--shadow-lg); border-top: 1px solid var(--blue-100);
  }
  .nav-links.open .nav-cta { text-align: center; }
  .hero { min-height: 80vh; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .mission-grid { grid-template-columns: 1fr; }
}

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ─── WP ADMIN BAR FIX ─── */
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .nav { top: 46px; }
}
