/* ============================================
   BLADE ELECTRIC & TECHNOLOGIES
   Brand Colors from original site:
   Gray 1:  #848884  (primary)
   Dark:    #201B1B  (near-black)
   Gold:    #F5C518  (lightning bolt / accent)
   White:   #FFFFFF
   Light:   #F4F6FB  (section background)
   Gray:    #6B7280
   ============================================ */
:root {
  --navy:        #848884;
  --navy-dark:   #71797E;
  --navy-deeper: #71797E;
  --navy-light:  #9BA09A;
  --dark:        #201B1B;
  --gold:        #F5C518;
  --gold-dark:   #D4A800;
  --white:       #FFFFFF;
  --off-white:   #F5F5F5;
  --light-gray:  #E5E5E5;
  --gray:        #6B7280;
  --gray-mid:    #9CA3AF;
  --text:        #1C1C1C;
  --border:      rgba(113,121,126,0.15);
  --border-light:rgba(113,121,126,0.08);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;
  --radius:       3px;
  --transition:   0.2s ease;
  --shadow:       0 4px 24px rgba(113,121,126,0.12);
  --shadow-lg:    0 12px 48px rgba(113,121,126,0.18);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--navy-deeper);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  display: block;
  margin-bottom: 0.75rem;
}

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section--white  { background: var(--white); }
.section--light  { background: var(--off-white); }
.section--navy   { background: var(--navy-deeper); }
.section--dark   { background: var(--dark); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy-deeper);
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 20px rgba(113,121,126,0.4);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo-mark {
  width: 38px;
  height: 38px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.nav__logo-mark svg { width: 20px; height: 20px; fill: var(--navy-deeper); }

.nav__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.nav__brand span { color: var(--gold); }

.nav__links {
  display: flex; align-items: center; gap: 2rem; list-style: none;
}

.nav__links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}

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

.nav__cta {
  background: var(--gold) !important;
  color: var(--navy-deeper) !important;
  padding: 0.6rem 1.4rem;
  font-weight: 700 !important;
  transition: background var(--transition) !important;
}

.nav__cta:hover { background: var(--gold-dark) !important; color: var(--navy-deeper) !important; }

.nav__mobile-btn {
  display: none; background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.nav__mobile-btn span {
  display: block; width: 24px; height: 2px;
  background: var(--white); margin: 5px 0; transition: var(--transition);
}

/* ============================================
   MOBILE NAV
   ============================================ */
.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: var(--navy-deeper);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--gold); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--navy-deeper);
  padding-top: 72px;
}

.hero__bg {
  position: absolute; inset: 0;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  /* Light gradient only at the bottom for text legibility — image stays clear */
  background: linear-gradient(to bottom, transparent 50%, rgba(20,22,24,0.6) 100%);
}

/* Subtle circuit-line pattern */
.hero__grid { display: none; }

.hero__accent-line {
  position: absolute; top: 0; left: 0;
  width: 5px; height: 100%;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.hero__content {
  position: relative; z-index: 2; max-width: 860px;
}

.hero__tag {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid rgba(245,197,24,0.4);
  background: rgba(245,197,24,0.08);
  padding: 0.4rem 1rem;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2rem;
}

.hero__tag::before {
  content: ''; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.3; }
}

.hero__headline {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800; line-height: 0.95;
  color: var(--white); margin-bottom: 1.75rem;
}

.hero__headline em { font-style: normal; color: var(--gold); }

.hero__sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.65);
  max-width: 560px; line-height: 1.75; margin-bottom: 2.5rem;
}

.hero__actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

.hero__stats {
  position: absolute; bottom: 3rem; right: 2rem;
  display: flex; gap: 3rem; z-index: 2;
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 800;
  color: var(--white); line-height: 1;
}

.hero__stat-num span { color: var(--gold); }

.hero__stat-label {
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  margin-top: 0.3rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border: none;
  transition: all var(--transition);
  text-decoration: none;
  border-radius: var(--radius);
}

.btn--primary { background: var(--gold); color: var(--navy-deeper); }
.btn--primary:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,197,24,0.3); }

.btn--navy { background: var(--navy); color: white; }
.btn--navy:hover { background: var(--navy-dark); transform: translateY(-1px); }

.btn--outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.35); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

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

.btn svg { width: 16px; height: 16px; }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header { margin-bottom: 3.5rem; }
.section-header--center { text-align: center; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.section-title em { font-style: normal; color: var(--navy); }
.section-title--light { color: var(--white); }
.section-title--light em { color: var(--gold); }
.section-sub { font-size: 1.05rem; color: var(--gray); max-width: 560px; line-height: 1.7; }
.section-header--center .section-sub { margin: 0 auto; }

/* ============================================
   GOLD DIVIDER
   ============================================ */
.gold-divider {
  width: 48px; height: 4px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}
.section-header--center .gold-divider { margin: 0 auto 1.5rem; }

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar { background: var(--navy); padding: 3rem 0; }
.stats-bar .container {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; text-align: center;
  border-left: 3px solid var(--gold);
  padding-left: 2rem;
}

.stat-item__num {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 800;
  color: var(--gold); line-height: 1;
}

.stat-item__label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-top: 0.4rem;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
  position: relative; overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  border-radius: var(--radius);
}

.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--gold);
  transition: width 0.35s ease;
}

.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-card:hover::after { width: 100%; }

.service-card__icon {
  width: 52px; height: 52px;
  background: rgba(113,121,126,0.10);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; border-radius: var(--radius);
}

.service-card__icon svg { width: 24px; height: 24px; stroke: var(--navy); fill: none; stroke-width: 1.5; }

