/* ============================================
   EPS Electric — Complete Stylesheet
   Design: Professional Electrical Services
   Colors: Primary #1f4e79 | Accent #f97316
   Font: Poppins (Google Fonts)
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary: #174d7c;
  --primary-dark: #123e64;
  --primary-darker: #0d2c48;
  --accent: #f97316;
  --accent-dark: #e2620d;
  --accent-light: #fb923c;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #eef1f5;
  --medium-gray: #6b7280;
  --dark-gray: #374151;
  --text-dark: #1e293b;
  --text-body: #475569;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .15);
  --shadow-card: 0 2px 12px rgba(31, 78, 121, .08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: .3s ease;
  --transition-fast: .2s ease;
  --max-width: 1260px;
  --header-h: 76px;
  --topbar-h: 38px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast)
}

ul,
ol {
  list-style: none
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none
}

button {
  cursor: pointer
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 700
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px
}

.section-pad {
  padding: 80px 0
}

.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title span {
  color: var(--accent)
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 640px;
  margin: 0 auto 40px
}

.text-center {
  text-align: center
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .3px;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, .35)
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white)
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--white);
  font-weight: 700;
}

.btn-white:hover {
  background: transparent;
  color: var(--white)
}

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, .85);
  font-size: .78rem;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1001;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap
}

.topbar-left span {
  display: flex;
  align-items: center;
  gap: 5px
}

.topbar-left span svg {
  width: 14px;
  height: 14px;
  fill: var(--accent)
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 500
}

.topbar-right a {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 5px
}

.topbar-right a:hover {
  color: var(--accent)
}

.topbar-right svg {
  width: 14px;
  height: 14px;
  fill: var(--accent)
}

/* ---------- Header / Navbar ---------- */
.header {
  background: var(--white);
  height: var(--header-h);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .08);
  transition: all var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 25px rgba(0, 0, 0, .12);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.brand-logo,
.logo img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.logo:hover .brand-logo {
  transform: scale(1.03);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav .btn-primary {
  padding: 10px 24px;
  font-size: .85rem;
  border-radius: var(--radius-sm);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
  background: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px)
}

.hamburger.active span:nth-child(2) {
  opacity: 0
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px)
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 1050;
  padding: 100px 32px 40px;
  box-shadow: -4px 0 30px rgba(0, 0, 0, .15);
  transition: right .4s ease;
}

.mobile-nav.open {
  right: 0
}

.mobile-nav a {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--light-gray);
  color: var(--text-dark);
}

.mobile-nav a:hover {
  color: var(--accent)
}

.mobile-nav .btn-primary {
  display: inline-flex;
  margin-top: 20px;
  width: 100%;
  justify-content: center
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-overlay.show {
  opacity: 1;
  pointer-events: auto
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 560px;
  width: 100%;
  background: url('../images/EPS ELECTRIC banner.jpg') center right/cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(14, 42, 67, 0.92) 0%, rgba(14, 42, 67, 0.78) 38%, rgba(14, 42, 67, 0.35) 65%, rgba(14, 42, 67, 0.05) 85%, transparent 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 60px;
  padding-bottom: 60px;
  gap: 40px;
}

.hero-content {
  flex: 1;
  max-width: 560px
}

.hero-tagline {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-tagline::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--accent)
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, .8);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-badges {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .9);
  font-size: .82rem;
  font-weight: 500;
}

.hero-badge svg {
  width: 18px;
  height: 18px;
  fill: var(--accent)
}

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

.hero-image {
  flex: 0 0 380px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.hero-image img {
  max-height: 380px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}

.hero-logo-float {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background: var(--primary);
  padding: 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.hero-logo-float img {
  height: 50px
}

/* ---------- About Section ---------- */
.about {
  background: var(--off-white)
}

.about .container {
  display: flex;
  align-items: center;
  gap: 48px;
}

.about-image {
  flex: 0 0 42%;
  position: relative
}

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

.about-image::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-text {
  flex: 1
}

.about-text .section-label {
  margin-bottom: 4px
}

.about-text h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  text-transform: uppercase
}

.about-text h2 span {
  color: var(--accent)
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.8
}

.about-certs {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  min-width: 110px;
}

.cert-badge .cert-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-badge .cert-icon img {
  max-height: 40px;
  max-width: 80px
}

.cert-badge .cert-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--primary)
}

