/* ============================================================
   MX Sécurité Montréal — Global Stylesheet
   Brand: Rouge + Noir | Mobile-first | Clair/Sombre
   ============================================================ */

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;900&family=Barlow:wght@300;400;500;600&display=swap');

/* === CSS VARIABLES === */
:root {
  /* Brand */
  --red:        #D62828;
  --red-dark:   #A61E1E;
  --red-light:  #FF4444;
  --black:      #0A0A0A;
  --white:      #FFFFFF;

  /* Light theme (default) */
  --bg:          #F5F5F5;
  --bg-2:        #FFFFFF;
  --bg-3:        #ECECEC;
  --text:        #111111;
  --text-2:      #444444;
  --text-3:      #777777;
  --border:      #DDDDDD;
  --shadow:      rgba(0,0,0,0.10);
  --shadow-lg:   rgba(0,0,0,0.20);

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  32px;
  --space-xl:  64px;
  --space-2xl: 96px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Transitions */
  --transition: 0.25s ease;
  --transition-slow: 0.45s ease;

  /* Max width */
  --max-w: 1200px;
  --max-w-sm: 780px;
}

[data-theme="dark"] {
  --bg:        #0D0D0D;
  --bg-2:      #161616;
  --bg-3:      #1F1F1F;
  --text:      #F0F0F0;
  --text-2:    #BBBBBB;
  --text-3:    #888888;
  --border:    #2A2A2A;
  --shadow:    rgba(0,0,0,0.40);
  --shadow-lg: rgba(0,0,0,0.60);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 900; text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; text-transform: uppercase; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
p  { font-size: 1rem; color: var(--text-2); }
.lead { font-size: 1.2rem; font-weight: 300; color: var(--text-2); }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
@media (min-width: 768px) { .container { padding: 0 var(--space-lg); } }

section { padding: var(--space-xl) 0; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(214,40,40,0.35);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(214,40,40,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(214,40,40,0.10);
  color: var(--red);
  border: 1px solid rgba(214,40,40,0.30);
}
.btn-ghost:hover { background: var(--red); color: var(--white); }

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: all var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 24px var(--shadow);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.navbar__logo-mark {
  width: 38px;
  height: 38px;
  background: var(--red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -1px;
  flex-shrink: 0;
}
.navbar__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text);
}
.navbar__logo-text span { display: block; font-size: 0.7rem; font-weight: 400; color: var(--red); letter-spacing: 0.1em; }

.navbar__nav {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}
@media (min-width: 900px) { .navbar__nav { display: flex; } }
.navbar__nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color var(--transition);
  position: relative;
}
.navbar__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.navbar__nav a:hover, .navbar__nav a.active { color: var(--red); }
.navbar__nav a:hover::after, .navbar__nav a.active::after { transform: scaleX(1); }

.navbar__controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.navbar__lang-btn,
.navbar__theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}
.navbar__lang-btn:hover,
.navbar__theme-btn:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.navbar__cta { display: none; }
@media (min-width: 900px) { .navbar__cta { display: flex; } }

/* Hamburger */
.navbar__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
@media (min-width: 900px) { .navbar__burger { display: none; } }
.navbar__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: var(--space-lg);
  flex-direction: column;
  gap: var(--space-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--red); }
