/* ROOT VARIABLES */
:root {
  --primary-red: #FF4444;
  --primary-green: #00AA44;
  --primary-blue: #3388DD;
  --accent-light: #E8F4E8;
  --dark: #1A1A1A;
  --dark-light: #2A2A2A;
  --white: #FFFFFF;
  --gray-light: #F8F9FA;
  --gray: #6C757D;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --border-radius: 15px;
  --shadow: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
}

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Performance optimizations */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Optimize images */
img {
  max-width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Hardware acceleration for animations */
.hero-slide,
.service-card,
.footer-section,
.nav-menu {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* MODERN RESPONSIVE TYPOGRAPHY */
h1 { 
  font-size: clamp(1.5rem, 4vw, 3rem); 
  font-weight: 700; 
  line-height: 1.2; 
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h2 { 
  font-size: clamp(1.25rem, 3.5vw, 2.5rem); 
  font-weight: 600; 
  line-height: 1.3; 
  margin-bottom: 0.875rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h3 { 
  font-size: clamp(1.125rem, 2.5vw, 1.5rem); 
  font-weight: 500; 
  margin-bottom: 0.75rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h4 { 
  font-size: clamp(1rem, 2vw, 1.25rem); 
  font-weight: 500; 
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

p {
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--dark);
}

/* MODERN RESPONSIVE BUTTONS */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-green), #007733);
  color: white;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 170, 68, 0.3);
  cursor: pointer;
  font-size: clamp(0.875rem, 2vw, 1rem);
  letter-spacing: 0.3px;
  text-transform: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 44px; /* Touch target minimum */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-nav-cta:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 2px;
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(0, 170, 68, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
  border-radius: 25px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  min-height: 44px; /* Touch target minimum */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: white;
}

/* MODERN RESPONSIVE HEADER */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 100vw;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  z-index: 1001;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  overflow-x: hidden;
}

/* Header scrolled state */
.header.scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: 0 6px 24px rgba(0,0,0,0.12); }

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 2rem);
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .navbar {
    align-items: center;
    min-height: 60px;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 0.5rem 1rem;
    display: flex;
    position: relative;
  }
  
  .nav-brand {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
  }
  
  .mobile-menu-toggle {
    flex-shrink: 0;
    margin-left: 1rem;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 1rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    vertical-align: baseline;
  }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.logo {
  width: 65px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.brand-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-green);
}

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

/* Language selector */
.lang-select {
  border: 1px solid #ddd;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
}
.visually-hidden { position: absolute; left: -9999px; }

.nav-menu a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
}

.nav-menu a:hover {
  color: var(--primary-green);
}

/* Header CTA */
.btn-nav-cta {
  background: linear-gradient(135deg, var(--primary-green), #007733);
  color: #fff !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 170, 68, 0.3);
}
.btn-nav-cta:hover { filter: brightness(1.05); }


/* Small navigation CTA button */
.btn-nav-cta-small {
  background: linear-gradient(135deg, var(--primary-green), #007733);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 170, 68, 0.3);
}

.btn-nav-cta-small:hover {
  background: linear-gradient(135deg, #00CC55, #006633);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 170, 68, 0.4);
  color: white !important;
}

.lang-switch {
  font-size: 0.9rem;
}


/* HERO SECTION */
.hero {
  height: 100vh;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.2) 0%,
    rgba(26, 26, 26, 0.7) 100%
  ),
  url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?w=3840&q=80') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

/* WORKING HERO CAROUSEL */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 1;
}

.hero-bg.active {
  opacity: 1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 170, 68, 0.15) 0%,
    rgba(26, 26, 26, 0.6) 100%
  );
  backdrop-filter: blur(1px);
  z-index: 1;
}

/* Professional blur overlay for better text readability */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  z-index: 2;
  pointer-events: none;
}

/* Hero Controls */
.hero-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 10;
  pointer-events: none;
}

.hero-prev,
.hero-next,
.hero-pause {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-prev:hover,
.hero-next:hover,
.hero-pause:hover {
  background: rgba(0, 170, 68, 0.8);
  border-color: var(--primary-green);
  transform: scale(1.1);
}

.hero-pause {
  font-size: 1.2rem;
}

.hero-test {
  background: red !important;
  color: white !important;
  padding: 10px !important;
  border: 2px solid yellow !important;
  z-index: 9999 !important;
  position: fixed !important;
  top: 10px !important;
  right: 10px !important;
  font-size: 14px !important;
}

/* Hero Indicators */
.hero-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--primary-green);
  border-color: var(--primary-green);
  transform: scale(1.2);
}

