/* SpiralOut Consulting — site styles */
:root {
  --ink: #0f1b2d;
  --body: #3a4659;
  --muted: #667085;
  --navy: #0e2a4f;
  --blue: #1f5fa8;
  --blue-dark: #174b86;
  --sky: #eaf2fb;
  --gold: #e9a93a;
  --line: #e3e8ef;
  --alt: #f6f8fb;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);
  --max: 1160px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { width: 210px; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav a.top, .nav button.top {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 15px/1 var(--font); color: var(--ink); text-decoration: none;
  padding: 12px 14px; border-radius: 10px; background: none; border: 0; cursor: pointer;
}
.nav a.top:hover, .nav button.top:hover, .nav li:focus-within > .top { background: var(--alt); }
.nav .chev { width: 12px; height: 12px; transition: transform .2s; }
.dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 300px;
  list-style: none; margin: 0; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s ease;
}
.dropdown::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.nav li:hover > .dropdown, .nav li:focus-within > .dropdown, .nav li.open > .dropdown {
  opacity: 1; visibility: visible; transform: none;
}
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.dropdown a:hover { background: var(--sky); color: var(--blue-dark); }
.dropdown .overview { font-weight: 700; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 16px/1 var(--font); text-decoration: none;
  padding: 16px 26px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, transform .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #f3b84f; color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.btn-sm { padding: 12px 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background: var(--navy) url("/images/hero.jpg") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(10, 30, 58, .94) 0%, rgba(14, 42, 79, .82) 55%, rgba(31, 95, 168, .55) 100%);
}
.hero > .container { position: relative; padding-top: 110px; padding-bottom: 110px; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .lead { color: rgba(255, 255, 255, .88); }
.hero.page-hero > .container { padding-top: 84px; padding-bottom: 84px; }
.hero.page-hero h1 { max-width: 22ch; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.lead { font-size: 1.2rem; max-width: 60ch; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--alt); }
.section.dark { background: var(--navy); color: rgba(255, 255, 255, .85); }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section-head { margin-bottom: 48px; }
.section-head p { font-size: 1.1rem; max-width: 64ch; }
.center.section-head p { margin-left: auto; margin-right: auto; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.prose > :last-child { margin-bottom: 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4em; }
.card p:last-of-type { margin-bottom: 0; }
.card .more { margin-top: auto; padding-top: 20px; font-weight: 700; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
a.card { text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-3px); border-color: #c9d6e6; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--sky); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 20px;
}
.icon svg { width: 24px; height: 24px; }

/* Service detail blocks */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service:last-child { padding-bottom: 0; }
.service .kicker { font-size: 14px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.service h3 { font-size: 1.6rem; }
.benefits {
  background: var(--alt); border-radius: var(--radius); padding: 28px 32px; align-self: start;
}
.section.alt .benefits { background: var(--white); border: 1px solid var(--line); }
.benefits h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--ink); }
.checks li:last-child { margin-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section.dark .checks li { color: var(--white); }

/* Testimonials */
.quotes { columns: 2; column-gap: 24px; }
.quote {
  break-inside: avoid; margin: 0 0 24px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.quote blockquote { margin: 0 0 16px; color: var(--ink); font-size: 1.02rem; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 56px; line-height: .6; color: var(--gold); font-family: Georgia, serif; margin-bottom: 8px; }
.quote figcaption { font-weight: 700; color: var(--blue); }

/* Credentials */
.creds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cred { text-align: center; padding: 28px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.cred img { width: 112px; height: 112px; object-fit: contain; margin: 0 auto 16px; }
.cred p { margin: 0; font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.4; }
.press { margin: 56px auto 0; max-width: 640px; opacity: .8; }

/* Values row */
.values .card { box-shadow: none; background: transparent; border: 0; padding: 0; }
.values .num { font-size: 14px; font-weight: 800; color: var(--gold); letter-spacing: .1em; margin-bottom: 10px; }

/* CTA + form */
.cta { background: linear-gradient(135deg, var(--navy), #163d70); color: rgba(255, 255, 255, .88); }
.cta h2 { color: var(--white); }
.cta .split { align-items: center; }
.form-card { background: var(--white); border-radius: var(--radius); padding: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); min-height: 520px; }
.cta-band { text-align: center; }
.cta-band p { max-width: 60ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 28px; }

/* Legal / plain pages */
.legal h2 { font-size: 1.25rem; margin-top: 2.2em; }
.legal p, .legal li { font-size: 16px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1628; color: rgba(255, 255, 255, .7); padding: 64px 0 32px; font-size: 15px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-logo { width: 190px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split, .service { grid-template-columns: 1fr; gap: 32px; }
  .grid-3, .grid-4, .creds { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quotes { columns: 1; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; }
  .nav a.top, .nav button.top { width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 16px; }
  .dropdown { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 8px; min-width: 0; }
  .nav li:hover > .dropdown, .nav li:focus-within > .dropdown { display: none; }
  .nav li.open > .dropdown { display: block; }
  .nav li.open .chev { transform: rotate(180deg); }
  .nav .btn { margin-top: 12px; width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero > .container { padding-top: 72px; padding-bottom: 72px; }
  .hero.page-hero > .container { padding-top: 56px; padding-bottom: 56px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cred { padding: 20px 12px; }
  .cred img { width: 84px; height: 84px; }
  .card, .quote { padding: 24px; }
  .benefits { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { width: 180px; }
  .btn-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