.service-card__title { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--navy-deeper); }
.service-card__desc { font-size: 0.9rem; color: var(--gray); line-height: 1.65; }

/* ============================================
   PROJECT GRID
   ============================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--light-gray);
}

.project-card {
  position: relative; aspect-ratio: 4/3;
  overflow: hidden; cursor: pointer;
  background: var(--navy-deeper);
}

.project-card--wide { grid-column: span 2; }

.project-card__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card__placeholder { transform: scale(1.04); }

.project-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(113,121,126,0.95) 0%, transparent 55%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.75rem;
  opacity: 0; transition: opacity var(--transition);
}

.project-card:hover .project-card__overlay { opacity: 1; }

.project-card__tag {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.35rem;
}

.project-card__title {
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 700; text-transform: uppercase; color: white;
}

.project-card__client { font-size: 0.8rem; color: rgba(255,255,255,0.65); margin-top: 0.2rem; }

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }

.why-item {
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  margin: -1px 0 0 -1px;
  transition: background var(--transition);
}

.why-item:hover { background: var(--off-white); }

.why-item__icon {
  width: 56px; height: 56px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.why-item__icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.5; }

.why-item__title { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--navy-deeper); }
.why-item__desc { font-size: 0.9rem; color: var(--gray); line-height: 1.65; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card__quote-mark {
  font-family: Georgia, serif;
  font-size: 4rem; color: var(--gold);
  opacity: 0.4; line-height: 1;
  margin-bottom: 0.5rem;
}

.testimonial-card__quote {
  font-size: 0.92rem; color: var(--text);
  line-height: 1.75; margin-bottom: 1.5rem;
}

.testimonial-card__author { display: flex; align-items: center; gap: 0.75rem; }

.testimonial-card__avatar {
  width: 44px; height: 44px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.95rem; color: white; flex-shrink: 0;
  border-radius: var(--radius);
}

.testimonial-card__name { font-weight: 600; font-size: 0.9rem; color: var(--navy-deeper); }
.testimonial-card__role { font-size: 0.78rem; color: var(--gray); }

.testimonial-card__company {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); margin-top: 0.15rem;
}

/* ============================================
   TEAM
   ============================================ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* MOBILE OVERRIDE — forces 2 columns under 768px regardless of any inline
   <style> block elsewhere on the page. Placed immediately after the base
   rule and backed by !important so load order cannot defeat it. */
@media (max-width: 768px) {
  .team-grid,
  #team .team-grid,
  section#team .team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.team-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); }
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.team-card__photo {
  aspect-ratio: 1; overflow: hidden; background: var(--light-gray);
}

.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s ease; }
.team-card:hover .team-card__photo img { transform: scale(1.04); }

.team-card__photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy-deeper), var(--navy));
  font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--gold);
}

.team-card__body { padding: 1.25rem; }
.team-card__name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; text-transform: uppercase; color: var(--navy-deeper); margin-bottom: 0.2rem; }
.team-card__title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 0.75rem; }

.team-card__links { display: flex; flex-direction: column; gap: 0.25rem; }
.team-card__links a { font-size: 0.8rem; color: var(--gray); transition: color var(--transition); }
.team-card__links a:hover { color: var(--navy); }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }

.contact-info__item { display: flex; gap: 1rem; margin-bottom: 2rem; align-items: flex-start; }

.contact-info__icon {
  width: 46px; height: 46px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border-radius: var(--radius);
}

.contact-info__icon svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.contact-info__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); margin-bottom: 0.25rem; }
.contact-info__value { font-size: 1.05rem; font-weight: 600; color: var(--text); }
.contact-info__sub { font-size: 0.82rem; color: var(--gray); margin-top: 0.15rem; }

/* ============================================
   FORM
   ============================================ */
.form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); }

.form-input, .form-select, .form-textarea {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-size: 0.95rem; font-family: var(--font-body);
  outline: none; width: 100%;
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(113,121,126,0.12);
}

.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 130px; }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner { background: var(--navy); padding: 5rem 0; text-align: center; position: relative; overflow: hidden; }

.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(245,197,24,0.08), transparent 70%);
}

.cta-banner__title { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 0.75rem; }
.cta-banner__sub { color: rgba(255,255,255,0.65); font-size: 1.05rem; margin-bottom: 2rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--dark); padding: 4rem 0 2rem; }

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

.footer__logo-brand {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white);
}

.footer__logo-brand span { color: var(--gold); }
.footer__tagline { font-size: 0.88rem; color: rgba(255,255,255,0.45); line-height: 1.7; margin-top: 0.75rem; }

.footer__heading { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }

.footer__links { list-style: none; }
.footer__links li { margin-bottom: 0.6rem; }
.footer__links a { font-size: 0.88rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer__links a:hover { color: var(--gold); }

.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; }

.footer__copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { font-size: 0.8rem; color: rgba(255,255,255,0.35); transition: color var(--transition); }
.footer__legal a:hover { color: var(--gold); }

/* ============================================
   EMERGENCY STRIP
   ============================================ */
.emergency-strip {
  background: var(--gold);
  padding: 0.75rem 2rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy-deeper);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.emergency-strip a { color: var(--navy-deeper); text-decoration: underline; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid-4, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  .nav__links, .nav__cta { display: none; }
  .nav__mobile-btn { display: block; }
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card--wide { grid-column: span 1; }
  .testimonial-grid { grid-template-columns: 1fr; }
  #team .team-grid,
  .team-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero__stats { position: static; margin-top: 3rem; gap: 2rem; flex-wrap: wrap; }
  .stats-bar .container { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Project card real images */
.project-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.project-card:hover .project-card__img { transform: scale(1.05); }
