/* =========================================================
   ECO4 PRO — Premium Design Polish (v2)
   Safer, more surgical overrides on top of compiled Tailwind.
   Goals: mobile responsiveness, typography, premium polish
   without breaking carousels, grids, or icon layouts.
   ========================================================= */

:root {
  --brand-deep: #0f2b26;
  --brand-emerald: #059669;
  --brand-emerald-light: #10b981;
  --brand-teal: #0d9488;
  --brand-cyan: #06b6d4;
  --shadow-soft: 0 4px 14px -4px rgba(15, 43, 38, 0.08);
  --shadow-md: 0 14px 32px -12px rgba(15, 43, 38, 0.14);
  --transition: 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Global rendering & typography ---------- */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.005em;
}

/* Slight letter-spacing tightening on big headings, but DO NOT change color */
h1, h2 { letter-spacing: -0.02em; }
h3 { letter-spacing: -0.015em; }

/* ---------- Hero background warmth (only on .bg-hero) ---------- */
.bg-hero {
  background:
    radial-gradient(ellipse at top left, rgba(16, 185, 129, 0.07), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(6, 182, 212, 0.07), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* ---------- Premium button hover (only CTA-style gradient buttons) ---------- */
a[class*="from-emerald-600"][class*="to-cyan-600"],
button[class*="from-emerald-600"][class*="to-cyan-600"] {
  box-shadow: 0 10px 24px -10px rgba(5, 150, 105, 0.45);
}

/* ---------- Form inputs polish (focus ring only) ---------- */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

/* ---------- Focus visibility for accessibility ---------- */
*:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Image safety ---------- */
img { max-width: 100%; height: auto; }

/* ---------- Marquee certification strip: smoother pacing ---------- */
.animate-marquee { animation-duration: 38s !important; }

/* ---------- Responsive heading down-scaling on small screens ---------- */
@media (max-width: 640px) {
  /* Prevent oversize headings on phones */
  h1[class*="text-5xl"],
  h1[class*="text-6xl"],
  h1[class*="text-7xl"] {
    font-size: clamp(1.875rem, 7vw, 2.5rem) !important;
    line-height: 1.15 !important;
  }
  h2[class*="text-4xl"],
  h2[class*="text-5xl"],
  h2[class*="text-6xl"] {
    font-size: clamp(1.625rem, 6vw, 2.25rem) !important;
    line-height: 1.2 !important;
  }

  /* Section padding: tighter on mobile */
  section[class*="py-20"] { padding-top: 3.25rem !important; padding-bottom: 3.25rem !important; }
  section[class*="py-16"] { padding-top: 2.75rem !important; padding-bottom: 2.75rem !important; }
  section[class*="py-12"] { padding-top: 2.25rem !important; padding-bottom: 2.25rem !important; }

  /* Hero stack: don't crush horizontal padding */
  section [class*="px-6"] { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }

  /* Generous card padding on mobile is wasteful */
  [class*="rounded-2xl"][class*="p-8"],
  [class*="rounded-3xl"][class*="p-8"] {
    padding: 1.5rem !important;
  }

  /* Grids: tighter mobile gaps */
  [class*="md:grid-cols-3"],
  [class*="md:grid-cols-2"],
  [class*="grid-cols-3"][class*="gap-8"] {
    gap: 1rem;
  }

  /* Hero stat cards: 3 cols → keep but reduce padding */
  [class*="grid-cols-3"][class*="gap-4"] > div {
    padding: 0.75rem !important;
  }

  /* Hero image: cap height on phones */
  [class*="h-[500px]"],
  [class*="h-[600px]"] {
    height: 320px !important;
  }
}

/* ---------- Tablet refinements ---------- */
@media (min-width: 641px) and (max-width: 1024px) {
  h1[class*="text-7xl"] { font-size: 3rem !important; line-height: 1.1 !important; }
  h2[class*="text-5xl"] { font-size: 2.25rem !important; line-height: 1.15 !important; }
  [class*="h-[500px]"],
  [class*="h-[600px]"] { height: 460px !important; }
}

/* ---------- Long-word safety on prose paragraphs ---------- */
section p { overflow-wrap: break-word; }

/* ---------- Footer link hover only ---------- */
footer a:hover { color: #10b981; }

/* ---------- Small accessibility tweak: tap padding for nav/footer links on mobile ---------- */
@media (max-width: 768px) {
  nav a, footer a { padding-top: 4px; padding-bottom: 4px; }
}

/* ---------- Subtle gradient animation only on CTA strips ---------- */
section[class*="from-emerald-600"][class*="to-cyan-600"],
section[class*="from-emerald-500"][class*="to-cyan-500"] {
  background-size: 200% 200%;
  animation: ecoGradientShift 14s ease infinite;
}
@keyframes ecoGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ---------- End ---------- */

/* =========================================================
   Real Customer Reviews Section (injected by reviews-injector.js)
   ========================================================= */
.ecorev-section {
  position: relative;
  padding: 5rem 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(16, 185, 129, 0.06), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(6, 182, 212, 0.06), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  overflow: hidden;
}
@media (max-width: 640px) {
  .ecorev-section { padding: 3rem 0; }
}
.ecorev-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.ecorev-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.ecorev-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #059669;
  margin-bottom: 0.75rem;
}
.ecorev-title {
  font-size: clamp(1.875rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #0f2b26;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.ecorev-title-accent {
  background: linear-gradient(90deg, #059669, #0d9488, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.ecorev-divider {
  height: 4px;
  width: 80px;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  border-radius: 4px;
  margin: 0 auto 1.25rem;
}
.ecorev-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}
.ecorev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .ecorev-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .ecorev-grid { grid-template-columns: repeat(2, 1fr); }
}
.ecorev-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 14px -4px rgba(15, 43, 38, 0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.ecorev-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -16px rgba(15, 43, 38, 0.18);
  border-color: rgba(16, 185, 129, 0.4);
}
.ecorev-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ecorev-card:hover::before { opacity: 1; }
.ecorev-quote-icon {
  position: absolute;
  top: 0.25rem;
  right: 1.25rem;
  font-size: 5rem;
  line-height: 1;
  font-family: Georgia, 'Times New Roman', serif;
  color: rgba(16, 185, 129, 0.12);
  pointer-events: none;
  user-select: none;
}
.ecorev-stars {
  display: flex;
  gap: 2px;
  color: #facc15;
}
.ecorev-star {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}
.ecorev-text {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.ecorev-footer {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}
.ecorev-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #0d9488);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px -4px rgba(5, 150, 105, 0.5);
}
.ecorev-meta {
  flex: 1;
  min-width: 0;
}
.ecorev-name {
  font-weight: 700;
  color: #0f2b26;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ecorev-name-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.ecorev-name-link:hover {
  color: #059669;
  text-decoration: underline;
}
.ecorev-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}
.ecorev-badge-google {
  background: rgba(66, 133, 244, 0.08);
  color: #1a73e8;
}
.ecorev-badge-trustpilot {
  background: rgba(0, 182, 122, 0.08);
  color: #00b67a;
}
.ecorev-badge-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* =========================================================
   ULTRA-AGGRESSIVE OLD CONTENT KILLER (v3)
   Force-hide any element containing old testimonial markers.
   Uses :has() for modern browsers + fallback selectors.
   ========================================================= */

/* Hide any section that contains the OLD testimonial heading */
section:has(h2:where(:contains("Honest reviews from our clients"))),
section:has(p:where(:contains("Honest reviews from our clients"))),
section.py-20.bg-slate-50:has(.grid.md\:grid-cols-3) {
  display: none !important;
}

/* Hide the OLD homepage carousel section by its specific jsx class */
section.jsx-2162c02c05d36c49 {
  display: none !important;
}

/* Hide any specific elements that the React data tries to recreate */
[data-old-testimonial],
.old-review,
.old-testimonial {
  display: none !important;
}

/* Hide the "Testimonials" eyebrow + "Honest reviews" pattern wrapper */
section .text-\[\#22c55e\].font-bold.uppercase.tracking-widest:where(:has(+ h2:contains("Honest reviews"))) {
  display: none !important;
}

/* Force show our new reviews section always */
#eco4-real-reviews {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
#eco4-real-reviews .ecorev-grid,
#eco4-real-reviews .ecorev-card,
#eco4-real-reviews .ecorev-header {
  display: block !important;
  visibility: visible !important;
}
#eco4-real-reviews .ecorev-grid { display: grid !important; }
#eco4-real-reviews .ecorev-card { display: flex !important; }
#eco4-real-reviews .ecorev-footer { display: flex !important; }
#eco4-real-reviews .ecorev-meta { display: block !important; }

