/*
 * ============================================================
 * Philly Builds AI — Shared Stylesheet
 * styles.css
 *
 * Loaded by all pages. Contains:
 *   - Design tokens (CSS variables)
 *   - Reset & base
 *   - Typography
 *   - Navigation (desktop + mobile)
 *   - Footer
 *   - Buttons
 *   - Reveal animation
 *   - Shared utilities & components
 *
 * Page-specific styles remain in each page's <style> tag.
 * To update nav or footer: edit here, one file, done.
 * ============================================================
 */

/* ── TOKENS ───────────────────────────────────────────────── */
:root {
  --bg:       #1a1b1f;
  --surface:  #22242a;
  --surface2: #2a2d34;
  --border:   rgba(255,255,255,0.08);
  --accent:   #2EC4C4;
  --accent2:  #8B5BA6;
  --text:     #e8e9eb;
  --muted:    #b0b3bb;
  --red:      #e07060;
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(26,27,31,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.nav-links {
  display: flex; gap: 2rem;
  list-style: none; align-items: center;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.82rem; letter-spacing: 0.05em;
  text-transform: uppercase; font-weight: 400;
  transition: color 0.2s; white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  font-weight: 500 !important;
  border-radius: 2px;
}
.nav-cta:hover { background: #28afaf !important; }

/* hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px;
  background: none; border: none; z-index: 201;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 1px;
  transition: all 0.25s;
}

/* mobile overlay */
.nav-mobile {
  display: none; position: fixed; inset: 0;
  background: var(--bg); z-index: 190;
  flex-direction: column; align-items: center;
  justify-content: center; gap: 2.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--text); text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem; letter-spacing: 0.08em;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  background: none; border: none;
  color: var(--muted); font-size: 1.75rem;
  cursor: pointer; line-height: 1;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: #111214;
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.footer-logo {
  display: flex; align-items: center; flex-shrink: 0;
}
.footer-links {
  display: flex; gap: 1.75rem;
  flex-wrap: wrap; align-items: center;
}
.footer-links a {
  font-size: 0.75rem; color: var(--muted);
  text-decoration: none; text-transform: uppercase;
  letter-spacing: 0.08em; transition: color 0.2s;
  white-space: nowrap;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 0.7rem; color: var(--muted);
  opacity: 0.45; white-space: nowrap;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.84rem; font-family: 'DM Sans', sans-serif;
  font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase; text-decoration: none;
  border: none; cursor: pointer;
  transition: all 0.2s; border-radius: 2px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #28afaf; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); transform: translateY(-1px); }
.btn-dark { background: #0e0f11; color: var(--accent); font-weight: 600; }
.btn-dark:hover { background: #1a1d22; }
.btn-outline-w {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline-w:hover { border-color: rgba(255,255,255,0.8); }

/* ── SECTION LABELS ───────────────────────────────────────── */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--accent);
  margin-bottom: 0.875rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-label::before {
  content: ''; display: block;
  width: 20px; height: 1px; background: var(--accent);
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem,4vw,3.5rem);
  line-height: 1; margin-bottom: 1.5rem;
}

/* ── REVEAL ANIMATION ─────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── SHARED ANIMATIONS ────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE — NAV + FOOTER ────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0.85rem 1.25rem; }
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex !important; }
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem 1.25rem;
  }
  .footer-logo  { order: 1; }
  .footer-links { order: 2; }
  .footer-copy  { order: 3; }
}
