/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Chewy&family=Londrina+Solid&family=Baloo+2:wght@400;500;600;700;800&family=Roboto&family=Nunito&display=swap');

/**
 * Custom CSS for the Super Poop Scoopers site
 */

/* Font Styling */
.site-title, 
.site-title a,
.logo,
.brand-name {
  font-family: 'Chewy', cursive;
  font-size: 2.2rem;
}

nav a,
.main-navigation a, 
.mobile-menu-items a {
  font-family: 'Londrina Solid', sans-serif;
  letter-spacing: 0.05em;
}

h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .cta-title,
.benefit-title, .service-title, .team-name,
.testimonial-author h4, .faq-question h4 {
  font-family: 'Baloo 2', sans-serif;
}

body, p, li, .service-excerpt, .benefit-description,
.testimonial-content, .location-excerpt, .team-bio {
  font-family: 'Roboto', sans-serif;
}

.btn, .header-button, .cta-button,
button[type="submit"], .zip-form-inner button {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 10px;
}

.mb-2 {
  margin-bottom: 20px;
}

.mb-3 {
  margin-bottom: 30px;
}

.mb-4 {
  margin-bottom: 40px;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 10px;
}

.mt-2 {
  margin-top: 20px;
}

.mt-3 {
  margin-top: 30px;
}

.mt-4 {
  margin-top: 40px;
}

