/* ===== Aspire Engineers — stylesheet ===== */

:root {
  --navy: #0b2a4a;
  --navy-dark: #071c33;
  --blue: #1f6fb2;
  --accent: #f5a623;
  --accent-dark: #d98c0f;
  --ink: #1b2430;
  --muted: #5b6b7c;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --border: #e2e8ef;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 42, 74, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 42, 74, 0.16);
  --container: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: "Poppins", "Inter", sans-serif; line-height: 1.25; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; color: var(--muted); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%); color: #cfe0f0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #b9cade; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.section-dark .eyebrow { color: var(--accent); }

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--navy-dark); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(245, 166, 35, .35); }
.btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-ghost { border-color: var(--border); color: var(--navy); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.site-header.scrolled {
  background: rgba(11, 42, 74, .96);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0,0,0,.15);
  padding: 12px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; flex: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(245,166,35,.35);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { line-height: 1.25; }
.brand-text .name { display: block; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.15rem; color: #fff; letter-spacing: .02em; white-space: nowrap; }
.brand-text .tag { display: block; font-size: .68rem; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: #dbe7f3; font-weight: 500; font-size: .93rem;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  height: 2px; width: 0; background: var(--accent);
  transition: width .2s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: .9rem; }
.nav-phone svg { width: 18px; height: 18px; color: var(--accent); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.05);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(7,28,51,.94) 0%, rgba(11,42,74,.88) 45%, rgba(31,111,178,.72) 100%),
    url("../images/switchgear-panels.jpg") center/cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .3;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  padding: 8px 16px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; letter-spacing: .03em;
  margin-bottom: 22px;
}
.hero-badge svg { width: 16px; height: 16px; color: var(--accent); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  margin-bottom: 20px;
  letter-spacing: -.01em;
}
.hero h1 span { color: var(--accent); }
.hero-lede { font-size: 1.08rem; color: #cfe0f0; max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats .stat-num { font-family: "Poppins", sans-serif; font-size: 1.9rem; font-weight: 700; color: #fff; }
.hero-stats .stat-label { font-size: .78rem; color: #a9c0d6; text-transform: uppercase; letter-spacing: .06em; }

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 10px;
  backdrop-filter: blur(6px);
}
.hero-card img { border-radius: 10px; width: 100%; height: 420px; object-fit: cover; }
.hero-card .cap {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 6px 6px;
  font-size: .82rem; color: #cfe0f0;
}
.hero-card .cap svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ---------- Marquee / certifications strip ---------- */
.strip {
  background: var(--navy-dark);
  padding: 22px 0;
}
.strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: center;
}
.strip-item {
  display: flex; align-items: center; gap: 10px;
  color: #dbe7f3; font-size: .86rem; font-weight: 600; letter-spacing: .02em;
}
.strip-item svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: 460px; object-fit: cover; }
.about-media .float-card {
  position: absolute;
  bottom: -28px; left: -28px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 14px;
  max-width: 260px;
}
.about-media .float-card .icon-badge {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center; flex: none;
}
.about-media .float-card .icon-badge svg { width: 24px; height: 24px; color: #fff; }
.about-media .float-card strong { display: block; font-family: "Poppins", sans-serif; color: var(--navy); font-size: 1rem; }
.about-media .float-card span { font-size: .82rem; color: var(--muted); }

.about-copy .lead { font-size: 1.06rem; color: var(--ink); }
.check-list { display: grid; gap: 14px; margin: 28px 0 32px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; font-size: .95rem; }
.check-list svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 2px; }

