/* McCargo Consulting — Option E Bold Modern
   Non-critical styles (critical CSS is inlined in index.html <head>)
   ============================================ */

/* ---- Scroll offset for anchor links ---- */
section[id] {
  scroll-margin-top: calc(var(--nav-height) + var(--ribbon-height) + 16px);
}

/* ---- Nav link styling ---- */
.nav-links a:not(.cta-button) {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s;
}
.nav-links a:not(.cta-button):hover {
  color: var(--text);
}
.nav-links a:not(.cta-button):focus-visible {
  color: var(--text);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (max-width: 1023px) {
  .nav-links a:not(.cta-button) {
    font-size: 17px;
    color: var(--text);
    font-weight: 600;
  }
}

/* ---- Hero Orbs ---- */
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); z-index: 1; pointer-events: none;
  opacity: 0.5;
}
.hero-orb--indigo {
  width: 500px; height: 500px;
  top: -10%; right: -5%;
  background: rgba(79, 70, 229, 0.2);
  animation: orbFloat1 8s ease-in-out infinite;
}
.hero-orb--teal {
  width: 400px; height: 400px;
  bottom: -10%; left: -5%;
  background: rgba(13, 148, 136, 0.15);
  animation: orbFloat2 10s ease-in-out infinite;
}
.hero-orb--accent {
  width: 300px; height: 300px;
  top: 30%; left: 50%;
  transform: translateX(-50%);
  background: rgba(79, 70, 229, 0.1);
  animation: orbPulse 6s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 20px); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -25px); }
}
@keyframes orbPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
  50% { transform: translateX(-50%) scale(1.2); opacity: 0.3; }
}

/* ---- Hero entrance animations ---- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: 13px; font-weight: 700;
  padding: 6px 16px; border-radius: 50px;
  margin-bottom: 24px; letter-spacing: 0.04em;
  animation: fadeSlideUp 0.6s ease-out both;
  animation-delay: 0.2s;
}
.hero h1 {
  animation: fadeSlideUp 0.7s ease-out both;
  animation-delay: 0.4s;
}
.hero-subheadline {
  font-size: 18px; color: rgba(255,255,255,0.88);
  margin-bottom: 8px; line-height: 1.6;
  animation: fadeSlideUp 0.7s ease-out both;
  animation-delay: 0.6s;
}
.hero-detail {
  font-size: 15px; color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  animation: fadeSlideUp 0.7s ease-out both;
  animation-delay: 0.7s;
}
.hero-ctas {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  animation: fadeSlideUp 0.7s ease-out both;
  animation-delay: 0.85s;
}
.hero-trust {
  font-size: 13px; color: rgba(255,255,255,0.75);
  margin-top: 14px;
  animation: fadeSlideUp 0.7s ease-out both;
  animation-delay: 1s;
}
.hero .cta-button { color: #fff; }
.cta-button--teal { background: var(--teal); }
.cta-button--teal:hover { background: #0F766E; box-shadow: 0 4px 16px rgba(13,148,136,0.3); }
.hero .cta-button--teal {
  background: transparent; border: 2px solid rgba(45,212,191,0.5);
  color: #2DD4BF;
}
.hero .cta-button--teal:hover {
  background: rgba(45,212,191,0.1);
  border-color: #2DD4BF;
  box-shadow: 0 4px 16px rgba(45,212,191,0.2);
}

/* ---- Scroll indicator ---- */
.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  animation: fadeIn 1s ease-out 1.5s both;
}
.scroll-indicator svg {
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---- Reduced motion (full) ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-orb { animation: none; }
  .hero-badge, .hero h1, .hero-subheadline,
  .hero-detail, .hero-ctas, .hero-trust, .scroll-indicator { animation: none; opacity: 1; }
  .scroll-indicator svg { animation: none; }
  .card, .cta-button, .brand-item .brand-logo, .linkedin-btn { transition: none; }
  .card:hover { transform: none; }
  .cta-button:hover { transform: none; }
  .final-cta { animation: none; }
  .cta-orb--1, .cta-orb--2 { animation: none; }
}