/* Enhanced Service Cards */
.service-card {
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-footer {
  margin-top: auto;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-title a {
  color: var(--primary-color);
}

/* Enhanced Testimonials */
.testimonial-content {
  position: relative;
  padding: 20px 0 20px 30px;
  font-style: italic;
  margin-bottom: 20px;
  color: #555;
}

.testimonial-content:before {
  content: '\f10d';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  opacity: 0.3;
  font-size: 24px;
}

.testimonial-rating {
  color: #FFD700;
  margin-bottom: 10px;
}

/* Enhanced FAQ Accordion */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
  font-weight: 600;
  transition: all 0.3s ease;
}

.faq-item.active .faq-question {
  background-color: rgba(139, 69, 19, 0.05);
}

/* Improved ZIP Code Checker */
.zip-form h3 {
  margin-bottom: 15px;
}

.zip-form-inner input[type="text"] {
  height: 50px;
  font-size: 16px;
}

.zip-form-inner button {
  font-weight: 700;
  min-width: 120px;
}

.zip-form-result {
  min-height: 50px;
}

/* Benefits Section Enhancements */
.benefit-item {
  transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
  background-color: var(--primary-color);
  color: white;
}

.benefit-title {
  transition: all 0.3s ease;
}

.benefit-item:hover .benefit-title {
  color: var(--primary-color);
}

/* CTA Section Enhancements */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-button {
  font-weight: 700;
  min-width: 180px;
}

/* Footer Enhancements */
.footer-widget a {
  position: relative;
  padding-left: 15px;
}

.footer-widget a:before {
  content: '\f105';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.footer-widget a:hover:before {
  left: 3px;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
}

.footer-contact i {
  margin-top: 4px;
}

.footer-social a {
  position: relative;
  overflow: hidden;
}

.footer-social a:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  border-radius: 50%;
  transform: scale(0);
  transition: all 0.3s ease;
  z-index: -1;
}

.footer-social a:hover:before {
  transform: scale(1);
}

.footer-social a:hover {
  transform: translateY(-3px);
}

/* Back to Top Button Enhancements */
.back-to-top {
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* Header Enhancements */
.site-header {
  transition: all 0.3s ease;
}

.site-header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  animation: slideDown 0.3s forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Additional Page Styles */

/* About Us Page */
.about-section {
  padding: 80px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.team-section {
  padding: 80px 0;
  background-color: var(--gray-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.team-image {
  height: 250px;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-content {
  padding: 20px;
}

.team-name {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.team-position {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 15px;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--gray-dark);
}

/* Contact Page */
.contact-section {
  padding: 80px 0;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.contact-info h3 {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  margin-bottom: 25px;
}

.contact-icon {
  flex: 0 0 50px;
  height: 50px;
  background-color: rgba(var(--primary-color-rgb), 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  color: var(--primary-color);
}

.contact-details h4 {
  margin: 0 0 5px;
  font-size: 1.1rem;
}

.contact-details p {
  margin: 0;
  color: var(--gray-dark);
}

.contact-form {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gray-medium);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Services Page */
.service-detail {
  padding: 80px 0;
}

.service-detail-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.service-detail-content {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.service-detail-sidebar {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  height: fit-content;
}

.service-price-box {
  background-color: var(--gray-light);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  text-align: center;
}

.service-detail-features {
  margin-bottom: 20px;
}

.service-detail-cta {
  margin-top: 20px;
}

/* Locations Page */
.locations-section {
  padding: 80px 0;
}

.service-areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.location-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  transition: var(--transition);
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.location-image {
  height: 200px;
  overflow: hidden;
}

.location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.location-card:hover .location-image img {
  transform: scale(1.05);
}

.location-content {
  padding: 25px;
}

.location-title {
  margin-top: 0;
  margin-bottom: 15px;
}

.location-address,
.location-phone {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.location-address i,
.location-phone i {
  margin-right: 10px;
  color: var(--primary-color);
}

.location-excerpt {
  margin-bottom: 20px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    margin-bottom: 30px;
  }
  
  .service-detail-container {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-icon {
    margin: 0 auto 15px;
  }
}

@media (max-width: 576px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.animate-fade-in.animated {
  opacity: 1;
}

/* Enhanced Hero Section with Paw Pattern */
.hero-section {
    background-color: #f5f5f5;
    background-image: url('../images/hero-bg.jpg'); /* Will only work when image is added */
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/paw-pattern.png');
    background-repeat: repeat;
    opacity: 0.15; /* Increased for more visibility */
    z-index: 1;
}

.hero-section:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.4) 100%);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 2; /* Place content above the pattern */
}

.hero-content {
    max-width: 600px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
}

/* Make hero text more visible with shadow */
.hero-title, .hero-subtitle, .hero-description {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    color: #333;
}

/* Extra protection for form area */
.hero-form {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Add the pattern to other key sections */
.benefits-section, .testimonials-section, .faq-section {
    position: relative;
}

.benefits-section:before, .testimonials-section:before, .faq-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/paw-pattern.png');
    background-repeat: repeat;
    opacity: 0.15; /* Increased for better visibility */
    z-index: 0;
}

.benefits-section .container, .testimonials-section .container, .faq-section .container {
    position: relative;
    z-index: 1;
}

/* Add extra contrast to section headers */
.section-header {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 40px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

/* Make the ZIP code form more prominent */
.zip-form {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

/* Center section titles and page headings */
.section-header, .page-header {
    text-align: center;
    width: 100%;
}

.section-title, .page-title, .section-subtitle {
    text-align: center;
    width: 100%;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Center body text in key areas */
.hero-content, .about-content p, .service-intro-section .container {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Add background pattern to all main page sections */
.page-header, .contact-section, .quote-form-section, 
.zip-checker-section, .service-intro-section, 
.about-section, .health-section, .services-section {
    position: relative;
}

.page-header:before, .contact-section:before, .quote-form-section:before,
.zip-checker-section:before, .service-intro-section:before,
.about-section:before, .health-section:before, .services-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/paw-pattern.png');
    background-repeat: repeat;
    opacity: 0.15; /* Increased for better visibility */
    z-index: 0;
}

.page-header .container, .contact-section .container, .quote-form-section .container,
.zip-checker-section .container, .service-intro-section .container,
.about-section .container, .health-section .container, .services-section .container {
    position: relative;
    z-index: 1;
}

/* Extra styles for consistent section spacing */
section {
    padding: 60px 0;
}

/* Make sure service cards have centered titles but left-aligned content */
.service-card .service-title {
    text-align: center;
}

.service-card .service-excerpt, 
.service-card .service-features {
    text-align: left;
}

/* Improve form alignment on contact and quote pages */
.contact-form h3, .quote-form h3 {
    text-align: center;
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

/* Header Layout Fixes - NEW SECTION */
.site-header {
    width: 100%;
}

/* Make the announcement bar clickable */
.header-top {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.header-top:hover {
    background-color: #7a3a10; /* slightly darker than primary color */
}

.announcement-link {
    color: #fff;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

/* Fix the header layout */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
    padding: 10px 0;
}

/* Logo and site title */
.site-branding {
    display: flex;
    align-items: center;
    flex-basis: auto;
    flex-shrink: 0;
    margin-right: 20px;
}

.site-branding img {
    max-height: 70px;
    width: auto;
    margin-right: 15px;
}

.site-title {
    font-size: 1.4rem;
    margin: 0;
    white-space: nowrap;
    display: inline-block;
}

/* Navigation and buttons container */
.header-right {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
}

/* Main navigation */
.main-navigation {
    margin-right: 20px;
}

.main-navigation ul {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation li {
    margin: 0 12px;
    white-space: nowrap;
}

.main-navigation a {
    white-space: nowrap;
    display: block;
    padding: 5px 0;
}

/* Header buttons */
.header-buttons {
    display: flex;
    align-items: center;
}

.header-phone {
    margin-right: 15px;
    white-space: nowrap;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .site-title {
        font-size: 1.2rem;
    }
    
    .main-navigation li {
        margin: 0 8px;
    }
    
    .main-navigation a {
        font-size: 0.9rem;
    }
}

@media (max-width: 991px) {
    .main-navigation {
        display: none;
    }
    
    .header-buttons {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 767px) {
    .site-title {
        font-size: 1.1rem;
    }
    
    .site-branding img {
        max-height: 60px;
    }
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}