/* ============================================
   ECOLOGIC GROUP — REDESIGN OVERRIDE
   Aesthetic: Industrial-Editorial
   Fonts: Instrument Serif + Plus Jakarta Sans
   ============================================ */

/* ---- CUSTOM PROPERTIES ---- */
:root {
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --text-dark: #1a2b18;
  --text-mid: #3d4f3b;
  --text-muted: #5a6b57;
  --surface-warm: #fafcf9;
  --surface-light: #f0f5ee;
  --border-subtle: rgba(54, 128, 46, 0.12);
  --shadow-sm: 0 2px 4px rgba(26, 43, 24, 0.04);
  --shadow-md: 0 4px 20px rgba(26, 43, 24, 0.07);
  --shadow-lg: 0 8px 40px rgba(26, 43, 24, 0.10);
  --shadow-xl: 0 20px 60px rgba(26, 43, 24, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

/* ---- GLOBAL FOUNDATIONS ---- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body) !important;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--surface-warm);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--font-display) !important;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h4, h5, h6, .h4, .h5, .h6 {
  font-family: var(--font-body) !important;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

p {
  color: var(--text-mid);
  line-height: 1.75;
  font-size: clamp(0.975rem, 1vw, 1.0625rem);
}

p.lead {
  font-size: clamp(1.05rem, 1.2vw, 1.175rem);
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

a {
  transition: color 0.25s var(--ease-out-quart);
}

/* ---- SCROLL-TO-TOP FIX ---- */
.float-text.show-on-scroll {
  display: none !important;
}

.scrollbar-v.show-on-scroll {
  display: none !important;
}

/* ---- SUBTITLE BADGES ---- */
.subtitle {
  font-family: var(--font-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 6px 16px !important;
  border-radius: 100px !important;
  display: inline-block;
}

.subtitle.s2 {
  background: rgba(103, 213, 75, 0.15) !important;
  color: var(--secondary-color) !important;
  padding: 6px 16px !important;
  border-radius: 100px !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

/* ---- TOPBAR ---- */
#topbar {
  background: rgba(26, 43, 24, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 0;
}

#topbar a,
#topbar .topbar-widget a {
  font-family: var(--font-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.8) !important;
  transition: color 0.2s var(--ease-out-quart);
}

#topbar a:hover {
  color: var(--secondary-color) !important;
}

#topbar i {
  font-size: 0.875rem;
  margin-right: 6px;
}

#topbar .social-icons a i {
  color: rgba(255, 255, 255, 0.5) !important;
  transition: color 0.2s var(--ease-out-quart);
}

#topbar .social-icons a:hover i {
  color: var(--secondary-color) !important;
}

/* ---- MAIN NAVIGATION ---- */
header {
  transition: all 0.4s var(--ease-out-quart);
}

#mainmenu a.menu-item {
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  transition: color 0.25s var(--ease-out-quart);
}

#mainmenu li a.menu-item:after {
  transition: width 0.3s var(--ease-out-quart);
}

/* CTA Button in Nav */
.menu_side_area .btn-main {
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em;
  padding: 10px 26px !important;
  border-radius: 100px !important;
  transition: all 0.3s var(--ease-out-quart);
}

.menu_side_area .btn-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(103, 213, 75, 0.3);
}

/* ---- BUTTONS GLOBAL ---- */
.btn-main {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.03em;
  padding: 14px 32px !important;
  border-radius: 100px !important;
  transition: all 0.3s var(--ease-out-quart) !important;
  border: none !important;
  text-transform: none !important;
  position: relative;
  overflow: hidden;
}

.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(54, 128, 46, 0.25);
}

.btn-main:active {
  transform: translateY(0);
}

a.btn-main.btn-white {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px 32px !important;
  border-radius: 100px !important;
}

a.btn-main.btn-white:hover {
  background: #fff !important;
  color: var(--primary-color) !important;
  border-color: #fff !important;
  transform: translateY(-2px);
}

/* Ghost/secondary button */
.btn-outline-green {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 14px 32px;
  border-radius: 100px;
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  transition: all 0.3s var(--ease-out-quart);
  text-decoration: none;
}

.btn-outline-green:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(54, 128, 46, 0.2);
}

/* ============================================
   HERO SECTION
   ============================================ */
#home {
  min-height: 100vh !important;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 6vw, 5rem) !important;
}

