/* ============================================================
   Cornerstone Business Advisory — Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700;9..144,900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --maroon: #6B0F2B;
  --maroon-dark: #4E0A1F;
  --maroon-soft: rgba(107, 15, 43, 0.08);
  --gold: #FAB62B;
  --gold-soft: rgba(250, 182, 43, 0.18);
  --cream: #EFEAE4;
  --cream-deep: #E4DCD1;
  --paper: #FFFFFF;
  --ink: #241014;
  --ink-soft: #5B4A4F;
  --line: #DCD0C3;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

:focus-visible {
  outline: 2.5px solid var(--maroon);
  outline-offset: 3px;
  border-radius: 3px;
}

/* -------------------- Typography -------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
}

h1, h2, h3 { font-family: var(--font-display); color: var(--maroon); margin: 0; }
h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.12; }
h3 { font-size: 20px; font-weight: 600; }

p { margin: 0; }
.lede { font-size: 18px; line-height: 1.65; color: var(--ink-soft); }

/* -------------------- Logo -------------------- */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { height: 36px; width: auto; display: block; }
.logo-mark .m1 { fill: #8B1A3A; }
.logo-mark .m2 { fill: var(--maroon); }
.logo-mark .m3 { fill: #4A0818; }
.logo-divider { width: 1.5px; height: 40px; background: var(--maroon); }
.logo-text .name { font-family: var(--font-display); font-weight: 900; font-size: 19px; color: var(--maroon); line-height: 1; }
.logo-text .sub { font-family: var(--font-body); font-size: 9px; letter-spacing: 0.16em; color: var(--maroon); font-weight: 700; margin-top: 4px; }

/* -------------------- Nav -------------------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(239, 234, 228, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink);
  padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { color: var(--maroon); border-color: var(--gold); }
.nav-cta {
  background: var(--maroon); color: #fff !important; padding: 10px 20px;
  border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none;
  white-space: nowrap; transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--maroon-dark); }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; font-family: var(--font-body);
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-dark); }
.btn-secondary { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn-secondary:hover { background: var(--maroon-soft); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { filter: brightness(0.95); }

/* -------------------- Hero -------------------- */
.hero { padding: 72px 0 60px; overflow: hidden; }
.hero .container {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lede { margin-bottom: 32px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.slideshow {
  position: relative;
  aspect-ratio: 1 / 1.02;
  border-radius: 18px;
  overflow: visible;
}
.slide {
  position: absolute; inset: 0; margin: 0;
  border-radius: 18px; overflow: hidden;
  background: var(--maroon-dark);
  box-shadow: 0 0 0 1px var(--line), 0 22px 44px rgba(107,15,43,0.16);
  opacity: 0; transition: opacity 1s ease;
}
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide img.pos-speaking { object-position: 50% 18%; }
.slide img.pos-workshop { object-position: 36% 50%; }
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 20px 52px;
  background: linear-gradient(180deg, transparent, rgba(36,16,20,0.78));
  color: #fff; font-size: 13.5px; font-weight: 500;
}
.slide-controls {
  position: absolute; left: 20px; bottom: 18px; z-index: 3;
  display: flex; align-items: center; gap: 12px;
}
.slide-dots { display: flex; gap: 8px; }
.slide-dot {
  width: 10px; height: 10px; padding: 0; border-radius: 50%;
  border: 1.5px solid #fff; background: transparent; cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.slide-dot[aria-current="true"] { background: var(--gold); border-color: var(--gold); width: 26px; border-radius: 999px; }
.slide-pause {
  width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.18); color: #fff; font-size: 10px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.slide-pause:hover { background: rgba(255,255,255,0.32); }
.slideshow .callout { z-index: 4; }

.callout {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 10px 24px rgba(107,15,43,0.08);
  font-family: var(--font-mono);
}
.callout .num { font-size: 17px; font-weight: 600; color: var(--maroon); line-height: 1; }
.callout .label { font-size: 9.5px; color: var(--ink-soft); font-family: var(--font-body); font-weight: 500; margin-top: 3px; letter-spacing: 0.02em; }
.callout-1 { top: 18px; right: -14px; }
.callout-2 { top: 46%; left: -18px; }

/* -------------------- Stat strip -------------------- */
.stat-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.stat-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { padding: 26px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat-item:first-child { border-left: none; }
.stat-item .n { font-family: var(--font-mono); font-size: 26px; font-weight: 600; color: var(--maroon); }
.stat-item .l { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

/* -------------------- Section shell -------------------- */
.section { padding: 88px 0; }
.section-head { max-width: 620px; margin-bottom: 46px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 14px; }

/* -------------------- Services -------------------- */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.service-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 26px; display: flex; flex-direction: column; gap: 16px;
}
.service-pill {
  display: inline-block; align-self: flex-start; background: var(--gold); color: var(--ink);
  font-weight: 700; font-size: 14px; padding: 7px 16px; border-radius: 999px;
}
.service-card ul { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; }
.service-card li { margin-bottom: 2px; }

/* -------------------- Process -------------------- */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.process-step { position: relative; padding-top: 8px; }
.process-step .step-index { font-family: var(--font-mono); color: var(--gold); font-weight: 600; font-size: 13px; margin-bottom: 10px; display: block; }
.process-step h3 { margin-bottom: 10px; }
.process-step p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; }
.process-line { height: 1px; background: var(--line); margin: 0 0 26px; }

/* -------------------- Assessment banner -------------------- */
.assessment-banner {
  background: var(--maroon); color: #fff; border-radius: 20px; padding: 48px 44px;
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.assessment-banner::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(250,182,43,0.25), transparent 70%);
}
.assessment-banner .eyebrow { color: var(--gold); }
.assessment-banner h2 { color: #fff; margin-bottom: 12px; }
.assessment-banner p { color: rgba(255,255,255,0.82); font-size: 15px; line-height: 1.6; }
.assessment-visual { display: flex; justify-content: center; align-items: center; }
.gauge {
  width: 170px; height: 170px; border-radius: 50%;
  background: conic-gradient(var(--gold) 0deg 306deg, rgba(255,255,255,0.15) 306deg 360deg);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.gauge::after {
  content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%; background: var(--maroon-dark);
}
.gauge-inner { position: relative; z-index: 1; text-align: center; font-family: var(--font-mono); }
.gauge-inner .pct { font-size: 30px; font-weight: 600; color: #fff; }
.gauge-inner .cap { font-size: 9px; color: rgba(255,255,255,0.7); letter-spacing: 0.08em; }

/* -------------------- About -------------------- */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 52px; align-items: center; }
.avatar-photo {
  width: 220px; height: 220px; border-radius: 50%;
  object-fit: cover; object-position: center 15%;
  margin: 0 auto;
  border: 5px solid var(--paper);
  box-shadow: 0 0 0 3px var(--gold), 0 18px 32px rgba(107,15,43,0.18);
}
.about-copy p { color: var(--ink-soft); font-size: 15px; line-height: 1.75; margin-bottom: 16px; }
.about-copy .role { font-size: 14px; font-weight: 600; color: var(--maroon); margin-bottom: 10px; }
.credential-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.credential-list li { font-size: 13.5px; color: var(--ink-soft); padding-left: 20px; position: relative; }
.credential-list li::before { content: "—"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* -------------------- Contact -------------------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { margin-bottom: 10px; }
.contact-info p { color: var(--ink-soft); font-size: 15px; margin-bottom: 26px; line-height: 1.65; }
.contact-detail { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; font-size: 14.5px; }
.contact-detail .k { font-family: var(--font-mono); font-size: 11px; color: var(--maroon); text-transform: uppercase; letter-spacing: 0.08em; min-width: 78px; }

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--maroon); margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-family: var(--font-body); font-size: 14.5px; background: var(--paper); color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--maroon); outline: none; }
#formStatus { margin-top: 14px; font-size: 13.5px; font-weight: 600; }
#formStatus.success { color: #3F7A4E; }
#formStatus.error { color: #A3372F; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--maroon-dark); color: rgba(255,255,255,0.75); padding: 46px 0 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; margin-bottom: 30px; }
.site-footer .logo-text .name, .site-footer .logo-text .sub { color: #fff; }
.site-footer .logo-mark .m1 { fill: rgba(255,255,255,0.6); }
.site-footer .logo-mark .m2 { fill: rgba(255,255,255,0.85); }
.site-footer .logo-mark .m3 { fill: #fff; }
.site-footer .logo-divider { background: rgba(255,255,255,0.5); }
.footer-links { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,0.75); font-size: 13.5px; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* -------------------- Responsive -------------------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 12px; }
  .slideshow { aspect-ratio: 4 / 3.4; }
  .slideshow .callout { display: none; }
  .slide img.pos-speaking { object-position: 50% 14%; }
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3) { border-left: none; }
  .services-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .assessment-banner { grid-template-columns: 1fr; text-align: left; padding: 36px 26px; }
  .assessment-visual { order: -1; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .credential-list { text-align: left; }
  .contact-wrap { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 400px) {
  .nav-cta { padding: 9px 14px; font-size: 12.5px; }
  .logo-text .name { font-size: 16px; }
  .logo-mark { height: 30px; }
  .logo-divider { height: 34px; }
  .logo { gap: 9px; }
  .avatar-photo { width: 170px; height: 170px; }
}
