/* SEP Energy - Modern Design System 2026 */

/* --- 1. Variables & Reset --- */
:root {
  /* Palette Premium Industrial & Eco */
  --primary-blue: #0A2240;
  /* Deep Navy - Authority & Trust */
  --primary-light: #1A3A60;
  /* Lighter Navy - Depth */
  --accent-cyan: #00D2D3;
  /* Vibrancy & Technology */
  --secondary-green: #10AC84;
  /* Emerald - Sustainability/Safety */

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  /* Very light slate tint */
  --light-gray: #E2E8F0;
  --text-dark: #1E293B;
  /* Slate 800 - Better than pure black */
  --text-gray: #64748B;
  /* Slate 500 */

  /* Gradients */
  --gradient-industrial: linear-gradient(135deg, #0A2240 0%, #1A3A60 100%);
  --gradient-eco: linear-gradient(135deg, #10AC84 0%, #00D2D3 100%);
  --gradient-hero: linear-gradient(to right, rgba(10, 34, 64, 0.95) 0%, rgba(10, 34, 64, 0.8) 50%, rgba(10, 34, 64, 0.4) 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 15px rgba(0, 210, 211, 0.3);

  /* Spacing & Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --container-max: 1200px;
}

/* --- Font Awesome Display Swap Fix --- */
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-solid-900.woff2') format('woff2'),
    url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-solid-900.ttf') format('truetype');
}

@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-brands-400.woff2') format('woff2'),
    url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-brands-400.ttf') format('truetype');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* --- Font Fallbacks (CLS Prevention) --- */
@font-face {
  font-family: 'Roboto Fallback';
  src: local('Arial');
  size-adjust: 100.11%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Montserrat Fallback';
  src: local('Arial');
  size-adjust: 112.64%;
  ascent-override: 85%;
  descent-override: 22%;
  line-gap-override: 0%;
}

body {
  font-family: 'Roboto', 'Roboto Fallback', sans-serif;
  color: var(--text-dark);
  background-color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
a,
button,
.btn {
  font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

ul {
  list-style: none;
}

/* --- 2. Typography --- */
h1 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  font-weight: 300;
}

/* --- 3. Header & Nav --- */
header {
  background: rgba(255, 255, 255, 0.9);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.logo-container {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 12px 0;
}

.logo-container img {
  height: 100%;
  width: auto;
  object-fit: contain;
  max-height: 55px;
  transition: transform 0.3s;
}

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

nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

nav ul li a {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 0;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0px;
  left: 0;
  background-color: var(--accent-cyan);
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary-blue);
}

nav ul li a:hover::after {
  width: 100%;
}

.btn-nav {
  background: var(--gradient-industrial);
  color: var(--white) !important;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13px !important;
  box-shadow: 0 4px 10px rgba(10, 34, 64, 0.2);
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(10, 34, 64, 0.3);
  background: var(--primary-blue);
}

.btn-nav::after {
  display: none;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-blue);
  cursor: pointer;
  padding: 10px;
}

/* --- 4. Hero Section --- */
.hero {
  min-height: 75vh;
  background-color: var(--primary-blue);
  background-image: var(--gradient-hero), url('../images/hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  padding: 0 5%;
  margin-top: 0;
  padding-top: 90px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    background-image: var(--gradient-hero), url('../images/hero-bg-mobile.jpg');
  }
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--off-white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 10;
  /* animation removed — fadeInUp causes CLS 0.389 */
}

.hero-pretitle {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-cyan);
  padding: 6px 16px;
  border-radius: 4px;
  display: inline-block;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 25px;
  font-size: 0.8rem;
  border-left: 3px solid var(--accent-cyan);
  backdrop-filter: blur(5px);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 25px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--accent-cyan), var(--white));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 700px;
  font-weight: 300;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--secondary-green);
  color: var(--white);
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(16, 172, 132, 0.4);
  letter-spacing: 0.5px;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 172, 132, 0.5);
  background: #0d9672;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-blue);
  border-color: var(--white);
  transform: translateY(-3px);
}

