/*
 * BUILTFASTER LLC — Components
 * Header · Hero · Service cards · Work carousel
 */

/* ═══════════════════════════════════════
   SHARED PRIMITIVES
═══════════════════════════════════════ */

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.pill-dark {
  background: var(--ink);
  color: var(--bg-cream);
}

.pill-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.pill-tag {
  background: var(--bg-cream-deep);
  color: var(--ink-soft);
  font-size: 11px;
  padding: 4px 10px;
}

/* ═══════════════════════════════════════
   LOGO MARK (SVG inline, two variants)
═══════════════════════════════════════ */

.logo-mark {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
}

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border-subtle);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 9px;
}

.wordmark {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 13px;
  color: var(--ink-soft);
  transition: color var(--dur-fast);
}
.nav-link:hover { color: var(--ink); }

.nav-link--active {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.nav-divider {
  width: 1px;
  height: 14px;
  background: var(--border-line);
  flex-shrink: 0;
}

.btn-start {
  background: var(--ink);
  color: var(--bg-cream);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  transition: opacity var(--dur-fast);
}
.btn-start:hover { opacity: 0.82; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 22px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-normal), opacity var(--dur-normal);
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */

.hero {
  padding: 60px 22px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-h1 {
  font-size: 68px;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-h1 em {
  font-style: italic;
  color: var(--accent);
  font-family: var(--font-serif);
  font-weight: 400;
}

.hero-sub {
  font-size: 15px;
  color: var(--ink-mute);
  max-width: 460px;
  line-height: 1.55;
  margin-bottom: 24px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-cta .pill-dark {
  padding: 10px 18px;
  font-size: 14px;
  letter-spacing: 0;
}

.hero-cta .pill-outline {
  padding: 10px 18px;
  font-size: 14px;
  letter-spacing: 0;
}

/* ═══════════════════════════════════════
   SERVICE CARDS
═══════════════════════════════════════ */

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 22px 12px;
}

.service-card {
  background: var(--surface-white);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-card-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card-num {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.service-card p {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.55;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

/* ═══════════════════════════════════════
   APPS SECTION
═══════════════════════════════════════ */

.apps-section {
  padding: 48px 22px 56px;
  background: var(--bg-cream);
}

.apps-header {
  text-align: center;
  margin-bottom: 36px;
}

.apps-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.apps-headline {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--ink);
  margin-bottom: 10px;
}

.apps-sub {
  font-size: 14px;
  color: var(--ink-mute);
}

/* ── Icon grid ── */

.apps-track-wrap {
  overflow: hidden;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 780px;
  margin: 0 auto;
}

/* ── App column ── */

.app-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-col--muted { opacity: 0.7; }

/* ── Icon container ── */

.app-icon-wrap {
  width: 120px;
  height: 120px;
  margin-bottom: 14px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}

.app-icon-wrap--placeholder {
  background: var(--bg-cream-mute);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon-full {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 28px;
  display: block;
}

.app-icon-fallback-lg {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: var(--bg-cream-mute);
  border: 1px solid var(--border-subtle);
}

/* ── LIVE pill ── */

.app-live-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
}

.app-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
}

/* ── App col text ── */

.app-col-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
}

.app-col-name--soft { color: var(--ink-soft); }

.app-col-tagline {
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 12px;
}

.app-col-caption {
  font-size: 12px;
  color: var(--ink-faint);
}

/* ── App Store pill ── */

.app-store-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--ink);
  color: var(--bg-cream);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  transition: opacity var(--dur-fast);
}
.app-store-pill:hover { opacity: 0.78; }

/* ── Nav arrows ── */

.apps-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.apps-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--dur-fast);
  line-height: 1;
}
.apps-nav-btn:hover { opacity: 0.7; }

.apps-nav-btn--outline {
  background: transparent;
  border: 1px solid var(--border-line);
  color: var(--ink);
}

.apps-nav-btn--filled {
  background: var(--ink);
  color: var(--bg-cream);
  border: none;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */

.site-footer {
  background: var(--ink);
  color: var(--bg-cream);
  padding: 48px 22px 32px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

/* Brand column */
.footer-brand { display: flex; flex-direction: column; }

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.footer-wordmark {
  font-size: 15px;
  font-weight: 500;
  color: var(--bg-cream);
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(245, 241, 232, 0.65);
  max-width: 320px;
  margin-bottom: 12px;
}

.footer-location {
  font-size: 12px;
  color: rgba(245, 241, 232, 0.45);
}

/* Link columns */
.footer-col { display: flex; flex-direction: column; }

.footer-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(245, 241, 232, 0.45);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(245, 241, 232, 0.85);
  transition: color var(--dur-fast);
}
.footer-links a:hover { color: var(--bg-cream); }

/* Divider */
.footer-divider {
  height: 1px;
  background: rgba(245, 241, 232, 0.12);
  margin-bottom: 0;
}

/* Bottom row */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(245, 241, 232, 0.45);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 12px;
  color: rgba(245, 241, 232, 0.65);
  transition: color var(--dur-fast);
}
.footer-legal a:hover { color: var(--bg-cream); }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */

@media (max-width: 1024px) {
  .apps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .hero-h1 { font-size: 44px; }

  .services-grid { grid-template-columns: 1fr; }

  /* Apps: horizontal scroll snap */
  .apps-track-wrap {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -22px;
    padding: 0 22px;
  }
  .apps-track-wrap::-webkit-scrollbar { display: none; }

  .apps-grid {
    display: flex;
    gap: 24px;
    width: max-content;
    padding-right: 22px;
  }

  .app-col {
    scroll-snap-align: start;
    width: 80vw;
    flex-shrink: 0;
  }

  /* Footer: stack */
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-col-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .nav-links-group { display: none; }
  .nav-links-group.open { display: flex; flex-direction: column; gap: 16px; }
  .hamburger { display: flex; }

  .hero-h1 { font-size: 38px; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