.indicator:hover {
  border-color: var(--primary-green);
  transform: scale(1.1);
}

/* Hero Title Overlay */
.hero-title-overlay {
  position: absolute;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
}

.hero-image-title {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.5s ease;
  opacity: 0;
  transform: translateY(20px);
}

.hero-image-title.show {
  opacity: 1;
  transform: translateY(0);
}

/* Hero sliding layers */
/* Removed hero sliding layers */

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.25), rgba(0,0,0,0.65));
}

.hero-content {
  position: relative;
  z-index: 20;
  max-width: 1200px;
  width: 100%;
  padding: clamp(1rem, 3vw, 2rem);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  text-align: center;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}


.hero h1 {
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  text-shadow: 3px 3px 12px rgba(0,0,0,0.9);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(1.25rem, 4vw, 2.5rem);
  line-height: 1.1;
  text-transform: none;
  font-family: 'Poppins', sans-serif;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Mobile-specific title styling */
@media (max-width: 768px) {
  .hero h1 {
    line-height: 1.2;
    font-size: 0; /* Hide original text */
  }
  
  .hero h1::before {
    content: "Design & Travaux de Finition";
    display: block;
    font-size: clamp(1.25rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    text-shadow: 3px 3px 12px rgba(0,0,0,0.9);
    font-family: 'Poppins', sans-serif;
  }
  
  .hero h1::after {
    content: "Résidentiel & Industriel";
    display: block;
    font-size: clamp(1.25rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    text-shadow: 3px 3px 12px rgba(0,0,0,0.9);
    font-family: 'Poppins', sans-serif;
  }
}

.hero-subtitle {
  font-size: clamp(0.875rem, 2.5vw, 1.4rem);
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  opacity: 0.95;
  text-shadow: 3px 3px 12px rgba(0,0,0,0.8);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.02em;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: clamp(0.7rem, 1.8vw, 0.9rem);
    line-height: 1.4;
  }
  
  .hero-subtitle br:nth-of-type(2) {
    display: block;
  }
}

/* MODERN RESPONSIVE SERVICES SECTION */
.services {
  padding: clamp(2rem, 6vw, 4rem) 0;
  background: var(--gray-light);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: white;
  border-radius: var(--border-radius);
  border: 1px solid #e9ecef;
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-green);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-image {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

/* Overlay image for sliding animation */
/* Removed service overlay sliding image */

/* Service card hover effects removed for accessibility */

.service-card h3 {
  padding: var(--space-md) var(--space-md) var(--space-sm);
  color: var(--dark);
}

.service-card p {
  padding: 0 var(--space-md);
  color: var(--gray);
  margin-bottom: var(--space-md);
}
/* Improve readability */
.service-card p { line-height: 1.8; }

.service-card .btn-secondary {
  margin: 0 var(--space-md) var(--space-md);
}

/* ABOUT SECTION */
.about {
  padding: var(--space-xl) 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

/* Alternate layout where image is on the left */
.about-alt .about-content {
  grid-template-columns: 1fr 1fr;
}
.about-alt .about-image { order: 1; }
.about-alt .about-text { order: 2; }

.about-text h2 {
  margin-bottom: var(--space-sm);
  color: var(--dark);
}

.about-lead {
  font-size: 1.2rem;
  color: var(--primary-red);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.about-text p {
  margin-bottom: var(--space-md);
  color: var(--gray);
}

.contact-info {
  background: var(--accent-light);
  padding: var(--space-md);
  border-radius: var(--border-radius);
  margin-top: var(--space-md);
}

.phone {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-green);
}

.about-image {
  text-align: center;
}

.about-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* Mobile image - hidden on desktop */
.about-image-mobile {
  display: none;
  margin: var(--space-md) 0;
  text-align: center;
}

.about-image-mobile img {
  width: 100%;
  max-width: 600px;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* Mobile responsive - show mobile image, hide desktop image */
@media (max-width: 768px) {
  .about-content {
    display: block;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .about-image {
    display: none; /* Hide desktop image on mobile */
  }
  
  .about-image-mobile {
    display: block; /* Show mobile image on mobile */
  }
}

/* CONTACT SECTION */
.contact {
  padding: var(--space-xl) 0;
  background: var(--dark);
  color: white;
}

/* Contact section links - green with underline */
.contact a,
.contact a:link,
.contact a:visited,
.footer a,
.footer a:link,
.footer a:visited {
  color: var(--primary-green) !important;
  text-decoration: underline !important;
  transition: all 0.3s ease;
}

.contact a:hover,
.contact a:active,
.footer a:hover,
.footer a:active {
  color: #00CC55 !important;
  text-decoration-thickness: 2px !important;
}

.contact .section-title {
  color: white;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: var(--space-sm);
  border: 2px solid var(--dark-light);
  border-radius: 10px;
  background: var(--dark-light);
  color: white;
  font-family: inherit;
}

/* Improve native select appearance */
.contact-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--primary-green) 50%),
    linear-gradient(135deg, var(--primary-green) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-green);
}

.contact-form textarea {
  width: 100%;
  margin-bottom: var(--space-md);
  resize: vertical;
}

.contact-form .btn-primary {
  width: 100%;
  justify-self: center;
}

/* FOOTER */
.footer {
  background: linear-gradient(135deg, var(--dark) 0%, #2A2A2A 50%, #1A1A1A 100%);
  position: relative;
  color: white;
  padding: var(--space-lg) 0 var(--space-md);
  overflow: hidden;
}


.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section {
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, rgba(0, 170, 68, 0.1) 0%, rgba(255, 68, 68, 0.05) 100%);
  border: 1px solid rgba(0, 170, 68, 0.2);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-section:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(0, 170, 68, 0.15) 0%, rgba(255, 68, 68, 0.1) 100%);
  border-color: rgba(0, 170, 68, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.footer-section h4 {
  color: var(--primary-green);
  margin-bottom: var(--space-md);
  font-size: 1.3rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  position: relative;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-green);
  border-radius: 2px;
}

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

.footer-section ul li {
  margin-bottom: var(--space-xs);
  color: #ccc;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.footer-section ul li a:hover {
  color: var(--primary-green);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: var(--space-sm);
}

.social-links a {
  font-size: 1.5rem;
  text-decoration: none;
}

.social-links a:hover {
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid var(--dark-light);
  padding-top: var(--space-md);
  text-align: center;
  color: #aaa;
}

/* Footer logo */
.footer-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--space-sm);
}
.footer-logo {
  height: 16px;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.95;
}
.footer-brand-name { display: none; }

@media (max-width: 768px) {
  .footer-logo { height: 14px; }
}

/* MODERN RESPONSIVE DESIGN */
/* Base responsive utilities */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

/* Container responsive system */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Mobile-first responsive breakpoints */
@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2.5rem; }
}

