/* Rooted in Grace Stump Co Theme */
:root {
  --brand-white: #f9f9f9;
  --brand-brown: #3b2716;
  --brand-parchment: #e3d0b2;
  --brand-forest: #6C756B;
  --brand-moss: #6C756B;
  --primary: var(--brand-forest);
  --primary-light: #7a8477;
  --secondary: var(--brand-brown);
  --accent: var(--brand-moss);
  --gray-50: #f8fafc;
  --gray-100: #F7FAFC;
  --gray-200: #EDF2F7;
  --gray-300: #E2E8F0;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --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(--brand-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  color: var(--secondary);
}

/* Header Styles */
.site-header {
  background: white;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.6rem 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);
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
}

.header-cta .button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
  background: var(--brand-moss) !important;
  color: white !important;
  border: none;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.header-cta .button:hover {
  background: #5a5f58 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(108, 117, 107, 0.3);
}

/* 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(--brand-moss);
  color: white !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.button-secondary {
  background: transparent;
  color: var(--brand-moss) !important;
  border: 2px solid var(--brand-moss);
}

.button-secondary:hover {
  background: var(--brand-moss);
  color: white !important;
  transform: translateY(-2px);
}

.button-hero-secondary {
  background: rgba(0, 0, 0, 0.3);
  color: white !important;
  border: 2px solid white;
  backdrop-filter: blur(4px);
}

.button-hero-secondary:hover {
  background: rgba(0, 0, 0, 0.5);
  color: white !important;
  transform: translateY(-2px);
  backdrop-filter: blur(6px);
}

/* 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: var(--brand-forest);
  color: white;
  padding: 4rem 0 0;
  margin-top: 6rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.footer-section h4 {
  font-size: 1.1rem;
  color: var(--brand-parchment);
  margin-bottom: 1rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--brand-parchment);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--brand-parchment);
  font-size: 0.9rem;
}

.footer-contact a {
  color: var(--brand-parchment);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: white;
}

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

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: var(--brand-parchment);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-section ul li a:hover {
  color: white;
}

/* 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);
  padding: 2rem 0;
  background: var(--brand-forest);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--brand-parchment);
  font-size: 0.85rem;
  margin: 0;
}

.footer-tagline {
  font-style: italic;
  opacity: 0.8;
}

.footer-attribution {
  font-size: 0.75rem;
  color: var(--brand-parchment);
  margin: 0.5rem 0 0 0;
  opacity: 0.7;
}

.footer-attribution a {
  color: var(--brand-parchment);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-attribution a:hover {
  color: white;
}

/* Mobile Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-brand {
    max-width: none;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
}

/* 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;
  }
  
}

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

  .header-cta .button {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .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: 500px;
  border-radius: 1rem;
  margin: 2rem auto;
  display: block;
  box-shadow: var(--shadow-lg);
}

.after-picture {
  width: 100%;
  max-width: 500px;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  display: block;
  margin: 0 auto;
}

/* 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.75rem;
  cursor: pointer;
  color: var(--gray-800);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 60;
  position: relative;
}


.mobile-menu-button:hover {
  background: var(--gray-100);
}

.mobile-menu-button:focus {
  outline: 2px solid var(--brand-moss);
  outline-offset: 2px;
}

.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: flex;
  }

  .header-cta .button {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .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: 50;
    overflow-y: auto;
  }


/* Hide mobile menu close button on desktop and tablet - STRONG RULE */
.mobile-menu-close {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Ensure close button is hidden on tablets and larger screens */
@media (min-width: 481px) {
  .mobile-menu-close {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Show close button only on mobile phones (480px and below) */
@media (max-width: 480px) {
  .mobile-menu-close {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--gray-600);
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    z-index: 1;
  }

  .mobile-menu-close:hover {
    background: var(--gray-100);
    color: var(--gray-800);
  }
}

/* Hide SVG on desktop and tablet */
.mobile-menu-close svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 481px) {
  .mobile-menu-close svg {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

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

  .main-nav ul {
    flex-direction: column;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex !important;
  }

  .main-nav ul li {
    display: block !important;
    margin: 0;
    padding: 0;
  }
  
  .main-nav ul li a {
    display: block !important;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    color: var(--gray-800) !important;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
  }
  
  .main-nav ul li a:hover {
    color: var(--brand-moss) !important;
    background: var(--gray-200);
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 45;
    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%;
  }

  .contact-form {
    margin: 2rem auto;
    padding: 1.5rem;
  }

  .form-control {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }

  .container {
    padding: 0 1rem;
  }

  .featured-image {
    max-width: 400px;
    margin: 1.5rem auto;
  }

  .after-picture {
    max-width: 400px;
  }

  /* Hide 3rd and 4th testimonials on mobile */
  .testimonial-card:nth-child(3),
  .testimonial-card:nth-child(4) {
    display: none;
  }

  /* Center footer phone number on mobile */
  .footer-contact p {
    justify-content: center;
  }
  
  /* About page mobile layout - image first */
  .about-story-section .container > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }
  
  .about-story-section .container > div > div:first-child {
    order: 2;
  }
  
  .about-story-section .container > div > div:last-child {
    order: 1;
  }
  
  /* Contact page mobile responsiveness */
  .contact-methods-section .container > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 3rem !important;
  }
  
  .contact-form {
    padding: 1.5rem !important;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-control {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
  }
  
  /* Contact info section mobile adjustments */
  .contact-methods-section .container > div > div:last-child {
    order: -1; /* Move contact info to top on mobile */
  }
  
  /* Reduce padding on mobile */
  .contact-methods-section {
    padding: 3rem 0 !important;
  }
  
  /* Hero section mobile adjustments */
  .hero-section .container {
    padding: 2rem 1rem !important;
  }
  
  .hero-section h1 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }
  
  .hero-section .hero-text p {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .button-group {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  .button-group .button {
    width: 100% !important;
    text-align: center !important;
  }
  
  /* Why Choose Us section mobile adjustments */
  .why-choose-section {
    padding: 3rem 0 !important;
  }
  
  .why-choose-section h2 {
    font-size: 1.75rem !important;
    margin-bottom: 2rem !important;
  }
  
  /* Map section mobile adjustments */
  .map-section {
    padding: 3rem 0 !important;
  }
  
  .map-section h2 {
    font-size: 1.75rem !important;
    margin-bottom: 2rem !important;
  }
  
  .map-section p {
    font-size: 1rem !important;
    margin-bottom: 2rem !important;
  }
  
  .map-container iframe {
    height: 300px !important;
  }
  
  /* Contact info card mobile adjustments */
  .contact-methods-section .container > div > div:last-child > div:first-child {
    padding: 2rem !important;
  }
  
  .contact-methods-section .container > div > div:last-child > div:first-child h3 {
    font-size: 1.25rem !important;
  }
  
  .contact-methods-section .container > div > div:last-child > div:first-child a {
    font-size: 1.5rem !important;
  }
  
  /* Service areas section mobile adjustments */
  .contact-methods-section .container > div > div:last-child > div:last-child {
    padding: 1.5rem !important;
  }
}

/* FINAL OVERRIDE: Hide mobile menu close button on desktop and tablet */
@media (min-width: 481px) {
  .mobile-menu-close,
  .mobile-menu-close *,
  .mobile-menu-close svg,
  .mobile-menu-close i {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
  }
} 