/**
 * Barb's Dog Rescue - Combined CSS File
 * This file contains all custom styles that were previously in separate files
 */

/* -----------------------------------------
   1. Core Variables and Base Styles
----------------------------------------- */
:root {
  /* Core brand colors from logo */
  --barbs-primary: #B12025;
  --barbs-secondary: #FFF8DC;
  --barbs-accent: #588CD3;
  --barbs-light: #FFFFFF;
  --barbs-dark: #333333;
}

:root {
  --nav-color: #333333;
  --nav-hover-color: #588CD3;
  --nav-background-color: #FFF8DC;
}

/* -----------------------------------------
   2. Header & Navigation
----------------------------------------- */
/* Topbar styling */
.topbar {
  background-color: var(--barbs-dark) !important; /* Red */
  color: white !important;
}

.topbar .contact-info i,
.topbar .contact-info a,
.topbar .contact-info span,
.topbar .social-links a,
.topbar .social-links i {
  color: white !important;
}

/* Branding section */
.branding {
  background-color: var(--nav-background-color) !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid #e9e9e9;
}

/* Logo styling */
.logo {
  display: flex !important;
  align-items: center !important;
  padding: 10px 0;
  z-index: 100 !important;
  position: relative !important;
}

.logo img,
.header .logo img,
.branding .logo img,
.logo-img {
  max-height: 50px !important;
  width: auto !important;
  display: inline-block !important;
  margin-right: 12px !important;
  visibility: visible !important;
  opacity: 1 !important;
  border-radius: 50%;
}

/* Clear any potential conflicting styles */
.header .logo::before,
.header .logo::after {
  display: none !important;
  content: none !important;
}

.logo .sitename {
  display: inline-block !important;
  color: var(--nav-color) !important;
  margin: 0 !important;
}

/* Navigation styling - completely overriding theme defaults */
.mobile-nav-toggle {
  color: var(--nav-color) !important;
}

.navmenu ul li a {
  position: relative;
  color: var(--nav-color) !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
  padding: 8px 0;
}

/* Remove ALL default underlines/effects from the theme */
.navmenu > ul > li > a:before {
  display: none !important;
  content: none !important;
  background: none !important;
}

.navmenu a:hover:before,
.navmenu li:hover > a:before,
.navmenu .active:before {
  width: 0 !important;
  visibility: hidden !important;
}

/* Add our own single underline effect */
.navmenu ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

/* Only show the underline on hover or active state */
.navmenu ul li a:hover::after,
.navmenu ul li a.active::after {
  background-color: var(--nav-hover-color) !important;
}

/* Text color change on hover/active */
.navmenu ul li a:hover,
.navmenu ul li a.active {
  color: var(--nav-hover-color) !important;
}

/* primary red button */
.btn-barbs-primary {
  background-color: var(--barbs-primary);
  color: #fff !important;
  border: 2px solid var(--barbs-primary);
  border-radius: 50px; /* pill style */
  padding: 10px 24px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-barbs-primary:hover {
  background-color: white;
  border: 2px solid var(--barbs-primary);
  color: var(--barbs-primary) !important;
}

/* secondary buttons */
.btn-outline-accent {
  color: var(--barbs-accent);
  border: 2px solid var(--barbs-accent);
  background-color: transparent;
  border-radius: 50px; /* pill style like your red CTA */
  padding: 10px 24px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-accent:hover {
  background-color: var(--barbs-accent);
  color: white !important;
}

.btn-outline-primary:hover {
  color: white !important
}

.text-accent {
  color: var(--barbs-accent) !important;
  font-weight: 600;
}

a {
  color: var(--barbs-accent) !important;
}

/* -----------------------------------------
   3. Hero Section
----------------------------------------- */
.hero {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 160px 0 40px 0 !important; /* Adjusted: more top padding, less bottom padding */
  background: var(--barbs-light) !important; /* White background */
  color: var(--barbs-dark) !important;
}

.hero h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--barbs-dark);
  line-height: 1.2;
}

.hero h2 .accent {
  color: var(--barbs-accent);
}

.hero p {
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--barbs-dark);
}

.hero-img img {
  max-width: 100%;
  border-radius: 8px; /* Added rounded corners to make the image pop */
}

/* Hero buttons */
.hero .btn-get-started {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 36px;
  border-radius: 50px;
  transition: 0.3s;
  margin: 0;
  color: var(--barbs-light);
  background: var(--barbs-primary);
  border: 2px solid var(--barbs-primary);
  box-shadow: 0 8px 15px rgba(177, 32, 37, 0.2);
}

.hero .btn-get-started:hover {
  background: transparent;
  color: var(--barbs-primary);
  box-shadow: 0 10px 20px rgba(177, 32, 37, 0.25);
  transform: translateY(-2px);
}