.cert-badge strong {
  font-size: .72rem;
  color: var(--primary);
  line-height: 1.3
}

.cert-badge small {
  font-size: .65rem;
  color: var(--medium-gray)
}

/* ---------- Services Section ---------- */
.services {
  background: var(--white)
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid #e5e9ef;
  border-radius: var(--radius-md);
  padding: 28px 18px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

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

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

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

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark))
}

.service-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--white)
}

.service-card h3 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase
}

.service-card p {
  font-size: .78rem;
  color: var(--text-body);
  line-height: 1.6
}

/* ---------- Why Choose Us ---------- */
.why-us {
  background: var(--off-white)
}

.why-us-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.why-card {
  flex: 1;
  padding: 32px 20px;
  text-align: center;
  border-right: 1px solid var(--light-gray);
  transition: all var(--transition);
}

.why-card:last-child {
  border-right: none
}

.why-card:hover {
  background: var(--primary);
  color: var(--white)
}

.why-card:hover h4,
.why-card:hover p {
  color: var(--white)
}

.why-card:hover .why-icon {
  background: var(--accent)
}

.why-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.why-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--primary);
  transition: fill var(--transition)
}

.why-card:hover .why-icon svg {
  fill: var(--white)
}

.why-card h4 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px
}

.why-card p {
  font-size: .75rem;
  color: var(--text-body);
  line-height: 1.5
}

.why-card.highlight {
  background: var(--accent);
  color: var(--white);
  position: relative;
}

.why-card.highlight h4,
.why-card.highlight p {
  color: var(--white)
}

.why-card.highlight .big-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.why-card.highlight .big-number span {
  font-size: 2rem
}

/* ---------- Service Areas ---------- */
.service-areas {
  background: var(--white)
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.area-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 200px;
  cursor: pointer;
}

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

.area-card:hover img {
  transform: scale(1.1)
}

.area-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 42, 67, .85), rgba(31, 78, 121, .4));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: background var(--transition);
}

.area-card:hover .area-overlay {
  background: linear-gradient(to top, rgba(249, 115, 22, .85), rgba(249, 115, 22, .5))
}

.area-overlay svg {
  width: 28px;
  height: 28px;
  fill: var(--accent);
  margin-bottom: 8px;
  transition: fill var(--transition)
}

.area-card:hover .area-overlay svg {
  fill: var(--white)
}

.area-overlay h3 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
}

/* ---------- Gallery ---------- */
.gallery {
  background: var(--off-white)
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery-item:hover img {
  transform: scale(1.12)
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31, 78, 121, .6), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover::after {
  opacity: 1
}

.gallery-item .zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 2;
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.gallery-item:hover .zoom-icon {
  transform: translate(-50%, -50%) scale(1)
}

.zoom-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--white)
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 60px rgba(0, 0, 0, .4)
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: var(--accent-dark)
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
  fill: var(--white)
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--accent);
  padding: 28px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, .06);
  border-radius: 50%;
}

.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner-left {
  display: flex;
  align-items: center;
  gap: 16px
}

.cta-banner-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, .2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-banner-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white)
}

.cta-banner h3 {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase
}

.cta-banner p {
  color: rgba(255, 255, 255, .9);
  font-size: .88rem
}

.cta-banner-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--white)
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  position: relative;
  border: 1px solid #e8ecf1;
  transition: all var(--transition);
}

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

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: var(--accent)
}

.testimonial-card blockquote {
  font-size: .9rem;
  color: var(--text-body);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 18px;
  position: relative;
}

.testimonial-card blockquote::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--accent);
  position: absolute;
  top: -16px;
  left: -4px;
  opacity: .3;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

.testimonial-info strong {
  font-size: .85rem;
  color: var(--text-dark);
  display: block
}

.testimonial-info span {
  font-size: .75rem;
  color: var(--medium-gray)
}

/* ---------- Contact Section ---------- */
.contact {
  background: var(--off-white)
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 24px
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-item-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--white)
}

.contact-item strong {
  font-size: .9rem;
  color: var(--text-dark);
  display: block;
  margin-bottom: 2px
}

