/* ============================================
   MowForce - Modern Lawn Care Website Styles
   ============================================ */

/* CSS Reset & Base Styles */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Optimize for performance */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  /* Brand Colors */
  --primary: #80ff00;
  --primary-dark: #66cc00;
  --primary-light: #9aff33;
  --secondary: #1a1a1a;
  --dark: #0d0d0d;
  --light: #ffffff;
  --grey-100: #f8f9fa;
  --grey-200: #e9ecef;
  --grey-300: #dee2e6;
  --grey-400: #ced4da;
  --grey-500: #adb5bd;
  --grey-600: #6c757d;
  --grey-700: #495057;
  --grey-800: #343a40;
  --grey-900: #212529;

  /* Typography */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  color: var(--grey-800);
  background: var(--light);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--dark);
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--grey-800);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  transition: var(--transition-fast);
  border-radius: var(--radius-sm);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--dark);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--light);
  border-color: var(--light);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--light);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--grey-800);
  border-color: var(--grey-300);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--primary);
  color: var(--dark);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Nav Button Styling */
.navbar .btn-primary {
  border-color: var(--grey-400);
}

.navbar .btn-primary:hover,
.navbar .btn-primary:focus {
  background: var(--light);
  color: var(--dark);
  border-color: var(--grey-400);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(80px + var(--spacing-2xl)) var(--spacing-lg) var(--spacing-2xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero-logo {
  position: absolute;
  top: var(--spacing-xl);
  right: var(--spacing-xl);
  z-index: 10;
  animation: fadeInUp 1.2s ease 0.3s both;
}

.hero-logo-img {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: var(--transition);
}

.hero-logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

/* Alternative: Logo Badge Style */
.hero-logo.badge-style {
  top: 50%;
  right: var(--spacing-xl);
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  padding: var(--spacing-md);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(10px);
}

.hero-logo.badge-style .hero-logo-img {
  height: 100px;
  filter: none;
}

.hero-logo.badge-style:hover {
  transform: translateY(-50%) scale(1.02);
  background: rgba(255, 255, 255, 1);
}

/* Option 3: Inline Logo Integration */
.hero-logo-inline {
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 0.8s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-inline-img {
  height: 375px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 40px rgba(128, 255, 0, 0.3));
  transition: var(--transition);
}

.hero-logo-inline-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 60px rgba(128, 255, 0, 0.5));
}

.hero-content {
  position: relative;
  max-width: 800px;
  color: var(--light);
  animation: fadeInUp 1s ease;
  text-align: center;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: var(--font-weight-black);
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  justify-content: center;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  justify-content: center;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--font-weight-medium);
}

.hero-feature i {
  color: var(--primary);
  font-size: 1.25rem;
}

/* ============================================
   Section Styles
   ============================================ */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-2xl);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-weight-bold);
  color: var(--grey-900);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  text-align: center;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--grey-600);
  line-height: 1.6;
}

/* ============================================
   Services Section
   ============================================ */
.services {
  padding: var(--spacing-3xl) 0;
  background: var(--grey-100);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
}

.service-card {
  background: var(--light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}

.service-card.featured:hover {
  transform: scale(1.08) translateY(-8px);
}

.service-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--primary);
  color: var(--dark);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-md);
}

.service-icon i {
  font-size: 2rem;
  color: var(--dark);
}

.service-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--grey-900);
  margin-bottom: var(--spacing-sm);
}

