/* finswim.world - same palette and fonts as the previous Odoo site */
:root {
  --burgundy: #8B1E3F;
  --burgundy-dark: #6d1631;
  --navy: #23395B;
  --blush: #F5F0F2;
  --white: #FFFFFF;
  --ink: #2E141C;
  --muted: #5d4a50;
  --line: #e4d8dc;
  --radius: 14px;
  --max: 1120px;
  --font-head: "Darker Grotesque", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--burgundy); }
a:hover { color: var(--burgundy-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  color: var(--navy);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--blush { background: var(--blush); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: .4em;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 48px; height: 48px; }
.brand span { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--navy); letter-spacing: .02em; }
.brand span b { color: var(--burgundy); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--burgundy); }
.nav .btn { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.8rem; color: var(--navy); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--burgundy);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--burgundy-dark); border-color: var(--burgundy-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--burgundy); }
.btn--ghost:hover { background: var(--burgundy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--light:hover { background: var(--blush); border-color: var(--blush); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  background: var(--navy) url("../img/hero-pool.jpg") center/cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(35,57,91,.92) 0%, rgba(35,57,91,.7) 50%, rgba(139,30,63,.35) 100%); }
.hero .container { position: relative; padding-top: 120px; padding-bottom: 120px; }
.hero h1 { color: var(--white); max-width: 12em; }
.hero p { font-size: 1.3rem; max-width: 34em; }
.page-hero { background: var(--navy); color: var(--white); }
.page-hero .container { padding-top: 70px; padding-bottom: 60px; }
.page-hero h1 { color: var(--white); }
.page-hero p { font-size: 1.25rem; max-width: 40em; opacity: .92; }
.page-hero .eyebrow { color: #f2b8c9; }

/* Cards & grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .tag {
  align-self: flex-start;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: var(--blush); color: var(--burgundy);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}
.card--accent { border-top: 5px solid var(--burgundy); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: .55em; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--burgundy); font-weight: 700; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: step; background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--burgundy); color: var(--white); font-weight: 700; margin-bottom: 10px; }
.steps strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--navy); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats strong { display: block; font-family: var(--font-head); font-size: 3rem; line-height: 1; color: var(--white); }
.stats span { opacity: .85; }

.notice {
  background: var(--blush); border-left: 5px solid var(--burgundy);
  padding: 18px 22px; border-radius: 8px; margin: 24px 0;
}
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.partners .card { padding: 20px; }
.partners .card strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--navy); }

.cta { text-align: center; }
.cta p { max-width: 40em; margin-left: auto; margin-right: auto; }

/* Article (Learn) */
.article { max-width: 760px; }
.article h2 { margin-top: 1.6em; }
.toc { background: var(--blush); border-radius: var(--radius); padding: 20px 26px; }
.toc ul { margin: 0; padding-left: 1.1em; }

/* Bootcamp history */
.timeline { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.timeline li {
  display: grid; grid-template-columns: 110px 260px 1fr; gap: 24px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.timeline .year { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--burgundy); text-align: center; }
.timeline img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.timeline .noimg {
  aspect-ratio: 4 / 3; border-radius: 10px; background: var(--blush);
  display: grid; place-items: center; color: var(--muted); font-size: .9rem; text-align: center; padding: 10px;
}
.timeline h3 { margin-bottom: .2em; }
.timeline p { color: var(--muted); margin-bottom: .5em; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.meta span {
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--blush); color: var(--navy); padding: 3px 10px; border-radius: 999px;
}
.meta span.project { background: var(--navy); color: var(--white); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 32px; }
.facts div { background: var(--blush); border-radius: var(--radius); padding: 16px 18px; }
.facts strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--navy); }
.facts span { color: var(--muted); font-size: .95rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.gallery figure { margin: 0; }
.gallery img, .gallery video { width: 100%; border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ink); }
.gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.programme { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .98rem; }
.programme th, .programme td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.programme th { background: var(--navy); color: var(--white); font-weight: 600; }
.programme td:first-child { white-space: nowrap; font-weight: 700; color: var(--navy); }

/* Footer */
.site-footer { background: var(--ink); color: #e9dfe2; padding: 56px 0 30px; font-size: .95rem; }
.site-footer a { color: #f2b8c9; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: var(--white); font-size: 1.35rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .4em; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 18px; font-size: .85rem; opacity: .8; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .steps, .stats, .facts, .gallery { grid-template-columns: repeat(2, 1fr); }
  .timeline li { grid-template-columns: 80px 1fr; }
  .timeline li > a, .timeline li > .noimg { display: none; }
  .split, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .section { padding: 56px 0; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
  .nav .btn { width: auto; padding: 10px 24px; margin-top: 8px; }
  .grid-2, .grid-3, .steps, .stats, .facts, .gallery { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 10px; }
  .timeline .year { text-align: left; font-size: 2rem; }
  .programme td:first-child { white-space: normal; }
  .hero .container { padding-top: 80px; padding-bottom: 80px; }
}
