:root {
  --blue: #183B5B;
  --red: #B8433C;
  --green: #5D7C5B;
  --beige: #F5F1EB;
  --gray: #F7F8FA;
  --brown: #8A5A3B;
  --ink: #18232E;
  --muted: #66717B;
  --line: rgba(24, 59, 91, 0.12);
  --white: #FFFFFF;
  --shadow: 0 22px 60px rgba(24, 35, 46, 0.12);
  --soft-shadow: 0 14px 36px rgba(24, 35, 46, 0.08);
  --radius: 24px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--beige);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section {
  padding: 78px 0;
}

.section-anchor {
  position: relative;
  top: -126px;
  display: block;
  width: 1px;
  height: 1px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(24, 59, 91, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.navbar {
  min-height: 126px;
  width: min(100% - 28px, var(--container));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 440px;
  height: 122px;
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
  box-shadow: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #334351;
  font-size: 0.94rem;
  font-weight: 750;
}

.nav-menu a:not(.btn):hover {
  color: var(--red);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--blue);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  line-height: 1.25;
  min-height: 62px;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.015em;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, filter 0.3s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.22) 42%, transparent 58%);
  opacity: 0;
  transform: translateX(-35%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
}

.btn:hover::after {
  opacity: 1;
  transform: translateX(35%);
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, #B8433C 0%, #A93B35 100%);
  box-shadow: 0 18px 38px rgba(184, 67, 60, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #A83A34 0%, #95322E 100%);
  box-shadow: 0 24px 48px rgba(184, 67, 60, 0.36);
}

.btn-secondary {
  color: var(--white);
  background: linear-gradient(135deg, #183B5B 0%, #123049 100%);
  box-shadow: 0 18px 38px rgba(24, 59, 91, 0.24);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #14324D 0%, #102941 100%);
  box-shadow: 0 24px 48px rgba(24, 59, 91, 0.32);
}

.btn-small {
  min-width: 178px;
  min-height: 58px;
  padding: 0 28px;
  font-size: 17px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 126px);
  padding: 86px 0 92px;
  background:
    linear-gradient(90deg, rgba(245, 241, 235, 0.98) 0%, rgba(245, 241, 235, 0.92) 34%, rgba(245, 241, 235, 0.34) 62%, rgba(245, 241, 235, 0.05) 100%),
    url("hero-canada-bg.png") center right / cover no-repeat;
}

.path-line {
  position: absolute;
  pointer-events: none;
  border: 2px solid rgba(93, 124, 91, 0.26);
  border-left: 0;
  border-bottom: 0;
  border-radius: 50%;
}

.path-line-one {
  width: 620px;
  height: 230px;
  left: -190px;
  bottom: 70px;
  transform: rotate(-12deg);
}

.hero-grid {
  display: block;
}

.split-grid,
.contact-grid,
.teachers-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 58px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: clamp(2.45rem, 5.1vw, 4.85rem);
  line-height: 0.98;
}

h1 span {
  color: var(--red);
}

h2 {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 640px;
  color: #43515E;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 24px;
}

.route-section {
  overflow: hidden;
  background: #FFFFFF;
}

.route-section .section-heading {
  max-width: 860px;
}

.route-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 54px 0 64px;
}

.route-steps::before {
  content: "";
  position: absolute;
  top: 62px;
  left: 12%;
  right: 12%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(24, 59, 91, 0.16), rgba(184, 67, 60, 0.32), rgba(93, 124, 91, 0.36));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s ease;
}

.route-steps.is-visible::before {
  transform: scaleX(1);
}

.route-step {
  position: relative;
  z-index: 1;
  min-height: 330px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--soft-shadow);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.route-steps.is-visible .route-step {
  opacity: 1;
  transform: translateY(0);
}

.route-steps.is-visible .route-step:nth-child(2) {
  transition-delay: 0.35s;
}

.route-steps.is-visible .route-step:nth-child(3) {
  transition-delay: 0.7s;
}

