/* ============================================================
   Canada Ready — Global Stylesheet
   ============================================================ */

:root {
  --red:    #D32F2F;
  --red-lt: #FFEBEE;
  --maple:  #C0392B;
  --green:  #1A7A4A;
  --green-lt:#E8F5E9;
  --blue:   #1A5276;
  --blue-lt:#EBF5FB;
  --dark:   #1C2833;
  --gray:   #566573;
  --light:  #F4F6F7;
  --white:  #FFFFFF;
  --border: #D5D8DC;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --radius: 12px;
  --font:   'Inter', 'Segoe UI', sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark); background: var(--white); line-height: 1.65; font-size: 16px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
ul { list-style: none; }

/* Typography */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin-bottom: 0.75rem; }

/* ── Layout ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 800; color: var(--red); text-decoration: none;
}
.nav-logo .maple-leaf { font-size: 1.6rem; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 0.9rem; font-weight: 500;
  color: var(--dark); text-decoration: none; transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { background: var(--blue-lt); color: var(--blue); }
.nav-links a.btn-nav-cta { background: var(--red) !important; color: var(--white) !important; }
.nav-links a.btn-nav-cta:hover { background: var(--maple) !important; }
.nav-lang { display: flex; gap: 4px; margin-left: 8px; }
.lang-btn {
  padding: 5px 10px; border-radius: 6px; border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 600; cursor: pointer; background: var(--white);
  color: var(--gray); transition: all 0.2s;
}
.lang-btn.active, .lang-btn:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-nav-cta {
  padding: 9px 20px; border-radius: 8px; background: var(--red); color: var(--white) !important;
  font-weight: 600; font-size: 0.9rem; transition: all 0.2s;
}
.btn-nav-cta:hover { background: var(--maple); text-decoration: none !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; }

/* ── Disclaimer Banner ── */
.disclaimer-banner {
  background: #FFF3CD; border-bottom: 2px solid #F0AD4E;
  padding: 10px 0; text-align: center;
}
.disclaimer-banner p { font-size: 0.82rem; color: #7D6608; margin: 0; }
.disclaimer-banner strong { color: #6E2C00; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius); font-weight: 600;
  font-size: 1rem; cursor: pointer; border: none; transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--maple); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(192,57,43,0.3); text-decoration: none; color: var(--white); }
.btn-secondary { background: var(--white); color: var(--blue); border: 2px solid var(--blue); }
.btn-secondary:hover { background: var(--blue-lt); text-decoration: none; }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: #155D38; transform: translateY(-1px); text-decoration: none; color: var(--white); }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
  color: var(--white); padding: 100px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '🍁'; position: absolute; right: -40px; top: -40px;
  font-size: 320px; opacity: 0.04; pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-20px)} }
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(211,47,47,0.2); border: 1px solid rgba(211,47,47,0.4);
  color: #FF8A80; padding: 6px 14px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 600; margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: #FF6B6B; }