#home .de-overlay {
  background: linear-gradient(
    135deg,
    rgba(10, 20, 8, 0.92) 0%,
    rgba(10, 20, 8, 0.78) 40%,
    rgba(10, 20, 8, 0.55) 100%
  ) !important;
}

.hero-slideshow img {
  transform: scale(1.05);
  filter: saturate(0.8);
}

/* Hero Typography */
#home .hero-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#home .hero-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1.5px;
  background: var(--secondary-color);
}

#home h1 {
  font-family: var(--font-display) !important;
  font-size: clamp(3.25rem, 6.5vw, 5.5rem) !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  color: #fff !important;
  letter-spacing: -0.02em;
  margin-bottom: 0 !important;
}

#home h1 em {
  font-style: italic;
  color: var(--secondary-color);
}

#home .hero-typed {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
  margin-bottom: 0;
}

#home .hero-typed #typewriter {
  color: var(--secondary-color);
  font-weight: 600;
}

#home .hero-description {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  line-height: 1.7;
  margin-top: 1.25rem;
  margin-bottom: 2rem;
}

#home .hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

#home .hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#home .hero-stat {
  text-align: left;
}

#home .hero-stat .stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

#home .hero-stat .stat-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================================
   SECTION SPACING & RHYTHM
   ============================================ */
section {
  padding-top: clamp(4rem, 7vw, 7rem) !important;
  padding-bottom: clamp(4rem, 7vw, 7rem) !important;
}

section.no-top {
  padding-top: 0 !important;
}

section h2 {
  font-size: clamp(2.25rem, 4vw, 3.25rem) !important;
  margin-bottom: 1rem;
}

.spacer-single {
  height: clamp(1rem, 2vw, 1.5rem) !important;
}

.spacer-double {
  height: clamp(1.5rem, 3vw, 2.5rem) !important;
}

.spacer-10 {
  height: 10px !important;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
#about {
  padding-top: clamp(5rem, 8vw, 8rem) !important;
}

#about .img-fluid.rounded-20px {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg);
  transition: transform 0.6s var(--ease-out-quart);
}

#about .img-fluid.rounded-20px:hover {
  transform: scale(1.02);
}

#about h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem) !important;
}

/* Accreditations row */
#about .justify-content-center.gx-5 {
  align-items: center;
  margin-top: 1.5rem;
}

#about .justify-content-center.gx-5 .col-lg-2 {
  display: flex;
  align-items: center;
  justify-content: center;
}

#about .justify-content-center.gx-5 .col-lg-2 img {
  filter: grayscale(0.3);
  opacity: 0.75;
  transition: all 0.4s var(--ease-out-quart);
  padding: 0.75rem !important;
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

#about .justify-content-center.gx-5 .col-lg-2 img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.08);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
#services {
  padding-top: clamp(5rem, 8vw, 8rem) !important;
}

#services .rounded-20px {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-quart);
  box-shadow: var(--shadow-sm);
  height: auto !important;
}

#services .rounded-20px:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

#services .rounded-20px .relative {
  height: 260px !important;
  overflow: hidden;
}

#services .rounded-20px .relative img.img-fluid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-quart);
}

#services .rounded-20px:hover .relative img.img-fluid {
  transform: scale(1.08);
}

#services .rounded-20px .relative img.absolute {
  z-index: 2;
  width: 52px !important;
  height: 52px;
  padding: 10px !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-md);
}

#services .padding40 {
  padding: clamp(1.5rem, 3vw, 2.25rem) !important;
}

#services .padding40 h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

#services .padding40 p {
  font-size: 0.925rem;
  line-height: 1.7;
}

/* First card: light bg */
#services .col-lg-4:nth-child(1) .bg-color-3 {
  background: var(--surface-warm) !important;
}

/* ============================================
   CLEANROOM SECTION
   ============================================ */
#cleanroom-validation {
  padding-top: clamp(5rem, 8vw, 8rem) !important;
  background: var(--surface-warm);
}

#cleanroom-validation .img-fluid {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg);
}

#cleanroom-validation .padding40 {
  padding: clamp(1.5rem, 3vw, 2.5rem) !important;
}

#cleanroom-validation ul {
  list-style: none;
  padding-left: 0;
}

#cleanroom-validation ul li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
  position: relative;
  padding-left: 28px;
}

#cleanroom-validation ul li:last-child {
  border-bottom: none;
}

#cleanroom-validation ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary-color);
}

#cleanroom-validation ul li strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* ============================================
   HVAC SECTION
   ============================================ */
