/* =====================================================================
   Revolution Travel Group — advisor landing pages
   Brand-matched to revolutiontravel.ca: navy + orange + gray, system fonts.
   Tokens mirror the careers app's tailwind `revolution-*` palette.
   ===================================================================== */

:root {
  --white: #ffffff;
  --gray: #f2f2f2;            /* revolution-gray  — light section bg */
  --navy: #0a1f33;            /* revolution-navy  — darks & headings */
  --navy-2: #102a45;          /* slightly lifted navy for gradients  */
  --orange: #ff6600;          /* revolution-orange — primary accent  */
  --orange-dark: #e65500;     /* hover/active                        */
  --blue: #0077be;            /* revolution-blue  — secondary accent */
  --dark: #333333;            /* revolution-dark  — body text        */
  --muted: #5f6b78;
  --line: #e3e6ea;
  --radius: 8px;
  --radius-lg: 16px;
  --container: 1120px;
  --shadow: 0 10px 30px rgba(10, 31, 51, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 31, 51, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--orange); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0; color: var(--navy); }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }
.section { padding: 84px 0; }
.section--alt { background: var(--gray); }
.section--navy { background: var(--navy); color: #e8edf3; }
.section--navy .section__title { color: #fff; }
.section__title { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 18px; }
.section__lede { font-size: 1.2rem; color: var(--muted); max-width: 720px; margin: 0 0 36px; line-height: 1.55; }

.kicker {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  font-weight: 800; color: var(--orange); margin: 0 0 12px;
}
.prose p { font-size: 1.12rem; color: #2c333d; margin: 0 0 18px; }
.prose strong { color: var(--navy); }

/* ---- Accessibility ---- */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 12px 18px; border-radius: 0 0 var(--radius) 0; z-index: 100;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 13px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.75); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
.btn--ghost-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost-navy:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn--small { min-height: 40px; padding: 8px 18px; font-size: 0.92rem; margin-top: 10px; }

/* ---- Sticky top bar (header partial) ---- */
.sitebar {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: #fff;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.2s ease;
}
.sitebar.is-stuck { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
.sitebar__inner {
  max-width: var(--container); margin: 0 auto; padding: 10px 24px;
  min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.sitebar__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.sitebar__logo { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.sitebar__wordmark { font-weight: 800; font-size: 1rem; line-height: 1.15; color: #fff; letter-spacing: 0.01em; white-space: nowrap; }
.sitebar__right { display: flex; align-items: center; gap: 18px; }
.sitebar__who { display: flex; flex-direction: column; text-align: right; line-height: 1.2; }
.sitebar__who-name { font-weight: 700; font-size: 0.95rem; color: #fff; }
.sitebar__who-title { font-size: 0.8rem; color: #9fb0c0; }
.sitebar__cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px; border-radius: var(--radius);
  background: var(--orange); color: #fff; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; white-space: nowrap; transition: background 0.15s ease, transform 0.15s ease;
}
.sitebar__cta:hover { background: var(--orange-dark); transform: translateY(-1px); }

/* ---- 1. HERO ---- */
.hero {
  position: relative; color: #fff; isolation: isolate; overflow: hidden;
  background: var(--navy);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  /* poster frame shows here until the video plays (and for no-JS/reduced-motion) */
  background: url("/img/hero-poster.jpg") center / cover no-repeat, var(--navy);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 31, 51, 0.5), rgba(10, 31, 51, 0.78));
}
.hero__inner { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; padding: 64px 24px 92px; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.82rem;
  font-weight: 800; color: var(--orange); margin: 0 0 16px;
}
.hero__headline { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; color: #fff; max-width: 18ch; margin: 0 0 20px; }
.hero__subhead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 56ch; color: #e8edf3; margin: 0 0 32px; }
.hero__cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 40px; margin: 0; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.hero__stat { margin: 0; }
.hero__stat-value { font-size: 2.1rem; font-weight: 800; color: var(--orange); }
.hero__stat-label { margin: 4px 0 0; font-size: 0.95rem; color: #d7dee6; max-width: 22ch; }

/* ---- Steps (value) ---- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 820px; }
.step {
  display: flex; gap: 18px; align-items: flex-start; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px;
}
.step__num {
  flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--orange);
  color: #fff; font-weight: 800; display: grid; place-items: center;
}
.step__text { font-size: 1.08rem; }

/* ---- Story ---- */
.story { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; }
.story__media { position: relative; justify-self: center; }
.story__photo { width: 320px; height: 320px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.story__badge {
  position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff; font-weight: 700; padding: 9px 18px;
  border-radius: 999px; white-space: nowrap; box-shadow: var(--shadow);
}
.story__lead { font-size: 1.15rem; color: #2c333d; }
.story__facts { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 8px; }
.story__facts strong { color: var(--blue); }
.story__hobbies { color: #2c333d; }
.story__fun {
  background: var(--gray); border-left: 3px solid var(--orange);
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; font-style: italic;
}

/* ---- Cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 14px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.card--accent { background: var(--navy); color: #e8edf3; border-color: var(--navy); }
.card--accent .card__title { color: #fff; }
.card__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; }
.taglist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.taglist li { background: var(--gray); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.92rem; font-weight: 500; }

/* ---- Resume ---- */
.resume__stats { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 44px; }
.resume__stat { flex: 1 1 200px; background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 26px; text-align: center; }
.resume__stat-value { display: block; font-size: 2.6rem; font-weight: 800; color: var(--orange); }
.resume__stat-label { display: block; margin-top: 6px; font-size: 0.95rem; color: #d7dee6; }
.resume__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.resume__h { font-size: 1.05rem; color: var(--blue); margin-bottom: 14px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--orange); font-weight: 800; }

/* ---- Testimonials ---- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; margin: 0; box-shadow: var(--shadow); }
.quote__text { font-size: 1.08rem; font-style: italic; margin: 0 0 16px; color: #2c333d; }
.quote__by { font-weight: 700; color: var(--blue); font-style: normal; }

/* ---- CTA ---- */
.cta { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 84px 0; text-align: center; }
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta__title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: #fff; max-width: 18ch; }
.cta__sub { color: #d7dee6; font-size: 1.15rem; margin: 0; }
.cta__buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 8px 0; }
.cta__contact { margin: 8px 0 0; }
.cta__contact a { color: var(--orange); font-weight: 600; text-decoration: none; }
.cta__contact a:hover { text-decoration: underline; }

/* ---- Agent card ---- */
.agent-card { display: flex; align-items: center; gap: 16px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 10px 22px 10px 10px; }
.agent-card__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--orange); }
.cta .agent-card__photo { width: 88px; height: 88px; }
.agent-card__name { font-weight: 700; margin: 0; }
.agent-card__title { margin: 2px 0 0; font-size: 0.92rem; opacity: 0.85; }

/* ---- Tools (quick-start page links) ---- */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 14px; }
.tool {
  position: relative; display: block; text-decoration: none; color: var(--dark);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 26px; box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.tool:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.tool__title { font-size: 1.12rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; padding-right: 24px; }
.tool__blurb { margin: 0; color: var(--muted); font-size: 0.98rem; }
.tool__arrow { position: absolute; top: 22px; right: 24px; color: var(--orange); font-size: 1.3rem; font-weight: 800; }

/* ---- Microsite (problem-type) page ---- */
.subhero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.subhero__inner { max-width: var(--container); margin: 0 auto; padding: 24px 24px 64px; }
.subhero__back { display: inline-flex; align-items: center; gap: 6px; color: #cfd8e2; text-decoration: none; font-weight: 600; font-size: 0.95rem; margin-bottom: 28px; }
.subhero__back:hover { color: #fff; }
.subhero__eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; font-weight: 800; color: var(--orange); margin: 0 0 14px; }
.subhero__title { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; color: #fff; max-width: 20ch; margin: 0 0 18px; }
.subhero__sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #e8edf3; max-width: 60ch; margin: 0 0 28px; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 14px; }
.point { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.point__title { font-size: 1.12rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.point__title::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--orange); margin-bottom: 14px; }
.point__text { margin: 0; color: #2c333d; }
.otherpages { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.otherpages a { background: var(--gray); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 0.92rem; }
.otherpages a:hover { border-color: var(--orange); color: var(--orange); }

/* ---- Footer ---- */
.footer { background: var(--navy); color: #cfd8e2; }
.footer__inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding-top: 56px; padding-bottom: 44px; align-items: start;
}
.footer__col { min-width: 0; }
.footer__logo { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 16px; }
.footer__name { font-weight: 800; font-size: 1.12rem; color: #fff; margin: 0 0 8px; }
.footer__tag { margin: 0 0 16px; color: #9fb0c0; max-width: 30ch; line-height: 1.5; }
.footer__lic { font-size: 0.82rem; color: #8aa0b3; text-transform: uppercase; letter-spacing: 0.06em; margin: 0; }
.footer__h { color: #fff; font-size: 0.82rem; margin: 0 0 18px; text-transform: uppercase; letter-spacing: 0.1em; }

.footer__advisor { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--orange); flex: none; }
.footer__advisor-name { font-weight: 700; color: #fff; margin: 0; }
.footer__advisor-title { font-size: 0.88rem; color: #9fb0c0; margin: 2px 0 0; }

.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 0.95rem; }
.footer__list a { color: #cfd8e2; text-decoration: none; }
.footer__list a:hover { color: var(--orange); }
.footer__label { display: inline-block; min-width: 52px; color: #8aa0b3; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }

.footer__address { font-style: normal; color: #cfd8e2; line-height: 1.6; margin: 0 0 14px; }
.footer__hours { color: #cfd8e2; margin: 0 0 20px; font-size: 0.95rem; }

.footer__socials { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.footer__social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: #cfd8e2;
  transition: background 0.15s ease, color 0.15s ease;
}
.footer__social:hover { background: var(--orange); color: #fff; }
.footer__social svg { width: 20px; height: 20px; }

.footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer__legal-inner { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding-top: 22px; padding-bottom: 30px; font-size: 0.88rem; color: #8aa0b3; }
.footer__legal-inner p { margin: 0; }
.footer__legal-inner a { color: #b9c6d3; text-decoration: none; }
.footer__legal-inner a:hover { color: var(--orange); }

/* ---- 404 ---- */
.notfound { min-height: 100vh; margin: 0; display: grid; place-items: center; text-align: center; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 24px; }
.notfound__inner { max-width: 540px; }
.notfound__logo { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 20px; }
.notfound__brand { text-transform: uppercase; letter-spacing: 0.16em; font-weight: 800; color: var(--orange); margin: 0 0 14px; }
.notfound__title { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; color: #fff; margin-bottom: 16px; }
.notfound__text { font-size: 1.1rem; color: #d7dee6; margin-bottom: 30px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 60px 0; }
  .hero__inner { padding: 40px 24px 68px; }
  .hero__stats { gap: 26px; }
  .hero__stat-value { font-size: 1.7rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  /* Collapse the advisor name/title in the bar so logo + CTA stay roomy. */
  .sitebar__who { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .btn { width: 100%; }
  .hero__cta-row .btn, .cta__buttons .btn { width: 100%; }
  .sitebar__inner { padding: 8px 18px; min-height: 60px; gap: 12px; }
  .sitebar__cta { width: auto; }            /* keep CTA inline, not full-width */
  .footer__inner { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; }
  .footer__legal-inner { justify-content: flex-start; gap: 6px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .btn:hover, .tool:hover, .sitebar__cta:hover { transform: none; }
  .sitebar { transition: none; }
}