.service-description {
  color: var(--grey-600);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.service-features {
  list-style: none;
  margin-bottom: var(--spacing-lg);
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: var(--grey-700);
}

.service-features i {
  color: var(--primary);
  font-size: 0.875rem;
}

/* ============================================
   Why Choose Us Section
   ============================================ */
.why-choose {
  padding: var(--spacing-3xl) 0;
  background: var(--dark);
  color: var(--light);
}

.why-choose .section-title {
  color: var(--light);
}

.why-choose .section-subtitle {
  color: var(--grey-400);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  text-align: center;
  transition: var(--transition);
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-8px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
}

.stat-icon i {
  font-size: 1.75rem;
  color: var(--dark);
}

.stat-value {
  font-size: 3rem;
  font-weight: var(--font-weight-black);
  color: var(--primary);
  margin-bottom: var(--spacing-xs);
  text-shadow: 0 0 20px rgba(128, 255, 0, 0.5);
}

.stat-label {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  color: var(--light);
  margin-bottom: var(--spacing-sm);
}

.stat-description {
  color: var(--grey-400);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ============================================
   About Section
   ============================================ */
.about {
  padding: var(--spacing-3xl) 0;
  background: var(--light);
}

.about-stagger-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--spacing-3xl);
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

.about-image-dominant {
  position: relative;
}

.about-image-dominant img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.about-badge {
  position: absolute;
  top: var(--spacing-lg);
  left: var(--spacing-lg);
  background: var(--primary);
  color: var(--dark);
  padding: var(--spacing-md);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  box-shadow: var(--shadow-lg);
}

.about-badge i {
  font-size: 2rem;
}

.about-badge strong {
  display: block;
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
}

.about-badge span {
  display: block;
  font-size: 0.875rem;
}

.about-content-compact {
  text-align: left;
}

.about-cta-inline {
  text-align: center;
  margin-top: var(--spacing-xl);
}

.about-cta-inline .btn {
  display: inline-block;
  margin: 0 auto;
}

.about-text {
  color: var(--grey-600);
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
  font-size: 1rem;
}

.about-features {
  margin: var(--spacing-xl) 0;
}

.about-feature {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--grey-100);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
  transition: var(--transition);
}

.about-feature:hover {
  background: var(--grey-200);
  transform: translateX(8px);
}

.about-feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-feature-icon i {
  font-size: 1.5rem;
  color: var(--dark);
}

.about-feature-content h4 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  color: var(--grey-900);
  margin-bottom: 0.25rem;
}

.about-feature-content p {
  font-size: 0.9375rem;
  color: var(--grey-600);
  line-height: 1.6;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
  padding: var(--spacing-3xl) 0;
  background: var(--grey-100);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-3xl);
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  align-content: start;
}

.contact-card {
  background: var(--light);
  padding: var(--spacing-lg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
}

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

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
}

.contact-icon i {
  font-size: 1.5rem;
  color: var(--dark);
}

.contact-card h3 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  color: var(--grey-900);
  margin-bottom: var(--spacing-xs);
}

.contact-card p {
  color: var(--grey-600);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: var(--transition-fast);
}

.contact-card a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.contact-form-wrapper {
  background: var(--light);
  padding: var(--spacing-xl);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: var(--font-weight-medium);
  color: var(--grey-800);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  padding: 0.875rem;
  border: 2px solid var(--grey-300);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition-fast);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(128, 255, 0, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-md);
  text-align: center;
  font-weight: var(--font-weight-medium);
  display: none !important;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-md);
  text-align: center;
  font-weight: var(--font-weight-medium);
  display: none !important;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--dark);
  color: var(--light);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 50px;
  margin-bottom: var(--spacing-sm);
}

.footer-brand p {
  color: var(--grey-400);
  font-size: 0.9375rem;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
  color: var(--grey-400);
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--primary);
}

.footer-contact i {
  color: var(--primary);
  width: 20px;
}

.footer-bottom {
  text-align: center;
  color: var(--grey-500);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0.25rem 0;
}