.hero .btn-watch-video {
  font-size: 16px;
  transition: 0.5s;
  margin: 10px;
  color: var(--barbs-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 12px 30px;
  border: 2px solid var(--barbs-dark);
  border-radius: 50px;
}

.hero .btn-watch-video i {
  color: var(--barbs-primary);
  font-size: 24px;
  transition: 0.3s;
  margin-right: 8px;
}

.hero .btn-watch-video:hover {
  background: var(--barbs-dark);
  color: var(--barbs-light);
}

.hero .btn-watch-video:hover i {
  color: var(--barbs-light);
}

/* -----------------------------------------
   4. Feature Boxes
----------------------------------------- */
.feature-boxes {
  background-color: var(--barbs-accent) !important; /* Teal green */
  color: var(--barbs-light) !important;
  padding: 40px 0 60px; /* Reduced top padding from 80px to 40px */
  position: relative;
  z-index: 4;
  margin-top: -20px; /* Added negative margin to pull it closer to hero section */
}

/* Remove the before pseudo-element to have cleaner design */
.feature-boxes .icon-boxes {
  position: relative;
  padding-top: 0;
  margin-top: -40px;
}

.feature-boxes .icon-box {
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
  background: var(--barbs-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease-in-out;
  border-radius: 10px;
  z-index: 1;
  height: 100%;
  width: 100%;
  text-align: center;
  color: var(--barbs-light);
  transform: translateY(0);
  border: 2px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 20px;
}

.feature-boxes .icon-box .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 20px;
}

.feature-boxes .icon-box .title a {
  color: var(--barbs-light);
  transition: 0.3s;
}

.feature-boxes .icon-box .icon {
  margin-bottom: 20px;
  margin-top: 10px;
  padding: 15px;
  display: inline-block;
  transition: all 0.3s ease-in-out;
  font-size: 42px;
  line-height: 1;
  color: var(--barbs-light);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-boxes .icon-box:hover {
  background-color: #006d5f;
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.feature-boxes .icon-box:hover .title a,
.feature-boxes .icon-box:hover .icon {
  color: var(--barbs-light);
}

.feature-boxes .icon-box:hover i {
  color: var(--barbs-secondary); /* Yellow icon on hover */
}

/* -----------------------------------------
   5. Call To Action Section
----------------------------------------- */
.cta-btn {
  background-color: var(--barbs-primary) !important;
  color: white !important;
  border-radius: 30px !important;
  padding: 12px 30px !important;
  font-weight: 600 !important;
  border: 2px solid var(--barbs-primary) !important;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background-color: white !important;
  color: var(--barbs-primary) !important;
}

/* Make the call-to-action section taller to show more background */
.call-to-action .container {
  padding-top: 160px !important;
  padding-bottom: 160px !important;
}

/* -----------------------------------------
   6. Stats Section
----------------------------------------- */
.stats {
  padding-top:50px !important;
  background: #f8f9fa;
}

.stats .stats-item {
  padding: 30px;
  width: 100%;
  background: var(--barbs-light);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

.stats .stats-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stats .stats-item i {
  font-size: 42px;
  line-height: 0;
  margin-right: 20px;
  color: var(--barbs-accent);
}

.stats .stats-item span {
  font-size: 36px;
  display: block;
  font-weight: 700;
  color: var(--barbs-primary);
  margin-bottom: 5px;
}

.stats .stats-item p {
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.stats .stats-item p strong {
  color: var(--barbs-dark);
  font-weight: 700;
  font-size: 18px;
}

.stats .stats-item p span {
  font-size: 14px;
  color: #777;
  font-weight: normal;
}

@media (max-width: 992px) {
  .stats .stats-item {
    margin-bottom: 20px;
  }
}

/* -----------------------------------------
   7. About Section
----------------------------------------- */
.about {
  padding: 40px 0;
  background-color: #f8f9fa;
  
}

.about h2 {
  color: var(--barbs-primary);
  margin-bottom: 20px;
  padding-bottom: 15px;
}

.about h2:after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--barbs-secondary);
  bottom: 0; 
}

/* Section headers override */
.section-header h2:after {
  background: var(--barbs-primary) !important;
}

/* -----------------------------------------
   8. Footer
----------------------------------------- */
.footer {
  background-color: var(--barbs-dark);
  color: var(--barbs-light);
  padding-top: 10px;
  padding-bottom: 30px;
  border-top: 3px solid var(--barbs-accent);
}

.footer-about .logo {
  margin-bottom: 20px;
}

.footer-about .logo img,
.footer-logo {
  max-height: 60px !important;
  width: auto !important;
  border-radius: 50%;
  display: block !important;
  margin-right: 10px;
}

.footer-about .sitename {
  font-size: 24px;
  font-weight: 600;
  color: var(--barbs-light);
}

.footer h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #CCC;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.footer-links ul a:hover {
  color: var(--barbs-accent) !important;
  text-decoration: underline;
}

.footer-contact p {
  margin-bottom: 5px;
}

.footer-contact a.btn-primary {
  background-color: transparent;
  border: 2px solid var(--barbs-light);
  color: var(--barbs-light);
  padding: 8px 20px;
  border-radius: 50px;
  display: inline-block;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-contact a.btn-primary:hover {
  background-color: var(--barbs-light);
  color: var(--barbs-primary);
}

.copyright {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}


.section {
  padding: 60px 0;
}
.section-title h2 {
  margin-bottom: 0.5rem;
}
.section-title p {
  margin-bottom: 1rem;
}
.section-title h2 {
  color: var(--barbs-accent) !important;
}
.section-title h2:after {
  background: var(--barbs-accent) !important;
}

/* Change the green checkboxes to barbs-primary red */
li .bi-check-circle-fill,
li i.bi-check-circle-fill,
.check-icon i,
.about-list i,
.about .content ul i {
  position: static !important;             /* Use normal flow */
  font-size: 0.9em !important;            /* Smaller icon */
  vertical-align: text-bottom !important;  /* Align better */
  margin-right: 0.3em !important;          /* Less space between icon and text */
  color: var(--barbs-accent) !important;
}

.about .content ul {
  padding-left: 0 !important; /* Remove default list padding */
}

.about .content ul li {
  padding-left: 0 !important; /* Don't reserve space for absolute icon */
}

.about .content ul i {
  line-height: 1 !important;
}

.copyright p {
  margin-bottom: 0;
  font-size: 14px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  margin-right: 10px;
  color: var(--barbs-light);
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: #FFF;
  transform: scale(1.4);
  transition: 0.2s ease;
}


/*--------------------------------------------------------------
# Scroll Top Button Overrides
--------------------------------------------------------------*/
.scroll-top {
  background-color: var(--barbs-accent) !important;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--barbs-accent), transparent 20%) !important;
  color: var(--contrast-color);
}


/* -----------------------------------------
   9. General Button Styling
----------------------------------------- */
.btn-primary {
  background-color: var(--barbs-primary);
  border-color: var(--barbs-primary);
  color: var(--barbs-light);
}

.btn-primary:hover {
  background-color: #9a1c20;
  border-color: #9a1c20;
}

.hero-cta .btn-secondary {
  background-color: var(--barbs-light);
  color: var(--barbs-primary);
  border-color: var(--barbs-light);
}

.get-started-btn {
  background-color: var(--barbs-primary) !important; /* Red */
  color: var(--barbs-light) !important;
  border-color: var(--barbs-primary) !important;
  padding: 10px 25px;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.get-started-btn:hover {
  background-color: transparent !important;
  color: var(--barbs-primary) !important;
}

/* General section styling */
.page-section {
  scroll-margin-top: 140px; /* Increased offset for fixed header when using anchor links */
  padding: 70px 0;
  position: relative;
}

/* Hero section - shared for all pages */
.page-hero {
  padding-top: 100px; /* Reduced padding to work with the mt-5 class added to the row */
  margin-top: 0;
  padding-bottom: 50px;
}

.page-hero h1 {
  color: var(--barbs-primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.page-hero h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* For backward compatibility - donate page */
#donate-hero {
  padding-top: 100px;
  margin-top: 0;
  padding-bottom: 50px;
}

#donate-hero h1 {
  color: var(--barbs-primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

#donate-hero h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* Section titles */
.section-title {
  color: #212529;
  margin-bottom: 2rem;
  font-weight: 700;
  position: relative;
  font-size: 2rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #dee2e6;
}

/* Donation amount buttons */
.donation-amounts a.btn {
  transition: all 0.3s ease;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
}

.donation-amounts a.btn:hover, 
.donation-amounts a.btn.active {
  background-color: var(--barbs-primary);
  color: white;
  border-color: var(--barbs-primary);
}

/* Info cards */
.donation-info-card {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

/* Giving badge */
.giving-badge {
  background-color: var(--barbs-primary);
  color: white;
  padding: 15px;
  border-radius: 50%;
  transform: rotate(15deg);
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Legacy section overlay */
.legacy-section-overlay {
  background-color: rgba(0, 0, 0, 0.7);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Paw print decorations */
.paw-decoration {
  max-width: 40px;
  opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .donation-links .btn {
    margin-bottom: 8px;
    font-size: 0.8rem;
  }
  
  #donate-hero h1 {
    font-size: 2rem;
  }
  
  #donate-hero h2 {
    font-size: 1.5rem;
  }
  
  .giving-badge {
    width: 100px;
    height: 100px;
    padding: 10px;
  }
}

/* Animation for donation buttons */
.donation-amounts button:active {
  transform: scale(0.95);
}

/* Button styling to match the screenshot */
.btn-danger {
  background-color: #BD1E2D;
  border-color: #BD1E2D;
}

.btn-danger:hover {
  background-color: #9a1c20;
  border-color: #9a1c20;
}

.btn-outline-primary {
  color: #0d6efd;
  border-color: #0d6efd;
}

.btn-outline-primary:hover {
  background-color: #0d6efd;
  color: white;
}

/* Tax info section */
.tax-info-section {
  background-color: #FFF3CD;
  padding: 20px 0;
}

.tax-info-section p {
  margin-bottom: 0;
  font-weight: 600;
}

/* -----------------------------------------
   11. Dog Adoption Styles 
----------------------------------------- */

/* Dog search result card styling */
.dog_search_result {
  border: 1px solid #d3d3d3;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dog_search_result:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dog_search_result img {
  border-radius: 10px;
  width: 100%;
}

.dog_search_result a:hover {
  text-decoration: none;
}

/* Dog name styling - using span element to be more specific */
.dog_search_result .col.pt-2 > span.fw-bold {
  color: var(--barbs-primary);
}

/* Results info styling */
.dog-results {
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem !important;
  background-color: #f8f9fa;
  padding: 10px 15px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Gender icons styling - using !important to ensure these styles take precedence */
.gender_male {
  color: #01a6ea !important;
}

.gender_female {
  color: #ffb1cb !important;
}

/* -----------------------------------------
   12. Mobile Navigation & Dropdown Fixes
----------------------------------------- */

/* Mobile Navigation Dropdown Fix */
.navmenu .dropdown .toggle-dropdown {
  position: absolute;
  right: 0;
  top: 0;
  height: 42px;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Base styles for adopt dropdown */
.adopt-dropdown {
  position: relative;
}

/* Mobile view adjustments */
@media (max-width: 1279px) {
  /* Force all list items to have the same padding and margin */
  .navmenu > ul > li {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Force all direct links in the menu to have the same padding */
  .navmenu > ul > li > a {
    padding: 10px 20px !important;
    margin: 0 !important;
    display: flex !important;
  }
  
  /* Override any special styling for the dropdown */
  .navmenu .adopt-dropdown {
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
  }
  
  /* Fix styling for adopt dropdown in mobile view */
  .adopt-dropdown > a {
    cursor: pointer !important;
  }

  /* Make the dropdown arrow more visible in mobile view */
  .adopt-dropdown .toggle-dropdown {
    position: absolute;
    right: 0;
    top: 0;
    height: 42px;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }
  
  /* Make adopt link exactly match other top-level links */
  .mobile-adopt-link {
    padding-left: 20px !important;
    margin-left: 0 !important;
    text-indent: 0 !important;
    display: block !important;
  }
  
  /* Ensure the dropdown is at the same level as other items */
  .navmenu > ul > li.adopt-dropdown {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Target all list items in the mobile nav to ensure consistency */
  .navmenu > ul > li {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
}

/* Desktop view fixes */
@media (min-width: 1280px) {
  .adopt-dropdown {
    display: flex !important;
    align-items: center !important;
  }
  
  .adopt-dropdown > a {
    cursor: pointer !important;
    padding-right: 5px !important; /* Minimal padding to keep it tight */
  }
  
  /* Hide the toggle dropdown completely in desktop view */
  .adopt-dropdown .toggle-dropdown {
    display: none !important;
  }
  
  .navmenu > ul > li {
    margin-left: 5px !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .navmenu > ul > li > a {
    padding-left: 9px !important;
    padding-right: 9px !important;
  }
}

/* Override the default mobile nav behavior for this specific link */
.mobile-adopt-link:focus {
  color: var(--nav-dropdown-color, #000) !important;
}

/* Style the dropdown when active */
.navmenu .dropdown.active > .toggle-dropdown i {
  transform: rotate(180deg);
}

/* Make sure the dropdown toggle is visible against the background */
.navmenu .dropdown .toggle-dropdown i {
  transition: 0.3s;
}

/* Mobile nav close button styles */
.mobile-nav-close {
  display: none;
}
body.mobile-nav-active .mobile-nav-close {
  display: block !important;
}


/* sub nav on pages */
.sub-nav {
  position: sticky;
  top: 85px; /* Adjusted to be below the fixed navbar */
  z-index: 98;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  margin-top: -15px; /* Pull it up slightly to reduce space */
  background: white;
}

.sub-nav .btn-group {
  flex-wrap: wrap;
  justify-content: center;
}

.sub-nav .btn {
  margin: 2px;
  transition: all 0.3s ease;
}

.sub-nav .btn:hover,
.sub-nav .btn:focus {
  background-color: var(--barbs-primary);
  color: white;
  border-color: var(--barbs-primary);
}


.subnav-links {
  margin-top: 15px;
}

.subnav-links .btn {
  font-size: 0.85rem;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
}