/* ---- Section Base ---- */
.section {
  max-width: var(--max-width); margin: 0 auto;
  padding: 96px 28px;
}
.section h2 {
  font-size: 32px; font-weight: 700;
  text-align: center; margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-subtitle {
  text-align: center; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 56px; font-size: 17px;
}

/* ---- Services Cards ---- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card {
  background: var(--bg); border: 2px solid var(--surface-border);
  border-radius: var(--border-radius); padding: 28px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer;
}
.card:hover { border-color: var(--primary); box-shadow: 0 20px 40px rgba(79,70,229,0.12), 0 8px 16px rgba(79,70,229,0.04); transform: translateY(-4px); }
.card-inner { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.card-icon {
  flex-shrink: 0; width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--teal-light) 100%);
  border-radius: var(--border-radius); display: flex;
  align-items: center; justify-content: center;
}
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.card p { margin-bottom: 16px; color: var(--text-muted); }
.card ul { list-style: none; }
.card li {
  color: var(--text-muted); padding-left: 24px;
  position: relative; margin-bottom: 8px; font-size: 15px;
}
.card li::before {
  content: ''; position: absolute; left: 4px; top: 8px;
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--teal); opacity: 0.25; transform: rotate(45deg);
}

/* ---- Process — dark section ---- */
#process {
  position: relative;
  background: #0B0F1A; /* fallback when video is hidden (reduced motion / print) */
  max-width: 100%;
  padding: 0;
}
#process::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 26, 0.80);
  z-index: 0;
}
.process-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 28px;
}
/* Text color overrides for dark background */
#process h2 { color: #fff; text-align: center; }
#process .section-subtitle { color: rgba(255, 255, 255, 0.70); text-align: center; max-width: 560px; margin: 0 auto 56px; }
#process .step-content h3 { color: #fff; }
#process .step-content p { color: rgba(255, 255, 255, 0.65); }
#process .process-step { border-bottom-color: rgba(255, 255, 255, 0.12); }

.process-grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
  max-width: 640px; margin: 0 auto;
}
.process-step {
  display: flex; gap: 20px; padding: 28px 0;
  border-bottom: 1px solid var(--surface-border);
}
.process-step:last-child { border-bottom: none; }
.step-badge {
  flex-shrink: 0; width: 40px; height: 40px;
  background: var(--primary); color: #fff;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.step-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step-content p { color: var(--text-muted); font-size: 15px; }

/* ---- About — dark section ---- */
#about {
  position: relative;
  background: #0B0F1A; /* fallback when video is hidden (reduced motion / print) */
  max-width: 100%;
  padding: 0;
}
#about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 26, 0.80);
  z-index: 0;
}
.about-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 28px;
}
/* Text color overrides for dark background */
#about h2 { color: #fff; }
#about p { color: rgba(255, 255, 255, 0.70); }
#about li { color: rgba(255, 255, 255, 0.70); }
#about li strong { color: #fff; }
#about .about-photo img { border-color: rgba(255, 255, 255, 0.15); }
#about .logo-wall-label { color: rgba(255, 255, 255, 0.40); }
#about figcaption { color: rgba(255, 255, 255, 0.40); }
#about .brand-logo { filter: brightness(0) invert(1) opacity(0.5); }
#about .brand-item:hover .brand-logo { filter: brightness(0) invert(1) opacity(0.85); transform: scale(1.05); }

/* ---- About ---- */
.about-content {
  display: flex; flex-direction: column; gap: 48px;
  align-items: center; max-width: var(--max-width); margin: 0 auto;
}
.about-photo { flex-shrink: 0; text-align: center; }
.about-photo img {
  border-radius: var(--border-radius); width: 260px; height: 340px;
  object-fit: cover; object-position: center top;
  border: 3px solid var(--surface-border);
}
.credential-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px; justify-content: center; max-width: 260px;
}
.badge {
  background: var(--primary-light); color: var(--primary);
  font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 50px;
}
.badge--teal { background: var(--teal-light); color: var(--teal); }
.linkedin-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  background: #0A66C2; color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 8px 18px; border-radius: 50px;
  text-decoration: none; transition: background 0.2s;
}
.linkedin-btn:hover { background: #004182; }

.about-copy h2 { text-align: left; margin-bottom: 20px; }
.about-copy p { margin-bottom: 20px; color: var(--text-muted); }
.about-copy ul { list-style: none; }
.about-copy li {
  margin-bottom: 12px; padding-left: 24px;
  position: relative; color: var(--text-muted);
}
.about-copy li strong { color: var(--text); }
.about-copy li::before {
  content: ''; position: absolute; left: 4px; top: 8px;
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--primary); opacity: 0.2; transform: rotate(45deg);
}

