/* ============================================================
   McCann Advisory — Shared Stylesheet
   Brand: Ink (#1A1A2E) + Indigo (#5C4FE5)
   Fonts: DM Serif Display (headings) + Inter (body)
   ============================================================ */

/* --- Variables --- */
:root {
  --ink:          #1A1A2E;
  --ink-mid:      #4A4A6A;
  --ink-light:    #8888AA;
  --accent:       #5C4FE5;
  --accent-dark:  #4A3DD4;
  --accent-light: #EDE9FF;
  --bg:           #F8F7FF;
  --white:        #FFFFFF;
  --border:       #E2E0F0;

  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-width: 1080px;
  --nav-height: 64px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }

/* --- Base --- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0 0 6px 6px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
}
.skip-link:focus { top: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.navbar.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 16px rgba(26, 26, 46, 0.06);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.nav-logo-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.3px;
}
.nav-logo-bar {
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.nav-logo-descriptor {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-mid);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--ink); }

/* --- Mobile menu button --- */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Focus styles --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn:focus-visible,
.btn-ghost:focus-visible,
.btn-ink:focus-visible,
.form-submit:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
  transform: translateY(-1px);
}
/* --- Eyebrow --- */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow-white {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

/* --- Section typography --- */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.section-title-white {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
/* --- Pull quote --- */
.pullquote {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  max-width: 48ch;
}
/* --- Hero (dark, full-bleed) --- */
.hero {
  background: var(--ink);
  color: var(--white);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 5rem) 2rem 6rem;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--white);
  max-width: 16ch;
  margin-bottom: 1.5rem;
}
.hero-body {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 50ch;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nowrap { white-space: nowrap; }

/* --- Hero accent circles --- */
.hero-circle-1,
.hero-circle-2 {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
}
.hero-circle-1 {
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  opacity: 0.12;
}
.hero-circle-2 {
  bottom: -120px;
  left: -60px;
  width: 280px;
  height: 280px;
  opacity: 0.07;
}

/* Hero variant: shorter (inner pages) */
.hero-short {
  background: var(--ink);
  color: var(--white);
  padding: calc(var(--nav-height) + 4rem) 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-short .hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-short .hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  max-width: 24ch;
}

/* --- Sections --- */
.section {
  padding: 6rem 2rem;
}
.section-bg {
  background: var(--bg);
}
.section-ink {
  background: var(--ink);
}

/* --- Why Different columns --- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}
.diff-item {
  border-top: 2px solid var(--border);
  padding-top: 1.75rem;
}
.diff-item h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.diff-item p {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* --- Service cards (Home overview) --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 6px;
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(26, 26, 46, 0.08);
  transform: translateY(-2px);
}
.service-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* --- About layout --- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
}
.about-photo {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}
.about-photo img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}
.about-text p {
  color: var(--ink-mid);
  margin-bottom: 1.25rem;
  font-size: 1.025rem;
}
.about-text p:last-child { margin-bottom: 0; }

/* --- Credentials grid --- */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.credential {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.credential-value {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.credential-label {
  font-size: 0.8rem;
  color: var(--ink-light);
  font-weight: 500;
  line-height: 1.4;
}

/* --- Beliefs --- */
.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.belief-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 1.75rem;
}
.belief-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.belief-card p {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* --- Content prose --- */
.prose {
  max-width: 62ch;
}
.prose p {
  color: var(--ink-mid);
  margin-bottom: 1rem;
}
.prose p:last-child {
  margin-bottom: 2.5rem;
}
.section-link {
  margin-top: 2rem;
  text-align: center;
}
.section-link a {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
}

/* --- Contact page --- */
.contact-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 4rem);
  position: relative;
  overflow: hidden;
}
.contact-container {
  width: 100%;
}
.contact-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-top: 2rem;
}

/* --- Contact form --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
}
.contact-sidebar {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.contact-sidebar strong {
  color: var(--white);
}
.contact-form-wrap {
  background: var(--white);
  border-radius: 8px;
  padding: 2.5rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.form-row:last-of-type { margin-bottom: 0; }
.form-row label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-submit {
  margin-top: 2rem;
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.form-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* --- Footer --- */
.footer {
  background: var(--ink);
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-inner > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.footer-logo-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.3px;
}
.footer-logo-bar {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  margin: 6px 0;
}
.footer-logo-descriptor {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* --- Thanks page --- */
.thanks-page {
  background: var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}
.thanks-inner h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1rem;
}
.thanks-inner p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
}

/* --- Help section (Services page) --- */
.help-section {
  padding: 5rem 2rem;
  border-top: 2px solid var(--border);
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.help-item h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.help-item h3 a {
  color: var(--ink);
  transition: color 0.2s;
}
.help-item h3 a:hover {
  color: var(--accent);
}
.help-item h3 .chevron {
  color: var(--accent);
  font-weight: 700;
  margin-left: 0.25rem;
}
.help-item p {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* --- Pricing cards (Services page) --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}
.pricing-card-header {
  background: var(--ink);
  color: var(--white);
  padding: 1.5rem 1.75rem;
}
.pricing-card-header h3 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}
.pricing-card-header .pricing-amount {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
}
.pricing-card-body {
  padding: 1.75rem;
}
.pricing-card-desc {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.pricing-card-price {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-light);
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.pricing-card-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pricing-card-body li {
  font-size: 0.95rem;
  color: var(--ink-mid);
  padding: 0.45rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}
.pricing-card-body li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* --- Table wrapper --- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --- Archetypes table (Services page) --- */
.archetypes-section {
  padding: 0 2rem 6rem;
}
.archetypes-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}
.archetypes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 1.5rem;
}
.archetypes-table thead th {
  background: var(--ink);
  color: var(--white);
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.archetypes-table thead th:first-child { border-radius: 6px 0 0 0; }
.archetypes-table thead th:last-child { border-radius: 0 6px 0 0; }
.archetypes-table tbody td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink-mid);
  vertical-align: top;
}
.archetypes-table tbody tr:nth-child(even) td {
  background: var(--bg);
}
.archetypes-table tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- CTA section (ink bg) --- */
.cta-section {
  background: var(--ink);
  padding: 6rem 2rem;
  text-align: center;
}
.cta-section .eyebrow-white { margin-bottom: 1rem; }
.cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-section p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 44ch;
  margin: 0 auto 2.5rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .proof-grid { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: repeat(2, 1fr); }
  .service-section-inner { grid-template-columns: 1fr; gap: 2rem; }
  .service-section-meta { position: static; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .help-grid { grid-template-columns: repeat(2, 1fr); }
  .archetypes-table { font-size: 0.8rem; }
}

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { position: static; max-width: 340px; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .diff-grid { grid-template-columns: 1fr; gap: 2rem; }
  .beliefs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 1.25rem; }
  .service-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: none; }
  .proof-grid { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; align-items: center; gap: 1.5rem; }
  .hero { padding-bottom: 4rem; }

  .menu-btn { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(26, 26, 46, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a {
    display: block;
    padding: 0.85rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  .nav-logo-descriptor { display: none; }
  .nowrap { white-space: normal; }
  .help-grid { grid-template-columns: 1fr; }
  .hero-headline { max-width: none; }
  .hero-ctas { flex-direction: column; }
  .credentials-grid { grid-template-columns: 1fr 1fr; }
  .contact-form-wrap { padding: 1.5rem; }
  .hero-circle-1 { width: 250px; height: 250px; top: -60px; right: -60px; }
  .hero-circle-2 { width: 180px; height: 180px; bottom: -80px; left: -40px; }
}