/* Back To Top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: var(--transition);
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: rgba(0, 0, 0, 0.75);
}
/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .about-stagger-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .about-image-dominant {
    order: -1;
  }

  .about-image-dominant img {
    aspect-ratio: 4 / 3;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Reorder service cards for tablet portrait - Lawn Maintenance & Mowing first */
  .service-card:nth-child(1) {
    order: 2 !important; /* Lawn Edging moves to second */
  }

  .service-card:nth-child(2) {
    order: 1 !important; /* Lawn Maintenance & Mowing moves to first */
  }

  .service-card:nth-child(3) {
    order: 3 !important; /* Seasonal Clean-ups stays third */
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-lg) !important;
    padding: 0 var(--spacing-sm) !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .contact-info {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .contact-card {
    padding: var(--spacing-md) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
  }

  .contact-form-wrapper {
    padding: var(--spacing-md) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .contact-form {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
}

/* High-resolution mobile devices (Samsung S25, etc.) */
@media (max-width: 900px) and (orientation: portrait) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Reorder service cards for high-res mobile - Lawn Maintenance & Mowing first */
  .service-card:nth-child(1) {
    order: 2 !important; /* Lawn Edging moves to second */
  }

  .service-card:nth-child(2) {
    order: 1 !important; /* Lawn Maintenance & Mowing moves to first */
  }

  .service-card:nth-child(3) {
    order: 3 !important; /* Seasonal Clean-ups stays third */
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100%;
    overflow-x: hidden;
    padding: 0 var(--spacing-sm);
  }

  /* About section mobile adjustments */

  .about-image-dominant img {
    aspect-ratio: 4 / 3;
  }

  .about-feature {
    padding: var(--spacing-sm);
  }

  .about-feature-icon {
    width: 40px;
    height: 40px;
  }

  .about-feature-icon i {
    font-size: 1.25rem;
  }

  /* Ensure all elements fit within viewport */
  * {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Specific fixes for common overflow issues */
  .container,
  .hero-content,
  .section-content,
  .contact-grid,
  .stats-grid,
  .services-grid {
    max-width: 100%;
    overflow-x: hidden;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-sm);
  }

  .stat-card {
    padding: var(--spacing-md);
    min-width: 0;
    word-wrap: break-word;
  }

  .stat-description {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--grey-800);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: var(--transition);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: 90vh;
    padding-top: calc(70px + var(--spacing-xl));
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 100%;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 var(--spacing-sm);
  }

  .hero-features {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .hero-logo {
    top: var(--spacing-md);
    right: var(--spacing-md);
  }

  .hero-logo-img {
    height: 80px;
  }

  .hero-logo-inline-img {
    height: 150px;
    max-width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Reorder service cards for mobile - Lawn Maintenance & Mowing first */
  .service-card:nth-child(1) {
    order: 2 !important; /* Lawn Edging moves to second */
  }

  .service-card:nth-child(2) {
    order: 1 !important; /* Lawn Maintenance & Mowing moves to first */
  }

  .service-card:nth-child(3) {
    order: 3 !important; /* Seasonal Clean-ups stays third */
  }

  .service-card.featured {
    transform: scale(1);
  }

  .service-card.featured:hover {
    transform: translateY(-8px);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Comprehensive mobile overflow prevention */
  * {
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Ensure all containers fit */
  .container,
  .hero,
  .services,
  .about,
  .why-choose,
  .contact,
  .footer {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* About section mobile adjustments */

  .about-image-dominant img {
    aspect-ratio: 4 / 3;
  }

  .about-feature {
    padding: var(--spacing-xs);
  }

  .about-feature-icon {
    width: 36px;
    height: 36px;
  }

  .about-feature-icon i {
    font-size: 1.125rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-xs);
  }

  .stat-card {
    padding: var(--spacing-sm);
    min-width: 0;
  }

  .stat-description {
    font-size: 0.8rem;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-sm) !important;
    padding: 0 var(--spacing-xs) !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .contact-info {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .contact-card {
    padding: var(--spacing-sm) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
  }

  .contact-form-wrapper {
    padding: var(--spacing-sm) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .contact-form {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn-large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .hero-logo {
    top: var(--spacing-sm);
    right: var(--spacing-sm);
  }

  .hero-logo-img {
    height: 60px;
  }

  .hero-logo-inline-img {
    height: 120px;
    max-width: 100%;
  }

  .contact-form-wrapper {
    padding: var(--spacing-md);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .nav-toggle,
  .hero-buttons,
  .contact-form-wrapper,
  .footer {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}

/* ============================================
   Services Page Specific Styles
   ============================================ */
.page-hero {
  position: relative;
  padding: calc(80px + var(--spacing-3xl)) var(--spacing-lg) var(--spacing-2xl);
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-hero .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-hero .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.page-hero-content {
  position: relative;
  color: var(--light);
  max-width: 800px;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-black);
  color: var(--light);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--grey-200);
  font-weight: var(--font-weight-regular);
}

.services-detail {
  padding: var(--spacing-3xl) 0;
  background: var(--grey-100);
}

.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
  background: var(--light);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: var(--spacing-3xl);
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
}

.service-detail-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.service-detail-card.reverse {
  grid-template-columns: 1fr 1fr;
}

.service-detail-card.reverse .service-detail-image {
  order: 2;
}

.service-detail-card.reverse .service-detail-content {
  order: 1;
}

.service-detail-image {
  position: relative;
  height: 100%;
  min-height: 400px;
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-content {
  padding: var(--spacing-2xl);
}

.service-detail-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.service-detail-icon i {
  font-size: 2rem;
  color: var(--dark);
}

.service-detail-title {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: var(--grey-900);
  margin-bottom: var(--spacing-md);
}

.service-detail-description {
  font-size: 1.0625rem;
  color: var(--grey-600);
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
}

.service-detail-features {
  margin-bottom: var(--spacing-xl);
}

.service-detail-features h3 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  color: var(--grey-900);
  margin-bottom: var(--spacing-md);
}

.service-detail-features ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
}

.service-detail-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--grey-700);
  font-size: 0.9375rem;
}

.service-detail-features i {
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.service-detail-cta {
  display: flex;
  gap: var(--spacing-md);
}

.cta-section {
  background: var(--dark);
  color: var(--light);
  padding: var(--spacing-3xl) 0;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-weight-bold);
  color: var(--light);
  margin-bottom: var(--spacing-md);
}

.cta-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--grey-400);
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* Responsive - Services Page */
@media (max-width: 1024px) {
  .service-detail-card,
  .service-detail-card.reverse {
    grid-template-columns: 1fr;
  }

  .service-detail-card.reverse .service-detail-image,
  .service-detail-card.reverse .service-detail-content {
    order: unset;
  }

  .service-detail-image {
    min-height: 300px;
  }

  .service-detail-features ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 40vh;
    padding: calc(70px + var(--spacing-2xl)) var(--spacing-lg) var(--spacing-xl);
  }

  .service-detail-content {
    padding: var(--spacing-lg);
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

/* ============================================
   Thank You Page Specific Styles
   ============================================ */
.thank-you-section {
  padding: calc(80px + var(--spacing-3xl)) var(--spacing-lg) var(--spacing-3xl);
  background: var(--grey-100);
  min-height: 100vh;
}

.thank-you-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.thank-you-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-xl);
  box-shadow: var(--shadow-2xl);
  animation: scaleIn 0.6s ease;
}

.thank-you-icon i {
  font-size: 4rem;
  color: var(--dark);
}

.thank-you-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-black);
  color: var(--grey-900);
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.thank-you-message {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--grey-700);
  margin-bottom: var(--spacing-md);
  font-weight: var(--font-weight-medium);
  animation: fadeInUp 0.8s ease 0.3s both;
}

