/* ============================================================
   MapleBridge Immigration - Core Stylesheet (style.css)
   Modern, premium, red & white (Canada) theme
   Sections: Variables > Reset > Typography > Buttons > Layout
             Navbar > Hero > Cards > Timeline > Stats > FAQ
             Forms > Footer > Floating UI > Utilities
   ============================================================ */

/* ---------- 1. CSS Variables / Theme ---------- */
:root {
  /* Brand colors (Canada red & white) */
  --red: #d80621;
  --red-dark: #a20418;
  --red-light: #ff445a;
  --red-soft: #ffe3e6;

  /* Neutrals */
  --white: #ffffff;
  --bg: #ffffff;
  --bg-alt: #fff6f7;
  --bg-deep: #fbeef0;
  --text: #17172b;
  --text-muted: #5c5c72;
  --heading: #10101f;

  /* Surfaces & glass */
  --surface: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --card-bg: #ffffff;
  --border: #ececf1;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(20, 20, 40, 0.06);
  --shadow: 0 10px 30px rgba(20, 20, 40, 0.10);
  --shadow-lg: 0 20px 50px rgba(216, 6, 33, 0.18);
  --shadow-red: 0 12px 28px rgba(216, 6, 33, 0.28);

  /* Gradients */
  --grad-red: linear-gradient(135deg, #ff445a 0%, #d80621 55%, #a20418 100%);
  --grad-hero: linear-gradient(120deg, #7a0011 0%, #c00a24 45%, #e11835 100%);

  /* Sizing & motion */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --container: 1200px;
  --nav-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.35s var(--ease);

  --ff: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Dark theme */
[data-theme="dark"] {
  --bg: #0f1020;
  --bg-alt: #16172b;
  --bg-deep: #1b1c33;
  --text: #e7e7f2;
  --text-muted: #a7a8c0;
  --heading: #ffffff;

  --surface: #191a30;
  --glass-bg: rgba(30, 32, 58, 0.55);
  --glass-border: rgba(255, 255, 255, 0.10);
  --card-bg: #191a30;
  --border: #2a2c4a;

  --red-soft: #2a0d14;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* ---------- 2. Reset & Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
:focus-visible { outline: 3px solid var(--red-light); outline-offset: 2px; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5 { color: var(--heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--text-muted); }

.gradient-text {
  background: var(--grad-red);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-center { text-align: center; }
.highlight { color: var(--red); }

/* ---------- 4. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(56px, 8vw, 110px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-deep { background: var(--bg-deep); }

.section-header {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.section-title { margin-bottom: 14px; }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn i { font-size: 0.95em; }
.btn-primary {
  background: var(--grad-red);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(216, 6, 33, 0.4); }
.btn-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.btn-white {
  background: #fff;
  color: var(--red);
  box-shadow: var(--shadow);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: #fff; color: var(--red); transform: translateY(-3px); }
.btn-lg { padding: 17px 38px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- 6. Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-leaf {
  font-size: 3.4rem;
  color: var(--red);
  animation: leafPulse 1.1s ease-in-out infinite;
}
.preloader-bar {
  width: 160px;
  height: 4px;
  border-radius: 4px;
  margin: 22px auto 0;
  background: var(--red-soft);
  overflow: hidden;
}
.preloader-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 4px;
  background: var(--grad-red);
  animation: loadSlide 1.1s ease-in-out infinite;
}
.preloader-text { margin-top: 16px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.2em; font-size: 0.8rem; }

/* ---------- 7. Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
}
.navbar.scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--heading);
  letter-spacing: -0.02em;
}
.nav-logo .leaf { color: var(--red); font-size: 1.6rem; animation: leafSway 4s ease-in-out infinite; transform-origin: bottom center; }
.nav-logo b { color: var(--red); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  padding: 10px 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: 10px;
  transition: color var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--red); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--red); font-weight: 600; }

.nav-cta {
  background: var(--grad-red);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 100px;
  box-shadow: var(--shadow-red);
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  color: var(--red);
  background: var(--red-soft);
  transition: transform var(--transition), background var(--transition);
}
.theme-toggle:hover { transform: rotate(25deg) scale(1.08); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: var(--red-soft);
}
.hamburger span {
  width: 22px;
  height: 2.5px;
  border-radius: 3px;
  background: var(--red);
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(122, 0, 17, 0.92) 0%, rgba(192, 10, 36, 0.82) 45%, rgba(225, 24, 53, 0.72) 100%),
    url('https://images.unsplash.com/photo-1517935706615-2717063c2225?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/hero-pattern.svg');
  opacity: 0.5;
  animation: patternDrift 40s linear infinite;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 90px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 55%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-badge i { color: #ffd0d6; }
.hero-title { color: #fff; margin-bottom: 20px; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.25); }
.hero-title .accent { color: #ffe3e6; }
.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 620px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 46px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}
.hero-stat .num { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: #fff; }
.hero-stat .lbl { font-size: 0.86rem; color: rgba(255, 255, 255, 0.82); }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 70px) 0 70px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: var(--grad-hero);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/hero-pattern.svg');
  opacity: 0.45;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: rgba(255, 255, 255, 0.9); max-width: 640px; margin: 0 auto; }
.breadcrumb {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb i { font-size: 0.7rem; }

/* ---------- 9. Cards (glass + feature) ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.glass-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.icon-box {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  color: #fff;
  background: var(--grad-red);
  margin-bottom: 22px;
  box-shadow: var(--shadow-red);
  transition: transform var(--transition);
}
.card:hover .icon-box,
.glass-card:hover .icon-box { transform: rotate(-8deg) scale(1.08); }
.card h3, .glass-card h3 { margin-bottom: 10px; }
.card p, .glass-card p { font-size: 0.96rem; }

/* Feature (Why Canada) */
.feature-card { text-align: left; }
.feature-card .icon-box { margin-bottom: 18px; }

/* Service card */
.service-card { position: relative; overflow: hidden; }
.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 600;
  color: var(--red);
  transition: gap var(--transition);
}
.service-card .service-link:hover { gap: 14px; }
.service-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: var(--red-soft);
  border-radius: 50%;
  transform: translate(40%, -40%);
  transition: transform var(--transition);
  z-index: 0;
}
.service-card:hover::after { transform: translate(30%, -30%) scale(1.3); }
.service-card > * { position: relative; z-index: 1; }

/* ---------- 10. Timeline (process) ---------- */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(var(--red), var(--red-soft));
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 18px 44px;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-dot {
  position: absolute;
  top: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-red);
  z-index: 2;
}
.timeline-item:nth-child(odd) .timeline-dot { right: -23px; }
.timeline-item:nth-child(even) .timeline-dot { left: -23px; }
.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.timeline-content:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.timeline-step {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.timeline-content h3 { margin: 6px 0 8px; }

/* ---------- 11. Stats / counters ---------- */
.stats-strip {
  background: var(--grad-red);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.stats-strip::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../images/hero-pattern.svg');
  opacity: 0.35;
}
.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-item .stat-icon { font-size: 1.8rem; margin-bottom: 8px; color: #ffe3e6; }
.stat-number { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1; }
.stat-number .plus { font-size: 0.7em; }
.stat-label { margin-top: 8px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.9); }

/* ---------- 12. Testimonials ---------- */
.testimonial-slider { position: relative; max-width: 820px; margin: 0 auto; }
.testimonial-track { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.testimonial {
  display: none;
  padding: 46px;
  text-align: center;
  animation: fadeInUp 0.6s var(--ease);
}
.testimonial.active { display: block; }
.testimonial .quote-mark { font-size: 2.6rem; color: var(--red); opacity: 0.4; }
.testimonial p { font-size: 1.12rem; color: var(--text); font-style: italic; margin: 10px 0 24px; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.testimonial-avatar {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; color: #fff; font-size: 1.1rem;
  background: var(--grad-red);
  box-shadow: var(--shadow-red);
}
.testimonial-meta h4 { font-size: 1rem; margin: 0; }
.testimonial-meta span { font-size: 0.86rem; color: var(--text-muted); }
.testimonial-stars { color: #ffb400; margin-bottom: 4px; }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 26px; }
.slider-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--red);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.slider-btn:hover { background: var(--red); color: #fff; transform: scale(1.08); }
.slider-dots { display: flex; gap: 10px; }
.slider-dots button {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}
.slider-dots button.active { background: var(--red); width: 30px; border-radius: 6px; }

/* ---------- 13. FAQ accordion ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 16px; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.faq-item.open { box-shadow: var(--shadow); border-color: var(--red-soft); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--heading);
  text-align: left;
}
.faq-question .faq-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red-soft);
  color: var(--red);
  transition: transform var(--transition), background var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--red); color: #fff; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-answer p { padding: 0 24px 22px; }

/* ---------- 14. Forms ---------- */
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; position: relative; }
.form-group label { display: block; font-weight: 500; font-size: 0.92rem; margin-bottom: 8px; color: var(--heading); }
.form-group label .req { color: var(--red); }
.form-control {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.98rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control::placeholder { color: var(--text-muted); opacity: 0.7; }
.form-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}
textarea.form-control { resize: vertical; min-height: 130px; }
.form-control.invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(216, 6, 33, 0.12); }
.form-control.valid { border-color: #16a34a; }
.error-message {
  display: none;
  color: var(--red);
  font-size: 0.82rem;
  margin-top: 6px;
  font-weight: 500;
}
.error-message.show { display: block; }
.form-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
}
.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: #e7f8ee;
  color: #157347;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid #b7ecc9;
}
.form-success.show { display: flex; }
[data-theme="dark"] .form-success { background: #10281c; color: #6ee7a8; border-color: #1e5138; }

/* ---------- 15. Footer ---------- */
.footer {
  background: #10101f;
  color: #c7c8da;
  padding-top: 70px;
  position: relative;
}
[data-theme="dark"] .footer { background: #08080f; }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr 1.2fr; gap: 38px; padding-bottom: 50px; }
.footer h4 { color: #fff; margin-bottom: 22px; font-size: 1.05rem; position: relative; padding-bottom: 10px; }
.footer h4::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 34px; height: 3px; border-radius: 3px; background: var(--red);
}
.footer-brand .nav-logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { color: #9a9bb2; font-size: 0.94rem; margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #b6b7cc; font-size: 0.94rem; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.footer-links a i { color: var(--red-light); font-size: 0.7rem; transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-links a:hover i { transform: translateX(4px); }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 0.92rem; color: #b6b7cc; }
.footer-contact i { color: var(--red-light); margin-top: 4px; }
.social-links { display: flex; gap: 12px; margin-top: 6px; }
.social-links a {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07);
  color: #fff; font-size: 1rem;
  transition: var(--transition);
}
.social-links a:hover { background: var(--grad-red); transform: translateY(-4px); box-shadow: var(--shadow-red); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #8a8ba2;
}
.footer-bottom a { color: #b6b7cc; }
.footer-bottom a:hover { color: #fff; }

/* Disclaimer banner */
.disclaimer {
  background: var(--red-soft);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text);
}
.disclaimer i { color: var(--red); font-size: 1.2rem; margin-top: 2px; }
.disclaimer strong { color: var(--heading); }
.footer-disclaimer {
  background: rgba(216, 6, 33, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  font-size: 0.82rem;
  color: #9a9bb2;
  text-align: center;
}
.footer-disclaimer .container { display: flex; gap: 10px; align-items: flex-start; justify-content: center; }
.footer-disclaimer i { color: var(--red-light); margin-top: 3px; }

/* ---------- 16. Floating UI ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-red);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--shadow-red);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

.float-stack {
  position: fixed;
  left: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 900;
}
.float-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}
.float-btn:hover { transform: scale(1.1) translateY(-2px); }
.whatsapp-float { background: #25d366; animation: floatPulse 2.4s ease-in-out infinite; }
.chat-float { background: var(--grad-red); }
.float-btn .tooltip {
  position: absolute;
  left: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--heading);
  color: #fff;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.float-btn:hover .tooltip { opacity: 1; left: 66px; }

/* Chat widget (UI only) */
.chat-widget {
  position: fixed;
  left: 24px;
  bottom: 92px;
  width: 320px;
  max-width: calc(100vw - 48px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 901;
}
.chat-widget.open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.chat-header {
  background: var(--grad-red);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-header .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid; place-items: center; font-size: 1.1rem;
}
.chat-header h4 { color: #fff; font-size: 0.98rem; margin: 0; }
.chat-header span { font-size: 0.78rem; opacity: 0.9; display: flex; align-items: center; gap: 5px; }
.chat-header .dot { width: 8px; height: 8px; border-radius: 50%; background: #7dffa1; display: inline-block; }
.chat-close { margin-left: auto; color: #fff; font-size: 1.1rem; opacity: 0.9; }
.chat-body { padding: 18px; max-height: 240px; overflow-y: auto; background: var(--bg-alt); }
.chat-msg {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px 14px 14px 14px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.chat-time { font-size: 0.72rem; color: var(--text-muted); }
.chat-input-row { display: flex; padding: 12px; gap: 8px; border-top: 1px solid var(--border); }
.chat-input-row input {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 100px;
  padding: 10px 16px;
  font-size: 0.9rem;
}
.chat-input-row input:focus { outline: none; border-color: var(--red); }
.chat-send {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad-red); color: #fff;
  display: grid; place-items: center;
}

/* ---------- 17. Newsletter ---------- */
.newsletter {
  background: var(--grad-red);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 60px);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.newsletter::before {
  content: ""; position: absolute; inset: 0;
  background: url('../images/hero-pattern.svg'); opacity: 0.35;
}
.newsletter > * { position: relative; z-index: 1; }
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255, 255, 255, 0.9); max-width: 520px; margin: 12px auto 28px; }
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
}
.newsletter-form input {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  padding: 12px 20px;
  font-size: 0.96rem;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.8); }
.newsletter-form input:focus { outline: none; }
.newsletter-form button { background: #fff; color: var(--red); border-radius: 100px; padding: 12px 26px; font-weight: 600; transition: var(--transition); }
.newsletter-form button:hover { transform: scale(1.04); }
.newsletter-msg { margin-top: 14px; font-weight: 500; min-height: 20px; }

/* ---------- 18. Misc / utilities ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  background: var(--grad-red);
  min-height: 340px;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.check-list i {
  flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--red-soft); color: var(--red);
  display: grid; place-items: center; font-size: 0.8rem; margin-top: 2px;
}
.mt-sm { margin-top: 14px; } .mt { margin-top: 24px; } .mt-lg { margin-top: 40px; }
.mb { margin-bottom: 24px; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 100px;
  background: var(--red-soft); color: var(--red);
  font-size: 0.78rem; font-weight: 600;
}
.no-scroll { overflow: hidden; }

/* Cities */
.city-card { padding: 0; overflow: hidden; }
.city-image {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--g1, #ff445a), var(--g2, #a20418));
  overflow: hidden;
}
.city-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.city-card:hover .city-image img { transform: scale(1.08); }
.city-image::after {
  content: "\f3c5";
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 3rem; color: rgba(255, 255, 255, 0.3);
  z-index: 0;
}
.city-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  color: var(--red);
  padding: 5px 12px; border-radius: 100px;
  font-size: 0.76rem; font-weight: 600;
}
.city-body { padding: 24px; }
.city-body h3 { margin-bottom: 4px; }
.city-tag { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 16px; }
.city-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.city-stat { display: flex; gap: 10px; align-items: center; font-size: 0.88rem; }
.city-stat i { color: var(--red); width: 20px; text-align: center; }
.city-stat b { color: var(--heading); display: block; font-size: 0.9rem; }
.city-stat span { color: var(--text-muted); font-size: 0.78rem; }

/* Blog */
.blog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.blog-thumb {
  height: 190px;
  position: relative;
  background: var(--grad-red);
  display: grid; place-items: center;
  overflow: hidden;
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.blog-card:hover .blog-thumb img { transform: scale(1.08); }
.blog-thumb .blog-cat {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: #fff; color: var(--red);
  padding: 5px 12px; border-radius: 100px;
  font-size: 0.74rem; font-weight: 700;
}
.blog-thumb .thumb-icon { position: absolute; font-size: 3rem; color: rgba(255,255,255,0.4); }
.blog-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { display: flex; gap: 16px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.blog-meta span { display: inline-flex; align-items: center; gap: 5px; }
.blog-body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.blog-body p { font-size: 0.92rem; flex: 1; }
.blog-read { margin-top: 16px; font-weight: 600; color: var(--red); display: inline-flex; gap: 8px; align-items: center; transition: gap var(--transition); }
.blog-read:hover { gap: 13px; }

/* Team */
.team-card { text-align: center; padding: 30px 24px; }
.team-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  font-size: 2.2rem; font-weight: 700; color: #fff;
  background: var(--grad-red);
  box-shadow: var(--shadow-red);
  border: 4px solid var(--card-bg);
}
.team-card h3 { font-size: 1.1rem; margin-bottom: 2px; }
.team-role { color: var(--red); font-size: 0.86rem; font-weight: 600; margin-bottom: 12px; }
.team-card p { font-size: 0.88rem; }
.team-social { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.team-social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red-soft); color: var(--red);
  transition: var(--transition);
}
.team-social a:hover { background: var(--red); color: #fff; transform: translateY(-3px); }

/* Value cards / mission */
.value-card { text-align: center; }
.value-card .icon-box { margin-inline: auto; }
.mv-card { border-top: 4px solid var(--red); }

/* Eligibility result */
.eligibility-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.result-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.score-ring {
  --val: 0;
  width: 180px; height: 180px;
  border-radius: 50%;
  margin: 10px auto 20px;
  display: grid; place-items: center;
  background: conic-gradient(var(--red) calc(var(--val) * 1%), var(--border) 0);
  transition: background 0.8s var(--ease);
  position: relative;
}
.score-ring::before {
  content: ""; position: absolute; inset: 14px;
  border-radius: 50%; background: var(--card-bg);
}
.score-inner { position: relative; z-index: 1; text-align: center; }
.score-inner .score-num { font-size: 2.6rem; font-weight: 800; color: var(--red); line-height: 1; }
.score-inner .score-max { font-size: 0.8rem; color: var(--text-muted); }
.result-verdict {
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 20px;
}
.result-verdict.good { background: #e7f8ee; color: #157347; }
.result-verdict.mid { background: #fff5e0; color: #9a6b00; }
.result-verdict.low { background: var(--red-soft); color: var(--red-dark); }
[data-theme="dark"] .result-verdict.good { background: #10281c; color: #6ee7a8; }
[data-theme="dark"] .result-verdict.mid { background: #2a2410; color: #f5c96b; }
.result-breakdown li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 0.9rem;
}
.result-breakdown li:last-child { border-bottom: none; }
.result-breakdown .pts { font-weight: 700; color: var(--red); }
.result-placeholder { text-align: center; color: var(--text-muted); padding: 30px 10px; }
.result-placeholder i { font-size: 3rem; color: var(--red-soft); margin-bottom: 14px; }

/* Partner logos / trust */
.trust-row { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: center; opacity: 0.75; }
.trust-row .trust-item { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-muted); font-size: 0.95rem; }
.trust-row .trust-item i { color: var(--red); font-size: 1.3rem; }

/* ---------- 19. Image Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 190px;
  background: var(--grad-red);
  box-shadow: var(--shadow-sm);
}
.gallery-item.tall { grid-row: span 2; height: auto; min-height: 190px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.12); }
.gallery-item .gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff; font-size: 0.84rem; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.gallery-item .gallery-cap i { color: #ffd0d6; }
@media (max-width: 768px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery-item.tall { grid-row: span 1; } }
@media (max-width: 400px) { .gallery { grid-template-columns: 1fr; } }