.mobile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(214,40,40,0.06) 0%, transparent 50%),
    linear-gradient(to bottom right, var(--bg-2) 0%, var(--bg) 100%);
  z-index: 0;
}
.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      var(--border) 60px,
      var(--border) 61px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      var(--border) 60px,
      var(--border) 61px
    );
  opacity: 0.4;
  z-index: 0;
}
.hero__accent {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(214,40,40,0.12) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__content { grid-template-columns: 1fr 1fr; }
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(214,40,40,0.10);
  border: 1px solid rgba(214,40,40,0.30);
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: var(--space-md);
}
.hero__badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero__title { margin-bottom: var(--space-md); }
.hero__title em {
  color: var(--red);
  font-style: normal;
  display: block;
}
.hero__desc { margin-bottom: var(--space-lg); max-width: 520px; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.hero__stats {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.hero__stat {}
.hero__stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  display: block;
}
.hero__stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.hero__card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 20px 60px var(--shadow-lg);
}
.hero__card-icon {
  width: 52px; height: 52px;
  background: rgba(214,40,40,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: var(--space-md);
}
.hero__card h3 { font-size: 1.2rem; margin-bottom: var(--space-xs); }
.hero__card p { font-size: 0.9rem; }
.hero__mini-card {
  position: absolute;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: 0 10px 40px var(--shadow);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  animation: float 4s ease-in-out infinite;
}
.hero__mini-card:nth-child(2) { top: -20px; right: -20px; animation-delay: 0.5s; }
.hero__mini-card:nth-child(3) { bottom: -20px; left: -20px; animation-delay: 1s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero__mini-card .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
.hero__mini-card span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* === SECTION LABELS === */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-md);
}
.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--red);
  flex-shrink: 0;
}
.section-title { margin-bottom: var(--space-md); }
.section-desc { max-width: 580px; margin-bottom: var(--space-xl); }

/* === GRID SYSTEMS === */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 600px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 600px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* === CARDS === */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px var(--shadow-lg);
}
.card__icon {
  width: 48px; height: 48px;
  background: rgba(214,40,40,0.10);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
  transition: background var(--transition);
}
.card:hover .card__icon { background: var(--red); }

/* === BADGES / TAGS === */
.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  background: rgba(214,40,40,0.10);
  color: var(--red);
  border: 1px solid rgba(214,40,40,0.25);
}

/* === DIVIDER === */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* === TRUST BAR === */
.trust-bar {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) 0;
}
.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xl);
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.trust-item__icon { font-size: 1.4rem; }
.trust-item__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* === TESTIMONIALS === */
.testimonial-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  font-size: 5rem;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--red);
  opacity: 0.15;
  line-height: 1;
}
.testimonial-card__stars {
  color: #F59E0B;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  letter-spacing: 2px;
}
.testimonial-card__text {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: var(--space-md);
  font-style: italic;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.testimonial-card__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* === FORMS === */
.form-group { margin-bottom: var(--space-md); }
.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  margin-bottom: var(--space-xs);
}
.form-label .required { color: var(--red); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(214,40,40,0.15);
  background: var(--bg-2);
}
.form-control::placeholder { color: var(--text-3); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: none; cursor: pointer; }
.form-error {
  color: var(--red);
  font-size: 0.82rem;
  margin-top: 4px;
  display: none;
}
.form-group.has-error .form-control { border-color: var(--red); }
.form-group.has-error .form-error { display: block; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-2);
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  appearance: none;
  background: var(--bg-3);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--transition);
}
.form-consent input[type="checkbox"]:checked {
  background: var(--red);
  border-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.707 4.293a1 1 0 010 1.414l-7 7a1 1 0 01-1.414 0l-3-3a1 1 0 011.414-1.414L6 10.586l6.293-6.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.honeypot { display: none !important; }

/* === TOAST NOTIFICATIONS === */
.toast-container {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-md);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px var(--shadow-lg);
  font-size: 0.9rem;
  color: var(--text);
  min-width: 260px;
  max-width: 380px;
  animation: slideInToast 0.3s ease;
}
.toast.success { border-left: 4px solid #10B981; }
.toast.error   { border-left: 4px solid var(--red); }
.toast.info    { border-left: 4px solid #3B82F6; }
@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* === STICKY MOBILE CTA === */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--black);
  padding: var(--space-sm) var(--space-md);
  gap: var(--space-sm);
  border-top: 2px solid var(--red);
}
@media (max-width: 899px) { .sticky-mobile-cta { display: flex; } }
.sticky-mobile-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all var(--transition);
}
.sticky-mobile-cta .cta-call {
  background: var(--red);
  color: var(--white);
}
.sticky-mobile-cta .cta-whatsapp {
  background: #25D366;
  color: var(--white);
}
.sticky-mobile-cta .cta-chat {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
}
body { padding-bottom: 0; }
@media (max-width: 899px) { body { padding-bottom: 72px; } }

