/* Oak Analytics — Modern Responsive Stylesheet */

/* === Custom Properties === */
:root {
  --color-bg: #ffffff;
  --color-text: #2d2d2d;
  --color-heading: #1a1a1a;
  --color-primary: #1a1a1a;
  --color-primary-light: #333333;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-surface: #f8f9fa;
  --color-border: #e5e7eb;
  --color-muted: #6b7280;
  --color-footer-bg: #111111;
  --color-footer-text: #d1d5db;
  --color-focus: #2563eb;
  --font-stack: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 72rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-stack); font-size: 1rem; line-height: 1.7; color: var(--color-text); background: var(--color-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-hover); }
ul, ol { list-style: none; }

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === Focus Styles === */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* === Skip Navigation === */
.skip-nav {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 1000;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-nav:focus { top: var(--space-xs); }

/* === Header / Nav === */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem var(--space-sm);
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-logo {
  display: flex;
  align-items: center;
}
.nav-logo {
  height: 32px;
  width: auto;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
header nav ul li a {
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
header nav ul li a:hover {
  background: var(--color-surface);
  color: var(--color-primary);
  text-decoration: none;
}

/* === Sections (shared) === */
section {
  padding: var(--space-xl) var(--space-sm);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}
section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}
section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}
section p {
  color: var(--color-muted);
  max-width: 100%;
  line-height: 1.7;
}

/* === Section Backgrounds (explicit class, not nth-child) === */
.section--muted {
  background: var(--color-surface);
  max-width: 100%;
  padding-left: calc((100% - var(--max-width)) / 2 + var(--space-sm));
  padding-right: calc((100% - var(--max-width)) / 2 + var(--space-sm));
}

/* === Section Intro / Closing === */
.section-intro {
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
}
.section-closing {
  margin-top: var(--space-md);
  font-style: italic;
  color: var(--color-muted);
}

/* === Card Grid === */
.card-grid {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.card-grid article {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card-grid article:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* === Metric Grid === */
.metric-grid {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.metric-card {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.metric-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
}

/* === Process Grid === */
.process-grid {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.process-grid article {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}
.process-output {
  margin-top: var(--space-xs);
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* === Deliverable Grid === */
.deliverable-grid {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.deliverable-grid article {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}
.deliverable-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  margin-right: 0.5rem;
}

/* === Check List === */
.check-list {
  list-style: none;
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.6;
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}
.check-list--excluded li::before {
  content: "\2717";
  color: var(--color-muted);
}

/* === Scope Grid (numbered list) === */
.scope-grid {
  list-style: decimal;
  list-style-position: inside;
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.scope-grid li {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* === FAQ List === */
.faq-list {
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-list details {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
}
.faq-list details:first-child {
  border-top: 1px solid var(--color-border);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-heading);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.faq-list summary::before {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
}
.faq-list details[open] summary::before {
  content: "\2212";
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list details p {
  margin-top: 0.75rem;
  padding-left: 1.75rem;
}

/* === Hero === */
#hero,
#service-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  color: #fff;
  text-align: center;
  padding: 5rem var(--space-sm);
  max-width: 100%;
  position: relative;
  overflow: hidden;
}
#hero::before,
#service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
}
#hero h1,
#service-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 48rem;
  margin: 0 auto;
  position: relative;
}
#hero p,
#service-hero p {
  color: #d1d5db;
  margin: 1rem auto;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.7;
  position: relative;
}
#service-hero .service-subtitle {
  font-size: 1.15rem;
  color: #e5e7eb;
  margin-bottom: 0.5rem;
}

/* === Eyebrow === */
.eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-accent) !important;
  margin-bottom: 0.75rem;
  position: relative;
}

/* === Hero CTAs === */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: var(--space-md);
  position: relative;
}

/* === CTA Buttons === */
.cta-button {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
  text-align: center;
}
.cta-button:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}
.cta-secondary {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
}
.cta-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

/* Non-hero secondary CTA */
section:not(#hero):not(#service-hero) .cta-secondary {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}
section:not(#hero):not(#service-hero) .cta-secondary:hover {
  background: var(--color-accent);
  color: #fff;
}

/* === Trust Row === */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: var(--space-md);
  position: relative;
}
.trust-row li {
  font-size: 0.85rem;
  font-weight: 600;
  color: #d1d5db;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
}

/* === Outcome Callout === */
.outcome-callout {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  margin: var(--space-md) 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-heading);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* === Disclaimer === */
.disclaimer {
  margin-top: var(--space-md);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-muted);
}

/* === Calendly Widget === */
.calendly-inline-widget {
  min-width: 280px;
  min-height: 630px;
  margin-top: var(--space-sm);
}
.calendly-fallback {
  margin-bottom: var(--space-sm);
}

