/* ===================================================================
   shared-assets/base.css

   –– Everything that’s common between Site A and Site B: typography,
      spacing, nav layout, animations, component defaults, utility
      classes, etc. –– but instead of hard-coded hex colors, we use
      CSS variables like var(--color-primary), var(--color-accent), etc.
==================================================================== */

/* ── Default CSS Variables (fallbacks) ───────────────────────────────── */
:root {
  /* Sizing */
  --nav-height: 60px;
  --section-vertical: clamp(1rem, 5vw, 3rem);

  /* Brand & theme colors (fallback values) */
  --color-primary: #ff6b00; /* Primary button/hover/active */
  --color-accent: #2a5298;  /* Accent for headings, icons, etc. */
  --color-dark: #111;       /* General text/dark backgrounds */
  --color-light: #f8f9fa;   /* Page backgrounds, light cards */
  --color-hero-1: #16222A;  /* Hero gradient start */
  --color-hero-2: #3A6073;  /* Hero gradient end */
}

/* ── Base HTML / Utility Rules ─────────────────────────────────────────── */

/* Smooth scrolling with top padding (for fixed nav) */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}


/* Prevent rubber-band on iOS */
body {
  overscroll-behavior-y: contain;
  font-family: 'Manrope', sans-serif;
  background-color: var(--color-light);
  color: var(--color-dark);
  padding-top: var(--nav-height);
  margin: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

@media (max-width: 575px) {
  :root {
    --nav-height: 56px; /* slightly reduced on mobile */
  }
}


/* Fluid typography */
h1 { font-size: clamp(1.75rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2.5rem); }
h4 { font-weight: 800; }

/* Section spacing */
.section, .hero-section, .why-choose-us {
  padding: var(--section-vertical) 0;
}

/* Responsive container widths */
.container {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .container { max-width: 720px; }
}
@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}

/* Touch optimization */
.btn, .nav-link {
  touch-action: manipulation;
}

/* Reduce motion if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, [data-aos] {
    animation: none !important;
    transition: none !important;
  }
}

/* Hide decorative Lottie & desktop‐only shares on small screen */
@media (max-width: 767px) {
  .d-none.d-lg-block { display: none !important; }
}
html, body {
  overscroll-behavior: none;
  overflow-x: hidden;
}
.modal-open {
  overscroll-behavior-y: none;
}

input,
textarea,
select {
  font-size: 16px !important; /* prevents Safari zoom-in */
}