#hvac {
  padding-top: clamp(5rem, 8vw, 8rem) !important;
}

#hvac h3 {
  font-family: var(--font-display) !important;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem) !important;
}

#hvac ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

#hvac ul li {
  padding: 10px 0 10px 24px;
  position: relative;
  color: var(--text-mid);
  font-size: 0.95rem;
}

#hvac ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: 700;
}

#hvac .img-fluid.rounded-20px {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg);
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
#why-choose-us {
  background: var(--tertiary-color) !important;
  position: relative;
}

#why-choose-us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-subtle), transparent);
}

#why-choose-us .icon_check {
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 20px !important;
  padding: 0 !important;
  border-radius: var(--radius-sm) !important;
  transition: transform 0.3s var(--ease-out-quart);
}

#why-choose-us .col-lg-4:hover .icon_check {
  transform: scale(1.08);
}

#why-choose-us .pl-80 {
  padding-left: 68px !important;
}

#why-choose-us h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

#why-choose-us p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ============================================
   QUOTE / TESTIMONIAL SECTION
   ============================================ */
.mt-100 .padding60 {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  padding: clamp(3rem, 5vw, 4.5rem) !important;
}

.mt-100 .padding60 h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: rgba(255, 255, 255, 0.95) !important;
}

.mt-100 .padding60 .subtitle.s2 {
  margin-bottom: 1.5rem !important;
}

.mt-100 .padding60 h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff !important;
}

.mt-100 .padding60 .small {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process-steps {
  counter-reset: step;
}

.de-step-s1 {
  border-radius: var(--radius-md) !important;
  padding: clamp(1.75rem, 2.5vw, 2.25rem) !important;
  transition: all 0.4s var(--ease-out-quart) !important;
  position: relative;
  background: #fff !important;
  border: 1.5px solid var(--border-subtle) !important;
  color: var(--text-dark) !important;
}

.de-step-s1:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color) !important;
}

.de-step-s1 .d-number {
  font-family: var(--font-body) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff !important;
  background: var(--primary-color);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.de-step-s1 h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark) !important;
}

.de-step-s1 p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-muted) !important;
  opacity: 1;
}

/* Process arrow overrides */
.process-steps .col-lg-3:not(:last-child) .de-step-s1::after {
  color: var(--secondary-color) !important;
  font-weight: 700;
  font-size: 24px !important;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .process-steps .de-step-s1::after {
    color: var(--secondary-color) !important;
  }
}

/* ============================================
   EXPERIENCE / STATS SECTION
   ============================================ */
.de_count h3 {
  font-family: var(--font-display) !important;
  font-size: clamp(2.5rem, 4vw, 3.5rem) !important;
  font-weight: 400 !important;
  color: inherit;
  margin-bottom: 0.25rem;
}

.de_count h4 {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  opacity: 0.8;
}

.bg-color.rounded-10 {
  border-radius: var(--radius-md) !important;
}

.bg-color-3.rounded-10 {
  border-radius: var(--radius-md) !important;
}

/* ============================================
   EMERGENCY SECTION
   ============================================ */
section .rounded-20px.bg-color {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
}

section .rounded-20px.bg-color h2 {
  font-family: var(--font-body) !important;
  font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: -0.01em;
}

section .rounded-20px.bg-color h2 i {
  font-size: 0.9em;
  margin-right: 8px;
}

/* ============================================
   PROJECTS GALLERY
   ============================================ */
#projects {
  background: var(--tertiary-color) !important;
}

#projects .rounded-20px {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
}

#projects .hover {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

#projects .hover .relative {
  border-radius: var(--radius-lg) !important;
}

#projects .hover img {
  transition: transform 0.7s var(--ease-out-quart) !important;
}

#projects .hover:hover img {
  transform: scale(1.06) !important;
}

/* Overlay effect */
#projects .hover .relative::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 26, 13, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-quart);
  pointer-events: none;
  z-index: 1;
}

#projects .hover:hover .relative::after {
  opacity: 1;
}

#projects .hover .absolute {
  z-index: 2;
  transition: opacity 0.3s var(--ease-out-quart);
  opacity: 0;
}

#projects .hover:hover .absolute {
  opacity: 1;
}

#projects h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1rem !important;
  transition: color 0.3s var(--ease-out-quart);
}

#projects p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact {
  background: #fff;
}

#contact h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem) !important;
}