/* === CHATBOT WIDGET === */
.chatbot-fab {
  position: fixed;
  bottom: 90px;
  right: var(--space-md);
  z-index: 800;
  width: 56px; height: 56px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(214,40,40,0.45);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1.4rem;
  color: var(--white);
}
@media (min-width: 900px) { .chatbot-fab { bottom: var(--space-lg); } }
.chatbot-fab:hover { transform: scale(1.1); }
.chatbot-fab .badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: #10B981;
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.chatbot-panel {
  display: none;
  position: fixed;
  bottom: 160px;
  right: var(--space-md);
  z-index: 801;
  width: min(380px, calc(100vw - 2 * var(--space-md)));
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px var(--shadow-lg);
  overflow: hidden;
  animation: chatSlideIn 0.3s ease;
}
@media (min-width: 900px) { .chatbot-panel { bottom: 90px; } }
.chatbot-panel.open { display: flex; flex-direction: column; }
@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.chatbot-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--red);
  color: var(--white);
}
.chatbot-panel__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.chatbot-panel__status {
  font-size: 0.8rem;
  opacity: 0.8;
}
.chatbot-panel__close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.chatbot-panel__close:hover { background: rgba(255,255,255,0.3); }
.chatbot-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-height: 400px;
  min-height: 200px;
}
.chat-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.4;
  animation: bubbleFade 0.25s ease;
}
@keyframes bubbleFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-bubble.bot {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-bubble.user {
  background: var(--red);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  padding: 0 var(--space-md) var(--space-md);
}
.chat-option {
  padding: 8px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}
.chat-option:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.chatbot-panel__input-row {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--border);
}
.chatbot-panel__input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}
.chatbot-panel__input:focus { border-color: var(--red); }
.chatbot-panel__send {
  background: var(--red);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1rem;
}

/* === FOOTER === */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: var(--space-xl) 0 var(--space-lg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
@media (min-width: 600px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer__brand .navbar__logo-text { color: rgba(255,255,255,0.9); }
.footer__brand .navbar__logo-text span { color: var(--red); }
.footer__desc {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer__title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-md);
}
.footer__links { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--red); }
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}
.footer__contact-item .icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.footer__contact-item a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer__contact-item a:hover { color: var(--red); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer__bottom-links { display: flex; gap: var(--space-md); }
.footer__bottom-links a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer__bottom-links a:hover { color: var(--red); }

/* === PAGE HEADER (inner pages) === */
.page-header {
  padding-top: calc(70px + var(--space-xl));
  padding-bottom: var(--space-xl);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(214,40,40,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header__label { margin-bottom: var(--space-sm); }
.page-header h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.page-header p { font-size: 1.1rem; margin-top: var(--space-md); max-width: 600px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: var(--space-md);
}
.breadcrumb a { color: var(--text-3); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--text-3); }

/* === CTA SECTION === */
.cta-section {
  background: var(--red);
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(0,0,0,0.04) 20px,
    rgba(0,0,0,0.04) 40px
  );
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); margin-bottom: var(--space-md); }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: var(--space-lg); }
.btn-white {
  background: var(--white);
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--white);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all var(--transition);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
}
.btn-white-outline {
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.5);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all var(--transition);
}
.btn-white-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* === LEGAL PAGES === */
.legal-content {
  max-width: var(--max-w-sm);
  margin: 0 auto;
  padding: var(--space-xl) 0;
}
.legal-content h2 {
  font-size: 1.4rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}
.legal-content p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}
.legal-content ul {
  list-style: disc;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
  color: var(--text-2);
}
.legal-content a { color: var(--red); }
.last-updated {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: var(--space-xl);
}

/* === 404 PAGE === */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}
.not-found__number {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  color: var(--red);
  opacity: 0.15;
  line-height: 1;
  position: absolute;
}
.not-found__content { position: relative; z-index: 1; }

/* === SCROLL ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* === UTILITIES === */
.text-red   { color: var(--red); }
.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }
.text-center .section-desc { margin-left: auto; margin-right: auto; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* === CF TURNSTILE === */
.cf-turnstile { margin: var(--space-md) 0; }