/* ── Glass‐Style Navbar ───────────────────────────────────────────────── */
        .glass-nav {
          /* almost-opaque black */
          background: rgba(17, 17, 17, 0.95);
          backdrop-filter: saturate(180%) blur(20px);
          border-bottom: 1px solid rgba(255,255,255,0.1);
          height: var(--nav-height);
          padding: 0;
          transition: all .3s ease;
      }
      .glass-nav .container-fluid {
          display: flex;
          align-items: center;
          justify-content: space-between;
          height: 100%;
      }

      /* Logo */
      .nav-logo {
        height: auto;
        max-height: var(--logo-height, 32px);
        width: auto;
        max-width: 100%;
        object-fit: contain;
      }
      
      @media (max-width: 575px) {
        .nav-logo {
          height: 8vw;  /* Responsive to screen width */
          max-height: 40px;
        }
      }

      /* Nav links */
      .glass-nav .nav-link {
          position: relative;
          margin: 0 0.75rem;
          line-height: var(--nav-height);
          font-size: 0.95rem;
          letter-spacing: 0.025em;
          font-weight: 500;
          color: #eee;
          transition: color .2s;
      }
      .glass-nav .nav-link:hover,
      .glass-nav .nav-link.active {
          color: var(--color-primary);
      }
      .glass-nav .nav-link.active::after {
          content: '';
          position: absolute;
          bottom: 8px;
          left: 0;
          right: 0;
          height: 2px;
          background: var(--color-primary);
          border-radius: 1px;
      }

      /* Demo button in navbar */
      .glass-nav .demo-btn {
          padding: .25rem .75rem;
          font-size: .85rem;
          border-width: 1px;
          border-radius: 50px;
          text-transform: uppercase;
          letter-spacing: .05em;
          color: #fff;
          line-height: 1;
          transition: background .2s, color .2s;
          white-space: nowrap; /* Prevent button text from wrapping if too long */
      }
      .glass-nav .demo-btn:hover {
          background: var(--color-primary);
          border-color: var(--color-primary);
          color: var(--color-dark);
      }

      /* Mobile toggler */
      .navbar-toggler {
          border-color: rgba(255,255,255,0.4);
          padding: .25rem .5rem;
          /* Optional: Add some margin for better tap area */
          margin-right: 0.5rem;
      }
      .navbar-toggler-icon {
          filter: invert(100%) brightness(150%); /* Makes the hamburger icon white/visible */
      }

      /* Collapsed menu item spacing (on small) and background */
      @media (max-width: 991px) {
          .navbar-collapse {
              background-color: rgba(17, 17, 17, 0.98); /* Slightly more opaque for readability */
              padding: 1.5rem 1rem; /* More vertical padding */
              border-radius: 0.5rem;
              box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.25);
              
              /* Positioning for full-width overlay below the fixed nav */
              position: absolute;
              top: var(--nav-height); /* Aligns just below the fixed navbar */
              left: 0;
              width: 100%;
              z-index: 1020; /* Ensure it's above other content */
              border-top: 1px solid rgba(255,255,255,0.1); /* Separator from top nav */
          }

          .glass-nav .nav-link {
              padding: 0.75rem 1rem; /* More vertical padding for touch */
              line-height: 1.5;
              text-align: center; /* Center align text */
          }

          .glass-nav .nav-link.active::after {
              bottom: 0; /* Adjust active indicator position for collapsed menu */
          }

          /* Override Bootstrap's default flex behavior for collapsed menu */
          .glass-nav .navbar-nav {
              flex-direction: column; /* Stack items vertically */
              align-items: center; /* Center items horizontally in the column */
              width: 100%; /* Ensure it takes full width for centering */
          }

          .glass-nav .navbar-nav.mx-auto {
              margin-left: 0 !important; /* Override mx-auto */
              margin-right: 0 !important;
          }

          /* Language links specific adjustments */
          .glass-nav .navbar-nav.me-3 {
              margin-right: 0 !important;
              margin-top: 1.5rem; /* Space from main nav links */
              display: flex;
              flex-wrap: wrap; /* Allow wrapping for many languages */
              justify-content: center;
              width: 100%;
          }

          .glass-nav .navbar-nav.me-3 .nav-item {
              margin: 0 0.75rem 0.5rem; /* Space out language links and add bottom margin for wrapping */
          }

          /* Demo button specific adjustments */
          .glass-nav .demo-btn {
              display: block; /* Make it a block element to take full width */
              width: fit-content; /* Adjust width to content, not full block width */
              margin: 1.5rem auto 0 auto; /* Center button and add more top margin */
              font-size: 0.9rem; /* Slightly larger for touch */
              padding: .5rem 1.25rem; /* More padding for touch */
          }
        }
/* ── Hero Section ───────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 70vh;
  background: linear-gradient(135deg, var(--color-hero-1), var(--color-hero-2));
  overflow: hidden;
}

.hero-lottie {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 120%;
  opacity: 0.55;
  filter: blur(4px) brightness(0.6);
  z-index: 1;
  pointer-events: none;
  max-width: none;
}

@media (max-width: 768px) {
  .hero-lottie {
    top: 0;
    transform: translateX(-50%) scale(1.1);
    width: 100%;
    height: 100%;
    opacity: 1; /* slightly dimmer on small screens */
    filter: blur(6px) brightness(0.5);
  }
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2;
}

.hero-section .container {
  position: relative;
  z-index: 3;
  padding-top: 2rem;
  text-align: center;
}

.hero-section h1.display-1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

.hero-section .lead {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: #eef;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 2rem;
  opacity: .7;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 10px); }
}
/* ── Call-to-Action Buttons ───────────────────────────────────────────────── */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transition: transform .3s, box-shadow .3s;
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.4);
}
.btn-lg.rounded-pill {
  border-radius: 50px;
}

/* ── “Why Choose Us” Section ─────────────────────────────────────────────── */
.why-choose-us h5 {
  font-weight: 700;
  color: var(--color-accent);
}

/* ── Animation Section ───────────────────────────────────────────────────── */
.animation-section {
  background-color: #ffffff;
}
.animation-player {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: block;
}

/* ── How It Works Section ────────────────────────────────────────────────── */
.how-it-works-section .row.align-items-start {
  align-items: flex-start;
}
.step-card {
  position: relative;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: .5rem;
  padding: 1.5rem;
  height: 100%;
  transition: transform .3s, box-shadow .3s;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
}
/* Number badge */
.step-badge {
  position: absolute; top: .75rem; right: .75rem;
  width: 28px; height: 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
}
/* Icon bubble */
.step-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  background: rgba(42,82,152,0.1);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  transition: transform .3s, box-shadow .3s;
}
.step-card:hover .step-icon {
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 8px 20px rgba(42,82,152,0.2);
}
/* Card text */
.step-card h5 {
  margin-bottom: .5rem;
  font-weight: 700;
  color: var(--color-accent);
}
.step-card p {
  font-size: .95rem;
  color: #555;
  line-height: 1.4;
}