.route-step:hover {
  box-shadow: var(--shadow);
}

.route-step-goal {
  border-color: rgba(93, 124, 91, 0.28);
  background:
    linear-gradient(180deg, rgba(93, 124, 91, 0.12), rgba(255, 255, 255, 0) 58%),
    var(--white);
}

.route-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(24, 59, 91, 0.08);
}

.route-icon.red {
  color: var(--red);
  background: rgba(184, 67, 60, 0.1);
}

.route-icon.green {
  color: var(--green);
  background: rgba(93, 124, 91, 0.14);
}

.route-icon svg,
.comparison-card svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-number {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.route-step h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.route-step p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.step-badge,
.goal-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 22px;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step-badge {
  color: var(--white);
  background: var(--red);
}

.goal-badge {
  color: var(--white);
  background: var(--green);
}

.route-test-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 48px;
  margin-top: 16px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(24, 59, 91, 0.98), rgba(24, 59, 91, 0.9));
  box-shadow: 0 14px 28px rgba(24, 59, 91, 0.18);
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.route-test-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-test-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(24, 59, 91, 0.24);
}

.route-test-button:disabled {
  cursor: not-allowed;
  opacity: 0.88;
}

.route-comparison {
  margin-top: 10px;
}

.route-comparison > h3 {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.comparison-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}

.comparison-muted {
  background: linear-gradient(180deg, var(--gray), var(--beige));
}

.comparison-francolatino {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(184, 67, 60, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(24, 59, 91, 0.05), rgba(93, 124, 91, 0.1)),
    var(--white);
  border-color: rgba(24, 59, 91, 0.22);
  box-shadow: var(--shadow);
}

.comparison-label {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(24, 59, 91, 0.08);
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-francolatino .comparison-label {
  color: var(--white);
  background: var(--blue);
}

.comparison-card h4 {
  margin: 0 0 8px;
  color: var(--blue);
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-size: 1.55rem;
}

.comparison-card > p {
  color: var(--muted);
}

.comparison-card ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.comparison-card li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #354652;
  line-height: 1.65;
}

.comparison-muted li::before {
  content: "×";
  color: var(--muted);
  font-weight: 800;
}

.comparison-francolatino li::before {
  content: "✓";
  color: var(--green);
  font-weight: 950;
}

.comparison-card > strong {
  display: block;
  margin-top: 20px;
  color: var(--blue);
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

.comparison-francolatino li::before {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin-top: 1px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.comparison-francolatino > strong {
  padding: 18px;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(24, 59, 91, 0.96), rgba(93, 124, 91, 0.94));
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.route-cta {
  max-width: 680px;
  margin: 44px auto 0;
  text-align: center;
}

.route-cta .btn {
  margin-bottom: 16px;
}

.route-cta > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading p,
.teachers-grid p,
.contact-copy p,
.final-panel p {
  color: var(--muted);
  font-size: 1.04rem;
}

.contact-section {
  background: var(--gray);
}

.teachers-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(24, 59, 91, 0.94) 0%, rgba(24, 59, 91, 0.82) 42%, rgba(24, 59, 91, 0.36) 100%),
    url("profesores-bg.png") center right / cover no-repeat;
}

.teachers-section .section-heading h2,
.teachers-section .section-heading p,
.teachers-section .eyebrow {
  color: var(--white);
}

.teachers-section .section-heading p {
  color: rgba(255, 255, 255, 0.84);
}

.contact-form {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.final-panel .eyebrow {
  color: #F0D6C2;
}

.teacher-card {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.exam-prep-section {
  background: var(--beige);
}

.exam-prep-section .section-heading {
  max-width: 860px;
}

.nclc-panel {
  margin-bottom: 34px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(245, 241, 235, 0.82), rgba(255, 255, 255, 0.94)),
    var(--white);
  box-shadow: var(--soft-shadow);
}

.nclc-copy {
  max-width: 850px;
  margin: 0 auto 28px;
  text-align: center;
}

.nclc-copy h3 {
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
}

.nclc-copy p,
.nclc-disclaimer {
  color: var(--muted);
}

.crs-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
}

