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

:root {
  --navy:       #0D2B5E;
  --blue:       #1565C0;
  --blue-mid:   #1E88E5;
  --blue-light: #29ABE2;
  --gold:       #F5A623;
  --gold-dark:  #D4880A;
  --white:      #FFFFFF;
  --off-white:  #F4F7FB;
  --gray:       #E0E7EF;
  --text-dark:  #0D1F35;
  --text-body:  #2C3E50;
  --text-muted: #6B7C93;
  --shadow-sm:  0 2px 8px rgba(13,43,94,.10);
  --shadow-md:  0 6px 24px rgba(13,43,94,.14);
  --shadow-lg:  0 16px 48px rgba(13,43,94,.18);
  --radius:     10px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

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

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Typography ───────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Barlow', sans-serif;
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 700;
}

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

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

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* ─── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }

.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn-blue:hover { background: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }

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

/* ─── Layout ───────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ─── Navbar ───────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

#navbar.scrolled {
  background: var(--navy);
  box-shadow: var(--shadow-md);
  padding: .7rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo img { height: 44px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--white);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .03em;
  position: relative;
  padding-bottom: 3px;
}

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

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

.nav-cta { margin-left: .5rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .4rem;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 600;
  font-family: 'Barlow', sans-serif;
}

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

/* ─── Hero ─────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #0e3d7a 50%, #1565C0 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 0 4rem;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(41,171,226,.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(245,166,35,.07) 0%, transparent 60%);
}

/* Geometric grid lines */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(245,166,35,.15);
  border: 1px solid rgba(245,166,35,.3);
  color: var(--gold);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-badge i { font-size: .7rem; }

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  color: var(--white);
  margin-bottom: 1.25rem;
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  line-height: 1.1;
}

.hero-title .accent { color: var(--gold); }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 2rem;
  max-width: 560px;
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}

.hero-tag {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  padding: .3rem .9rem;
  border-radius: 50px;
  font-size: .82rem;
  border: 1px solid rgba(255,255,255,.15);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 1.75rem;
  flex-wrap: nowrap;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
}