/* --- 5. Logos Strip --- */
.partners {
  padding: 40px 5%;
  background: var(--white);
  text-align: center;
  border-bottom: 1px solid var(--light-gray);
  position: relative;
  z-index: 2;
}

.logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 15px;
  opacity: 0.7;
}

.partner-logo-img {
  height: 45px;
  width: auto;
  filter: grayscale(100%);
  transition: all 0.4s ease;
}

.partner-logo-img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
  opacity: 1;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary-blue);
}

/* --- 6. Services Section --- */
.services {
  padding: 100px 5%;
  background-color: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.industrial-badge {
  display: inline-block;
  margin-bottom: 15px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--secondary-green);
  text-transform: uppercase;
  background: rgba(16, 172, 132, 0.1);
  padding: 5px 12px;
  border-radius: 4px;
}

.section-header h2 {
  color: var(--primary-blue);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.section-separator {
  width: 50px;
  height: 4px;
  background: var(--accent-cyan);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--light-gray);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  height: 100%;
}

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-industrial);
  opacity: 0;
  transition: 0.3s;
}

.service-card:hover::before {
  opacity: 1;
}

.icon-box {
  font-size: 2rem;
  color: var(--accent-cyan);
  margin-bottom: 25px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 34, 64, 0.05);
  border-radius: var(--radius-sm);
  transition: 0.3s;
}

.service-card:hover .icon-box {
  background: var(--primary-blue);
  color: var(--white);
}

.service-card h3 {
  color: var(--primary-blue);
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-gray);
  margin-bottom: 25px;
  flex-grow: 1;
}

.link-arrow {
  color: var(--secondary-green);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.link-arrow i {
  transition: 0.3s;
}

.link-arrow:hover i {
  transform: translateX(5px);
}

/* --- 7. Residential Split --- */
/* (Styles moved and updated to section 11 below to fix conflict) */

/* --- 8. Footer --- */
footer {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 80px 5% 30px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  max-width: var(--container-max);
  margin: 0 auto 60px;
}

.footer-col h4 {
  color: var(--accent-cyan);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #cbd5e1;
  font-weight: 400;
}

.footer-col ul li a:hover {
  color: var(--accent-cyan);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  color: var(--text-gray);
  font-size: 0.85rem;
}

/* --- 9. WhatsApp --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
  z-index: 2000;
  transition: 0.3s;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

/* --- 10. Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- 11. Responsive --- */
@media (max-width: 900px) {
  .section-header {
    padding: 0 20px;
    /* Fix text touching edges */
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  /* Fix Hero buttons cut off */
  .hero {
    padding-bottom: 150px;
    /* Ensure space for buttons above bottom slant */
  }


}

@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-card);
    display: none;
  }

  nav.active {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px solid var(--off-white);
  }

  nav ul li a {
    display: block;
    padding: 15px;
    color: var(--text-dark);
  }

  nav ul li a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    text-align: center;
    justify-content: center;
    padding-top: 120px;
  }

  .hero::after {
    height: 40px;
  }

  .hero-btns {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- Additional Helper Classes --- */
/* --- Additional Helper Classes --- */
/* --- Additional Helper Classes --- */
.why-us {
  padding: 100px 0;
  /* Vertical padding only */
  background: var(--white);
  position: relative;
}

.why-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  /* Standardize gap */
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  /* Standard container padding */
  width: 100%;
}

.why-text h2 {
  font-size: 2.8rem;
  color: var(--primary-blue);
  margin-bottom: 30px;
  line-height: 1.2;
}

.why-text p {
  color: var(--text-gray);
  font-size: 1.15rem;
  margin-bottom: 50px;
  max-width: 95%;
  line-height: 1.8;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--white);
  padding: 25px 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 25px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
  border-color: rgba(0, 210, 211, 0.3);
}

