/* ══════════════════════════════════════
   KC Agency — Shared styles
   Design tokens, reset, nav, footer.
   Used by index.html and ai-receptionist.html.
   ══════════════════════════════════════ */

:root {
  --bg-base:        #07080C;
  --bg-elevated:    #0F1117;
  --bg-floating:    #161A24;
  --blue-primary:   #2B7FFF;
  --blue-bright:    #5B9EFF;
  --blue-dim:       #1A4FB8;
  --blue-glow:      rgba(43,127,255,0.15);
  --text-primary:   #F0F2F7;
  --text-secondary: #8892A4;
  --text-muted:     #4A5262;
  --border:         rgba(255,255,255,0.07);
  --border-blue:    rgba(43,127,255,0.25);
  --cta-blue-deep:  #1547C4;
  --cta-blue-vivid: #3D8BFF;
  --cta-blue-glow:  #8AC8FF;
  --cta-navy:       #050A14;
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

body { opacity: 0; }

/* ── Nav ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.nav-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 400;
  font-style: italic;
  text-transform: uppercase;
  color: rgba(240, 242, 247, 0.90);
  text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
  justify-self: start;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-self: center;
  background: rgba(43, 127, 255, 0.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(91, 158, 255, 0.22);
  border-radius: 100px;
  padding: 11px 28px;
}

.nav-pill a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(240, 242, 247, 0.70);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 180ms ease;
}

.nav-pill a:hover,
.nav-pill a:focus-visible {
  color: #F0F2F7;
  outline: none;
}

.nav-cta {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: rgba(43, 127, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(91, 158, 255, 0.40);
  border-radius: 100px;
  padding: 11px 22px;
  box-shadow:
    0 0 18px rgba(43, 127, 255, 0.30),
    0 4px 12px rgba(0, 0, 0, 0.25);
  transition:
    transform 150ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 150ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 0 28px rgba(43, 127, 255, 0.50),
    0 8px 20px rgba(0, 0, 0, 0.35);
  outline: none;
}

.nav-cta:active {
  transform: translateY(0);
}

/* ── Mobile Nav Toggle (hamburger) ── */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(43, 127, 255, 0.10);
  border: 1px solid rgba(91, 158, 255, 0.22);
  border-radius: 12px;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 200ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(91, 158, 255, 0.40);
  outline: none;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 2px;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-pill-cta {
  display: none;
}

@media (max-width: 768px) {
  .site-nav { padding: 0 20px; }

  .nav-inner { grid-template-columns: 1fr auto; }

  .nav-toggle { display: flex; }

  /* Hide only the navbar CTA (replaced by .nav-pill-cta in the menu).
     .nav-cta is reused by hero/stats/footer buttons — those must stay visible. */
  .site-nav .nav-cta { display: none; }

  .nav-pill {
    position: fixed;
    top: 84px;
    left: 16px;
    right: 16px;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(7, 8, 12, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(91, 158, 255, 0.22);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    /* visibility keeps closed-menu links out of the focus order and
       accessibility tree; the 220ms delay lets the close animation finish */
    visibility: hidden;
    transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
  }

  .nav-pill.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition: opacity 220ms ease, transform 220ms ease, visibility 0s;
  }

  .nav-pill a[role="listitem"] {
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 12px;
    text-align: center;
  }

  .nav-pill a[role="listitem"]:hover,
  .nav-pill a[role="listitem"]:focus-visible {
    background: rgba(43, 127, 255, 0.12);
  }

  .nav-pill-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 14px 22px;
    min-height: 44px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    text-decoration: none;
    background: rgba(43, 127, 255, 0.85);
    border: 1px solid rgba(91, 158, 255, 0.40);
    border-radius: 100px;
  }

  .nav-pill-cta:hover,
  .nav-pill-cta:focus-visible {
    background: rgba(43, 127, 255, 1);
    outline: none;
  }
}

/* ══════════════════════════════════════
   FINAL CTA
   Bright full-bleed break before the footer.
   Used by ai-consulting, ai-receptionist, website-solutions.
   ══════════════════════════════════════ */