.thank-you-submessage {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--grey-600);
  line-height: 1.7;
  margin-bottom: var(--spacing-2xl);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.thank-you-next-steps {
  background: var(--light);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-2xl);
  margin-bottom: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.8s ease 0.5s both;
}

.thank-you-next-steps h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--grey-900);
  margin-bottom: var(--spacing-xl);
}

.next-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.next-step-card {
  position: relative;
  background: var(--grey-100);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  transition: var(--transition);
  border: 2px solid transparent;
}

.next-step-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
}

.step-number {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--dark);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
}

.step-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
}

.step-icon i {
  font-size: 2rem;
  color: var(--dark);
}

.next-step-card h3 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  color: var(--grey-900);
  margin-bottom: var(--spacing-sm);
}

.next-step-card p {
  color: var(--grey-600);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.thank-you-urgent {
  margin-bottom: var(--spacing-2xl);
  animation: fadeInUp 0.8s ease 0.6s both;
}

.urgent-card {
  background: linear-gradient(
    135deg,
    rgba(128, 255, 0, 0.1) 0%,
    rgba(128, 255, 0, 0.05) 100%
  );
  border: 2px solid var(--primary);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  text-align: left;
}

.urgent-card > i {
  font-size: 3rem;
  color: var(--primary);
  flex-shrink: 0;
}

.urgent-content h3 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--grey-900);
  margin-bottom: var(--spacing-sm);
}

