/* ==========================================================
   Fitzgerald360: light, professional; crimson, white & blue
   ========================================================== */
:root {
  --crimson: #B3122E;
  --crimson-dark: #8E0E24;
  --crimson-soft: #FBEDEF;
  --navy: #0F2747;
  --blue: #1F4F8F;
  --blue-soft: #EDF3FB;
  --white: #FFFFFF;
  --tint: #F7F9FC;
  --ink: #18233A;
  --muted: #5B667A;
  --line: #E3E8F0;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 39, 71, .04), 0 8px 24px rgba(15, 39, 71, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--white);
  line-height: 1.65; font-size: 16.5px; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--crimson); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(31, 79, 143, .45); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 200; background: var(--white); padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 8px; font: 600 1rem/1.2 var(--font);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn-primary { background: var(--crimson); color: var(--white); }
.btn-primary:hover { background: var(--crimson-dark); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.link-btn:hover { color: var(--crimson); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--crimson) 0 50%, var(--blue) 50% 100%);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-name { font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; color: var(--navy); }
.brand-name span { color: var(--crimson); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.site-nav a:not(.btn):hover { color: var(--crimson); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero {
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px);
  background:
    radial-gradient(700px 400px at 90% 10%, var(--blue-soft), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, var(--crimson-soft), transparent 70%),
    var(--white);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--crimson); margin-bottom: 14px;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.welcome-back {
  margin: 24px 0 0; padding: 12px 16px; border-left: 3px solid var(--blue);
  background: var(--white); border-radius: 0 8px 8px 0; box-shadow: var(--shadow);
  font-size: .95rem; max-width: 520px;
}
.hero-visual { position: relative; max-width: 400px; width: 100%; justify-self: center; }
.rings circle, .rings path { fill: none; stroke-width: 1.5; }
.ring-outer { stroke: var(--line); }
.ring-mid { stroke: #D5DDEA; stroke-dasharray: 4 6; }
.ring-inner { stroke: var(--line); fill: var(--white) !important; }
.arc-crimson { stroke: var(--crimson) !important; stroke-width: 4 !important; stroke-linecap: round; }
.arc-blue { stroke: var(--blue) !important; stroke-width: 4 !important; stroke-linecap: round; }
.ring-label { font: 700 40px var(--font); fill: var(--navy); letter-spacing: -1px; }
.node {
  position: absolute; transform: translate(-50%, -50%); background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 999px;
  padding: 6px 14px; font-size: .85rem; font-weight: 600; color: var(--navy); white-space: nowrap;
}
.n1 { left: 50%; top: 7.5%; } .n2 { left: 92.5%; top: 50%; }
.n3 { left: 50%; top: 92.5%; } .n4 { left: 7.5%; top: 50%; }

/* Proof points */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-grid > div { padding: 26px 24px; border-right: 1px solid var(--line); }
.proof-grid > div:last-child { border-right: 0; }
.proof strong { display: block; color: var(--navy); font-size: 1.1rem; }
.proof span { color: var(--muted); font-size: .95rem; }

/* Sections */
.section { padding: clamp(64px, 8vw, 100px) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 680px; margin: 0 0 44px; }
.section-sub, .prose p, .prose-lead { color: var(--muted); font-size: 1.06rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: #C9D3E3; box-shadow: var(--shadow); }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--blue-soft); margin-bottom: 18px;
}
.card:nth-child(even) .card-icon { background: var(--crimson-soft); }
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(even) .card-icon svg { stroke: var(--crimson); }
.card p { color: var(--muted); }
.card-link { margin-top: auto; font-weight: 600; text-decoration: none; font-size: .95rem; }
.card-link::after { content: " \2192"; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-weight: 700; font-size: .95rem; margin-bottom: 14px;
}
.step p { color: var(--muted); margin: 0; }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-email { font-weight: 600; font-size: 1.05rem; }
.contact-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #D3DAE5; border-radius: 8px;
  font: inherit; color: var(--ink); background: var(--white); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,79,143,.15);
}
.form-fine { font-size: .84rem; color: var(--muted); margin: 12px 0 0; }
.form-note { margin: 8px 0 0; font-size: .92rem; min-height: 1.4em; }
.form-note.ok { color: var(--blue); }
.form-note.error { color: var(--crimson); }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); color: var(--muted); font-size: .93rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding: 40px 0 20px; }
.footer-brand p { margin: 6px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-start; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--crimson); }
.footer-copy { padding: 16px 0 32px; border-top: 1px solid var(--line); font-size: .85rem; }

/* Legal / content pages */
.page-head { padding: 56px 0 32px; background: var(--tint); border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); margin: 0; }
.legal { padding: 48px 0 80px; }
.legal .container { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5em; }
.legal p, .legal li { color: #3A4559; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: .35em 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--navy); background: var(--tint); }
.callout { background: var(--blue-soft); border-left: 3px solid var(--blue); padding: 14px 18px; border-radius: 0 8px 8px 0; }

/* Cookie consent */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  max-width: 720px; margin-inline: auto; background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px;
  box-shadow: 0 12px 40px rgba(15,39,71,.18);
}
.consent h2 { font-size: 1.05rem; margin: 0 0 6px; }
.consent p { font-size: .93rem; color: var(--muted); margin: 0 0 14px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-actions .btn { padding: 10px 18px; font-size: .93rem; }
.consent-prefs { border-top: 1px solid var(--line); margin: 4px 0 16px; }
.consent-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.consent-row strong { display: block; color: var(--navy); font-size: .95rem; }
.consent-row span { font-size: .87rem; color: var(--muted); }
.switch { position: relative; flex: 0 0 auto; width: 44px; height: 24px; margin-top: 2px; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; background: #CBD3DF; border-radius: 999px; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--blue); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:disabled + .track { background: #8FA6C8; }
.switch input:focus-visible + .track { outline: 3px solid rgba(31,79,143,.45); outline-offset: 2px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .about, .contact { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 300px; }
  .steps { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 71px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .site-nav.open { max-height: 360px; box-shadow: var(--shadow); }
  .site-nav a { padding: 14px 16px; width: 100%; text-align: center; }
  .site-nav a.btn { width: auto; margin: 8px 0 18px; }
}
@media (max-width: 640px) {
  .cards, .proof-grid, .field-row { grid-template-columns: 1fr; }
  .proof-grid > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 4px; }
  .proof-grid > div:last-child { border-bottom: 0; }
  .node { font-size: .74rem; padding: 4px 10px; }
  .footer-inner { flex-direction: column; }
  .consent { left: 8px; right: 8px; bottom: 8px; padding: 18px; }
  .consent-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