.final-cta {
  position: relative;
  overflow: hidden;
  padding: 100px 0 104px;
  background:
    radial-gradient(120% 140% at 12% -15%, var(--cta-blue-glow) 0%, transparent 45%),
    radial-gradient(120% 140% at 105% 120%, var(--cta-blue-deep) 0%, transparent 55%),
    linear-gradient(135deg, var(--cta-blue-vivid) 0%, #2C6FE0 100%);
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.final-cta-frame {
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--cta-navy);
  z-index: 2;
}

.final-cta-frame.top { top: 0; }
.final-cta-frame.bottom { bottom: 0; }

.final-cta-container {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 48px;
  text-align: center;
}

.final-cta-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(5,10,20,0.62);
  margin-bottom: 20px;
}

.final-cta-eyebrow::before,
.final-cta-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: rgba(5,10,20,0.30);
}

.final-cta-headline {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--cta-navy);
}

.final-cta-chip {
  display: inline-block;
  background: var(--cta-navy);
  color: #fff;
  border-radius: 10px;
  padding: 4px 16px 6px;
  margin-left: 4px;
  box-shadow: 0 6px 18px rgba(5,10,20,0.30);
  white-space: nowrap;
}

.final-cta-chip em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--cta-blue-glow);
  letter-spacing: 0;
}

.final-cta-sub {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: rgba(5,10,20,0.68);
  max-width: 560px;
  margin: 20px auto 0;
}

.final-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  background: var(--cta-navy);
  border-radius: 100px;
  padding: 10px 10px 10px 32px;
  margin-top: 40px;
  text-decoration: none;
  box-shadow:
    0 10px 30px rgba(5,10,20,0.35),
    0 0 0 1px rgba(255,255,255,0.06) inset;
  transition:
    transform 150ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 150ms ease;
}

.final-cta-btn:hover,
.final-cta-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 16px 38px rgba(5,10,20,0.42),
    0 0 0 1px rgba(255,255,255,0.10) inset;
  outline: none;
}

.final-cta-btn:focus-visible {
  outline: 2px solid var(--cta-navy);
  outline-offset: 4px;
}

.final-cta-btn:active { transform: translateY(0); }

.final-cta-btn-label {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.final-cta-btn-label em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--cta-blue-glow);
}

.final-cta-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cta-blue-vivid), var(--cta-blue-glow));
  color: var(--cta-navy);
  flex-shrink: 0;
  transition: transform 150ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.final-cta-btn:hover .final-cta-btn-icon,
.final-cta-btn:focus-visible .final-cta-btn-icon { transform: translateX(3px); }

.final-cta-trust {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 32px;
}

.final-cta-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(5,10,20,0.72);
}

.final-cta-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(5,10,20,0.10);
  border: 1px solid rgba(5,10,20,0.22);
  color: var(--cta-navy);
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
  position: relative;
  background: var(--bg-base);
  padding: 80px 0 0;
  overflow: hidden;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 1;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  margin-bottom: 16px;
}

.footer-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 28px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-list a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 200ms ease;
}

.footer-contact-list a:hover { color: var(--text-secondary); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.footer-social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(43,127,255,0.10);
  border: 1px solid rgba(43,127,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.footer-social-link svg {
  width: 15px;
  height: 15px;
}

.footer-col-heading {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-cta-btn {
  display: inline-flex;
  margin-top: 24px;
}

.footer-nav-list li a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 200ms ease;
}

.footer-nav-list li a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-legal-link {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-legal-sep {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.footer-location svg {
  width: 12px;
  height: 12px;
  stroke: var(--text-muted);
  flex-shrink: 0;
}

.footer-wordmark-wrap {
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.footer-wordmark {
  font-family: 'Inter', sans-serif;
  font-size: clamp(80px, 14vw, 200px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.85;
  text-transform: uppercase;
  background: linear-gradient(to bottom, rgba(240,242,247,0.14) 0%, rgba(240,242,247,0.04) 55%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: 100%;
  text-align: center;
  display: block;
}

@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-container { padding: 0 24px; }
  .final-cta { padding: 80px 0 88px; }
  .final-cta-container { padding: 0 28px; }
}

@media (max-width: 600px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-left { flex-direction: column; gap: 8px; }
  .site-footer { padding: 56px 0 0; }
  .final-cta { padding: 64px 0 72px; }
  .final-cta-btn {
    width: 100%;
    justify-content: space-between;
    padding-left: 24px;
  }
  .final-cta-btn-label { font-size: 16px; }
  .final-cta-trust { flex-direction: column; align-items: center; gap: 12px; }
}