#contact .form-control {
  font-family: var(--font-body) !important;
  font-size: 0.95rem;
  padding: 14px 18px !important;
  border: 1.5px solid #dde5db !important;
  border-radius: var(--radius-sm) !important;
  background: var(--surface-warm) !important;
  color: var(--text-dark) !important;
  transition: all 0.3s var(--ease-out-quart) !important;
  box-shadow: none !important;
}

#contact .form-control:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(54, 128, 46, 0.12) !important;
  background: #fff !important;
}

#contact .form-control::placeholder {
  color: #9baa98;
}

#contact textarea.form-control {
  min-height: 180px;
  resize: vertical;
}

#contact .d-label {
  font-family: var(--font-body) !important;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  display: block;
}

#contact .field-set {
  margin-bottom: 1.25rem;
}

#contact #submit .btn-main {
  width: 100%;
  padding: 16px 32px !important;
  font-size: 1rem !important;
}

/* Contact info sidebar */
#contact .col-lg-4 .fw-bold {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

#contact .col-lg-4 .fw-bold i {
  font-size: 1.1rem;
}

/* Success/error messages */
#success_message.active {
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
}

#error_message.active {
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
}

/* ============================================
   FOOTER
   ============================================ */
footer.section-dark {
  background: #1a2b18 !important;
  padding-top: clamp(3rem, 5vw, 5rem) !important;
}

footer.section-dark h5 {
  font-family: var(--font-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

footer.section-dark p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

footer.section-dark .widget ul li {
  padding: 5px 0 !important;
}

footer.section-dark .widget ul li a {
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  color: rgba(255, 255, 255, 0.55) !important;
  transition: all 0.25s var(--ease-out-quart);
}

footer.section-dark .widget ul li a:hover {
  color: var(--secondary-color) !important;
  padding-left: 4px;
}

/* Footer phone numbers - TAME THEM */
footer.section-dark .widget h2 {
  font-family: var(--font-body) !important;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem) !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
}

footer.section-dark .widget h2 i {
  font-size: 1em;
  margin-right: 6px;
  vertical-align: middle;
}

footer.section-dark .fw-bold {
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8) !important;
}

footer .social-icons a i {
  transition: all 0.25s var(--ease-out-quart);
}

footer .social-icons a:hover i {
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

/* Subfooter */
footer .subfooter {
  font-family: var(--font-body) !important;
  font-size: 0.8125rem;
  padding: 1.25rem 0 !important;
  color: rgba(255, 255, 255, 0.35);
}

/* Footer phone links */
footer .footer-phones p {
  font-family: var(--font-body) !important;
  font-size: 1.05rem !important;
  font-weight: 600;
  color: #fff !important;
}

footer .footer-phones a {
  color: #fff !important;
  text-decoration: none;
  transition: color 0.25s var(--ease-out-quart);
}

footer .footer-phones a:hover {
  color: var(--secondary-color) !important;
}

footer .footer-phones i {
  color: var(--secondary-color) !important;
  font-size: 1.1rem;
}

/* Footer logo */
footer img[src$="whitetext.png"] {
  max-height: 36px !important;
  opacity: 0.9;
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

/* Smoother WOW.js animations */
.wow {
  animation-duration: 0.8s !important;
  animation-timing-function: var(--ease-out-quart) !important;
}

/* Page load fade-in */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   RESPONSIVE REFINEMENTS
   ============================================ */
@media (max-width: 991px) {
  #home h1 {
    font-size: clamp(2.5rem, 8vw, 3.5rem) !important;
  }

  #home .hero-stats {
    gap: 2rem;
    flex-wrap: wrap;
  }

  #home .hero-stat .stat-number {
    font-size: 2rem;
  }

  section h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
  }

  #services .rounded-20px {
    height: auto !important;
  }

  .mt-100 {
    margin-top: 0 !important;
  }

  footer.section-dark .widget h2 {
    font-size: 1.1rem !important;
  }
}

@media (max-width: 767px) {
  #home {
    min-height: 90vh !important;
  }

  #home h1 {
    font-size: clamp(2.25rem, 9vw, 3rem) !important;
  }

  #home .hero-stats {
    gap: 1.5rem;
  }

  #home .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  section {
    padding-top: clamp(3rem, 6vw, 4rem) !important;
    padding-bottom: clamp(3rem, 6vw, 4rem) !important;
  }

  #projects .col-lg-4 {
    margin-bottom: 1rem;
  }

  #contact .col-lg-4 {
    margin-top: 2rem;
  }
}