.hero-stat-num {
  font-family: 'Barlow', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.hero-stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  margin-top: .2rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Floating card */
.hero-card {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 1;
}

.hero-card-item {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.hero-card-icon {
  width: 42px; height: 42px;
  background: rgba(245,166,35,.15);
  border: 1px solid rgba(245,166,35,.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero-card-text { font-size: .85rem; color: rgba(255,255,255,.8); font-weight: 500; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.4);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.scroll-indicator i { font-size: 1rem; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─── About ────────────────────────────────────────────────────────── */
#about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text-body);
  margin-bottom: 1.1rem;
  font-size: 1rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.pillar {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.2rem;
  border-left: 3px solid var(--blue);
}

.pillar i { color: var(--blue); font-size: 1.2rem; margin-bottom: .4rem; }
.pillar h4 { font-size: .9rem; color: var(--navy); margin-bottom: .2rem; }
.pillar p  { font-size: .82rem; color: var(--text-muted); }

.about-visual {
  position: relative;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.stat-card.accent { background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.stat-card.gold   { background: linear-gradient(135deg, #c47a0a, var(--gold)); }

.stat-card-num {
  font-family: 'Barlow', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .3rem;
}

.stat-card.accent .stat-card-num,
.stat-card.gold   .stat-card-num { color: var(--white); }

.stat-card-label {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1rem;
  background: var(--gold);
  color: var(--navy);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .85rem;
  box-shadow: var(--shadow-md);
}

/* ─── Services ─────────────────────────────────────────────────────── */
#services {
  background: var(--off-white);
}

.services-header {
  margin-bottom: 3.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* 5th card centered */
.services-grid > *:nth-child(4) { grid-column: 1; }
.services-grid > *:nth-child(5) { grid-column: 2; }

.service-card {
  background: var(--white);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: .25rem;
}

.service-title {
  font-size: 1.1rem;
  color: var(--navy);
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
}

.service-desc {
  font-size: .9rem;
  color: var(--text-muted);
  flex: 1;
}

.service-sub-list {
  margin-top: .5rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.service-sub-list li {
  font-size: .82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.service-sub-list li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.service-cta {
  margin-top: .5rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--blue);
  font-size: .88rem;
  font-weight: 600;
  transition: gap var(--transition), color var(--transition);
}

.service-cta:hover { gap: .8rem; color: var(--navy); }

/* ─── Industries ───────────────────────────────────────────────────── */
#industries {
  background: var(--white);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.industry-card {
  background: var(--off-white);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  border: 1px solid var(--gray);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.industry-card:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.industry-card:hover .industry-title { color: var(--white); }
.industry-card:hover .industry-icon  { background: rgba(255,255,255,.15); color: var(--gold); }

.industry-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.industry-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  font-family: 'Barlow', sans-serif;
  transition: color var(--transition);
}

/* ─── Projects / Track Record ──────────────────────────────────────── */
#track-record {
  background: linear-gradient(135deg, var(--navy), #0e3d7a);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

#track-record::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.track-inner {
  position: relative;
  z-index: 1;
}

.track-inner .section-title { color: var(--white); }

.track-record-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.track-stat {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  transition: background var(--transition), transform var(--transition);
}

.track-stat:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }

.track-num {
  font-family: 'Barlow', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .4rem;
}

.track-label { font-size: .85rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .07em; }

/* ─── Client Logo Slider ────────────────────────────────────────────── */
.clients-slider-section {
  margin-top: 3.5rem;
}

.clients-slider-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.45);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* White strip that sits inside the dark section */
.clients-slider {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  padding: 1.5rem 0;
  /* Fade edges so logos dissolve into the strip */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

/* The moving track — double-wide so we can loop seamlessly */
@keyframes logos-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.clients-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logos-scroll 32s linear infinite;
}

/* Pause on hover / reduced-motion respect */
.clients-slider:hover .clients-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
  .clients-slider { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
}

.client-logo-item {
  flex-shrink: 0;
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
}

.client-logo-item img {
  max-height: 56px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Greyscale by default — full colour on slider hover */
  filter: grayscale(100%) opacity(.65);
  transition: filter .35s ease;
}

.clients-slider:hover .client-logo-item img { filter: grayscale(0%) opacity(1); }

/* ─── Solar Projects Table ─────────────────────────────────────────── */
#solar-projects {
  background: var(--off-white);
}

.projects-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-top: 3rem;
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: .9rem;
}

.projects-table th {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: 'Barlow', sans-serif;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.projects-table th:first-child { border-radius: var(--radius) 0 0 0; }
.projects-table th:last-child  { border-radius: 0 var(--radius) 0 0; }

.projects-table td {
  padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--gray);
  color: var(--text-body);
}

.projects-table tr:last-child td { border-bottom: none; }
.projects-table tr:hover td { background: var(--off-white); }

.type-badge {
  display: inline-block;
  padding: .25rem .7rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.type-badge.on-grid   { background: #e3f2fd; color: #1565C0; }
.type-badge.off-grid  { background: #fff3e0; color: #e65100; }
.type-badge.hybrid    { background: #e8f5e9; color: #2e7d32; }
.type-badge.maint     { background: #f3e5f5; color: #6a1b9a; }
.type-badge.ke        { background: #e3f2fd; color: #1565C0; }
.type-badge.novo      { background: #e8f5e9; color: #2e7d32; }
.type-badge.saf       { background: #ffebee; color: #c62828; }
.type-badge.res       { background: #f3f4f6; color: #4b5563; }
.type-badge.diners    { background: #fdf0e6; color: #7c3f0e; border: 1px solid #e8c8a8; }

/* ─── Table Pagination ───────────────────────────────────────────── */
.projects-table tbody tr.row-hidden { display: none; }

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.page-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gray);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), opacity var(--transition);
}
.page-btn:hover:not(:disabled) {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.page-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.page-info {
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  min-width: 80px;
  text-align: center;
}

/* ─── Contact ──────────────────────────────────────────────────────── */
#contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: .95rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .15rem;
}

.contact-item-value {
  font-size: .95rem;
  color: var(--text-dark);
  font-weight: 500;
}

.contact-item-value a:hover { color: var(--blue); }

.contact-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* Form */
.contact-form {
  background: var(--off-white);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--gray);
  min-width: 0; /* prevent grid blowout */
  overflow: hidden;
}

.form-title {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: .83rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: .4rem;
  letter-spacing: .03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,101,192,.1);
}

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

.form-submit {
  width: 100%;
  padding: .9rem;
  font-size: 1rem;
  justify-content: center;
}

#form-status {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  display: none;
}

#form-status.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; display: block; }
#form-status.error   { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; display: block; }

/* ─── Download button ───────────────────────────────────────────────── */
.btn-download {
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.4);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-download i { color: #ff6b6b; }
.btn-download:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.7);
  color: #fff;
}

/* ─── WhatsApp CTA inline button ───────────────────────────────────── */
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: 2px solid #25D366;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,.35);
}

/* ─── WhatsApp floating button ──────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: .55rem;
  background: #fff;
  color: #075e54;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  padding: .45rem 1.1rem .45rem .45rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  border: 1.5px solid rgba(37,211,102,.35);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
  max-width: 210px;
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,.4);
}
.whatsapp-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  display: block;
}
.whatsapp-label {
  white-space: nowrap;
  transition: max-width .3s ease, opacity .3s ease;
  max-width: 120px;
  opacity: 1;
}

/* Collapse to icon-only on smallest screens */
@media (max-width: 400px) {
  .whatsapp-float { padding: .3rem; border-radius: 50%; }
  .whatsapp-label { max-width: 0; opacity: 0; overflow: hidden; }
}

/* Pulse animation to draw attention */
@keyframes wa-pulse {
  0%   { box-shadow: 0 4px 20px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 4px 20px rgba(37,211,102,.45), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 20px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}
.whatsapp-float { animation: wa-pulse 2.5s ease-in-out 3; }

/* ─── FAQ Section ───────────────────────────────────────────────────── */
#faq { background: var(--off-white); }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.faq-category {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.faq-category-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue);
  margin-bottom: .25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.faq-category-title i { font-size: 1.05rem; }

.faq-item {
  background: #fff;
  border: 1.5px solid var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item:hover { border-color: var(--blue-light); }
.faq-item.open  { border-color: var(--blue); box-shadow: 0 4px 18px rgba(21,101,192,.1); }

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  line-height: 1.4;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--blue); }
.faq-item.open .faq-question { color: var(--blue); }

.faq-icon {
  flex-shrink: 0;
  font-size: .75rem;
  color: var(--blue);
  transition: transform .3s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  padding: 0 1.25rem;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.25rem 1.25rem;
}
.faq-answer p {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-answer a { color: var(--blue); text-decoration: underline; }

.faq-cta {
  margin-top: 3.5rem;
  padding: 2.5rem;
  background: #fff;
  border: 1.5px solid var(--gray);
  border-radius: var(--radius-lg);
}
.faq-cta p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
}

@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ─── Featured service card ─────────────────────────────────────────── */
.service-card--featured {
  border: 2px solid var(--blue);
  background: linear-gradient(160deg, #f0f6ff 0%, #ffffff 60%);
  position: relative;
}
.service-card--featured::before {
  background: var(--blue) !important;
  transform: scaleX(1) !important;
}
.service-featured-tag {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 50px;
  margin-bottom: .6rem;
}

/* ─── Footer social icons ───────────────────────────────────────────── */
.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.footer-social a[aria-label*="WhatsApp"]:hover { background: #25D366; border-color: #25D366; }
.footer-social a[aria-label*="LinkedIn"]:hover  { background: #0A66C2; border-color: #0A66C2; }
.footer-social a[aria-label*="Instagram"]:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: #d6249f;
  color: #fff;
}

/* ─── Footer ───────────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo img { height: 40px; margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.55); }

.footer-col h4 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }

.footer-col ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .83rem;
  color: rgba(255,255,255,.4);
}

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

/* ─── Reveal Animations ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

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

/* ─── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-card { display: none; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Pull badge into normal flow on tablet/mobile so it can't overflow */
  .about-badge {
    position: static;
    display: inline-flex;
    margin-top: 1.5rem;
    right: auto;
    bottom: auto;
  }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-grid > *:nth-child(4),
  .services-grid > *:nth-child(5) { grid-column: auto; }

  .track-record-grid { grid-template-columns: repeat(2, 1fr); }

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

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }

  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .services-grid { grid-template-columns: 1fr; }

  .industries-grid { grid-template-columns: 1fr 1fr; }

  .track-record-grid { grid-template-columns: repeat(2, 1fr); }

  .about-pillars { grid-template-columns: 1fr; }

  .about-stats-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

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

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

  .contact-form { padding: 1.75rem; }
  .contact-info,
  .contact-form { min-width: 0; max-width: 100%; }

  .hero-stats { gap: 1.25rem 2rem; flex-wrap: wrap; }
  .hero-stats > div { flex: 1 1 calc(50% - 1rem); min-width: 0; }
}

@media (max-width: 480px) {
  .industries-grid { grid-template-columns: 1fr; }
  .track-record-grid { grid-template-columns: 1fr 1fr; }
  .about-stats-grid { grid-template-columns: 1fr 1fr; }

  .contact-form { padding: 1.25rem; }

  /* Prevent any element from breaking the viewport width */
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .hero-stats { gap: 1rem; }
  .hero-stat-num { font-size: 1.65rem; }
  .hero-stat-label { font-size: .72rem; }

  .clients-slider-section { margin-left: -.5rem; margin-right: -.5rem; }
}