.crs-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--gray);
  text-align: center;
}

.crs-card span,
.crs-card p,
.crs-card em {
  display: block;
}

.crs-card span {
  color: var(--blue);
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crs-card strong {
  display: block;
  margin: 12px 0 4px;
  color: var(--blue);
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.92;
}

.crs-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.crs-card-boost {
  background: linear-gradient(135deg, rgba(93, 124, 91, 0.14), rgba(24, 59, 91, 0.08));
}

.crs-card-boost em {
  width: fit-content;
  margin: 16px auto 0;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green);
  font-style: normal;
  font-weight: 800;
  font-size: 0.86rem;
}

.crs-arrow {
  display: grid;
  place-items: center;
  color: var(--red);
}

.crs-arrow svg,
.exam-cta svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nclc-disclaimer {
  max-width: 930px;
  margin: 22px auto 0;
  font-size: 0.9rem;
  line-height: 1.75;
  text-align: center;
}

.exam-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.exam-card {
  position: relative;
  display: grid;
  min-height: 430px;
  padding: 34px;
  border: 0;
  border-radius: 24px;
  color: var(--white);
  text-align: left;
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exam-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.16) 48%, transparent 62%);
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.exam-card:hover,
.exam-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  outline: none;
}

.exam-card:hover::after,
.exam-card:focus-visible::after {
  opacity: 1;
  transform: translateX(32%);
}

.exam-card-tcf {
  background:
    linear-gradient(145deg, rgba(184, 67, 60, 0.98), rgba(184, 67, 60, 0.88)),
    var(--red);
}

.exam-card-tef {
  background:
    linear-gradient(145deg, rgba(24, 59, 91, 0.98), rgba(24, 59, 91, 0.9)),
    var(--blue);
}

.exam-card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 42px;
}

.exam-card-topline span,
.exam-card-topline em {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.exam-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 18px;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-size: clamp(5.5rem, 12vw, 8.75rem);
  line-height: 0.78;
  letter-spacing: 0;
}

.exam-subtitle,
.exam-text,
.exam-cta {
  position: relative;
  z-index: 1;
  display: block;
}

.exam-subtitle {
  margin-bottom: 10px;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.exam-text {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.7;
}

.exam-cta {
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-weight: 700;
}

.exam-cta svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.exam-card:hover .exam-cta svg,
.exam-card:focus-visible .exam-cta svg {
  transform: translateX(4px);
}

.teachers-grid {
  align-items: start;
}

.teacher-cards {
  display: grid;
  gap: 14px;
}

.teacher-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  line-height: 1.55;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(24, 35, 46, 0.16);
  backdrop-filter: blur(10px);
}

.teacher-card span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  margin-top: 1px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 10px;
  padding: 28px;
}

.contact-form label {
  color: var(--blue);
  font-weight: 850;
}

.optional-label {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(24, 59, 91, 0.14);
  border-radius: 15px;
  padding: 14px 16px;
  color: var(--ink);
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(93, 124, 91, 0.12);
}

.form-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.final-cta {
  background: var(--gray);
}

.final-panel {
  position: relative;
  overflow: hidden;
  padding: 62px;
  border-radius: 34px;
  color: var(--white);
  background:
    radial-gradient(circle at 92% 12%, rgba(245, 241, 235, 0.2), transparent 28%),
    linear-gradient(135deg, var(--blue), #214B42);
  text-align: center;
  box-shadow: var(--shadow);
}

.final-panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 120px;
  right: -80px;
  bottom: -30px;
  border: 2px solid rgba(245, 241, 235, 0.18);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.final-panel h2 {
  color: var(--white);
}

.final-panel p {
  max-width: 640px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.82);
}