/* === Contact === */
#contact { padding-bottom: var(--space-lg); }
#contact p { margin-bottom: var(--space-xs); }

/* === Email Icon === */
.contact-email a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.email-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* === 404 Error Page === */
#error-404 {
  text-align: center;
  padding: var(--space-xl) var(--space-sm);
}
#error-404 p { margin: var(--space-sm) auto; }
#error-404 a {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: 0.875rem 2rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
}
#error-404 a:hover { background: var(--color-accent-hover); text-decoration: none; }

/* === Footer === */
footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  text-align: center;
  padding: var(--space-lg) var(--space-sm);
  font-size: 0.875rem;
}
.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-social {
  margin-top: var(--space-sm);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-footer-text);
  font-size: 0.875rem;
}
.footer-social a:hover {
  color: #fff;
}

/* === LinkedIn Icons === */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--color-text);
  transition: color 0.2s;
}
.social-links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}
img.linkedin-icon {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  display: inline-block;
  vertical-align: middle;
}

/* === Headshot === */
.about-content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}
.headshot {
  width: 180px;
  height: 180px;
  min-width: 180px;
  min-height: 180px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--color-border);
}

/* === Tablet (768px+) === */
@media (min-width: 768px) {
  section { padding: var(--space-xl) var(--space-md); }
  .section--muted {
    padding-left: calc((100% - var(--max-width)) / 2 + var(--space-md));
    padding-right: calc((100% - var(--max-width)) / 2 + var(--space-md));
  }
  section h2 { font-size: 2rem; }
  #hero, #service-hero { padding: 6rem var(--space-md); }
  #hero h1, #service-hero h1 { font-size: 2.5rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .deliverable-grid { grid-template-columns: repeat(2, 1fr); }
  header nav ul { gap: 0.5rem; }
}

/* === Desktop (1024px+) === */
@media (min-width: 1024px) {
  section { padding: var(--space-xl) var(--space-lg); }
  .section--muted {
    padding-left: calc((100% - var(--max-width)) / 2 + var(--space-lg));
    padding-right: calc((100% - var(--max-width)) / 2 + var(--space-lg));
  }
  #hero h1, #service-hero h1 { font-size: 3rem; }
  #hero, #service-hero { padding: 7rem var(--space-lg); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(4, 1fr); }
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .deliverable-grid { grid-template-columns: repeat(3, 1fr); }
  .about-content { gap: var(--space-md); }
}

/* === Large Desktop (1440px+) === */
@media (min-width: 1440px) {
  #hero h1, #service-hero h1 { font-size: 3.25rem; }
}


/* === Legal Pages === */
.legal-page {
  max-width: 50rem;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-sm);
}
.legal-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}
.legal-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}
.legal-dates {
  font-size: 0.9rem;
  color: var(--color-muted);
}
.legal-toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: var(--space-lg);
}
.legal-toc h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
.legal-toc ol {
  list-style: decimal;
  list-style-position: inside;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.legal-toc ol li {
  font-size: 0.9rem;
}
.legal-toc ol li a {
  color: var(--color-accent);
}
.legal-body section {
  margin-bottom: var(--space-lg);
  padding: 0;
  max-width: 100%;
}
.legal-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}
.legal-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-xs);
}
.legal-body p {
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}
.legal-body ul,
.legal-body ol {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: var(--space-sm) 0;
  padding-left: 1.5rem;
}
.legal-body ul {
  list-style: disc;
}
.legal-body ol {
  list-style: decimal;
}
.legal-body ul li,
.legal-body ol li {
  line-height: 1.7;
}
.legal-body dl {
  margin: var(--space-sm) 0;
}
.legal-body dt {
  font-weight: 600;
  color: var(--color-heading);
  margin-top: var(--space-sm);
}
.legal-body dd {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--color-border);
  color: var(--color-muted);
  margin-bottom: var(--space-xs);
}
.legal-body address {
  font-style: normal;
  margin-top: var(--space-sm);
}

/* === Calendly Click-to-Load === */
.calendly-disclosure {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: var(--space-sm) 0;
  font-size: 0.9rem;
}
.calendly-disclosure p {
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}
.calendly-disclosure a {
  color: var(--color-accent);
}
.calendly-load-btn {
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.calendly-load-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.calendly-container {
  margin-top: var(--space-sm);
}
.calendly-alternative {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* === Confidential Warning === */
.confidential-warning {
  margin-top: var(--space-md);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-sm);
}

/* === Footer Legal Links === */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: var(--space-sm);
}
.footer-legal a {
  color: var(--color-footer-text);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-legal a:hover {
  color: #fff;
}