/* ── Feature Boxes ───────────────────────────────────────────────────────── */
.feature-box {
  transition: transform .3s, box-shadow .3s;
}
.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.features-section {
  background-color: var(--color-light);
}
.feature-card {
  position: relative;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: .75rem;
  transition: transform .3s, box-shadow .3s;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
/* Icon bubble */
.feature-icon {
  width: 64px; height: 64px;
  margin: 0 auto;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  transition: transform .3s, box-shadow .3s;
}
.feature-card:hover .feature-icon {
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 12px 24px rgba(42,82,152,0.3);
}
/* Titles & descriptions */
.feature-title {
  margin-top: .75rem;
  font-weight: 700;
  color: var(--color-accent);
}
.feature-desc {
  margin-top: .5rem;
  color: #555;
  font-size: .95rem;
  line-height: 1.4;
}

/* ── Trusted-by Logos ───────────────────────────────────────────────────── */
section.bg-light img {
  filter: grayscale(80%);
  transition: filter .3s, transform .3s;
}
section.bg-light img:hover {
  filter: none;
  transform: scale(1.1);
}

/* ── Secondary CTA ───────────────────────────────────────────────────────── */
.cta-secondary {
  background: #fff;
  padding: 3rem 0;
  text-align: center;
}
.cta-secondary h3 {
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.cta-secondary .btn-primary {
  padding: .75rem 2rem;
  box-shadow: 0 6px 20px rgba(42,82,152,0.4);
  transition: box-shadow .3s, transform .3s;
}
.cta-secondary .btn-primary:hover {
  box-shadow: 0 12px 30px rgba(42,82,152,0.6);
  transform: translateY(-3px);
}

/* ── FOOTER STYLES ───────────────────────────────────────────────── */
.footer-section {
  background-color: var(--color-dark);
  color: #ddd;
  padding: 3rem 0 1rem;
  font-size: .9rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-grid .col-md-3 {
  flex: 1;
  min-width: 180px;
}
/* Headings */
.footer-section h6 {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: #fff;
}
/* Links */
.footer-link {
  color: #bbb;
  text-decoration: none;
  display: block;
  margin-bottom: .5rem;
  transition: color .2s;
}
.footer-link:hover {
  color: var(--color-primary);
}
/* Newsletter Form */
.footer-newsletter .form-control-sm,
.footer-newsletter .form-select-sm {
  background-color: #222;
  border: none;
  border-radius: 20px;
  color: #fff;
  padding: .4rem 1rem;
  min-width: 100px;
}
.footer-newsletter .btn-sm {
  border-radius: 20px;
  padding: .4rem 1rem;
}
/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
}
.social-icon {
  font-size: 1.2rem;
  color: #ccc;
  transition: color .3s, transform .3s;
}
.social-icon:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}
/* Divider */
.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 2rem 0;
}
/* Bottom text */
.footer-bottom a.back-to-top {
  color: #aaa;
  text-decoration: none;
  margin-left: 1rem;
  transition: color .2s;
}
.footer-bottom a.back-to-top:hover {
  color: #fff;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
  .footer-grid .footer-newsletter form {
    justify-content: center;
  }
}
.footer-section .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ── AOS Animations ───────────────────────────────────────────────────────── */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}
[data-aos].aos-animate {
  opacity: 1;
}

/* ── Testimonials Section ────────────────────────────────────────────────── */
#testimonials {
  background: #fff;
}
#testimonials .carousel-item {
  min-height: 180px;
}
#testimonials .blockquote-footer {
  margin-top: .5rem;
  font-size: .9rem;
  color: #666;
}

/* ── About Us ───────────────────────────────────────────────────────────── */
#about-us {
  background-color: var(--color-light);
}

/* ── Pricing Section ─────────────────────────────────────────────────────── */
#pricing {
  background-color: var(--color-light);
  color: var(--color-dark);
}
#pricing .section-title {
  margin-bottom: 1rem;
}
#pricing .lead {
  font-size: 1.125rem;
}
#pricing .btn-primary {
  padding: .75rem 2rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(42,82,152,0.2);
  transition: transform .2s, box-shadow .2s;
}
#pricing .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(42,82,152,0.3);
}

