/* AI Visibility Gap -- shared site stylesheet
   Base tokens, nav, container, and footer. Page-specific component styles
   (hero variants, cards, grids) stay inline on each page. */

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

:root {
  --teal: #00C2A8;
  --teal-light: #E6FAF7;
  --teal-mid: #009E88;
  --teal-dark: #007A6A;
  --text-primary: #111111;
  --text-secondary: #2A2A2A;
  --text-muted: #666666;
  --border: #E5E5E5;
  --border-strong: #CCCCCC;
  --surface-0: #FFFFFF;
  --surface-1: #F7F7F7;
  --surface-2: #F0F0F0;
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
}

/* NAV -- shared across every page */
.nav {
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  z-index: 100;
}
.nav-logo { font-size: 14px; font-weight: 600; color: var(--text-primary); text-decoration: none; letter-spacing: -0.01em; }
.nav-logo span { color: var(--teal); }
.nav-right { font-size: 12px; color: var(--text-muted); display: flex; gap: 1.25rem; }
.nav-right a { color: var(--teal-mid); text-decoration: none; }
.nav-right a:hover { text-decoration: underline; }

/* LAYOUT */
.container { max-width: 900px; margin: 0 auto; padding: 0 2rem; }

/* SECTION HEADER -- shared eyebrow label style */
.section-header {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* FOOTER -- shared across every page */
footer { border-top: 1px solid var(--border); padding: 1.5rem 0 2rem; margin-top: 3rem; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-logo { font-size: 13px; font-weight: 600; color: var(--text-primary); text-decoration: none; margin-bottom: .5rem; display: block; }
.footer-logo span { color: var(--teal); }
.footer-tagline { font-size: 11px; color: var(--text-muted); max-width: 280px; line-height: 1.5; }
.footer-col-label { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .625rem; }
.footer-link { display: block; font-size: 12px; color: var(--text-secondary); text-decoration: none; margin-bottom: .375rem; }
.footer-link:hover { color: var(--teal-mid); }
.footer-link.active { color: var(--teal-mid); font-weight: 500; }
.footer-link.dim { color: var(--text-muted); opacity: .5; cursor: default; pointer-events: none; }
.footer-bottom { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--teal-mid); }

/* BUTTONS -- shared across CTAs and forms */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-size: 13px;
  font-weight: 600;
  padding: .7rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--teal); color: #FFFFFF; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-secondary { background: var(--surface-0); color: var(--text-primary); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-tertiary { background: var(--surface-1); color: var(--text-secondary); border-color: var(--border); }
.btn-tertiary:hover { border-color: var(--teal); color: var(--teal-dark); }
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* FORMS -- shared across Suggest a Firm and AI Visibility Report */
.form-section { max-width: 640px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: .375rem; }
.form-group .hint { display: block; font-size: 12px; color: var(--text-muted); font-weight: 400; margin-top: .25rem; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  padding: .6rem .75rem;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface-0);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--teal); }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.checkbox-item { display: flex; align-items: center; gap: .5rem; font-size: 13px; color: var(--text-secondary); font-weight: 400; }
.checkbox-item input { width: auto; }
.form-note { font-size: 12px; color: var(--text-muted); background: var(--surface-1); border-radius: 8px; padding: 1rem 1.25rem; margin: 1.5rem 0; line-height: 1.6; }
.form-success { background: var(--teal-light); border: 1px solid var(--teal); border-radius: 8px; padding: 1.5rem; color: var(--teal-dark); font-size: 14px; font-weight: 500; }

@media (max-width: 680px) {
  .container { padding: 0 1.25rem; }
  .nav { padding: 0 1.25rem; }
  .footer-inner { flex-direction: column; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: stretch; }
}
