/* ==========================================================================
   NGA Electrical Services — Commercial
   ========================================================================== */

:root {
  --navy: #002147;
  --navy-800: #001a38;
  --navy-600: #0a3868;
  --blue: #004aba;
  --yellow: #ffd416;
  --yellow-dark: #e6bd00;
  --ink: #1a1a1a;
  --grey-700: #454545;
  --grey-500: #757575;
  --grey-300: #cfd4da;
  --grey-200: #e5e8ec;
  --grey-100: #f2f4f6;
  --white: #ffffff;

  --font-head: 'Raleway', Helvetica, Arial, sans-serif;
  --font-body: 'Rajdhani', Helvetica, Arial, sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 12px 30px rgba(0, 33, 71, 0.12);
  --shadow-sm: 0 4px 14px rgba(0, 33, 71, 0.08);

  --header-h: 116px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, ol, figure, form { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--grey-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
}

h1 { font-size: clamp(2.25rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

p { max-width: 62ch; }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 88px 0; }
.section--navy { background: var(--navy); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__lead { color: var(--grey-500); font-size: 1.15rem; margin-top: 12px; }
.section__lead--light { color: rgba(255,255,255,0.78); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.eyebrow--light { color: var(--yellow); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--yellow);
  color: var(--ink);
  padding: 12px 20px;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.service-card__icon svg,
.why__icon svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: var(--yellow-dark); }

.btn--outline-light { border-color: rgba(255,255,255,0.65); color: var(--white); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

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

.btn--lg { padding: 17px 34px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 12px; margin: 28px 0 34px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
  color: var(--navy);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 5px; top: 6px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}
.checklist--light li { color: var(--white); }
.checklist--light li::before { background: var(--yellow); }
.checklist--light li::after { border-color: var(--ink); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 500; }

/* Clears the sticky header when jumping to an in-page anchor
   (nav links, or the #quote redirect after a failed submission). */
#services, #why-us, #projects, #faq, #quote { scroll-margin-top: 132px; }

.topbar { background: var(--navy-800); color: rgba(255,255,255,0.85); font-size: 0.85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding-block: 8px; }
.topbar__rating { font-weight: 600; color: var(--white); }
.topbar__muted { color: rgba(255,255,255,0.6); font-weight: 500; }
.topbar__links { display: flex; align-items: center; gap: 22px; }
.topbar__links a:hover { color: var(--yellow); }
.topbar__main-link a { color: var(--yellow); font-weight: 700; }

.navbar { background: var(--navy); box-shadow: var(--shadow-sm); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }

.navbar__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.navbar__logo img { height: 42px; width: auto; }
.navbar__logo-tag {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  padding: 3px 9px;
  border-radius: 3px;
}

.navbar__nav ul { display: flex; align-items: center; gap: 30px; }
.navbar__nav a {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
}
.navbar__nav a:hover { color: var(--yellow); }
.navbar__nav-main a { color: var(--yellow); }

.navbar__actions { display: flex; align-items: center; gap: 18px; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  padding: 0;
}
.navbar__toggle-bar { width: 100%; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(3) { opacity: 0; }
.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; color: var(--white); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(18,42,100,0.95) 8%, rgba(47,97,181,0.87) 42%, rgba(47,97,181,0.58) 78%);
}

/* No max-width override here on purpose: .hero__content shares the .wrap
   class (1280px/24px padding) so its left edge lines up exactly with the
   navbar__inner logo above it. The 760px reading-width cap lives on the
   heading itself instead, so the text column stays narrow without pulling
   the whole block out of alignment with the header. */
.hero__content { position: relative; z-index: 1; padding-top: 108px; padding-bottom: 156px; }
.hero h1 { color: var(--white); margin-bottom: 20px; max-width: 760px; }
.hero__lead { font-size: 1.15rem; color: rgba(255,255,255,0.88); max-width: 58ch; }

.hero__wave {
  position: absolute; bottom: -1px; left: 0; width: 100%; height: 84px;
  fill: var(--white);
}

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust { padding: 46px 0; border-bottom: 1px solid var(--grey-200); }
.trust__heading {
  text-align: center;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 30px;
}
.trust__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 42px; }
.trust__logos img { height: 46px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(15%); opacity: 0.92; }

/* ==========================================================================
   Service cards
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: linear-gradient(135deg, #2f61b5 0%, var(--navy) 100%);
  border-radius: 16px;
  padding: 34px 28px;
  box-shadow: 0 10px 24px rgba(0, 33, 71, 0.18);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: 0 16px 32px rgba(0, 33, 71, 0.32); transform: translateY(-4px); }

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  margin-bottom: 24px;
}
.service-card__icon svg { width: 42px; height: 42px; }

.service-card h3 { color: var(--white); text-transform: uppercase; font-size: 1.15rem; line-height: 1.3; margin-bottom: 12px; }
.service-card p { color: rgba(255, 255, 255, 0.78); font-size: 1rem; }

/* ==========================================================================
   Why choose us
   ========================================================================== */
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.why__item { text-align: left; }
.why__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255, 212, 22, 0.14);
  color: var(--yellow);
  margin-bottom: 18px;
}
.why__icon svg { width: 28px; height: 28px; }
.why__item h3 { color: var(--white); margin-bottom: 10px; }
.why__item p { color: rgba(255,255,255,0.75); font-size: 1rem; }

/* ==========================================================================
   Projects / portfolio
   ========================================================================== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.project-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-card figcaption { padding: 22px 24px 26px; }

.project-card__tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(0, 74, 186, 0.09);
  padding: 5px 11px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.project-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.project-card p { color: var(--grey-500); font-size: 0.98rem; }

.projects__more { margin-top: 44px; text-align: center; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.projects__more a { color: var(--blue); }
.projects__more a:hover { text-decoration: underline; }

/* ==========================================================================
   Sectors
   ========================================================================== */