.footer {
  padding: 36px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #122E46;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.footer strong {
  display: block;
  color: var(--white);
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
}

.footer p {
  margin-bottom: 5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a:hover {
  color: var(--white);
}

.floating-whatsapp,
.back-to-top {
  position: fixed;
  right: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  font-weight: 950;
  cursor: pointer;
}

.floating-whatsapp {
  bottom: 22px;
  background: #2E7D55;
  box-shadow: 0 16px 34px rgba(46, 125, 85, 0.34);
}

.floating-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  stroke: none;
}

.back-to-top {
  bottom: 88px;
  background: var(--blue);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 35, 46, 0.58);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.exam-modal {
  position: relative;
  width: min(100%, 760px);
  max-height: min(86vh, 820px);
  overflow: auto;
  padding: 38px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 32px 80px rgba(24, 35, 46, 0.28);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.exam-modal.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.exam-modal h2 {
  margin-right: 34px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.exam-modal > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  background: var(--gray);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
  transform: rotate(8deg) scale(1.04);
  background: var(--beige);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-check-list {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 26px 0 30px;
  list-style: none;
}

.modal-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #354652;
  line-height: 1.7;
}

.modal-check-list li::before {
  content: "✓";
  flex: 0 0 auto;
  color: var(--red);
  font-weight: 950;
}

.modal-cta {
  width: 100%;
}

.modal-check-list li {
  gap: 14px;
}

.modal-check-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin-top: 2px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-menu a {
    width: auto;
    min-height: 52px;
    padding: 0 20px;
  }

  .hero-grid,
  .split-grid,
  .contact-grid,
  .teachers-grid,
  .exam-card-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .crs-comparison {
    grid-template-columns: 1fr;
  }

  .crs-arrow {
    transform: rotate(90deg);
  }

  .route-steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .route-steps::before {
    top: 40px;
    bottom: 40px;
    left: 34px;
    right: auto;
    width: 3px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top;
    background: linear-gradient(180deg, rgba(24, 59, 91, 0.16), rgba(184, 67, 60, 0.32), rgba(93, 124, 91, 0.36));
  }

  .route-steps.is-visible::before {
    transform: scaleY(1);
  }

  .route-step {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 26px, var(--container));
  }

  .section {
    padding: 64px 0;
  }

  .navbar {
    width: min(100% - 22px, var(--container));
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
  }

  .brand img {
    width: 260px;
    height: 76px;
  }

  .nav-menu {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-menu .btn-small {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 0 14px;
    font-size: 15px;
  }

  .hero {
    min-height: auto;
    padding: 58px 0 68px;
    background:
      linear-gradient(180deg, rgba(245, 241, 235, 0.98) 0%, rgba(245, 241, 235, 0.9) 48%, rgba(245, 241, 235, 0.5) 100%),
      url("hero-canada-bg.png") center right / cover no-repeat;
  }

  .hero-actions,
  .contact-copy .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    min-height: 58px;
    padding-inline: 24px;
  }

  .comparison-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-form,
  .final-panel {
    padding: 26px;
  }

  .comparison-card,
  .nclc-panel,
  .exam-card,
  .route-step {
    padding: 24px;
  }

  .exam-card {
    min-height: 360px;
  }

  .exam-card strong {
    font-size: clamp(4.8rem, 28vw, 7rem);
  }

  .exam-card-topline {
    flex-direction: column;
    margin-bottom: 34px;
  }

  .modal-overlay {
    padding: 12px;
  }

  .exam-modal {
    width: 94vw;
    max-height: 88vh;
    padding: 28px 22px;
  }

  .exam-modal h2 {
    margin-right: 40px;
  }

  .route-section {
    padding-top: 70px;
  }

  .route-icon {
    width: 60px;
    height: 60px;
  }

  .route-cta .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .route-steps::before,
  .route-step {
    opacity: 1;
    transform: none;
  }
}