.feature-icon-circle {
  background: rgba(16, 172, 132, 0.08);
  /* Greenish tint for contrast */
  color: var(--secondary-green);
  min-width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.feature-text strong {
  display: block;
  color: var(--primary-blue);
  margin-bottom: 4px;
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-text span {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.5;
}

.why-img {
  height: 100%;
  min-height: 600px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.why-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.why-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 34, 64, 0.4), transparent);
  z-index: 1;
}

/* Updated Residential Split */
.residential-split {
  background: var(--off-white);
  padding: 100px 0;
  /* Vertical padding only */
}

.res-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  /* Standardize gap */
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  /* Standard container padding */
  width: 100%;
}

/* Removed duplicate .res-content definition that was here */

.res-image-col {
  height: 600px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  position: relative;
}

.res-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 901px) {
  .res-image-col {
    margin: 40px 0 40px 40px;
    box-shadow: var(--shadow-hover);
  }
}

.res-content {
  padding: 50px;
  /* Reduced vertical padding, balanced horizontal */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.res-subtitle {
  color: var(--text-gray);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
  font-size: 0.85rem;
}

.res-content h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: var(--primary-blue);
  line-height: 1.2;
}

.res-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}

.res-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: 0.3s;
  border: 1px solid transparent;
}

.res-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: rgba(16, 172, 132, 0.2);
}

.res-icon-check {
  width: 35px;
  height: 35px;
  background: rgba(16, 172, 132, 0.15);
  color: var(--secondary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* --- 12. Blog Section --- */
.latest-blog {
  padding: 100px 5%;
  background: var(--white);
  border-top: 1px solid var(--light-gray);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.mini-blog-card {
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: 0.3s;
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.mini-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent-cyan);
}

.mini-thumb {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.mini-blog-card:hover .mini-thumb img {
  transform: scale(1.1);
}

.mini-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.mini-content h3 {
  color: var(--primary-blue);
  font-size: 1.25rem;
  margin-bottom: 15px;
  line-height: 1.4;
  font-weight: 700;
}

.mini-link {
  color: var(--secondary-green);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.mini-link:hover {
  gap: 12px;
  color: var(--primary-blue);
}

/* --- 13. Blog Article Page --- */
.blog-hero {
  background-image: linear-gradient(rgba(10, 34, 64, 0.8), rgba(10, 34, 64, 0.8)), url('../images/hero-bg.webp');
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 0 5%;
}

.blog-hero .hero-content {
  max-width: 900px;
}

.blog-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
}

.blog-header {
  text-align: center;
  margin-bottom: 50px;
}

.blog-meta {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-top: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.article-content {
  font-family: 'Roboto', sans-serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #334155;
}

.article-content h2 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary-blue);
  margin-top: 60px;
  margin-bottom: 25px;
  font-size: 1.8rem;
  font-weight: 700;
  border-bottom: 2px solid var(--light-gray);
  padding-bottom: 10px;
}

.article-content h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary-light);
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 600;
}

.article-content p {
  margin-bottom: 25px;
}

.article-content ul,
.article-content ol {
  margin-bottom: 35px;
  padding-left: 20px;
}

.article-content li {
  margin-bottom: 15px;
  padding-left: 10px;
}

.article-content ul li {
  list-style-type: disc;
}

.highlight-box {
  background: var(--off-white);
  border-left: 4px solid var(--accent-cyan);
  padding: 30px;
  margin: 50px 0;
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-sm);
}