/* ── Contact Section ─────────────────────────────────────────────────────── */
#contact {
  background-color: var(--color-light);
}
#contact .section-title {
  margin-bottom: 1rem;
}
#contact .form-control {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: .375rem;
  padding: .75rem 1rem;
  transition: border-color .2s, box-shadow .2s;
}
#contact .form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(255, 107, 0, 0.3);
}
/* Ensure checkbox is visible & clickable */
#contact .form-check-input {
  width: 1.25em;
  height: 1.25em;
  cursor: pointer;
}
/* Match button style */
#contact .btn-primary {
  padding: .75rem 2rem;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
#contact .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42,82,152,0.2);
}

/* ── Chat Bubble & Modal ───────────────────────────────────────────────── */
.chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px; height: 56px;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1055;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .3s;
}
.chat-bubble:hover { transform: scale(1.1); }

/* ── Modern Chat Window ─────────────────────────────────────────────────── */
.modal-dialog-bottom {
  position: fixed;
  bottom: 20px;
  right: 20px;
  margin: 0;
  width: 480px;
  height: calc(var(--vh, 1vh) - 40px); /* dynamic height, avoids iOS keyboard issues */
  max-height: 100%;
  display: flex;
  flex-direction: column;
  transition: height 0.3s ease;
}
.chat-window {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  border-radius: .75rem;
  overflow: hidden;
}
/* Header */
.chat-header {
  background-color: var(--color-primary);
  color: #fff;
  font-size: .95rem;
}
.chat-header .fa-robot {
  font-size: 1.2rem;
}
/* Body */
.chat-body {
  background: #f7f7f7;
  flex: 1 1 auto;
  overflow-y: auto;
  font-size: .875rem;
}
.chat-body .message {
  display: flex;
  align-items: flex-start;
}
.chat-body .message.agent .avatar {
  color: var(--color-primary);
}
.chat-body .message.agent .avatar i {
  font-size: 1.1rem;
}
.chat-body .message.user {
  justify-content: flex-end;
}
.chat-body .message .avatar {
  width: 28px;
  text-align: center;
  margin-right: 8px;
}
.chat-body .message .text {
  background: #fff;
  padding: .5rem .75rem;
  border-radius: .5rem;
  max-width: 75%;
}
.chat-body .message.user .text {
  background: var(--color-accent);
  color: #fff;
}
/* Footer */
.chat-footer {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.chat-footer .form-control-sm {
  height: 40px;
  border-radius: 20px;
}
.chat-footer .btn-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
/* Scrollbar */
.chat-body::-webkit-scrollbar {
  width: 4px;
}
.chat-body::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 2px;
}

@media (max-width: 575.98px) {
  .modal-dialog-bottom {
    right: 0;
    left: 0;
    bottom: 0;
    top: auto;
    margin: 0 auto;
    width: 100%;
    height: calc(var(--vh, 100vh) - 20px);
    max-width: 100vw;
    border-radius: 0 !important;
  }

  .chat-window {
    border-radius: 0 !important;
    height: var(--vh, 100vh);
  }
}

.modal-dialog-bottom {
  transition: all 0.3s ease-in-out;
}

/* ── Step Cards (2×2 grid) ───────────────────────────────────────────────── */
.row-cols-1.row-cols-md-2.g-4 .col {
  margin-bottom: 1rem;
}

/* Repeat of hero typography overrides for hero text */
.hero-section h1.display-1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero-section .lead {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  letter-spacing: 0.015em;
}

/* === Tarte au Citron Minimal Overrides (Actionlytic) === */
#tarteaucitronRoot,
#tarteaucitronRoot * {
  font-family: 'Manrope', sans-serif !important;
}
/* Accent color for Tarte au Citron buttons */
#tarteaucitronAlertBig .tarteaucitronAllow {
  background-color: var(--color-primary) !important;
  color: #fff !important;
  border-radius: 30px;
  font-weight: 600;
}
#tarteaucitronAlertBig .tarteaucitronAllow:hover {
  background-color: #ff8533 !important;
}
#tarteaucitronAlertBig .tarteaucitronDeny {
  background-color: var(--color-dark) !important;
  color: #fff !important;
  border-radius: 30px;
  font-weight: 600;
}
#tarteaucitronAlertBig .tarteaucitronDeny:hover {
  background-color: #555 !important;
}
#tarteaucitronAlertBig h1 {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #fff !important;
}
#tarteaucitronAlertBig p {
  font-size: 0.95rem !important;
  color: #ccc !important;
}
#tarteaucitronServices .tarteaucitronTitle {
  font-weight: 700;
  color: var(--color-accent);
}
#tarteaucitronServices .tarteaucitronSwitch input:checked + .tarteaucitronSwitch-label {
  background-color: var(--color-primary) !important;
}
#tarteaucitronAlertSmall {
  background-color: var(--color-dark) !important;
  border-radius: 50% !important;
}