/* ============================================
   Work For Care Animal Foundation - Main Styles
   ============================================ */

:root {
  --color-primary: #2d6a4f;
  --color-primary-dark: #1b4332;
  --color-primary-light: #40916c;
  --color-accent: #e76f51;
  --color-accent-hover: #d45a3c;
  --color-dark: #1a1a2e;
  --color-text: #4a4a5a;
  --color-text-light: #6b7280;
  --color-bg-light: #f8faf9;
  --color-white: #ffffff;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.3;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-light);
}

img {
  max-width: 100%;
  height: auto;
}

.section-padding {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* Header Top */
.header-top {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 0;
  font-size: 0.875rem;
}

.header-top a {
  color: rgba(255, 255, 255, 0.9);
}

.header-top a:hover {
  color: var(--color-white);
}

.header-top i {
  color: var(--color-accent);
  margin-right: 6px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 0.8rem;
  transition: background var(--transition), transform var(--transition);
}

.social-links a:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Main Header */
.main-header {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  z-index: 1030;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 12px;
  color: var(--color-white);
  font-size: 1.25rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-dark);
}

.brand-text small {
  font-size: 0.65rem;
  color: var(--color-text-light);
  font-weight: 500;
  max-width: 180px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--color-dark);
  padding: 8px 16px !important;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-primary);
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  padding: 8px;
}

.dropdown-item {
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
}

.dropdown-item:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

.btn-donate {
  background: var(--color-accent);
  color: var(--color-white) !important;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  transition: background var(--transition), transform var(--transition);
}

.btn-donate:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  color: var(--color-white);
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Slider */
.hero-slider {
  position: relative;
}

.hero-slide {
  min-height: 85vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(27, 67, 50, 0.88) 0%, rgba(27, 67, 50, 0.45) 60%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 15px;
  max-width: 700px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--color-white);
  margin-bottom: 16px;
  font-weight: 700;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  font-weight: 500;
}

.btn-hero {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid var(--color-accent);
  transition: all var(--transition);
}

.btn-hero:hover {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  background: transparent;
  opacity: 0.6;
}

.carousel-indicators .active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
}

.carousel-control-prev { left: 20px; }
.carousel-control-next { right: 20px; }

/* Mission Intro */
.mission-intro .section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* Action Cards */
.action-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 40px 32px;
  height: 100%;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.action-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 50%;
  color: var(--color-white);
  font-size: 1.75rem;
}

.action-card h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.card-tagline {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.action-card p:last-of-type {
  margin-bottom: 24px;
  color: var(--color-text-light);
}

.btn-primary-custom {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}

.btn-primary-custom:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-custom {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  transition: all var(--transition);
}

.btn-outline-custom:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Counter Section */
.counter-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  position: relative;
}

.counter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1450778869180-41d0601e046e?w=1920&q=20') center/cover;
  opacity: 0.08;
}

.counter-section .container {
  position: relative;
  z-index: 1;
}

.counter-box {
  color: var(--color-white);
  padding: 20px;
}

.counter-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
}

.counter-plus {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
}

.counter-box h4 {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 12px;
}

/* About Section */
.about-image img {
  box-shadow: var(--shadow-lg);
}

.mission-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.mission-list li {
  padding: 8px 0;
  font-weight: 500;
}

.mission-list i {
  color: var(--color-primary);
  margin-right: 10px;
}

/* Program Cards */
.program-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.program-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.program-content {
  padding: 24px;
}

.program-content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.program-content p {
  color: var(--color-text-light);
  margin: 0;
  font-size: 0.95rem;
}

/* Story Cards */
.story-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: box-shadow var(--transition);
}

.story-card:hover {
  box-shadow: var(--shadow-md);
}

.story-image {
  display: block;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.story-card:hover .story-image img {
  transform: scale(1.05);
}

.story-body {
  padding: 24px;
}

.story-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.story-body h3 a {
  color: var(--color-dark);
}

.story-body h3 a:hover {
  color: var(--color-primary);
}

.story-body p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.read-more {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more i {
  transition: transform var(--transition);
}

.read-more:hover i {
  transform: translateX(4px);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(rgba(27, 67, 50, 0.9), rgba(27, 67, 50, 0.9)),
    url('https://images.unsplash.com/photo-1548199973-03cce0bbc87b?w=1920&q=80') center/cover fixed;
  color: var(--color-white);
  text-align: center;
}

.cta-section h2 {
  color: var(--color-white);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 28px;
}

/* Team */
.team-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px 20px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.team-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.75rem;
}

.team-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.team-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin: 0;
}

/* Newsletter */
.newsletter-section {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.newsletter-section h2 {
  color: var(--color-white);
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.newsletter-section p {
  opacity: 0.85;
  margin: 0;
}

.newsletter-form .form-control {
  border: none;
  padding: 14px 20px;
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
}

.newsletter-form .form-control:focus {
  box-shadow: none;
}

.newsletter-form .btn {
  border-radius: 0 50px 50px 0;
  padding: 14px 24px;
}

/* Footer */
.main-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
}

.footer-main h3 {
  color: var(--color-white);
  font-size: 1.15rem;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand strong {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition), padding-left var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.contact-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.contact-list i {
  color: var(--color-accent);
  margin-top: 4px;
  flex-shrink: 0;
}

.contact-list a {
  color: rgba(255, 255, 255, 0.85);
}

.contact-list a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  font-size: 0.9rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-nav a:hover {
  color: var(--color-white);
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-accent-hover);
  transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 991px) {
  .section-padding {
    padding: 60px 0;
  }

  .hero-slide {
    min-height: 70vh;
  }

  .brand-text small {
    display: none;
  }
}

@media (max-width: 767px) {
  .header-top {
    font-size: 0.8rem;
  }

  .header-top .top-info {
    flex-direction: column;
    gap: 6px !important;
  }

  .section-padding {
    padding: 48px 0;
  }

  .action-card {
    padding: 32px 24px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
}