/* ---- Logo Wall ---- */
.logo-wall {
  padding: 48px 0 0; text-align: center;
}
.logo-wall-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 32px;
}
.logo-wall-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px; max-width: 800px; margin: 0 auto;
}
.brand-item { display: flex; flex-direction: column; align-items: center; margin: 0; }
.brand-logo-wrap { display: flex; align-items: center; justify-content: center; height: 64px; margin-bottom: 8px; }
.brand-logo { height: 40px; width: auto; max-width: 130px; filter: grayscale(1) opacity(0.3); transition: all 0.2s; }
.brand-logo--lg { height: 64px; max-width: 130px; }
.brand-logo--wide { height: 40px; max-width: 180px; }
.brand-item:hover .brand-logo { filter: grayscale(0) opacity(0.7); transform: scale(1.05); }
.brand-item figcaption { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

/* ---- Final CTA ---- */
.final-cta {
  text-align: center; padding: 96px 28px;
  background: linear-gradient(-45deg, #1E1B4B, #312E81, #0F172A, #0B0F1A);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  position: relative;
  overflow: hidden;
}
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.cta-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35; z-index: 0; pointer-events: none;
}
.cta-orb--1 {
  width: 400px; height: 400px; background: #6366F1; top: -100px; left: -100px;
  animation: orbContinuous1 12s infinite alternate ease-in-out;
}
.cta-orb--2 {
  width: 300px; height: 300px; background: #14B8A6; bottom: -50px; right: -50px;
  animation: orbContinuous2 10s infinite alternate ease-in-out;
}
@keyframes orbContinuous1 {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.2) translate(40px, 40px); }
}
@keyframes orbContinuous2 {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.3) translate(-30px, -30px); }
}
.final-cta-content { position: relative; z-index: 1; }
.final-cta h3 {
  font-size: 32px; font-weight: 700;
  line-height: 1.25; margin-bottom: 32px;
  max-width: 650px; margin-left: auto; margin-right: auto;
  color: #fff; letter-spacing: -0.02em;
}
.final-cta .cta-button { font-size: 17px; padding: 16px 36px; }
.email-fallback { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,0.75); }
.email-fallback a { color: rgba(255,255,255,0.75); text-decoration: underline; }
.email-fallback a:hover { color: #fff; }

/* ---- Email Capture ---- */
.email-capture-section {
  background: var(--surface);
  padding: 96px 28px;
  border-top: 1px solid var(--surface-border);
}
.capture-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.capture-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 12px;
}
.capture-copy h2 {
  font-size: 32px; font-weight: 700; line-height: 1.2;
  letter-spacing: -0.02em; margin-bottom: 16px;
}
.capture-copy > p { color: var(--text-muted); font-size: 16px; line-height: 1.7; margin-bottom: 28px; }
.capture-reasons {
  list-style: none; display: flex; flex-direction: column; gap: 14px;
}
.capture-reasons li {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: 15px;
}
.capture-reason-icon {
  flex-shrink: 0; width: 28px; height: 28px;
  background: var(--teal-light); color: var(--teal);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
}
.capture-card {
  background: var(--bg); border: 2px solid var(--surface-border);
  border-radius: var(--border-radius); padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}
