/* ==========================================================================
   Optimum French — site styles
   Brand: Canadian red + warm gold, set in Poppins / Nunito Sans / Anton.
   ========================================================================== */

:root {
  --red: #c8102e;
  --red-dark: #9e0c24;
  --red-deep: #3a0a12;
  --gold: #ffc824;
  --gold-dark: #e0a800;
  --mint: #4bd1a0;
  --ink: #16181d;
  --ink-soft: #4a4f5a;
  --line: #e7e3dc;
  --cream: #fbf8f3;
  --white: #ffffff;

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --font-display: "Anton", Impact, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(22, 24, 29, 0.28);
  --shadow-sm: 0 6px 18px -8px rgba(22, 24, 29, 0.2);
  --wrap: 1180px;
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 12px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 0.9em 1.6em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(255, 200, 36, 0.9); }
.btn-gold:hover { background: #ffd455; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-head); font-weight: 600; color: var(--red);
  text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform 0.2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 0.9rem;
}
.eyebrow.on-dark { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-solid,
.site-header.is-open { background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: #fff; }
.brand img { width: 32px; height: auto; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)); }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; line-height: 1; }
.brand-text small { display: block; font-weight: 500; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.8; margin-top: 4px; }
.is-solid .brand, .is-open .brand, .page-light .brand { color: var(--ink); }
.lang-toggle button[aria-pressed="true"] { color: var(--ink) !important; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  font-family: var(--font-head); font-weight: 500; font-size: 0.93rem;
  color: #fff; text-decoration: none; padding: 0.5em 0.85em; border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav a:hover { background: rgba(255, 255, 255, 0.14); }
.nav a[aria-current="page"] { color: var(--gold); }
.is-solid .nav a, .page-light .nav a { color: var(--ink); }
.is-solid .nav a:hover, .page-light .nav a:hover { background: rgba(22, 24, 29, 0.06); }
.is-solid .nav a[aria-current="page"], .page-light .nav a[aria-current="page"] { color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.lang-toggle {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.35);
}
.is-solid .lang-toggle, .is-open .lang-toggle, .page-light .lang-toggle { background: #f1eee8; border-color: var(--line); }
.lang-toggle button {
  font: 600 0.78rem var(--font-head); letter-spacing: 0.06em;
  border: 0; background: none; color: #fff; padding: 0.45em 0.8em; border-radius: 999px; cursor: pointer;
}
.is-solid .lang-toggle button, .is-open .lang-toggle button, .page-light .lang-toggle button { color: var(--ink-soft); }
.lang-toggle button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }


.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, 0.18); cursor: pointer; position: relative;
}
.is-solid .menu-btn, .is-open .menu-btn, .page-light .menu-btn { background: #f1eee8; }
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px;
  background: #fff; transition: transform 0.25s ease, opacity 0.2s ease;
}
.is-solid .menu-btn span, .is-solid .menu-btn::before, .is-solid .menu-btn::after,
.is-open .menu-btn span, .is-open .menu-btn::before, .is-open .menu-btn::after,
.page-light .menu-btn span, .page-light .menu-btn::before, .page-light .menu-btn::after { background: var(--ink); }
.menu-btn::before { top: 15px; }
.menu-btn span { top: 21px; }
.menu-btn::after { top: 27px; }
.is-open .menu-btn::before { transform: translateY(6px) rotate(45deg); }
.is-open .menu-btn span { opacity: 0; }
.is-open .menu-btn::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 860px);
  display: flex; align-items: flex-end; color: #fff; overflow: hidden;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: slow-zoom 18s ease-out forwards; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 10, 14, 0.55) 0%, rgba(10, 10, 14, 0.15) 35%, rgba(10, 10, 14, 0.75) 100%),
    linear-gradient(90deg, rgba(58, 10, 18, 0.65) 0%, rgba(58, 10, 18, 0) 65%);
}
@keyframes slow-zoom { to { transform: scale(1.12); } }

.hero-content { max-width: 760px; }
.hero h1 { margin-bottom: 0.3em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-lead { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 300; max-width: 560px; margin-bottom: 2rem; opacity: 0.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Inner-page hero */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  padding: calc(var(--header-h) + 5rem) 0 4.5rem;
}
.page-hero .hero-bg img { animation: none; transform: none; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(58, 10, 18, 0.88) 0%, rgba(158, 12, 36, 0.6) 55%, rgba(22, 24, 29, 0.35) 100%);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 820px; }
.page-hero p { max-width: 640px; font-size: 1.15rem; opacity: 0.92; margin: 0; }
/* Inner-page hero without a photo */
.page-hero.plain { background: radial-gradient(120% 140% at 0% 0%, var(--red) 0%, var(--red-dark) 45%, var(--red-deep) 100%); }
.page-hero.plain::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/maple-pattern.png") repeat; background-size: 110px; opacity: 0.07; filter: brightness(10);
}
.page-hero.plain::after { display: none; }
.page-hero .wrap { position: relative; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-cream { background: var(--cream); }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* Service cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.6rem 1.8rem; text-decoration: none; color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: #fdecef; color: var(--red); margin-bottom: 1.3rem;
}
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; flex: 1; }
.card .tags { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.tag {
  font: 400 1.05rem var(--font-display); letter-spacing: 0.04em;
  padding: 0.15em 0.7em; border-radius: 8px; background: var(--gold); color: var(--ink);
}

/* Feature rows */
.feature {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.feature + .feature { margin-top: clamp(4rem, 8vw, 6.5rem); }
.feature.reverse .feature-media { order: 2; }
.feature-media { position: relative; }
.feature-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature-media::before {
  content: ""; position: absolute; z-index: -1; inset: auto -18px -18px auto;
  width: 55%; height: 60%; border-radius: var(--radius);
  background: url("../img/maple-pattern.png") repeat; background-size: 90px; opacity: 0.22;
}
.feature.reverse .feature-media::before { inset: auto auto -18px -18px; }
.feature-body p { color: var(--ink-soft); }
.feature-body h3 { margin-top: 1.4rem; margin-bottom: 0.4rem; }
.feature-body .btn, .feature-body .link-arrow { margin-top: 0.6rem; }

.checklist { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: 0.6rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--mint) 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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 62% no-repeat;
}

/* Who we are */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.about-card {
  background: #fff; border-radius: var(--radius); padding: 2.2rem 1.8rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; border-top: 4px solid var(--red);
}
.about-card:nth-child(2) { border-top-color: var(--gold); }
.about-card:nth-child(3) { border-top-color: var(--mint); }
.about-grid.two { grid-template-columns: 1fr 1fr; }
.about-card p { color: var(--ink-soft); flex: 1; }

/* Where band */
.band {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, var(--red) 0%, var(--red-dark) 45%, var(--red-deep) 100%);
}
.band::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/maple-pattern.png") repeat; background-size: 120px; opacity: 0.06;
  filter: brightness(10);
}
.band .wrap { position: relative; }
.band h2 { max-width: 640px; }
.band h2 em { font-style: normal; color: var(--gold); }
.where-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.where {
  border-radius: var(--radius); padding: 1.8rem 1.4rem;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.where:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-4px); }
