/* ========================================================================
   Infinity Electric Pro - Shared Styles
   Palette: navy #0A1F44 | dark bg #1a2332 | accent yellow #FFC300
   ======================================================================== */

:root {
  --navy: #0A1F44;
  --bg-dark: #1a2332;
  --bg-darker: #141b28;
  --yellow: #FFC300;
  --white: #ffffff;
  --muted: #a9b2c3;
  --card: #212c3d;
  --covered: #7CFC9B;
  --not-covered: #ff6b6b;
  --maxw: 1120px;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.1; font-weight: 800; letter-spacing: -0.5px; }

a { color: inherit; text-decoration: none; }

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

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

.accent { color: var(--yellow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.06s ease, opacity 0.2s ease;
  border: 2px solid transparent;
  text-align: center;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { background: transparent; color: var(--yellow); border-color: var(--yellow); }
.btn-outline:hover { background: var(--yellow); color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; }
.brand img { height: 48px; width: 48px; border-radius: 8px; object-fit: cover; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 600; font-size: 15px; color: var(--white); }
.nav a:hover, .nav a.active { color: var(--yellow); }
.nav .nav-phone {
  background: var(--yellow);
  color: var(--navy);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 800;
}
.nav .nav-phone:hover { opacity: 0.9; color: var(--navy); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  align-items: center;
}
.hero-img {
  background:
    linear-gradient(90deg, rgba(10,31,68,0.25), rgba(10,31,68,0.55)),
    url('../assets/hero-van.jpg') center/cover no-repeat,
    var(--bg-darker);
  min-height: 560px;
}
.hero-content { padding: 48px 56px; }
.hero h1 { font-size: 64px; margin-bottom: 16px; }
.hero .tagline { color: var(--yellow); font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.hero .espanol { color: var(--yellow); font-weight: 700; margin-bottom: 14px; }
.hero .sub { color: var(--white); font-size: 18px; margin-bottom: 28px; max-width: 460px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--yellow); color: var(--navy); }
.trust-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.trust-bar span { font-weight: 700; font-size: 15px; text-align: center; flex: 1; min-width: 140px; }

/* ---------- Section ---------- */
.section { padding: 72px 0; }
.section-dark { background: var(--bg-dark); }
.section-darker { background: var(--bg-darker); }
.section h2 { font-size: 44px; margin-bottom: 16px; }
.section .lead { color: var(--muted); font-size: 17px; max-width: 620px; margin-bottom: 48px; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.service-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: rgba(255,195,0,0.12);
  border-radius: 10px;
  font-size: 24px;
  margin-bottom: 16px;
}
.service-card h3 { font-size: 22px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15px; }

/* ---------- Center CTA row ---------- */
.cta-row { display: flex; gap: 18px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }

/* ---------- Coverage / map ---------- */
.coverage { text-align: center; }
.coverage h2 { font-size: 44px; }
.coverage p { color: var(--muted); max-width: 760px; margin: 0 auto 32px; }
.map-wrap { max-width: 640px; margin: 0 auto; }
.map-wrap iframe { width: 100%; height: 320px; border: 0; border-radius: 12px; }
.zip-check { max-width: 480px; margin: 28px auto 0; }
.zip-check h3 { color: var(--white); font-size: 20px; margin-bottom: 12px; }
.zip-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.zip-row input {
  flex: 1; min-width: 180px; padding: 14px 16px; font-size: 16px;
  border: 2px solid #d0d5dd; border-radius: 8px; outline: none;
}
.zip-row input:focus { border-color: var(--yellow); }
.zip-result { margin-top: 14px; font-size: 16px; font-weight: 600; min-height: 24px; }
.zip-result.ok { color: var(--covered); }
.zip-result.no { color: var(--not-covered); }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; background: var(--bg-dark); }
.final-cta h2 { color: var(--yellow); font-size: 52px; margin-bottom: 18px; }
.final-cta p { color: var(--white); font-size: 18px; margin-bottom: 32px; }
.final-cta .cta-row { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-darker); padding: 56px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 40px;
}
.footer-grid h4 { color: var(--white); font-size: 18px; margin-bottom: 12px; }
.footer-grid p, .footer-grid a { color: var(--muted); font-size: 15px; }
.footer-grid a:hover { color: var(--yellow); }
.footer-bottom { text-align: center; color: var(--muted); font-size: 14px; margin-top: 40px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--navy); padding: 72px 0; text-align: center; }
.page-hero h1 { font-size: 48px; margin-bottom: 12px; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
.about-grid img { border-radius: var(--radius); width: 100%; }
.stat-row { display: flex; gap: 40px; margin: 28px 0; flex-wrap: wrap; }
.stat .num { font-size: 40px; font-weight: 800; color: var(--yellow); }
.stat .label { color: var(--muted); font-size: 14px; }
.about-grid p { color: var(--muted); margin-bottom: 16px; }

/* ---------- Gallery (Our Work) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery figure {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery img { height: 240px; width: 100%; object-fit: cover; }
.gallery figcaption { padding: 16px; font-weight: 600; }
.gallery figcaption span { display: block; color: var(--muted); font-weight: 400; font-size: 14px; margin-top: 4px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-card { background: var(--card); padding: 32px; border-radius: var(--radius); }
.contact-card h3 { font-size: 24px; margin-bottom: 6px; }
.contact-card .role { color: var(--yellow); font-weight: 600; margin-bottom: 20px; }
.contact-line { margin-bottom: 14px; }
.contact-line .label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.contact-line a { font-size: 18px; font-weight: 700; }
.contact-form label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; margin-bottom: 16px; font-size: 15px;
  border: 2px solid #2e3a4e; border-radius: 8px; background: var(--bg-dark);
  color: var(--white); outline: none; font-family: inherit;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--yellow); }
.contact-form textarea { min-height: 120px; resize: vertical; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--yellow); text-align: center; padding: 14px;
}
.mobile-call a { color: var(--navy); font-weight: 800; font-size: 18px; }

/* ========================================================================
   Responsive
   ======================================================================== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-img { min-height: 260px; order: -1; }
  .hero-content { padding: 36px 24px; }
  .hero h1 { font-size: 44px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
}

@media (max-width: 600px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--navy);
    padding: 20px 24px; gap: 18px; border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 36px; }
  .section { padding: 48px 0; }
  .section h2, .coverage h2 { font-size: 32px; }
  .final-cta h2 { font-size: 36px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .trust-bar span { flex-basis: 45%; font-size: 13px; }
  .mobile-call { display: block; }
  body { padding-bottom: 60px; }
  .hero-cta .btn, .cta-row .btn { width: 100%; }
}

/* ========================================================================
   Animations (Wix-style reveal on scroll + hero entrance)
   ======================================================================== */

/* Elements start hidden, then reveal when .is-visible is added by JS */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children (e.g. service cards, gallery) */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }

