/* ===== CSTC — Canadian Standard Testing Center ===== */

:root {
  --navy:     #0a1628;
  --navy-mid: #0d2240;
  --blue:     #1a7fc1;
  --teal:     #00b4d8;
  --teal-lt:  #48cae4;
  --white:    #ffffff;
  --gray-lt:  #f4f7fb;
  --gray-mid: #8fa8c0;
  --text:     #1e2d3d;
  --accent:   #e8a020;
  --section-pad: 96px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* ── Utility ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-title span { color: var(--blue); }
.section-body {
  font-size: 1.05rem;
  color: #4a6278;
  max-width: 640px;
  line-height: 1.75;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: #1568a8; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--white); }


/* ── Hero org name bilingual ── */
.hero-org-name {
  margin-bottom: 24px;
}
.org-en {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
}
.org-fr {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--teal-lt);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 5px;
  font-style: italic;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,180,216,0.15);
  transition: background 0.3s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}
.nav-logo-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.nav-logo-sub {
  font-size: 0.65rem;
  color: var(--teal-lt);
  font-weight: 400;
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  padding: 9px 20px !important;
  font-size: 0.88rem !important;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}


/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: url('../assets/images/hero-bg.jpg') center center / cover no-repeat;
  background-color: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(5, 15, 30, 0.72) 0%,
    rgba(5, 15, 30, 0.45) 55%,
    rgba(5, 15, 30, 0.25) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,180,216,0.15);
  border: 1px solid rgba(0,180,216,0.35);
  border-radius: 100px;
  padding: 5px 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 24px;
}
.hero-title span { color: var(--teal); }
.hero-body {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  letter-spacing: 0.03em;
}


/* ── ABOUT ── */
#about { padding: var(--section-pad) 0; background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-img-card {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.about-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.about-checks { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.about-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: #3a5068;
}
.about-checks li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: rgba(0,180,216,0.12);
  color: var(--teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 1px;
}


/* ── SERVICES ── */
#services { padding: var(--section-pad) 0; background: var(--gray-lt); }
.services-header { text-align: center; margin-bottom: 56px; }
.services-header .section-body { margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 32px;
  border: 1px solid #e2ecf5;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  opacity: 0;
  transition: opacity 0.25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(26,127,193,0.12); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(26,127,193,0.12), rgba(0,180,216,0.12));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  font-size: 1.6rem;
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.service-card p {
  font-size: 0.92rem;
  color: #5a7890;
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(0,180,216,0.1);
  color: var(--teal);
  border: 1px solid rgba(0,180,216,0.2);
}
.tag.coming { background: rgba(232,160,32,0.1); color: var(--accent); border-color: rgba(232,160,32,0.25); }


/* ── PPE sub-tests ── */
.ppe-tests { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.ppe-item {
  padding: 12px 14px;
  background: var(--gray-lt);
  border-radius: 6px;
  border-left: 3px solid var(--blue);
}
.ppe-item h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.ppe-item p {
  font-size: 0.82rem;
  color: #5a7890;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── Footer bilingual logo ── */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo-en {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}
.footer-logo-fr {
  font-size: 0.72rem;
  color: var(--teal-lt);
  font-style: italic;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

/* ── HOW WE HELP ── */
#how { padding: var(--section-pad) 0; background: var(--white); }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.how-steps { display: flex; flex-direction: column; gap: 32px; margin-top: 36px; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.step-content h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.step-content p { font-size: 0.9rem; color: #5a7890; line-height: 1.65; }
.how-visual {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 16px;
  padding: 48px 40px;
  color: white;
}
.how-visual h3 { font-size: 1.5rem; font-weight: 700; color: var(--teal); margin-bottom: 8px; }
.how-visual p { font-size: 0.92rem; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 28px; }
.accreditation-list { display: flex; flex-direction: column; gap: 16px; }
.accred-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
}
.accred-badge {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.accred-name { font-size: 0.9rem; font-weight: 600; color: white; }
.accred-desc { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 2px; }


/* ── CONTACT ── */
#contact { padding: var(--section-pad) 0; background: var(--gray-lt); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 28px; margin-top: 36px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(26,127,193,0.15), rgba(0,180,216,0.15));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item h4 { font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.contact-item p, .contact-item a {
  font-size: 0.9rem;
  color: #5a7890;
  text-decoration: none;
  line-height: 1.6;
}
.contact-item a:hover { color: var(--blue); }
.contact-form-card {
  background: var(--white);
  border-radius: 16px;
  padding: 44px;
  box-shadow: 0 4px 24px rgba(26,127,193,0.08);
  border: 1px solid #e2ecf5;
}
.contact-form-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 11px 14px;
  border: 1.5px solid #d4e3ef;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,127,193,0.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }


/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.75;
  margin-top: 14px;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--teal); }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--teal); }


/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-grid, .how-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-badge-card { bottom: -12px; right: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --section-pad: 64px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--navy);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(0,180,216,0.15);
  }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .contact-form-card { padding: 28px 20px; }
}
