/* ============================================================
   CANADA IMMIGRATION — STYLE.CSS
   Design : Luxe & Voyage | Bleu nuit + Or + Blanc crème
   ============================================================ */

   /* OVERFLOW FIXED */
/* ── OVERFLOW FIX MOBILE ──────────────────────────────────── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

.ee-page,
.ee-layout,
.ee-main,
.ee-sidebar,
.stat-banner,
.programme-grid,
.scg-grid,
.doc-grid,
.provinces-grid,
.frais-table-wrapper {
  max-width: 100%;
  overflow-x: hidden;
}

/* ── RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0b1f3a;
  --navy-mid:   #132d52;
  --navy-light: #1e4175;
  --gold:       #c9a84c;
  --gold-light: #e2c170;
  --gold-pale:  #f7f0dd;
  --cream:      #faf8f3;
  --white:      #ffffff;
  --text:       #2c2c2c;
  --text-light: #6b7280;
  --border:     rgba(201,168,76,0.2);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:  6px;
  --radius-md:  14px;
  --radius-lg:  24px;
  --shadow-sm:  0 2px 12px rgba(11,31,58,0.08);
  --shadow-md:  0 8px 32px rgba(11,31,58,0.14);
  --shadow-lg:  0 20px 60px rgba(11,31,58,0.20);

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

.container {
  width: min(90%, 1240px);
  margin-inline: auto;
}

.section-pad { padding: 100px 0; }


/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(2rem,   4vw,  3rem);   font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 600; }


/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary:hover {
  background: transparent;
  color: var(--gold);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-small { padding: 10px 22px; font-size: .82rem; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid #25d366;
  transition: var(--transition);
}
.btn-whatsapp:hover { background: transparent; color: #25d366; }


/* ── SECTION HEADER ──────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  position: relative;
  padding: 0 20px;
}
.section-label::before,
.section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--gold);
}
.section-label::before { right: 100%; margin-right: -20px; }
.section-label::after  { left:  100%; margin-left:  -20px; }

.section-title { margin-bottom: 16px; }

.section-sub {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 520px;
  margin-inline: auto;
}


/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slides { width: 100%; height: 100%; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .9s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(11,31,58,0.78) 0%,
    rgba(11,31,58,0.45) 60%,
    rgba(11,31,58,0.15) 100%
  );
}

.hero .container { position: relative; z-index: 2; }

.hero-content {
  max-width: 680px;
  padding: 20px 0;
  animation: heroFadeUp .9s ease both;
}

.hero-slide.active .hero-content { animation: heroFadeUp .9s .2s ease both; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.hero-title {
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 300;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 600;
}

.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.12rem;
  margin-bottom: 38px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Hero Controls */
.hero-controls {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-prev,
.hero-next {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  transition: var(--transition);
}
.hero-prev:hover,
.hero-next:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.hero-dots { display: flex; gap: 10px; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  right: 40px;
  bottom: 44px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.3; transform: scaleY(0.6); }
}


/* ── VISA CARDS ──────────────────────────────────────────── */
.visa-section { background: var(--white); }

.visa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

.visa-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--border);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}
.visa-card.visible { opacity: 1; transform: translateY(0); }

.visa-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.visa-card.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-12px);
}
.visa-card.featured.visible { transform: translateY(-12px); }
.visa-card.featured:hover   { transform: translateY(-20px); }

.visa-card-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.visa-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.visa-card:hover .visa-card-img img { transform: scale(1.06); }

.visa-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gold);
  color: var(--navy);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}

.visa-card-body { padding: 28px 28px 32px; }

.visa-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.visa-card-body h3 { margin-bottom: 12px; font-size: 1.4rem; }

.visa-card-body p {
  color: var(--text-light);
  font-size: .95rem;
  margin-bottom: 22px;
  line-height: 1.65;
}

.visa-link {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: var(--transition);
}
.visa-link:hover { color: var(--gold); gap: 14px; }


/* ── ABOUT STRIP ─────────────────────────────────────────── */
.about-strip {
  background: var(--navy);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.about-strip::before {
  content: 'CANADA';
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 18vw, 16rem);
  font-weight: 700;
  color: rgba(255,255,255,0.025);
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .section-label { color: var(--gold-light); }
.about-text .section-label::before,
.about-text .section-label::after { background: var(--gold-light); }

.about-text h2 { color: var(--white); margin-bottom: 20px; }

.about-text p { color: rgba(255,255,255,0.7); margin-bottom: 36px; font-size: 1.05rem; }
.about-text strong { color: var(--gold-light); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: scale(0.95);
  transition: var(--transition);
}
.stat.visible { opacity: 1; transform: scale(1); }
.stat:first-child { border-radius: var(--radius-sm) 0 0 0; }
.stat:nth-child(2) { border-radius: 0 var(--radius-sm) 0 0; }
.stat:nth-child(3) { border-radius: 0 0 0 var(--radius-sm); }
.stat:last-child   { border-radius: 0 0 var(--radius-sm) 0; }

.stat strong {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat span {
  font-size: .85rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: .06em;
  text-transform: uppercase;
}


/* ── SERVICES ────────────────────────────────────────────── */
.services-section { background: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .6s ease;
}
.service-card:hover img { transform: scale(1.05); }

.service-icon {
  position: absolute;
  top: 178px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(201,168,76,0.4);
}

.service-body { padding: 32px 28px 28px; }

.service-body h3 { margin-bottom: 12px; }

.service-body p {
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: 22px;
}

.service-link {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: var(--transition);
}
.service-link:hover { color: var(--gold); }


/* ── CTA BANNER ──────────────────────────────────────────── */
.cta-banner {
  position: relative;
  padding: 120px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,31,58,0.88) 0%, rgba(30,65,117,0.75) 100%);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.cta-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 42px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}


/* ── SCROLL FADE ANIMATION ───────────────────────────────── */
.visa-card,
.service-card,
.stat {
  transition: opacity .55s ease, transform .55s ease, box-shadow var(--transition), border-color var(--transition);
}


/* ── RESPONSIVE ──────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .visa-grid,
  .services-grid { grid-template-columns: 1fr 1fr; }

  .visa-card.featured { transform: translateY(0); }
  .visa-card.featured.visible { transform: translateY(0); }
  .visa-card.featured:hover   { transform: translateY(-8px); }

  .about-inner { grid-template-columns: 1fr; gap: 60px; }
  .about-strip::before { display: none; }
}

/* Mobile */
@media (max-width: 700px) {
  .section-pad { padding: 72px 0; }

  .visa-grid,
  .services-grid { grid-template-columns: 1fr; }

  .hero-scroll { display: none; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; justify-content: center; }

  .about-stats { grid-template-columns: 1fr 1fr; }

  .stat { padding: 24px 18px; }
  .stat strong { font-size: 2rem; }

  .cta-banner { background-attachment: scroll; }
  .cta-actions { flex-direction: column; align-items: center; }

  .section-label::before,
  .section-label::after { display: none; }
}

@media (max-width: 420px) {
  .about-stats { grid-template-columns: 1fr; }
}