/* Sparkies — site-wide styles */
:root {
  --graphite: #232D34;
  --graphite-deep: #1a2228;
  --airy-white: #EAEAEA;
  --airy-grey: #D0D1D3;
  --pure-white: #FFFFFF;
  --black: #000000;
  --blue: #40A0FF;
  --blue-deep: #1c7fe0;
  --lime: #C7F44A;
  --lime-deep: #a8d52e;

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Lato', system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 24px;
  --radius-sm: 8px;

  --shadow-card: 0 4px 24px rgba(35, 45, 52, 0.08);
  --shadow-lift: 0 18px 48px rgba(35, 45, 52, 0.16);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--graphite);
  background: var(--pure-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--graphite);
}
h1 { font-size: clamp(44px, 6.4vw, 96px); letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4.4vw, 64px); letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2vw, 30px); }
h4 { font-size: 18px; }
p { margin: 0; }

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

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--lime);
  color: var(--graphite);
  box-shadow: 0 4px 0 var(--lime-deep), 0 10px 24px rgba(199, 244, 74, 0.35);
}
.btn-primary:hover {
  background: #d1fa5a;
  box-shadow: 0 5px 0 var(--lime-deep), 0 14px 30px rgba(199, 244, 74, 0.45);
}

.btn-secondary {
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 0 var(--blue-deep), 0 10px 24px rgba(64, 160, 255, 0.3);
}
.btn-secondary:hover {
  background: #58afff;
  box-shadow: 0 5px 0 var(--blue-deep), 0 14px 30px rgba(64, 160, 255, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--graphite);
  border: 1.5px solid rgba(35, 45, 52, 0.2);
}
.btn-ghost:hover { border-color: var(--graphite); background: rgba(35, 45, 52, 0.04); }

.btn-on-dark {
  background: white;
  color: var(--graphite);
}
.btn-on-dark.btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.3);
}
.btn-on-dark.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: white; }

.btn-lg { padding: 20px 36px; font-size: 18px; }

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(35, 45, 52, 0.06);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  font-style: italic;
  color: var(--graphite);
}
.logo-mark .bolt {
  width: 22px; height: 28px;
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--graphite);
  transition: background 0.15s;
}
.nav-links a:hover { background: rgba(35,45,52,0.05); }
.nav-links a.active { color: var(--blue-deep); }

.header-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(64, 160, 255, 0.1);
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s;
}
.phone-btn:hover { background: rgba(64, 160, 255, 0.18); }
.phone-btn .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2bb673;
  box-shadow: 0 0 0 0 rgba(43, 182, 115, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43, 182, 115, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(43, 182, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 182, 115, 0); }
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0.2s ease;
    z-index: 90;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links a { padding: 14px 16px; font-size: 17px; }
  .menu-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .phone-btn { padding: 8px 12px; font-size: 13px; }
  .phone-btn span:not(.pulse) { white-space: nowrap; }
}
@media (max-width: 540px) {
  .phone-btn span:last-child { display: none; }
  .phone-btn { padding: 10px; }
}
.phone-btn { white-space: nowrap; }
.phone-btn span:last-child { white-space: nowrap; }

/* === FOOTER === */
.site-footer {
  background: var(--graphite);
  color: rgba(255,255,255,0.85);
  padding: 80px 0 32px;
  margin-top: 120px;
}
.site-footer h4 { color: white; margin-bottom: 18px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: 15px; color: rgba(255,255,255,0.7); }
.footer-grid a:hover { color: var(--lime); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding-top: 32px; font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-badges span { padding: 6px 12px; background: rgba(255,255,255,0.06); border-radius: 999px; font-size: 12px; color: rgba(255,255,255,0.7); font-family: var(--font-display); font-weight: 500; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .proj-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .proj-grid > div:first-child { position: static !important; }
}

/* === COMMON SECTIONS === */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ''; width: 24px; height: 2px; background: var(--blue);
}
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head p { font-size: 19px; color: rgba(35,45,52,0.7); margin-top: 16px; max-width: 620px; }

/* === PHOTO PLACEHOLDERS === */
.photo {
  position: relative;
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(45deg, rgba(35,45,52,0.06) 0 12px, rgba(35,45,52,0.02) 12px 24px),
    var(--airy-white);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.photo.tall { aspect-ratio: 3/4; }
.photo.wide { aspect-ratio: 16/9; }
.photo.square { aspect-ratio: 1/1; }
.photo .label {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 11px;
  background: rgba(35,45,52,0.85);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.photo.dark {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 12px, rgba(255,255,255,0.01) 12px 24px),
    var(--graphite);
}

/* Trust marquee */
.trust-bar {
  background: var(--graphite);
  color: white;
  padding: 18px 0;
  overflow: hidden;
  position: relative;
}
.trust-track {
  display: flex;
  gap: 64px;
  animation: scroll 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.trust-track > span {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  letter-spacing: 0.04em;
}
.trust-track .dot { width: 6px; height: 6px; background: var(--lime); border-radius: 50%; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Tag chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(64,160,255,0.1);
  color: var(--blue-deep);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
}
.chip.lime { background: rgba(199,244,74,0.25); color: #5e7a14; }
.chip.dark { background: rgba(255,255,255,0.1); color: white; }

/* Card */
.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(35,45,52,0.07);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(64,160,255,0.3); }

/* Bolt icon — always rendered as SVG component, not inline */
.bolt-bg {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
}

/* Theme: dark mode body switch */
body.theme-dark {
  background: var(--graphite-deep);
  color: rgba(255,255,255,0.9);
}
body.theme-dark h1, body.theme-dark h2, body.theme-dark h3 { color: white; }
body.theme-dark .site-header { background: rgba(26,34,40,0.92); border-bottom-color: rgba(255,255,255,0.08); }
body.theme-dark .logo-mark, body.theme-dark .nav-links a { color: white; }
body.theme-dark .nav-links a:hover { background: rgba(255,255,255,0.08); }
body.theme-dark .card { background: #2a363e; border-color: rgba(255,255,255,0.08); }
body.theme-dark .section-head p { color: rgba(255,255,255,0.7); }

/* Helpers */
.spacer-32 { height: 32px; } .spacer-48 { height: 48px; } .spacer-64 { height: 64px; }
.text-center { text-align: center; }
.muted { color: rgba(35,45,52,0.65); }
.divider { height: 1px; background: rgba(35,45,52,0.08); border: 0; margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Stars */
.stars { display: inline-flex; gap: 2px; color: #f5b400; }
