/* ==========================================================
   Red Spanner – site styles
   Change the brand colours here and they update everywhere.
   ========================================================== */
:root {
  --red: #c62828;          /* main brand red */
  --red-dark: #8e1b1b;     /* hover / darker accents */
  --red-soft: #fdecea;     /* pale red backgrounds */
  --ink: #1f2328;          /* main text */
  --ink-soft: #57606a;     /* secondary text */
  --line: #e4e7eb;         /* borders */
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --footer: #1b1e22;
  --radius: 14px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- 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 .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand img { height: 38px; width: auto; }
.brand .wordmark { white-space: nowrap; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--ink); }
.brand .wordmark span { color: var(--red); }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem;
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--red); }
.nav a.btn { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 700; padding: 12px 22px; border-radius: 999px;
  border: 2px solid var(--red); transition: background .15s, transform .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 90% -10%, var(--red-soft), transparent 60%),
    var(--bg);
  padding: 72px 0 56px;
}
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 14px;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40ch; }
.portrait {
  position: relative; border-radius: 50%; aspect-ratio: 1; width: 100%; max-width: 360px; margin-left: auto;
  background: linear-gradient(160deg, var(--red) 0%, var(--red-dark) 100%);
  overflow: hidden; box-shadow: 0 30px 60px -25px rgba(142,27,27,.45);
}
.portrait img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 92%; }
.portrait .initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.9); font-size: 5rem; font-weight: 800;
}

/* ---------- Stats strip ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 28px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--red); line-height: 1.1; }
.stat span { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(31,35,40,.35); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); margin-bottom: 18px;
}
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.card .tags { margin-top: 14px; font-size: .82rem; font-weight: 600; color: var(--ink); }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--red) 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}
.panel {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}

/* ---------- Call-to-action band ---------- */
.cta-band { background: var(--ink); color: #fff; border-radius: 20px; padding: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0 0 .3em; color: #fff; }
.cta-band p { margin: 0; color: #c9d1d9; }
.cta-band .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.cta-band .btn.ghost:hover { border-color: #fff; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 56px 0 24px; background: radial-gradient(900px 300px at 85% -20%, var(--red-soft), transparent 60%); }
.page-head p { color: var(--ink-soft); font-size: 1.1rem; max-width: 60ch; }
.notice {
  display: flex; gap: 12px; align-items: flex-start; background: var(--red-soft);
  border-left: 4px solid var(--red); padding: 16px 18px; border-radius: 10px; margin: 0 0 28px;
}
.calendar-frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: 0 20px 50px -30px rgba(31,35,40,.35);
}
.calendar-frame iframe { display: block; width: 100%; height: 680px; border: 0; }
.cal-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 20px; color: var(--ink-soft); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #c9d1d9; padding: 56px 0 28px; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffb4ab; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list a { display: inline-flex; gap: 10px; align-items: center; }
.contact-list svg { width: 18px; height: 18px; color: #ff8a80; flex: none; }
.footer-brand .wordmark { color: #fff; font-weight: 800; font-size: 1.3rem; }
.footer-brand .wordmark span { color: #ff8a80; }
.footer-bottom { border-top: 1px solid #30363d; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; color: #8b949e; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .hero { padding: 48px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 240px; margin: 0 auto; order: -1; }
  .stats .wrap { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .nav a:not(.btn) { padding: 8px 8px; font-size: .92rem; }
  .nav a.btn { display: none; }
  section { padding: 56px 0; }
  .cta-band { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .calendar-frame iframe { height: 560px; }
}
@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr; }
  .brand img { height: 30px; }
}