.sectors { padding: 70px 0; background: var(--grey-100); }
.sectors .section__head { margin-bottom: 30px; }
.sectors__list { display: flex; flex-wrap: wrap; gap: 14px; }
.sectors__list li {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--grey-200);
  padding: 12px 20px;
  border-radius: 100px;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: var(--yellow); padding: 56px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 6px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-band p { color: var(--ink); opacity: 0.85; font-weight: 600; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__list { display: grid; gap: 14px; max-width: 880px; }
.faq__item {
  background: var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 6px 26px;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--blue);
  border: 2px solid var(--grey-300);
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { content: "–"; transform: rotate(180deg); }
.faq__item p { padding-bottom: 22px; color: var(--grey-500); max-width: none; }

/* ==========================================================================
   Thank-you page
   ========================================================================== */
.thankyou { background: var(--navy); color: var(--white); padding: 96px 0 76px; text-align: center; }
.thankyou__inner { max-width: 720px; margin-inline: auto; }
.thankyou h1 { color: var(--white); margin: 14px 0 18px; }
.thankyou__lead { color: rgba(255, 255, 255, 0.82); font-size: 1.15rem; max-width: 56ch; margin-inline: auto; }
.thankyou__actions { justify-content: center; margin-top: 30px; }

.thankyou-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.thankyou-step { text-align: center; }
.thankyou-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.thankyou-step h3 { margin-bottom: 8px; }
.thankyou-step p { color: var(--grey-500); font-size: 0.98rem; max-width: 42ch; margin-inline: auto; }

/* ==========================================================================
   Quote form
   ========================================================================== */
.quote__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }

.quote__info p { color: rgba(255,255,255,0.78); }
.quote__contact-list { display: grid; gap: 14px; margin: 28px 0 20px; }
.quote__contact-list li { display: flex; align-items: baseline; gap: 10px; font-size: 1.05rem; }
.quote__contact-label { font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--yellow); min-width: 84px; }
.quote__contact-list a { color: var(--white); font-weight: 600; }
.quote__contact-list a:hover { color: var(--yellow); }
.quote__response { font-size: 0.95rem; color: rgba(255,255,255,0.6); }

.quote__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  box-shadow: var(--shadow);
}
.form-row { display: flex; flex-direction: column; gap: 8px; grid-column: 1 / -1; }
.form-row--half { grid-column: span 1; }

.form-row label { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--navy); }
.form-row input, .form-row textarea {
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 13px 14px;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--blue); outline: none; }
.form-row textarea { resize: vertical; min-height: 120px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status { grid-column: 1 / -1; font-weight: 700; font-size: 0.95rem; min-height: 1.2em; }
.form-status[data-state="success"] { color: #0a7d32; }
.form-status[data-state="error"] { color: #c0392b; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-800); color: rgba(255,255,255,0.7); padding-top: 70px; }

.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__col--brand img { margin-bottom: 18px; }
.footer__col--brand p { font-size: 0.95rem; margin-bottom: 16px; }
.footer__main-link { display: inline-block; color: var(--yellow); font-weight: 700; font-family: var(--font-head); font-size: 0.9rem; }
.footer__main-link:hover { text-decoration: underline; }

.footer__col h3 { color: var(--white); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 12px; }
.footer__col a { font-size: 0.95rem; }
.footer__col a:hover { color: var(--yellow); }
.footer__contact li { font-size: 0.95rem; line-height: 1.5; }

.footer__accreditations {
  display: flex; flex-wrap: wrap; align-items: center; gap: 30px;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer__accreditations img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: 0.75; }

.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}
.footer__bottom a:hover { color: var(--yellow); }

/* ==========================================================================
   WhatsApp FAB
   ========================================================================== */
.whatsapp-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 400;
  transition: transform 0.15s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 28px; height: 28px; fill: var(--white); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .quote__grid { grid-template-columns: 1fr; gap: 44px; }
  .quote__form { padding: 32px; }
}

@media (max-width: 860px) {
  .topbar__rating { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__links { gap: 14px; flex-wrap: wrap; justify-content: center; }
  .topbar__links li { white-space: nowrap; }
}

@media (max-width: 480px) {
  .topbar { font-size: 0.76rem; }
  .topbar__links { gap: 10px; }
  .topbar__links li:nth-child(2) { display: none; }
}

@media (max-width: 860px) {

  .navbar__nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--navy);
    padding: 20px 24px 32px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow-y: auto;
  }
  .navbar__nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .navbar__nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .navbar__nav li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .navbar__nav a { display: block; padding: 16px 4px; font-size: 1.05rem; }

  .navbar__actions .btn--primary { display: none; }
  .navbar__toggle { display: flex; }

  .hero__content { padding-top: 64px; padding-bottom: 116px; }
  .hero__wave { height: 60px; }
  .section { padding: 64px 0; }
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .thankyou-steps { grid-template-columns: 1fr; gap: 36px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .quote__form { grid-template-columns: 1fr; padding: 26px; }
  .form-row--half { grid-column: 1 / -1; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .btn-group { width: 100%; }
  .btn-group .btn { flex: 1 1 auto; text-align: center; }
  .trust__logos { gap: 26px; }
  .trust__logos img { height: 36px; }
  .sectors__list { flex-direction: column; }
  .sectors__list li { text-align: center; }
  .footer__bottom { flex-direction: column; }
}