/* =========================================================
   Force visibility for animated entrance elements (v9.1 fix)
   Services and other cards use opacity-0 + translate-y-12
   for JS entrance animation. Override to keep them visible
   even if JS hydration fails.
   ========================================================= */
.service-card,
.service-card[class*="opacity-0"],
.service-card[class*="translate-y-12"],
.service-card[class*="translate-y"][class*="opacity-0"] {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Generic fallback for any card-like element that's stuck invisible */
[data-index][class*="opacity-0"][class*="translate-y"] {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Any element with both opacity-0 and translate-y classes that's a service/feature card */
[class*="rounded-xl"][class*="opacity-0"],
[class*="rounded-2xl"][class*="opacity-0"],
[class*="rounded-3xl"][class*="opacity-0"] {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Why Choose Us cards (similar entrance animation) */
[class*="grid-cols-3"] > [class*="opacity-0"],
[class*="grid-cols-2"] > [class*="opacity-0"],
[class*="lg:grid-cols-3"] > [class*="opacity-0"] {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* =========================================================
   v11 — Tone down Why Choose Us glow + fix translate-x
   ========================================================= */

/* Hide the blur-xl glow overlay on Why Choose Us cards */
section[class*="from-slate-900"] [class*="blur-xl"][class*="absolute"][class*="inset-0"],
section[class*="bg-slate-900"] [class*="blur-xl"][class*="absolute"][class*="inset-0"] {
  opacity: 0 !important;
  display: none !important;
}

/* Remove translate-x shift on Why Choose Us cards (right-side cards) */
[class*="translate-x-10"],
[class*="translate-x-12"],
[class*="-translate-x-10"],
[class*="-translate-x-12"] {
  transform: translateX(0) !important;
}

/* Make Why Choose Us cards background slightly cleaner — neutral subtle background */
section[class*="from-slate-900"] [class*="rounded-2xl"][class*="border-white/10"],
section[class*="bg-slate-900"] [class*="rounded-2xl"][class*="border-white/10"] {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(8px);
}

/* Disable the hover glow effect entirely for these cards */
section[class*="from-slate-900"] [class*="rounded-2xl"][class*="border-white/10"]:hover [class*="blur-xl"],
section[class*="bg-slate-900"] [class*="rounded-2xl"][class*="border-white/10"]:hover [class*="blur-xl"] {
  opacity: 0 !important;
}

/* =========================================================
   v11 — Clean Services Section (homepage)
   ========================================================= */
.eco-services-section {
  padding: 5rem 0;
  background: #ffffff;
  position: relative;
}
@media (max-width: 640px) {
  .eco-services-section { padding: 3rem 0; }
}
.eco-services-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.eco-services-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.eco-services-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #059669;
  margin-bottom: 0.75rem;
}
.eco-services-title {
  font-size: clamp(1.875rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #0f2b26;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.eco-services-title-accent {
  background: linear-gradient(90deg, #059669, #0d9488, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.eco-services-divider {
  height: 4px;
  width: 80px;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  border-radius: 4px;
  margin: 0 auto 1.25rem;
}
.eco-services-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}
.eco-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .eco-services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .eco-services-grid { grid-template-columns: repeat(2, 1fr); }
}
.eco-service-card {
  display: block;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px -4px rgba(15, 43, 38, 0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}
.eco-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -16px rgba(15, 43, 38, 0.18);
  border-color: rgba(16, 185, 129, 0.4);
}
.eco-service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 18px -8px rgba(15, 43, 38, 0.3);
}
.eco-service-icon svg {
  width: 30px;
  height: 30px;
}
.eco-service-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f2b26;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}
.eco-service-desc {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.2rem;
  min-height: 4.8em;
}
.eco-service-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #059669;
  transition: gap 0.2s ease;
}
.eco-service-card:hover .eco-service-link {
  gap: 8px;
}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         