@media (min-width: 1280px) {
  .container { padding: 0 3rem; }
}

/* MOBILE NAVIGATION SYSTEM */

.mobile-menu-toggle:hover {
  background-color: rgba(0, 170, 68, 0.1);
}

.mobile-menu-overlay {
  display: none;
    position: fixed;
  top: 0;
  left: 0;
    width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-md);
    align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-menu li a:hover {
  color: var(--primary-green);
}

/* Mobile menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--primary-green);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10000;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  margin: 0;
  align-self: center;
}

.mobile-menu-toggle:hover {
  background: #007733;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
}

/* Mobile menu panel */
.mobile-menu-panel {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: white;
  z-index: 9999;
  transition: right 0.3s ease;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

.mobile-menu-panel.active {
  right: 0;
}

.mobile-menu-panel .menu-header {
  padding: 1rem;
  background: var(--primary-green);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-panel .menu-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-menu-panel .menu-links {
  padding: 1rem 0;
}

.mobile-menu-panel .menu-links a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-panel .menu-links a:hover {
  color: var(--primary-green);
}

.mobile-menu-panel .menu-links .btn-nav-cta-small {
  background: var(--primary-green);
  color: white;
  margin: 1rem;
  border-radius: 25px;
  text-align: center;
  font-weight: 600;
}

.mobile-menu-panel .menu-links .btn-nav-cta-small:hover {
  background: #007733;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-overlay {
    display: block;
  }
  
  .mobile-menu-panel {
    display: block;
  }
}

/* Button responsive adjustments */
@media (max-width: 640px) {
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 641px) {
  .btn-primary,
  .btn-secondary {
    width: auto;
    min-width: 120px;
  }
}

/* Loading animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Smooth, user-friendly animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.animate-on-scroll-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll-right.animated {
  opacity: 1;
  transform: translateX(0);
}

.animate-on-scroll-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll-scale.animated {
  opacity: 1;
  transform: scale(1);
}

/* Minimal, accessible interactions */
.btn-primary,
.btn-secondary,
.btn-nav-cta {
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 170, 68, 0.5);
  background: linear-gradient(135deg, #00CC55, #006633);
}

.btn-secondary:hover,
.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(51, 136, 221, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:active,
.btn-secondary:active,
.btn-nav-cta:active {
  transform: translateY(0);
  transition: all 0.1s ease;
}

.btn-primary:focus,
.btn-secondary:focus,
.btn-nav-cta:focus {
  outline: 3px solid var(--accent-light);
  outline-offset: 2px;
}

/* Smooth focus transitions for better accessibility */
input:focus,
select:focus,
textarea:focus {
  transition: border-color 0.2s ease;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-bg {
    transition: none !important;
  }
  
  .animate-on-scroll,
  .animate-on-scroll-left,
  .animate-on-scroll-right,
  .animate-on-scroll-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Performance optimizations */
.hero-bg,
.service-card,
.btn-primary,
.btn-secondary,
.btn-nav-cta {
  will-change: transform, opacity;
}

/* GPU acceleration for smooth animations */
.hero-bg {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.service-card {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* SCROLL BEHAVIOR */
html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 70px;
}

/* HERO OVERLAY for About Page */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  padding: 0 2rem;
}

.hero h1 {
  color: white !important;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero .hero-subtitle {
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  font-weight: 300;
  opacity: 0.95;
  line-height: 1.4;
}

/* SERVICE DETAIL SECTIONS - About Page */
.service-detail-section {
  padding: var(--space-xl) 0;
  background: var(--white);
}

.service-detail-item {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg) 0;
}

.service-detail-item:last-child {
  margin-bottom: 0;
}

.service-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.service-detail-item.reverse .service-detail-content {
  direction: rtl;
}

.service-detail-item.reverse .service-detail-text {
  direction: ltr;
}

.service-detail-text h2 {
  color: var(--dark);
  margin-bottom: var(--space-sm);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
}

.service-detail-subtitle {
  color: var(--primary-gold);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.service-detail-text p {
  color: var(--gray);
  margin-bottom: var(--space-md);
  font-size: 1rem;
  line-height: 1.7;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-xs);
  color: var(--dark);
  font-weight: 500;
}

.service-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-gold);
  font-weight: bold;
  font-size: 1.1rem;
}

.service-detail-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-detail-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-detail-image:hover img {
  transform: scale(1.05);
}

/* Mobile Responsive for Service Details */
@media (max-width: 768px) {
  .logo { width: 90px; height: auto; }
  
  .service-detail-content {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: center;
    display: flex;
    flex-direction: column;
  }
  
  .service-detail-item.reverse .service-detail-content {
    direction: ltr;
  }
  
  .service-detail-text {
    order: 1;
  }
  
  .service-detail-image {
    order: 2;
  }
  
  .service-detail-text h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  .service-detail-image img {
    height: 250px;
  }
  
  .service-detail-item {
    padding: var(--space-md) 0;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .logo { width: 80px; height: auto; }
}


/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid var(--dark);
  }
  
  .btn-secondary {
    border-width: 3px;
  }
  
  .service-card {
    border: 2px solid var(--dark);
  }
}

/* Print styles */
@media print {
  .header,
  .mobile-menu-toggle,
  .btn-primary,
  .btn-secondary {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .hero {
    height: auto;
    padding: 2rem 0;
  }
}

/* Basic RTL support */
[dir="rtl"] body { direction: rtl; }
[dir="rtl"] .nav-menu { flex-direction: row-reverse; }
[dir="rtl"] .service-card p, [dir="rtl"] .about-text p { text-align: right; }
[dir="rtl"] .contact-form input, [dir="rtl"] .contact-form select, [dir="rtl"] .contact-form textarea { text-align: right; }