.highlight-box h3 {
  margin-top: 0 !important;
  color: var(--primary-blue) !important;
  font-size: 1.3rem !important;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

.cta-section {
  background: var(--primary-blue);
  color: white;
  padding: 60px 40px;
  border-radius: 20px;
  text-align: center;
  margin-top: 80px;
  box-shadow: var(--shadow-hover);
  background-image: url('../images/hero-bg.webp');
  background-blend-mode: overlay;
  background-size: cover;
}

.cta-section h2 {
  color: white !important;
  margin-top: 0 !important;
  border-bottom: none !important;
  margin-bottom: 15px !important;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* --- RESIDENTIAL PAGE STYLES (New) --- */

.hero-res {
  background: linear-gradient(rgba(10, 34, 64, .70), rgba(10, 34, 64, .45)), url('../images/residencial-hero.webp');
  background-size: cover;
  background-position: center;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-top: 90px;
  position: relative;
  padding: 40px 5%;
}

.hero-res h1 {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.hero-res h1 span {
  color: var(--accent-cyan);
}

.hero-res p {
  font-size: 1.25rem;
  margin: 0 auto 34px;
  max-width: 820px;
  line-height: 1.8;
  opacity: .96;
}

/* INTRO */
.intro-res {
  padding: 80px 5% 20px;
  text-align: center;
  max-width: var(--container-max);
  margin: 0 auto;
}

.intro-res h2 {
  font-size: 2.4rem;
  color: var(--primary-blue);
  margin-bottom: 16px;
  font-weight: 800;
}

.intro-res p {
  font-size: 1.08rem;
  color: var(--text-gray);
}

/* TRUST STRIP */
.trust-strip {
  padding: 20px 5% 70px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.trust-pill {
  background: var(--off-white);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 14px;
  padding: 18px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trust-pill i {
  color: var(--secondary-green);
  font-size: 1.25rem;
  margin-top: 2px;
}

.trust-pill strong {
  display: block;
  color: var(--primary-blue);
  font-weight: 800;
  margin-bottom: 2px;
}

.trust-pill span {
  color: var(--text-gray);
  font-size: .95rem;
}

/* SERVICES CARDS */
.res-services {
  padding: 40px 5% 90px;
  background: var(--off-white);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 34px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.res-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: .35s;
  display: flex;
  flex-direction: column;
}

.res-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  height: 240px;
  overflow: hidden;
  background: #f4f6f9;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .5s;
}

.res-card:hover .card-img img {
  transform: scale(1.08);
}

.card-content {
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--secondary-green);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 10px;
}

.card-content h3 {
  font-size: 1.45rem;
  color: var(--primary-blue);
  margin-bottom: 12px;
  font-weight: 800;
}

.card-content p {
  color: var(--text-gray);
  margin-bottom: 18px;
}

.card-bullets {
  margin: 0 0 18px 0;
}

.card-bullets li {
  display: flex;
  gap: 10px;
  color: var(--text-gray);
  margin-bottom: 10px;
  font-size: .98rem;
}

.card-bullets i {
  color: var(--accent-cyan);
  margin-top: 4px;
}

.card-link {
  color: var(--primary-blue);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .9rem;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.card-link:hover {
  color: var(--accent-cyan);
  gap: 12px;
}

/* PROCESS */
.process-section {
  padding: 90px 5%;
  background: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}

.process-step {
  background: var(--off-white);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: none;
  position: relative;
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(0, 210, 211, .18);
  border: 1px solid rgba(0, 210, 211, .35);
  color: var(--accent-cyan);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-family: 'Montserrat', sans-serif;
}

.process-step i {
  color: var(--secondary-green);
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}

.process-step h4 {
  color: var(--primary-blue);
  font-weight: 900;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.process-step p {
  color: var(--text-gray);
  font-size: .98rem;
}

/* SAFETY BANNER */
.safety-banner {
  padding: 80px 5%;
  background: var(--gradient-industrial);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}

.safety-text {
  flex: 1;
  min-width: 280px;
  max-width: 800px;
  /* Aligned with standard layout */
}

.safety-text h2 {
  font-size: 2.35rem;
  margin-bottom: 18px;
  color: var(--accent-cyan);
  font-weight: 900;
}

.safety-text p {
  opacity: .95;
  margin-bottom: 18px;
  max-width: 650px;
}

.safety-list li {
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1.05rem;
}

.safety-list i {
  color: var(--secondary-green);
  margin-top: 3px;
}

.safety-img {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.safety-img i {
  font-size: 10rem;
  color: rgba(255, 255, 255, .10);
}

/* FAQ */
.faq-section {
  padding: 90px 5%;
  background: var(--off-white);
}

.faq-wrap {
  max-width: 1000px;
  margin: 0 auto;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 26px;
}

details.faq {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .04);
}

details.faq summary {
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: var(--primary-blue);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  margin-top: 10px;
  color: var(--text-gray);
  line-height: 1.75;
}

.chev {
  color: var(--accent-cyan);
  transition: .25s;
}

details[open] .chev {
  transform: rotate(180deg);
}

/* CTA */
.cta-final {
  padding: 85px 5%;
  text-align: center;
  background: linear-gradient(45deg, #00C0CD, #00A86B);
  color: var(--white);
}

.cta-final h2 {
  font-size: 2.35rem;
  margin-bottom: 12px;
  font-weight: 900;
}

.cta-final p {
  opacity: .95;
  max-width: 820px;
  margin: 0 auto 20px;
}

.btn-white {
  background: var(--white);
  color: var(--primary-blue);
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 900;
  display: inline-block;
  margin-top: 10px;
  text-transform: uppercase;
}

.btn-white:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .2);
}

/* --- SERVICES PAGE STYLES (Migrated from inline) --- */
.services-hero {
  background-image: var(--gradient-hero), url('../images/servicios-hero.webp');
}

.intro-services {
  padding: 80px 5%;
  text-align: center;
  background: var(--white);
}

.intro-services p {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-gray);
  font-size: 1.1rem;
}

.coverage-rm {
  padding: 0 5% 40px;
  background: var(--white);
}

.coverage-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  color: var(--text-dark);
  text-align: center;
}

.coverage-box strong {
  color: var(--primary-blue);
}

.main-services-grid {
  padding: 60px 5% 100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.big-service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.big-service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-cyan);
}

.card-image-header {
  height: 220px;
  overflow: hidden;
  background-color: #eee;
}

.card-image-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.big-service-card:hover .card-image-header img {
  transform: scale(1.1);
}

.card-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-icon {
  font-size: 2rem;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.card-body h3 {
  color: var(--primary-blue);
  font-size: 1.3rem;
  margin-bottom: 15px;
  min-height: 3rem;
}

.card-body p {
  color: var(--text-gray);
  margin-bottom: 25px;
  font-size: 0.95rem;
  flex-grow: 1;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary-green);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-top: auto;
}

.btn-card:hover {
  color: var(--primary-blue);
}

.btn-card i {
  transition: 0.3s;
}

.btn-card:hover i {
  transform: translateX(5px);
}

.cta-audit {
  padding: 100px 5%;
  text-align: center;
  background: var(--gradient-eco);
  color: white;
}

.cta-audit h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;

  /* --- Mobile Layout Fixes (Moved to End) --- */
  @media (max-width: 900px) {

    /* Fix Residential Split - target wrapper */
    .res-wrapper {
      grid-template-columns: 1fr !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 0 !important;
    }

    /* Fix Why Us - single column & image first */
    .why-wrapper {
      grid-template-columns: 1fr !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 0 !important;
    }

    .why-img {
      width: 100%;
      min-height: 300px;
      height: auto;
      margin: 0;
      border-radius: 0;
      order: 2;
    }

    .why-text {
      padding: 30px 20px;
      order: 1;
    }

    .res-image-col {
      width: 100%;
      min-height: 300px;
      height: auto;
      margin: 0;
      order: 2;
    }

    .res-content {
      padding: 40px 20px;
      order: 1;
    }
  }
/* CONTENT SPLIT (Added for Residential Regularization) */
.content-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 22px;
}

.image-box {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #eee;
  min-height: 320px;
}

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

@media (max-width: 980px) {
  .content-split {
    grid-template-columns: 1fr;
  }
  .image-box {
    min-height: 260px;
  }
}
