/* ============================================
   Rolla Animal Alliance — Modern Redesign
   Clean & Warm Nonprofit Theme
   ============================================ */

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

:root {
  --color-primary: #D4922E;
  --color-primary-dark: #B87A1F;
  --color-primary-light: #F5DEB3;
  --color-accent: #E8A948;
  --color-dark: #1E293B;
  --color-text: #334155;
  --color-text-light: #64748B;
  --color-bg: #FEFCF9;
  --color-bg-warm: #FFF8F0;
  --color-bg-card: #FFFFFF;
  --color-border: #E8DDD0;
  --color-success: #16A34A;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1140px;
  --nav-height: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary); }

h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }
hr {
  border: none;
  border-top: 2px solid var(--color-border);
  margin: 2.5rem 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-white {
  background: #fff;
  color: var(--color-primary-dark);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--color-bg-warm);
  color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}
.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-dark);
  text-decoration: none;
}
.nav-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-logo:hover { color: var(--color-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  padding: 0.5rem 1rem;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.925rem;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary-dark);
  background: var(--color-bg-warm);
}
.nav-links .nav-donate {
  background: var(--color-primary);
  color: #fff !important;
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  margin-left: 0.5rem;
}
.nav-links .nav-donate:hover {
  background: var(--color-primary-dark);
  color: #fff !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-dark);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; width: 100%; }
  .nav-links .nav-donate { margin-left: 0; text-align: center; justify-content: center; }
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #1E293B 0%, #334155 50%, #44403C 100%);
  color: #fff;
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23D4922E" fill-opacity="0.06" d="M0,224L48,213.3C96,203,192,181,288,186.7C384,192,480,224,576,218.7C672,213,768,171,864,165.3C960,160,1056,192,1152,197.3C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom center;
  background-size: cover;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-logo-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  background: rgba(255,255,255,0.95);
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.hero h1 {
  color: #fff;
  font-size: 3.25rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  max-width: 580px;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .hero { padding: 3.5rem 1.5rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1.05rem; }
  .hero-logo-img { width: 90px; height: 90px; }
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, #1E293B 0%, #334155 60%, #44403C 100%);
  color: #fff;
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}
.page-header h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .page-header { padding: 2.5rem 1.5rem 2rem; }
  .page-header h1 { font-size: 2rem; }
}

/* --- Sections --- */
.section {
  padding: 4.5rem 0;
}
.section-warm {
  background: var(--color-bg-warm);
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-warm);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.card h4 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.card p { color: var(--color-text-light); font-size: 0.95rem; margin-bottom: 1.25rem; }
.card .btn { width: 100%; justify-content: center; }

/* Feature cards (homepage) */
.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.feature-card .card-icon {
  margin: 0 auto 1.25rem;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.feature-card p { color: var(--color-text-light); font-size: 0.95rem; }

/* --- Donate Banner (CTA) --- */
.cta-banner {
  background: linear-gradient(135deg, #1E293B 0%, #2D3A4A 50%, #3D3427 100%);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}
.cta-banner h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 2rem;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-buttons .btn {
  min-width: 180px;
  justify-content: center;
}
@media (max-width: 600px) {
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 300px; }
}

/* --- Impact Stats --- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.stat {
  text-align: center;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  display: block;
  line-height: 1.2;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* --- Content Area (blog posts / inner pages) --- */
.content-area {
  max-width: 740px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.content-area h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.content-area h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.content-area ul, .content-area ol {
  padding-left: 1.5rem;
}
.content-area li {
  margin-bottom: 0.6rem;
}
.content-area img {
  border-radius: var(--radius-md);
  margin: 1.5rem auto;
}
.content-area .align-center {
  text-align: center;
}
.content-area strong {
  color: var(--color-dark);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}
.footer-cta {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer a {
  color: rgba(255,255,255,0.85);
}
.site-footer a:hover {
  color: var(--color-primary-light);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
  list-style: none;
  padding: 0;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.footer-social a:hover {
  background: var(--color-primary);
  color: #fff;
}
.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-top: 1.5rem;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.note {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: italic;
}

/* --- 404 Page --- */
.error-section {
  text-align: center;
  padding: 6rem 1.5rem;
}
.error-section h1 {
  font-size: 6rem;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.error-section h2 {
  margin-bottom: 1rem;
}
.error-section p {
  color: var(--color-text-light);
  max-width: 420px;
  margin: 0 auto 2rem;
}

/* --- Donation Page Grid --- */
.donate-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* --- About Page --- */
.team-photo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 0 auto 2rem;
  max-width: 600px;
}

/* --- Breadcrumb-style back link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}
.back-link:hover { color: var(--color-primary); }
