/* ───────────────────────────────────────────────
   ApptBoss Marketing Site — Shared Styles
   Brand: indigo #6366f1 → violet #8b5cf6
   ─────────────────────────────────────────────── */

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

:root {
  --indigo: #6366f1;
  --indigo-dark: #4f46e5;
  --violet: #8b5cf6;
  --navy: #0f0e2e;
  --navy-mid: #1e1b4b;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --surface: #f9fafb;
  --border: #e5e7eb;
  --white: #ffffff;
  --radius: 0.875rem;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-elevated: 0 20px 60px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ─────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: white;
  box-shadow: 0 1px 0 var(--border);
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}

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

.nav-links a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--indigo); }

.btn-ghost-nav {
  padding: 0.4375rem 1.125rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-ghost-nav:hover { background: var(--surface); color: var(--text); border-color: #d1d5db; }

.btn-primary-nav {
  padding: 0.4375rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  box-shadow: 0 3px 12px rgba(99,102,241,0.45);
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-primary-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(99,102,241,0.5);
}

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

/* ── Buttons ─────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 2rem;
  border-radius: 0.625rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  box-shadow: 0 4px 18px rgba(99,102,241,0.45);
  transition: all 0.15s;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99,102,241,0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 2rem;
  border-radius: 0.625rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: white;
  border: 1.5px solid var(--border);
  transition: all 0.15s;
  cursor: pointer;
}
.btn-secondary:hover {
  border-color: #c4b5fd;
  color: var(--indigo);
  box-shadow: 0 2px 12px rgba(99,102,241,0.12);
}

/* ── Shared section layout ───────────────────── */
.section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo);
  background: rgba(99,102,241,0.09);
  padding: 0.3rem 0.875rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ── Footer ──────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 2rem;
}

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

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

.footer-brand img {
  height: 36px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 240px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.625rem;
  transition: color 0.15s;
}
.footer-col a:hover { color: white; }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* Mobile menu — hidden on desktop, always */
.mobile-menu {
  display: none;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .site-nav {
    padding: 0 1.25rem;
    grid-template-columns: auto 1fr auto; /* logo | spacer | hamburger */
  }

  .nav-links,
  .nav-actions { display: none; }

  .nav-hamburger {
    display: flex;
    justify-self: end;
  }

  /* On mobile, show the menu (offscreen by default, slides in when .open) */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: white;
    padding: 1.5rem 1.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-top: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
    z-index: 99;
  }
  .mobile-menu.open { transform: translateY(0); }
  .mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu a:last-child { border: none; margin-top: 0.5rem; }
  .mobile-menu .btn-primary { width: 100%; justify-content: center; }

  .section { padding: 4rem 1.25rem; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}