.urgent-content p {
  color: var(--grey-600);
  margin-bottom: var(--spacing-md);
  font-size: 1rem;
}

.thank-you-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.7s both;
}

.thank-you-stats {
  padding: var(--spacing-3xl) 0;
  background: var(--dark);
}

/* Animations */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive - Thank You Page */
@media (max-width: 1024px) {
  .next-steps-grid {
    grid-template-columns: 1fr;
  }

  .urgent-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .thank-you-section {
    padding: calc(70px + var(--spacing-2xl)) var(--spacing-lg) var(--spacing-xl);
  }

  .thank-you-icon {
    width: 100px;
    height: 100px;
  }

  .thank-you-icon i {
    font-size: 3rem;
  }

  .thank-you-next-steps {
    padding: var(--spacing-lg);
  }

  .next-step-card {
    padding: var(--spacing-lg);
  }

  .thank-you-actions {
    flex-direction: column;
  }

  .thank-you-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .thank-you-icon {
    width: 80px;
    height: 80px;
  }

  .thank-you-icon i {
    font-size: 2.5rem;
  }

  .thank-you-next-steps {
    padding: var(--spacing-md);
  }

  .urgent-card {
    padding: var(--spacing-md);
  }

  .urgent-card > i {
    font-size: 2rem;
  }
}

/* ============================================
   Consent Management Banner Styles
   ============================================ */

/* Consent Banner */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  font-family: var(--font-primary);
  border-top: 3px solid var(--primary);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.consent-banner.show {
  transform: translateY(0);
}

.consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.consent-text {
  flex: 1;
  min-width: 300px;
}

.consent-text h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  color: var(--primary);
}

.consent-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
}

.consent-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.consent-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-family: var(--font-primary);
}

.consent-btn.accept {
  background: var(--primary);
  color: var(--secondary);
}

.consent-btn.accept:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.consent-btn.decline {
  background: transparent;
  color: #bdc3c7;
  border: 2px solid #bdc3c7;
}

.consent-btn.decline:hover {
  background: #bdc3c7;
  color: var(--secondary);
}

.consent-btn.settings {
  background: #3498db;
  color: white;
}

.consent-btn.settings:hover {
  background: #2980b9;
}

/* Settings Modal */
.consent-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.consent-modal.active {
  display: flex;
}

.consent-modal-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  color: var(--secondary);
}

.consent-modal h2 {
  margin: 0 0 20px 0;
  color: var(--secondary);
  font-size: 24px;
  font-weight: var(--font-weight-bold);
}

.consent-option {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
}

.consent-option h4 {
  margin: 0 0 10px 0;
  color: var(--secondary);
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
}

.consent-option p {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: var(--grey-600);
  line-height: 1.4;
}

.consent-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.consent-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.consent-toggle label {
  font-weight: var(--font-weight-medium);
  cursor: pointer;
}

/* Hide banner when consent is given */
.consent-banner.hidden {
  display: none;
}

/* Responsive Design for Consent Banner */
@media (max-width: 768px) {
  .consent-content {
    flex-direction: column;
    text-align: center;
  }

  .consent-buttons {
    justify-content: center;
  }

  .consent-btn {
    flex: 1;
    min-width: 120px;
  }

  .consent-text {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .consent-banner {
    padding: 15px;
  }

  .consent-text h3 {
    font-size: 16px;
  }

  .consent-text p {
    font-size: 13px;
  }

  .consent-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}
