/* ==========================================================
   chrisbargery.com — styles
   Colours live in :root below; change them there.
   ========================================================== */

@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/albert-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/albert-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #18203D;          /* main text */
  --muted: #545C78;        /* secondary text */
  --accent: #202C58;       /* navy: buttons, active tab, price strip */
  --accent-hover: #121A38;
  --eyebrow: #8A5410;      /* small uppercase labels */
  --panel: #F4F6FA;        /* soft grey-blue panels */
  --ring: #E6EAF2;         /* circle behind the photo */
  --line: #E3E7EF;         /* card borders */
  --field: #D5DAE6;        /* form field borders */
  --on-accent-muted: #D7DBEA;
  --quote: #C9D0E2;
  --radius-lg: 28px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
  z-index: 10; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 28px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 17px; line-height: 1.2;
  text-decoration: none; border: 0; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--field); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--panel); color: var(--ink); }

/* ---------- Section headings ---------- */
.eyebrow {
  font-weight: 700; font-size: 14px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--eyebrow);
}
.section-title { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; }
.section-head {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; margin-bottom: 40px;
}
.section-head p.muted { max-width: 560px; }

/* ---------- Header ---------- */
.site-header .wrap {
  padding-top: 24px; padding-bottom: 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { font-weight: 800; font-size: 22px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-weight: 600; font-size: 16px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 10px 0; }
.site-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.site-nav .btn { min-height: 44px; padding: 10px 22px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  max-width: 900px; margin: 0 auto; padding: 64px 24px 72px;
  display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center;
}
.portrait { position: relative; width: 272px; height: 272px; border-radius: 50%; background: var(--ring); padding: 12px; }
.portrait img {
  width: 248px; height: 248px; border-radius: 50%; object-fit: cover;
  border: 5px solid #fff;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -0.03em; }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.credentials {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.credentials li {
  background: var(--panel); font-weight: 600; font-size: 15px;
  padding: 8px 16px; border-radius: 999px;
}

/* ---------- About ---------- */
.about { padding-bottom: 96px; padding-top: 24px; }
.about-card {
  background: var(--panel); border-radius: 32px; padding: clamp(28px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 24px 64px;
}
.about-card .side { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; }
.about-card .body { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.arrow-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; font-weight: 700;
}

/* ---------- Lessons / tabs ---------- */
.lessons { padding-bottom: 104px; }
.lessons-stack { display: flex; flex-direction: column; gap: 40px; }
.tabs { display: flex; flex-direction: column; gap: 20px; }
.tablist {
  align-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  background: var(--panel); padding: 6px; border-radius: 32px;
}
.tab {
  font: inherit; font-weight: 700; font-size: 16px;
  padding: 12px 22px; min-height: 48px; border-radius: 999px; border: 0;
  background: transparent; color: var(--ink); cursor: pointer;
}
.tab:hover { background: #fff; }
.tab[aria-selected="true"] { background: var(--accent); color: #fff; }

.tabpanel {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 32px 56px;
}
.js .tabpanel[hidden] { display: none; }
.tabpanel .intro { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.tabpanel h3 { font-size: 30px; line-height: 1.15; }
.tabpanel .ideal { align-self: flex-start; background: var(--panel); border-radius: 14px; padding: 12px 18px; font-size: 16px; }
.tabpanel .points { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.points-label { font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: 0 0 auto; margin-top: 3px; color: var(--accent); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.feature {
  background: var(--panel); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 16px;
}
.feature .icon {
  width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.feature h3 { font-size: 26px; letter-spacing: -0.01em; }
.feature ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }

/* Stacked, full-width panels (teaching approach, flexibility) */
.feature-stack { display: flex; flex-direction: column; gap: 20px; }
.feature-wide {
  background: var(--panel); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 48px);
  display: flex; flex-wrap: wrap; gap: 20px 56px;
}
.feature-wide .side { flex: 1 1 300px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.feature-wide .body { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.feature-wide .icon {
  width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.feature-wide h3 { font-size: 28px; line-height: 1.15; }
.feature-wide .side .muted { font-size: 15px; font-weight: 600; margin-top: 4px; }
.word-tags { list-style: none; margin: -6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.word-tags li {
  background: #fff; color: var(--accent); font-weight: 700; font-size: 15px;
  padding: 6px 14px; border-radius: 999px;
}
.video-embed {
  position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #0E1326;
  margin-bottom: 8px;
}
.video-embed video, .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.price-strip {
  background: var(--accent); color: #fff; border-radius: var(--radius-lg);
  padding: 36px clamp(24px, 4vw, 44px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
}
.price-strip .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.price-strip .from, .price-strip .note { font-size: 18px; color: var(--on-accent-muted); }
.price-strip .from { font-weight: 600; }
.price-strip .amount { font-weight: 800; font-size: 48px; line-height: 1; letter-spacing: -0.03em; }
.price-strip .amount small { font-size: 22px; font-weight: 700; letter-spacing: 0; }

/* ---------- Testimonials ---------- */
.reviews { background: var(--panel); padding: 104px 0; }
.wall { columns: 3 300px; column-gap: 20px; }
.review {
  break-inside: avoid; margin: 0 0 20px; background: #fff; border-radius: 22px; padding: 26px;
  display: flex; flex-direction: column; gap: 16px;
}
.review .mark { color: var(--quote); }
.stars { display: inline-flex; gap: 2px; font-size: 19px; line-height: 1; letter-spacing: 0; }
.star { color: #D5DAE6; }
.star.on { color: #B7791F; }   /* gold; dark enough to stay visible on white */
.rating-summary { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--muted); font-size: 16px; }
.rating-summary[hidden] { display: none; }
.stars-lg { font-size: 22px; }

/* Platform stats row above the testimonials wall */
.stats {
  list-style: none; margin: 0 0 40px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px;
}
.stats li {
  background: #fff; border-radius: 22px; padding: 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.stats strong { font-size: 38px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--accent); }
.stats li > span:last-child { font-size: 15px; line-height: 1.4; color: var(--muted); }
.stat-head { display: flex; align-items: center; gap: 12px; }
.more-reviews { text-align: center; margin-top: 12px; color: var(--muted); font-size: 16px; }
.more-reviews a { font-weight: 700; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.55; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review .initial {
  position: relative; overflow: hidden;
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; background: var(--panel);
  font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.review .initial img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.review .initial.has-photo { color: transparent; }
.review .who { display: flex; flex-direction: column; line-height: 1.3; }
.review .name { font-weight: 700; font-size: 16px; }
.review .meta { font-size: 14px; color: var(--muted); }
.wall-status { text-align: center; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding: 104px 0; }
.contact .wrap { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.contact .side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.contact-form {
  flex: 999 1 520px; min-width: 0; background: var(--panel); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 16px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; padding: 12px 16px; min-height: 48px;
  border: 1.5px solid var(--field); border-radius: 14px; background: #fff; color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(32, 44, 88, 0.15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { align-self: flex-start; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: wait; }
.form-status { font-weight: 600; font-size: 16px; }
.form-status.ok { color: #1F6B3A; }
.form-status.err { color: #A3261B; }
.form-note { font-size: 14px; color: var(--muted); }

/* ---------- Links ---------- */
.links { padding-bottom: 104px; text-align: center; }
.links .wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.pill-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill-links a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  background: #fff; color: var(--ink); text-decoration: none; font-weight: 600;
  border: 1.5px solid var(--line); border-radius: 999px;
}
.pill-links a:hover { border-color: var(--ink); color: var(--ink); }
.pill-links .desc { color: var(--muted); font-weight: 400; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); }
.site-footer a { font-weight: 600; }

/* ==========================================================
   Bio & CV page (about/index.html)
   ========================================================== */
.cv-hero {
  padding-top: 48px; padding-bottom: 56px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px;
}
.cv-photo {
  width: 160px; height: 160px; border-radius: 50%; object-fit: cover;
  border: 5px solid #fff; box-shadow: 0 0 0 10px var(--ring);
  margin: 10px;
}
.cv-hero-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; }
.cv-hero h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.cv-hero .lead { font-size: 20px; color: var(--muted); }
.cv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

.cv-section { padding-bottom: 72px; }
.cv-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.about-stack { display: flex; flex-direction: column; gap: 16px; }
.about-stack h3 { font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
/* line the two cards' text columns up */
.about-stack .about-card { padding: clamp(28px, 5vw, 48px); gap: 20px 56px; }
.about-stack .about-card .side { flex: 1 1 300px; }

/* "What I do" — teaching first, then the other strands */
.roles { display: flex; flex-direction: column; gap: 16px; }
.role {
  background: var(--panel); border-radius: 24px; padding: clamp(24px, 4vw, 32px);
  display: flex; flex-direction: column; gap: 8px;
}
.role h3 { font-size: 22px; letter-spacing: -0.01em; line-height: 1.25; }
.role .years { font-weight: 700; font-size: 15px; color: var(--eyebrow); }
.role p:not(.years) { color: var(--muted); }
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }

.role-main {
  background: var(--accent); color: #fff;
  display: flex; flex-direction: row; flex-wrap: wrap; gap: 24px 56px; padding: clamp(28px, 5vw, 44px);
}
.role-main .years { color: var(--ring); }
.role-main h3 { font-size: 28px; }
.role-main p:not(.years) { color: var(--on-accent-muted); }
.role-main .intro { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* Where I've taught: small route list inside the teaching card */
.route { flex: 1 1 260px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.route li { position: relative; padding: 0 0 16px 26px; border-left: 2px solid rgba(255,255,255,0.25); line-height: 1.35; }
.route li:last-child { padding-bottom: 0; border-left-color: transparent; }
.route li::before {
  content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff;
}
.route li:last-child::before { background: #fff; }
.route .place { display: block; font-weight: 700; color: #fff; }
.route .when { font-size: 15px; color: var(--on-accent-muted); }

/* Qualifications: compact rows */
.quals { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.quals li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 24px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.quals .q-year { flex: 0 0 56px; font-weight: 700; color: var(--muted); font-size: 15px; }
.quals .q-name { flex: 1 1 360px; font-weight: 700; }
.quals .q-detail { display: block; font-weight: 400; color: var(--muted); font-size: 16px; }
.quals .q-grade { font-size: 15px; font-weight: 600; color: var(--eyebrow); }

@media (max-width: 640px) {
  .cv-hero { justify-content: center; text-align: center; }
  .cv-hero-text { align-items: center; }
  .cv-actions { justify-content: center; }
  .quals .q-year { flex-basis: 100%; }
}

/* ---------- Print: the bio page prints as a clean one-to-two page summary ---------- */
@media print {
  @page { margin: 16mm; }
  body { font-size: 11pt; color: #000; }
  .site-header, .skip-link, .cv-actions, .cv-cta, .site-footer { display: none !important; }
  .cv-hero { padding: 0 0 12pt; }
  .cv-photo { width: 90px; height: 90px; box-shadow: none; border: 0; margin: 0; }
  .cv-hero h1 { font-size: 26pt; }
  .about-card, .feature-wide, .role { background: none !important; padding: 0 !important; border-radius: 0; }
  .role-main, .role-main * { color: #000 !important; }
  .route li::before { border-color: #000; }
  .route li { border-left-color: #999; }
  .cv-section { padding-bottom: 16pt; }
  .section-title { font-size: 17pt; }
  .role, .quals li { break-inside: avoid; }
  .cv-head, .section-title { break-after: avoid; page-break-after: avoid; }
  a { color: inherit; text-decoration: none; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .site-header .wrap { justify-content: center; }
  .site-nav { justify-content: center; gap: 0 20px; }
  .hero { padding-top: 32px; }
  .portrait { width: 232px; height: 232px; padding: 10px; }
  .portrait img { width: 212px; height: 212px; }
  .tab { padding: 10px 16px; font-size: 15px; }
}