.hero .subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.78); margin-bottom: 36px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .number { font-size: 2rem; font-weight: 800; color: var(--white); }
.hero-stat .label { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ── Features Grid ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.feature-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; transition: all 0.25s; position: relative; overflow: hidden;
}
.feature-card::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background: var(--red); transform: scaleX(0); transition: transform 0.3s; transform-origin: left; }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { font-size: 2.4rem; margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: 0.93rem; color: var(--gray); margin: 0; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.price-card {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; text-align: center; position: relative; transition: all 0.25s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.popular {
  border-color: var(--red); box-shadow: 0 8px 32px rgba(211,47,47,0.15);
}
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: var(--white); padding: 4px 16px;
  border-radius: 20px; font-size: 0.78rem; font-weight: 700; white-space: nowrap;
}
.price-name { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray); margin-bottom: 12px; }
.price-amount { font-size: 2.8rem; font-weight: 800; color: var(--dark); line-height: 1; }
.price-amount sup { font-size: 1.2rem; vertical-align: super; }
.price-period { font-size: 0.82rem; color: var(--gray); margin-top: 4px; margin-bottom: 24px; }
.price-features { text-align: left; margin-bottom: 28px; }
.price-features li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; font-size: 0.9rem; }
.price-features li .check { color: var(--green); font-weight: 700; flex-shrink: 0; }
.price-features li .x { color: #BDC3C7; font-weight: 700; flex-shrink: 0; }

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .tag {
  display: inline-block; background: var(--red-lt); color: var(--red);
  padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1.05rem; color: var(--gray); max-width: 560px; margin: 0 auto; }

/* ── Disclaimer Box ── */
.disclaimer-box {
  background: #FFF8E1; border: 2px solid #F9A825; border-radius: var(--radius);
  padding: 20px 24px; margin: 32px 0;
}
.disclaimer-box .disclaimer-title { font-weight: 700; color: #E65100; margin-bottom: 8px; font-size: 0.95rem; }
.disclaimer-box p { font-size: 0.88rem; color: #5D4037; margin: 0; }

/* ── Language Sections ── */
[data-lang] { display: none; }
[data-lang].active { display: block; }
.lang-inline[data-lang] { display: none; }
.lang-inline[data-lang].active { display: inline; }
a[data-lang].active, button[data-lang].active { display: inline-flex; }

/* ── CRS Calculator ── */
.calc-wrapper { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.calc-form-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.calc-result-section { position: sticky; top: 90px; }
.score-card {
  background: linear-gradient(135deg, var(--blue), #0F3460);
  color: var(--white); border-radius: var(--radius); padding: 40px 32px; text-align: center;
}
.score-number { font-size: 5rem; font-weight: 900; line-height: 1; color: #FF6B6B; }
.score-label { font-size: 0.9rem; opacity: 0.8; margin-top: 8px; }
.score-breakdown { margin-top: 28px; text-align: left; }
.score-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.88rem; }
.score-row:last-child { border-bottom: none; }
.score-row .pts { font-weight: 700; color: #7EB8F7; }
.cutoff-info { background: var(--green-lt); border: 1px solid var(--green); border-radius: 8px; padding: 16px 20px; margin-top: 20px; font-size: 0.87rem; color: var(--green); }

/* ── Form Styles ── */
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--dark); }
.form-group label .hint { font-weight: 400; color: var(--gray); font-size: 0.82rem; display: block; margin-top: 2px; }
select, input[type=number], input[type=text] {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 0.95rem; font-family: var(--font);
  color: var(--dark); background: var(--white); transition: border-color 0.2s;
  appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23566573' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
select:focus, input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,82,118,0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-section-title { font-size: 1rem; font-weight: 700; color: var(--blue); padding: 16px 0 8px; border-top: 2px solid var(--blue-lt); margin-top: 16px; }

/* ── Checklist ── */
.checklist-programs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.prog-btn {
  padding: 10px 20px; border-radius: 8px; border: 2px solid var(--border);
  font-weight: 600; font-size: 0.88rem; cursor: pointer; background: var(--white);
  transition: all 0.2s; color: var(--dark);
}
.prog-btn:hover, .prog-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }
.checklist-container { display: none; }
.checklist-container.active { display: block; }
.checklist-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.checklist-progress { background: var(--light); border-radius: var(--radius); padding: 16px 24px; margin-bottom: 28px; display: flex; align-items: center; gap: 20px; }
.progress-bar { flex: 1; height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--green), #27AE60); border-radius: 5px; transition: width 0.4s ease; }
.progress-text { font-weight: 700; color: var(--green); font-size: 0.95rem; white-space: nowrap; }
.checklist-category { margin-bottom: 32px; }
.category-title { font-size: 1.05rem; font-weight: 700; color: var(--blue); padding: 12px 0; border-bottom: 2px solid var(--blue-lt); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.doc-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; border-radius: 8px; border: 1.5px solid var(--border);
  margin-bottom: 10px; cursor: pointer; transition: all 0.2s; background: var(--white);
}
.doc-item:hover { border-color: var(--blue-lt); background: var(--blue-lt); }
.doc-item.checked { background: var(--green-lt); border-color: var(--green); }
.doc-checkbox { width: 22px; height: 22px; border: 2px solid var(--border); border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.2s; margin-top: 1px; }
.doc-item.checked .doc-checkbox { background: var(--green); border-color: var(--green); color: var(--white); }
.doc-info { flex: 1; }
.doc-name { font-weight: 600; font-size: 0.93rem; margin-bottom: 4px; }
.doc-desc { font-size: 0.82rem; color: var(--gray); }
.doc-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tag { padding: 2px 8px; border-radius: 4px; font-size: 0.74rem; font-weight: 600; }
.tag-required { background: var(--red-lt); color: var(--red); }
.tag-certified { background: #FFF3E0; color: #E65100; }
.tag-optional { background: var(--blue-lt); color: var(--blue); }

/* ── Glossary ── */
.glossary-search-bar { position: relative; max-width: 520px; margin: 0 auto 36px; }
.glossary-search-bar input {
  padding-left: 48px; font-size: 1rem; border-radius: 12px;
  border: 2px solid var(--border); height: 52px;
}
.glossary-search-bar .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--gray); }
.glossary-alpha { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 32px; justify-content: center; }
.alpha-btn { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border); font-weight: 600; font-size: 0.82rem; cursor: pointer; background: var(--white); transition: all 0.2s; }
.alpha-btn:hover, .alpha-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }
.glossary-letter-section { margin-bottom: 36px; }
.glossary-letter-header { font-size: 1.8rem; font-weight: 800; color: var(--red); padding-bottom: 8px; border-bottom: 2px solid var(--red-lt); margin-bottom: 16px; }
.glossary-item { padding: 16px 20px; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 10px; }
.glossary-item:hover { border-color: var(--blue); background: var(--blue-lt); }
.glossary-term { font-weight: 700; font-size: 1rem; color: var(--blue); }
.glossary-abbr { font-size: 0.82rem; color: var(--gray); margin-left: 8px; }
.glossary-def { font-size: 0.9rem; color: var(--dark); margin-top: 6px; line-height: 1.6; }

/* ── Footer ── */
footer { background: var(--dark); color: rgba(255,255,255,0.75); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { font-size: 1.4rem; font-weight: 800; color: var(--white); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.87rem; line-height: 1.7; }
footer h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
footer ul li { margin-bottom: 10px; }
footer ul li a { font-size: 0.87rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
footer ul li a:hover { color: var(--white); text-decoration: none; }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; }
.footer-disclaimer p { font-size: 0.78rem; color: rgba(255,255,255,0.5); line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin: 0; }

/* ── Cookie Consent Banner ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #1a1a2e; color: #fff;
  padding: 16px 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .calc-wrapper { grid-template-columns: 1fr; }
  .calc-result-section { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 700px) {
  .nav-links { display: none; position: fixed; top: 68px; left: 0; right: 0; background: var(--white); padding: 20px 24px; flex-direction: column; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
}
