/* Modern Professional Styles for McCauley Tree Co */
:root {
  --primary: #3F2167;
  --primary-light: #5A2B8A;
  --secondary: #2D3748;
  --accent: #E53E3E;
  --gray-100: #F7FAFC;
  --gray-200: #EDF2F7;
  --gray-300: #E2E8F0;
  --gray-800: #2D3748;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  color: var(--gray-800);
  background-color: var(--gray-100);
}

/* Header Styles */
.site-header {
  background: white;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.6rem 0;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: 0.3rem 0;
}

.inside-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: block;
  max-width: 120px;
}

.header-image {
  height: auto;
  width: 100%;
  max-width: 120px;
  transition: transform 0.3s ease;
}

.header-image:hover {
  transform: scale(1.05);
}

/* Navigation */
.main-navigation {
  background: transparent !important;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-nav ul li a {
  color: var(--gray-800) !important;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.main-nav ul li a:hover {
  color: var(--primary) !important;
  background: var(--gray-200);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem;
  text-align: center;
  background: rgba(45, 55, 72, 0.68);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Remove the overlay */
.hero-section::after {
  display: none;
}

.hero-section h1 {
  color: #ffffff;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.hero-text {
  margin: 0 auto 2.5rem;
  max-width: 800px;
}

.hero-text p {
  color: #ffffff !important;
  font-size: 1.25rem;
  line-height: 1.8;
  font-weight: 400;
  margin: 0;
}

.button-group {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.125rem;
  letter-spacing: 0.025em;
}

.button-primary {
  background: var(--primary);
  color: white !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.button-secondary {
  background: transparent;
  color: white !important;
  border: 2px solid white;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.service-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 4rem auto;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-800);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-300);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

/* Footer */
.site-footer {
  background: #3F2167;
  color: white;
  padding: 4rem 0;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.footer-logo-container {
  width: 100%;
  max-width: 160px;
  margin-bottom: 1rem;
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
}

.footer-logo {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.15);
}

.footer-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: white;
}

.footer-text address {
  font-style: normal;
  line-height: 1.6;
  margin: 0;
}

.footer-phone {
  margin: 0;
}

.footer-phone a {
  color: white;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-phone a:hover {
  color: var(--gray-200);
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.social-icons i {
  width: 20px;
  height: 20px;
}

.social-icons .social-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.social-icons .social-icon-img[alt="Instagram"] {
  transform: scale(1.4);
}

/* Testimonials Section */
.testimonials-section {
  background: var(--gray-50);
  padding: 4rem 0;
}

.testimonials-section h2 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.testimonial-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star-icon {
  width: 20px;
  height: 20px;
  color: #fbbf24;
  fill: #fbbf24;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-style: italic;
}

.testimonial-author h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 0.25rem 0;
}

.location {
  font-size: 0.875rem;
  color: var(--gray-500);
  font-weight: 500;
}

.testimonials-cta {
  text-align: center;
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.testimonials-cta p {
  font-size: 1.25rem;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.copyright {
  text-align: center;
}

.copyright p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

/* Yelp icon specific styling */
.social-icons a[href*="yelp"] i {
  color: #ff1a1a !important;
}

/* Service Description Section */
.service-description {
  padding: 4rem 0;
  background: white;
}

.service-description p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--gray-800);
}

/* Why Choose Service Section */
.why-choose-service {
  padding: 4rem 0;
  background: var(--gray-100);
}

/* Process Section */
.process-section {
  padding: 4rem 0;
  background: white;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  padding: 2rem;
  background: var(--gray-100);
  border-radius: 1rem;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Related Services */
.related-services {
  padding: 4rem 0;
  background: var(--gray-100);
}

.related-services .services-grid {
  margin-top: 2rem;
}

/* Map Section */
.map-section {
  padding: 4rem 0;
  background: var(--gray-100);
}

.map-section .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.map-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.map-section p {
  font-size: 1.125rem;
  color: var(--gray-800);
  margin-bottom: 2rem;
}

.map-container {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section .container {
    padding: 2.5rem 2rem;
    margin: 1rem;
  }

  .hero-section h1 {
    font-size: 2.25rem;
  }
  
  .hero-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }

  .button {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .header-logo {
    max-width: 100px;
  }
  
  .header-image {
    max-width: 100px;
  }
  
  .footer-logo {
    max-width: 100px;
  }
  
  .site-header {
    padding: 0.5rem 0;
  }
  
  .site-header.scrolled {
    padding: 0.25rem 0;
  }
}

@media (max-width: 480px) {
  .hero-section .container {
    padding: 2rem 1.5rem;
  }

  .hero-section h1 {
    font-size: 1.875rem;
  }
  
  .hero-section p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .button-group {
    flex-direction: column;
    gap: 1rem;
  }

  .button {
    width: 100%;
    text-align: center;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Exit Intent Popup */
#exit-intent-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;  /* Initially hidden */
  justify-content: center;
  align-items: center;
}

#exit-intent-popup .popup-content {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

.popup-content h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.popup-content p {
  margin-bottom: 1.5rem;
  color: var(--gray-800);
}

.close-popup {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-800);
  transition: all 0.3s ease;
  padding: 0.5rem;
  line-height: 1;
  z-index: 1;
}

.close-popup:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

@media (max-width: 480px) {
  .popup-content h2 {
    font-size: 1.5rem;
  }
  
  .popup-content {
    padding: 1.5rem;
    margin: 1rem;
  }
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* About Section */
.about-section {
  padding: 6rem 0;
  background: white;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}

.feature-card {
  width: 100%;
  max-width: 350px;
  padding: 2rem;
  background: var(--gray-100);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Why Choose Us Section */
.why-choose-section {
  padding: 6rem 0;
  background: var(--gray-100);
}

.benefits-list {
  list-style: none;
  margin: 2rem auto;
  max-width: 600px;
  padding: 0 2rem;
}

.benefits-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.benefits-list i {
  color: var(--primary);
  margin-right: 1rem;
  flex-shrink: 0;
}

.featured-image {
  width: 100%;
  max-width: 800px;
  border-radius: 1rem;
  margin: 2rem auto;
  display: block;
  box-shadow: var(--shadow-lg);
}

/* Services Section */
.services-section {
  padding: 6rem 0;
  background: white;
}

.services-grid {
  margin-top: 3rem;
}

/* FAQ Section */
.faq-section {
  padding: 6rem 0;
  background: var(--gray-100);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.faq-item {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.faq-item h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  background: white;
}

/* Section Headers */
section h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

section > .container > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--gray-800);
}

.why-choose-section .container > p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--gray-800);
}

/* Responsive Design */
@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
  
  section h2 {
    font-size: 2rem;
  }
  
  .features-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .benefits-list li {
    font-size: 1rem;
  }
}

/* About Detail Section */
.about-detail-section {
  background: white;
  padding: 4rem 2rem;
}

.about-detail-section h2 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.about-detail-section p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--gray-800);
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--gray-100);
}

.faq-question h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin: 0;
  text-align: left;
}

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--gray-800);
  margin: 0;
}

@media (max-width: 768px) {
  .about-detail-section h2 {
    font-size: 2rem;
  }
  
  .about-detail-section p {
    font-size: 1rem;
  }
  
  .testimonials-section h2 {
    font-size: 2rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonials-cta {
    padding: 1.5rem;
  }
  
  .testimonials-cta p {
    font-size: 1.125rem;
  }
  
  .faq-question h3 {
    font-size: 1.125rem;
  }
}

/* Mobile Navigation */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--gray-800);
}

.mobile-menu-button svg {
  width: 24px;
  height: 24px;
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .mobile-menu-button {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 40;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .main-nav ul li a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 35;
    backdrop-filter: blur(4px);
  }

  .mobile-menu-overlay.active {
    display: block;
  }

  .features-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .feature-card {
    max-width: 400px;
    width: 100%;
  }
} 