.where svg { width: 34px; height: 34px; color: var(--gold); margin-bottom: 1rem; }
.where h3 { margin: 0; font-size: 1.15rem; }

/* Personalized */
.approach {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  max-width: 980px; margin-inline: auto;
}
.approach img { width: clamp(110px, 14vw, 170px); filter: drop-shadow(0 18px 28px rgba(200, 16, 46, 0.3)); }
.approach h2 { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--red); text-transform: uppercase; letter-spacing: 0.12em; }
.approach blockquote {
  margin: 0; font-family: var(--font-head); font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.4;
}
.approach blockquote strong { color: var(--red); font-weight: 600; }
.approach p { color: var(--ink-soft); margin-top: 1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.8rem; }
.contact-list li {
  display: flex; gap: 1rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.95rem 1.1rem;
}
.contact-list .ci {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: #fdecef; color: var(--red);
}
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.3; }
.contact-list a { font-weight: 700; text-decoration: none; word-break: break-all; }
.contact-list a:hover { color: var(--red); }

.form {
  background: #fff; border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow);
  display: grid; gap: 1rem;
}
.form h3 { margin-bottom: 0.2rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: 0.35rem; font: 600 0.85rem var(--font-head); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0.8em 1em; background: #fdfcfa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.12);
}
.form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #1a8a5f; }
.form-status.err { color: var(--red); }
.hp { position: absolute; left: -9999px; }
.interests { border: 0; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.interests legend { font: 600 0.85rem var(--font-head); margin-bottom: 0.5rem; padding: 0; }
.form label.check { display: flex; align-items: center; gap: 0.7rem; font: 400 0.98rem var(--font-body); cursor: pointer; }
.form label.check input { width: 1.15rem; height: 1.15rem; padding: 0; accent-color: var(--red); flex: none; }
.test-links { display: flex; gap: 0.5rem; margin-bottom: 1.4rem; }
.test-links .tag { text-decoration: none; transition: transform 0.2s ease; }
.test-links .tag:hover { transform: translateY(-2px); }

/* Training page */
.test-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.test-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.test-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.test-card .cover { position: relative; height: 200px; }
.test-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.test-card .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(58, 10, 18, 0.1), rgba(58, 10, 18, 0.7)); }
.test-card .cover .title {
  position: absolute; z-index: 1; left: 1.6rem; bottom: 1.2rem; color: #fff;
  font: 400 clamp(2.2rem, 4vw, 3rem) var(--font-display); letter-spacing: 0.02em; line-height: 1;
}
.test-card .cover .title span { color: var(--gold); }
.test-card .body { padding: 1.8rem 1.6rem 2rem; display: flex; flex-direction: column; flex: 1; }
.test-card .body p { color: var(--ink-soft); flex: 1; }
/* Prose */
.prose { max-width: 760px; }
.prose p { color: var(--ink-soft); font-size: 1.1rem; }
.prose p:first-of-type::first-letter {
  float: left; font: 400 4.2rem/0.85 var(--font-display); color: var(--red); margin: 0.1em 0.12em 0 0;
}

/* ---------- Footer ---------- */
.site-footer { background: #0f1014; color: #c9ccd3; padding: 3.5rem 0 2rem; font-size: 0.95rem; }
.site-footer ul { grid-template-columns: repeat(2, auto); column-gap: 2rem; justify-content: start; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer a { text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 3rem; padding-top: 1.6rem; font-size: 0.85rem; color: #8b8f99;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .where-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: #fff; padding: 1rem 1.25rem 1.5rem; box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.3);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .is-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { color: var(--ink) !important; font-size: 1.05rem; padding: 0.8em 1em; border-radius: 12px; }
  .nav a[aria-current="page"] { color: var(--red) !important; background: #fdecef; }
  .header-actions { margin-left: auto; }

  .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
  .about-grid, .about-grid.two { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .approach { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wrap { width: min(100% - 2rem, var(--wrap)); }
  .cards, .where-grid { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  .hero { padding-bottom: 3.5rem; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .feature-media::before { display: none; }
}