.contact-item span,
.contact-item a {
  font-size: .85rem;
  color: var(--text-body)
}

.contact-item a:hover {
  color: var(--accent)
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 24px
}

.contact-form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

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

.form-group.full {
  grid-column: 1/-1
}

.form-group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-dark)
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  background: var(--off-white);
  font-size: .88rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .12);
}

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

.contact-form .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 14px
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  height: 260px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0
}

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-darker);
  color: rgba(255, 255, 255, .7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand p {
  font-size: .85rem;
  line-height: 1.75;
  margin-top: 14px;
  max-width: 300px
}

.footer-brand .logo img,
.footer-brand .brand-logo {
  height: 58px;
  width: auto;
  filter: none;
}

.footer h4 {
  color: var(--white);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .5px;
  position: relative;
  padding-bottom: 10px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer ul li {
  margin-bottom: 8px
}

.footer ul a {
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast)
}

.footer ul a:hover {
  color: var(--accent);
  padding-left: 4px
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-3px)
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: var(--white)
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
}

.footer-bottom a {
  color: var(--accent)
}

.footer-bottom a:hover {
  text-decoration: underline
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
  z-index: 999;
  transition: all var(--transition);
  animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, .5)
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: var(--white)
}

@keyframes pulse-wa {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, .4)
  }

  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, .6)
  }
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-3px)
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: var(--white)
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0)
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0)
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0)
}

/* ---------- Responsive ---------- */
@media(max-width:1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .why-us-grid {
    flex-wrap: wrap
  }

  .why-card {
    flex: 0 0 calc(50% - 0px);
    border-bottom: 1px solid var(--light-gray)
  }
}

@media(max-width:992px) {
  .hero h1 {
    font-size: 2.3rem
  }

  .hero-image {
    display: none
  }

  .about .container {
    flex-direction: column
  }

  .about-image {
    flex: auto;
    width: 100%
  }

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

  .contact-wrapper {
    grid-template-columns: 1fr
  }

  .nav-links,
  .nav .btn-primary {
    display: none
  }

  .hamburger {
    display: flex
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr))
  }
}

@media(max-width:768px) {
  :root {
    --header-h: 64px
  }

  .section-pad {
    padding: 50px 0
  }

  .section-title {
    font-size: 1.5rem
  }

  .hero {
    min-height: 480px;
    background-position: 70% center;
  }

  .hero-overlay {
    background: linear-gradient(to bottom, rgba(14, 42, 67, 0.90) 0%, rgba(14, 42, 67, 0.80) 100%);
  }

  .hero h1 {
    font-size: 1.8rem
  }

  .hero-badges {
    gap: 14px
  }

  .hero-btns {
    flex-direction: column;
    gap: 10px
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center
  }

  .topbar-left span:nth-child(n+3) {
    display: none
  }

  .why-us-grid {
    flex-direction: column
  }

  .why-card {
    flex: auto;
    border-right: none
  }

  .areas-grid {
    grid-template-columns: 1fr 1fr
  }

  .testimonials-grid {
    grid-template-columns: 1fr
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr))
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center
  }

  .form-grid {
    grid-template-columns: 1fr
  }

  .cta-banner .container {
    flex-direction: column;
    text-align: center
  }

  .cta-banner-left {
    flex-direction: column
  }

  .cta-banner-btns {
    width: 100%;
    justify-content: center
  }
}

@media(max-width:480px) {
  .container {
    padding: 0 16px
  }

  .hero h1 {
    font-size: 1.5rem
  }

  .about-certs {
    gap: 12px
  }

  .cert-badge {
    min-width: 90px;
    padding: 10px 12px
  }

  .areas-grid {
    grid-template-columns: 1fr
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px
  }

  .footer-grid {
    grid-template-columns: 1fr
  }

  .topbar {
    display: none
  }
}

/* ---------- 4K Optimization ---------- */
@media(min-width:2560px) {
  :root {
    --max-width: 1800px
  }

  html {
    font-size: 20px
  }

  .hero {
    min-height: 700px
  }

  .hero h1 {
    font-size: 4rem
  }

  .services-grid {
    grid-template-columns: repeat(7, 1fr)
  }
}