/* ---------- Services ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-icon {
  width: 54px; height: 54px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; color: #fff; }
.service-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.service-card p { font-size: .92rem; margin-bottom: 0; }

/* Specialized / supply lists */
.split-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.panel {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 34px 32px;
}
.panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.panel-head .icon-badge {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.panel-head .icon-badge svg { width: 24px; height: 24px; color: var(--blue); }
.panel-head h3 { margin: 0; font-size: 1.15rem; }
.tick-list { display: grid; gap: 14px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--ink); }
.tick-list svg { width: 18px; height: 18px; color: var(--accent-dark); flex: none; margin-top: 3px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery-grid a { grid-column: span 1; grid-row: span 1; position: relative; }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid figure {
  margin: 0; height: 100%; border-radius: var(--radius); overflow: hidden; position: relative;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-grid figure:hover img { transform: scale(1.08); }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(7,28,51,.9), transparent);
  color: #fff; font-size: .84rem; font-weight: 600;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.gallery-grid figure:hover figcaption { opacity: 1; transform: translateY(0); }

/* ---------- Clients ---------- */
.client-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.client-group {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.client-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.client-group-head .icon-badge {
  width: 44px; height: 44px; border-radius: 10px; flex: none;
  background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.client-group-head .icon-badge svg { width: 22px; height: 22px; color: var(--blue); }
.client-group-head h3 { margin: 0; font-size: 1rem; }
.client-list { display: grid; gap: 10px; }
.client-list li {
  font-size: .88rem; font-weight: 600; color: var(--ink);
  padding-left: 16px; position: relative;
}
.client-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ---------- Team / stats ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.team-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}
.team-card .avatar {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: "Poppins", sans-serif; font-weight: 700; color: #071c33;
  flex: none; font-size: 1.1rem;
  overflow: hidden;
}
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.team-card strong { display: block; color: #fff; font-family: "Poppins", sans-serif; font-size: 1.02rem; }
.team-card span { font-size: .85rem; color: #a9c0d6; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.stat-box {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.stat-box .num { font-family: "Poppins", sans-serif; font-size: 2.1rem; font-weight: 700; color: var(--accent); }
.stat-box .label { font-size: .82rem; color: #b9cade; margin-top: 6px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 48px;
}
.contact-info-list { display: grid; gap: 20px; margin-top: 28px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item .icon-badge {
  width: 46px; height: 46px; border-radius: 10px; flex: none;
  background: var(--bg-soft); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-item .icon-badge svg { width: 22px; height: 22px; color: var(--blue); }
.contact-info-item strong { display: block; font-size: .92rem; color: var(--navy); margin-bottom: 2px; }
.contact-info-item span, .contact-info-item a { font-size: .92rem; color: var(--muted); }
.contact-info-item a:hover { color: var(--blue); }

.contact-cta {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
.contact-cta-card {
  display: flex; align-items: center; gap: 18px;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 16px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.contact-cta-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-cta-card .icon-badge { background: var(--bg-soft); }
.contact-cta-card strong { display: block; color: var(--navy); font-size: 1rem; }
.contact-cta-card span span { font-size: .9rem; color: var(--muted); }
.contact-cta-card .cta-arrow { margin-left: auto; color: var(--blue); flex: none; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue), var(--navy-dark));
  border-radius: 20px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; font-size: 1.6rem; }
.cta-band p { color: #d7e6f3; margin: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #a9c0d6; padding: 72px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p { color: #93a9bf; font-size: .9rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: .92rem; margin-bottom: 18px; letter-spacing: .03em; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: .88rem; color: #a9c0d6; }
.footer-col a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--navy-dark); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; font-size: .82rem; color: #7c93a9; flex-wrap: wrap; gap: 10px;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  border: none; cursor: pointer;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .4s ease, transform .4s ease; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .about-grid, .team-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { margin-bottom: 56px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .split-panels { grid-template-columns: 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .client-groups { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav-links, .nav-cta .nav-phone, .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .brand-text .name { font-size: 1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .client-groups { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-stats { gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .mobile-nav {
    position: fixed; inset: 0; z-index: 99;
    background: var(--navy-dark);
    display: flex; flex-direction: column;
    padding: 100px 32px 40px;
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .mobile-nav.open { transform: translateX(0); }
  .mobile-nav a { color: #fff; font-size: 1.2rem; font-weight: 600; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .mobile-nav .btn { margin-top: 24px; }
}

@media (min-width: 721px) {
  .mobile-nav { display: none; }
}