/* ============================================
   LOADER OVERRIDE
   ============================================ */
#de-loader {
  background: var(--surface-warm) !important;
}

/* ============================================
   IMAGE GLOBAL TREATMENT
   ============================================ */
.rounded-20px {
  border-radius: var(--radius-lg) !important;
}

.rounded-10px {
  border-radius: var(--radius-sm) !important;
}

.rounded-10 {
  border-radius: var(--radius-md) !important;
}

/* ============================================
   STICKY HEADER REFINEMENTS
   ============================================ */
header.smaller {
  background: rgba(250, 252, 249, 0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(26, 43, 24, 0.06) !important;
}

header.smaller #mainmenu a.menu-item {
  color: var(--text-dark) !important;
}

header.smaller #mainmenu a.menu-item:hover,
header.smaller #mainmenu a.menu-item.active {
  color: var(--primary-color) !important;
}

/* ============================================
   WHY CHOOSE US — REFINED GRID
   ============================================ */
#why-choose-us .col-lg-4.col-md-6 > div {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  transition: all 0.35s var(--ease-out-quart);
  background: rgba(255, 255, 255, 0.6);
  height: 100%;
}

#why-choose-us .col-lg-4.col-md-6 > div:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* ============================================
   EXPERIENCE / BENTO IMAGES
   ============================================ */
.img-fluid.rounded-10 {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s var(--ease-out-quart);
}

.img-fluid.rounded-10:hover {
  transform: scale(1.03);
}

/* ============================================
   EMERGENCY BANNER REFINEMENT
   ============================================ */
section .bg-color .subtitle.s2 {
  background: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* ============================================
   CONTACT FORM SEND BUTTON FULL WIDTH
   ============================================ */
#contact #submit {
  margin-top: 0.5rem;
}

#contact #submit .btn-main {
  width: auto;
  min-width: 200px;
}

/* ============================================
   GENERAL SECTION DIVIDERS
   ============================================ */
#services::before,
#cleanroom-validation::before,
#hvac::before {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  margin: 0 auto 0;
  border-radius: 2px;
  opacity: 0;
}

/* ============================================
   SERVICE CARD FIRST CARD BG FIX
   ============================================ */
#services .bg-color-3 {
  background: var(--surface-light) !important;
}

/* Equal height service cards */
#services .col-lg-4 {
  display: flex;
}

#services .col-lg-4 .rounded-20px {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#services .col-lg-4 .padding40 {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#services .col-lg-4 .padding40 p {
  flex: 1;
}

/* ============================================
   SELECTION COLOR
   ============================================ */
::selection {
  background: var(--primary-color);
  color: #fff;
}

::-moz-selection {
  background: var(--primary-color);
  color: #fff;
}

/* ============================================
   SECTION-BY-SECTION POLISH
   ============================================ */

/* ---- Accreditations → Services gap tighten ---- */
#about {
  padding-bottom: clamp(2rem, 4vw, 3rem) !important;
}

#services.no-top {
  padding-top: clamp(2rem, 4vw, 3rem) !important;
}

/* ---- Service cards: image overlay gradient for depth ---- */
#services .rounded-20px .relative::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(15, 26, 13, 0.08) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ---- Cleanroom section: tighter spacing, accent bar ---- */
#cleanroom-validation h2 {
  position: relative;
}

#cleanroom-validation .padding40 {
  padding-left: clamp(1rem, 2vw, 1.5rem) !important;
}

/* ---- HVAC section: subtle bg band ---- */
#hvac {
  background: var(--surface-light);
  border-radius: 0;
}

/* ---- Why Choose Us: icon refinement ---- */
#why-choose-us .icon_check {
  border-radius: 10px !important;
  font-size: 18px !important;
}

#why-choose-us .col-lg-4.col-md-6 {
  margin-bottom: 0.5rem;
}

/* ---- Quote/testimonial: stronger presence ---- */
.mt-100 .padding60 {
  border-radius: var(--radius-lg) !important;
}

.mt-100 .padding60 .btn-main {
  margin-top: 0.5rem;
}

/* ---- Experience bento: tighter grid ---- */
.de_count {
  text-align: center;
}

/* ---- Emergency CTA: punchier ---- */
section .rounded-20px.bg-color {
  padding: clamp(2rem, 4vw, 3.5rem) !important;
}

section .rounded-20px.bg-color .btn-main {
  margin-top: 1rem;
}