.capture-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 16px;
}
.capture-field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px;
}
.capture-row .capture-field { margin-bottom: 0; }
.capture-field label { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0.01em; }
.capture-field input,
.capture-field select,
.capture-field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--surface-border); border-radius: 8px;
  font-family: var(--font-family); font-size: 15px;
  color: var(--text); background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s; width: 100%;
}
.capture-field textarea { resize: vertical; }
.capture-field input:focus,
.capture-field select:focus,
.capture-field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.08);
}
.capture-field input::placeholder,
.capture-field textarea::placeholder { color: var(--text-muted); }
.capture-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.capture-btn {
  width: 100%; border: none; cursor: pointer;
  font-size: 16px; padding: 15px; margin-top: 6px;
}
.capture-fine-print { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 12px; }
.capture-success { text-align: center; padding: 16px 0; }
.capture-check {
  width: 56px; height: 56px;
  background: var(--teal-light); color: var(--teal);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-size: 22px; margin: 0 auto 20px;
}
.capture-success h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.capture-success p { color: var(--text-muted); }
@media (max-width: 900px) {
  .capture-inner { grid-template-columns: 1fr; gap: 40px; }
  .capture-copy { text-align: center; }
  .capture-reasons { align-items: flex-start; display: inline-flex; text-align: left; }
  .capture-copy { display: flex; flex-direction: column; align-items: center; }
}
@media (max-width: 560px) {
  .capture-row { grid-template-columns: 1fr; }
  .capture-card { padding: 28px 20px; }
  .email-capture-section { padding: 64px 28px; }
}

/* ---- Footer ---- */
.site-footer {
  padding: 48px 28px; text-align: center;
  border-top: 1px solid var(--surface-border);
}
.site-footer p { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---- Print ---- */
@media print {
  :root {
    --bg: #ffffff; --text: #1a1a1a; --text-muted: #4a4a4a;
    --surface: #f5f5f5; --surface-border: #cccccc; --primary: #4F46E5;
  }
  body { background: #fff; color: #1a1a1a; }
  #nav, .skip-link, .cta-button, .email-fallback, .final-cta,
  .hero-video, .hero-orb, .hero-overlay, .scroll-indicator { display: none !important; }
  .hero { min-height: auto; background: #fff; padding-top: 24px; }
  .hero h1 { color: #1a1a1a; animation: none; }
  .hero-badge, .hero-subheadline, .hero-detail, .hero-ctas, .hero-trust { animation: none; opacity: 1; }
  .hero-subheadline { color: #4a4a4a; }
  .hero-trust { color: #6a6a6a; }
  .section { padding: 24px 0; max-width: 100%; }
  .card { border: 1px solid #ccc; break-inside: avoid; }
  .about-photo img { width: 180px; height: 240px; }
  a { color: #1a1a1a; text-decoration: underline; }
  .site-footer { background: none; border-top: 1px solid #ccc; }
}

/* ---- Responsive — Mobile ---- */
@media (max-width: 767px) {
  .card-grid { grid-template-columns: 1fr; }
  .logo-wall-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 34px; }
}

/* ---- FAQ Accordion ---- */
.faq-list {
  max-width: 720px; margin: 0 auto 48px;
  display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  border: 2px solid var(--surface-border);
  border-radius: var(--border-radius);
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--primary); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  font-size: 17px; font-weight: 600; color: var(--text);
  cursor: pointer;
  list-style: none;
  gap: 16px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 22px; font-weight: 400; color: var(--primary);
  flex-shrink: 0; transition: transform 0.2s;
}
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-question:hover { color: var(--primary); }
.faq-question:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: var(--border-radius); }
.faq-answer { padding: 0 24px 20px; }
.faq-answer p { color: var(--text-muted); font-size: 16px; line-height: 1.7; }
.faq-cta {
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}
.faq-cta p { color: var(--text-muted); font-size: 16px; }

/* ---- Responsive — Tablet ---- */
@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .about-content { flex-direction: row; }
}

/* ---- AIRA Ribbon ---- */
#aira-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 101;
  background: var(--primary);
  color: #fff;
  text-align: center;
}
.ribbon-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.ribbon-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}
.ribbon-headline {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  text-align: center;
}
.ribbon-subline {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  text-align: center;
  line-height: 1.3;
}
.ribbon-headline--mobile { display: none; }
.ribbon-cta {
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.ribbon-cta:hover { background: #0F766E; transform: translateY(-1px); }
.ribbon-cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#aira-ribbon.ribbon-hidden { display: none; }
@media (max-width: 767px) {
  .ribbon-headline--desktop { display: none; }
  .ribbon-headline--mobile { display: block; }
  .ribbon-inner { flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px 16px; }
  .ribbon-cta { font-size: 11px; padding: 5px 12px; }
}