/* Hero entrance on load */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * { animation: heroFadeUp 0.7s ease both; }
.hero-content h1 { animation-delay: 0.05s; }
.hero-content .tagline { animation-delay: 0.18s; }
.hero-content .espanol { animation-delay: 0.28s; }
.hero-content .sub { animation-delay: 0.36s; }
.hero-content .hero-cta { animation-delay: 0.46s; }

/* Subtle hover lift on cards and gallery */
.service-card { transition: transform 0.25s ease; }
.service-card:hover { transform: translateY(-6px); }
.gallery figure { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.gallery figure:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.35); }

/* Logo pulse accent in header */
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(255,195,0,0); }
  50% { box-shadow: 0 0 12px rgba(255,195,0,0.5); }
}
.brand img { animation: logoGlow 3.5s ease-in-out infinite; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .hero-content > *, .brand img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- About page logo + socials ---------- */
.about-logo {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: var(--radius);
  background: var(--card);
  padding: 12px;
  object-fit: contain;
  animation: none;
}

.socials {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  font-weight: 700;
  color: var(--white);
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.social-link:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-3px); }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 50%;
  font-weight: 800;
  font-size: 16px;
}

/* ---------- Reviews section (Our Work) ---------- */
.reviews-stars {
  color: var(--yellow);
  font-size: 32px;
  letter-spacing: 4px;
  margin-bottom: 12px;
}
.reviews-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .reviews-cta .btn { width: 100%; }
}