/* ---- Projects: tighter card gap ---- */
#projects .row.g-4 {
  --bs-gutter-y: 1.25rem;
}

#projects h4 {
  margin-top: 0.75rem !important;
  margin-bottom: 0.25rem !important;
}

/* ---- Contact form: subtle bg band ---- */
#contact {
  background: var(--surface-warm) !important;
  border-top: 1px solid var(--border-subtle);
}

#contact .form-control {
  background: #fff !important;
}

#contact .form-control:focus {
  background: #fff !important;
}

/* ---- Contact sidebar: tighter items ---- */
#contact .col-lg-4 > div {
  margin-bottom: 1.5rem;
}

/* ---- Footer: subtle top border ---- */
footer.section-dark {
  border-top: 3px solid var(--primary-color);
}

footer.section-dark .subfooter {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
}

/* ============================================
   ENHANCED MOBILE RESPONSIVENESS
   ============================================ */
@media (max-width: 991px) {
  /* Accreditation logos: 3-col on tablet */
  #about .justify-content-center.gx-5 .col-lg-2 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    margin-bottom: 0.5rem;
  }

  #about .justify-content-center.gx-5 .col-lg-2 img {
    max-height: 65px;
  }

  /* Service cards stack properly */
  #services .col-lg-4 {
    margin-bottom: 1.5rem;
  }

  /* Process cards: 2-col on tablet */
  .process-steps .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* Why Choose Us: tighter grid */
  #why-choose-us .col-lg-4.col-md-6 > div {
    padding: 1.25rem;
  }

  /* Quote section: reduce negative margin */
  .mt-100 {
    margin-top: 0 !important;
  }

  .mt-100 .padding60 {
    padding: clamp(2rem, 4vw, 3rem) !important;
  }

  /* Contact: stack gracefully */
  #contact .col-lg-8 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767px) {
  /* Hero: ensure text is readable */
  #home .hero-label {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  #home .hero-description {
    font-size: 0.925rem;
    margin-bottom: 1.5rem;
  }

  #home .hero-stats {
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
  }

  #home .hero-stat .stat-number {
    font-size: 1.75rem;
  }

  #home .hero-stat .stat-label {
    font-size: 0.75rem;
  }

  /* Accreditation logos: 2-col on mobile */
  #about .justify-content-center.gx-5 .col-lg-2.col-md-4.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  #about .justify-content-center.gx-5 .col-lg-2 img {
    max-height: 55px;
  }

  /* Services: full width on mobile */
  #services .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Process cards: single column on mobile */
  .process-steps .col-lg-3,
  .process-steps .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .de-step-s1 {
    margin-bottom: 0.5rem !important;
  }

  /* Why Choose Us: single column */
  #why-choose-us .col-lg-4.col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 0;
  }

  #why-choose-us .col-lg-4.col-md-6 > div {
    padding: 1rem 1.25rem;
  }

  /* Projects: 2-col on mobile */
  #projects .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 0.75rem;
  }

  /* Emergency section */
  section .rounded-20px.bg-color {
    padding: clamp(1.5rem, 4vw, 2rem) !important;
  }

  section .rounded-20px.bg-color h2 {
    font-size: clamp(1.25rem, 4vw, 1.5rem) !important;
  }

  /* Contact form */
  #contact .form-control {
    padding: 12px 14px !important;
    font-size: 0.9rem;
  }

  #contact textarea.form-control {
    min-height: 140px;
  }

  /* Footer: tighter on mobile */
  footer.section-dark {
    padding-top: 2.5rem !important;
  }

  footer .col-lg-4,
  footer .col-lg-2 {
    margin-bottom: 1.5rem;
  }

  footer .footer-phones p {
    font-size: 0.95rem !important;
  }

  /* Section headings */
  section h2 {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
  }

  p.lead {
    font-size: 0.925rem;
  }

  /* Quote/testimonial section */
  .mt-100 .padding60 h2 {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem) !important;
  }
}

@media (max-width: 480px) {
  /* Very small screens */
  #home h1 {
    font-size: clamp(2rem, 10vw, 2.5rem) !important;
  }

  #home .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  #home .hero-stat {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
  }

  #home .hero-stat .stat-number {
    font-size: 1.5rem;
  }

  /* Projects: single column on very small */
  #projects .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Accreditations: 2-col still */
  #about .justify-content-center.gx-5 .col-lg-2 img {
    max-height: 48px;
  }

  /* Footer columns */
  footer .col-lg-2 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
