/* ================================================================
   Gestionis – Syndic Professionnel au Maroc
   Custom CSS (complements Tailwind CDN)
   ================================================================ */

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

/* ===== CSS Variables ===== */
:root {
  --navy-900: #054F58;
  --navy-800: #097C87;
  --navy-700: #0B9BAA;
  --teal:     #23CED9;
  --teal-l:   #5ADEE8;
  --gold:     #FCA47C;
  --gold-l:   #F9D779;
  --sage:     #A1CCA6;
  --white:    #FFFFFF;
  --gray-l:   #F3F4F6;
  --nav-h:    80px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
  color: #1a2332;
  overflow-x: hidden;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar            { width: 5px; }
::-webkit-scrollbar-track      { background: var(--navy-900); }
::-webkit-scrollbar-thumb      { background: var(--teal); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover{ background: var(--teal-l); }

/* ===== Glassmorphism ===== */
.glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
}
.glass-dark {
  background: rgba(5,79,88,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ===== Keyframes ===== */
@keyframes fadeInUp   { from { opacity:0; transform:translateY(32px); }  to { opacity:1; transform:translateY(0); } }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-32px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInLeft { from { opacity:0; transform:translateX(-32px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeInRight{ from { opacity:0; transform:translateX(32px); }  to { opacity:1; transform:translateX(0); } }
@keyframes scaleIn    { from { opacity:0; transform:scale(0.85); }        to { opacity:1; transform:scale(1); }     }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}
@keyframes floatR {
  0%,100% { transform: translateY(0) rotate(3deg); }
  50%      { transform: translateY(-14px) rotate(-3deg); }
}

@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 0 0   rgba(35,206,217,0.5); }
  50%      { box-shadow: 0 0 0 18px rgba(35,206,217,0); }
}

@keyframes gradientMove {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes progressBar {
  from { width:0; }
  to   { width:100%; }
}

@keyframes blink {
  0%,100% { opacity:1; }
  50%      { opacity:0.4; }
}

/* ===== Scroll Reveal ===== */
.reveal        { opacity:0; transform:translateY(40px);  transition: opacity .7s ease, transform .7s ease; }
.reveal-left   { opacity:0; transform:translateX(-40px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right  { opacity:0; transform:translateX(40px);  transition: opacity .7s ease, transform .7s ease; }
.reveal-scale  { opacity:0; transform:scale(0.82);       transition: opacity .7s ease, transform .7s ease; }
.revealed      { opacity:1 !important; transform:none !important; }

.delay-1 { transition-delay:.1s !important; }
.delay-2 { transition-delay:.2s !important; }
.delay-3 { transition-delay:.3s !important; }
.delay-4 { transition-delay:.4s !important; }
.delay-5 { transition-delay:.5s !important; }
.delay-6 { transition-delay:.6s !important; }

/* ===== Scroll Progress ===== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  z-index: 9999;
  transition: width .1s linear;
}

/* ===== Page Loader ===== */
.page-loader {
  position: fixed; inset: 0;
  background: var(--navy-900);
  z-index: 10000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px;
  transition: opacity .5s ease, visibility .5s ease;
}
.page-loader.hidden { opacity:0; visibility:hidden; pointer-events:none; }
.loader-ring {
  width: 52px; height: 52px;
  border: 3px solid rgba(35,206,217,.2);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* ===== Navbar  – FROSTED GLASS (mint-teal tint, not plain white) ===== */
#navbar {
  position: fixed; top:0; left:0; right:0;
  height: var(--nav-h);
  z-index: 500;
  /*
   * Brand-tinted frosted glass:
   * Base colour = very light mint (#e8f6f4 = rgb 232 246 244)
   * Opacity 0.78 → hero image blurs through, gives warm teal glow
   */
  background: rgba(220,248,252,0.82);
  backdrop-filter: blur(24px) saturate(170%) brightness(1.06);
  -webkit-backdrop-filter: blur(24px) saturate(170%) brightness(1.06);
  border-bottom: 1px solid rgba(35,206,217,0.18);
  box-shadow: 0 1px 0 rgba(255,255,255,0.75) inset,
              0 4px 24px rgba(0,0,0,0.07);
  transition: background .4s ease, box-shadow .35s ease, border-color .35s ease;
}
#navbar.scrolled {
  background: rgba(220,248,252,0.97);
  backdrop-filter: blur(30px) saturate(190%) brightness(1.03);
  -webkit-backdrop-filter: blur(30px) saturate(190%) brightness(1.03);
  border-bottom-color: rgba(35,206,217,0.22);
  box-shadow: 0 1px 0 rgba(255,255,255,0.85) inset,
              0 6px 32px rgba(0,0,0,0.09);
}

/* Se connecter button (nav) */
.btn-login {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: .875rem; font-weight: 600;
  border: 1.5px solid rgba(5,79,88,0.22);
  color: #054F58;
  background: transparent;
  cursor: pointer; text-decoration: none;
  transition: all .28s ease;
  white-space: nowrap;
}
.btn-login:hover {
  background: #054F58;
  border-color: #054F58;
  color: #fff;
  box-shadow: 0 6px 20px rgba(5,79,88,0.20);
  transform: translateY(-1px);
}

.nav-link {
  position: relative;
  font-size: .88rem;
  font-weight: 600;
  color: rgba(5,79,88,0.60);
  text-decoration: none;
  padding: 6px 2px;
  transition: color .25s ease;
}
.nav-link::after {
  content: '';
  position: absolute; bottom:-2px; left:0;
  width:0; height:2px;
  background: var(--teal);
  border-radius:1px;
  transition: width .3s ease;
}
.nav-link:hover,
.nav-link.active { color: #054F58; }
.nav-link:hover::after,
.nav-link.active::after { width:100%; }

/* ===== Mobile Menu Panel  – matches navbar mint-teal glass ===== */
#mobile-menu-panel {
  position: fixed;
  top: var(--nav-h); left:0; right:0;
  z-index: 490;
  /* same mint-teal as navbar, slightly more opaque for readability */
  background: rgba(220,248,252,0.97);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(35,206,217,0.20);
  box-shadow: 0 10px 32px rgba(0,0,0,0.09);
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}
/* max-height managed dynamically by JS (scrollHeight) */

#main-content {
  padding-top: var(--nav-h);
  transition: padding-top .42s cubic-bezier(.4,0,.2,1);
}

/* ===== Gradient Text ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--teal), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================================================
   HERO – Sequential Entrance Animations
   8 distinct waves, each element appears at the right moment.
   animation-fill-mode:backwards = element is INVISIBLE until
   its animation starts (no flash of unstyled content).
================================================================ */

/* ── Keyframes ── */
@keyframes hBadgePop {
  0%   { opacity:0; transform:translateY(-18px) scale(0.82); }
  65%  { transform:translateY(3px) scale(1.04); }
  100% { opacity:1; transform:translateY(0) scale(1); }
}
@keyframes hWordFade {
  0%   { opacity:0; transform:translateY(26px); filter:blur(5px); }
  100% { opacity:1; transform:translateY(0);    filter:blur(0);   }
}
@keyframes hGradientReveal {
  0%   { opacity:0; transform:translateY(22px) skewX(-2deg); filter:blur(8px); }
  60%  { filter:blur(0); }
  100% { opacity:1; transform:translateY(0) skewX(0deg); }
}
@keyframes hFadeLeft {
  0%   { opacity:0; transform:translateX(-28px); }
  100% { opacity:1; transform:translateX(0); }
}
@keyframes hBtnBounce {
  0%   { opacity:0; transform:translateY(18px) scale(0.88); }
  70%  { transform:translateY(-3px) scale(1.03); }
  100% { opacity:1; transform:translateY(0) scale(1); }
}
@keyframes hTrustSlide {
  0%   { opacity:0; transform:translateX(-16px); }
  100% { opacity:1; transform:translateX(0); }
}
@keyframes hDeviceEntrance {
  0%   { opacity:0; transform:translateX(56px) scale(0.93) rotateY(6deg); }
  100% { opacity:1; transform:translateX(0)   scale(1)    rotateY(0deg); }
}
@keyframes hLineGrow {
  0%   { opacity:0; transform:scaleX(0); transform-origin:left; }
  100% { opacity:1; transform:scaleX(1); transform-origin:left; }
}

/* ── Base helper ── */
.ha { animation-fill-mode:backwards; }

/* ── Wave 1 – Badge (0.2s) ── */
.ha-badge {
  animation: hBadgePop 0.6s cubic-bezier(0.34,1.5,0.64,1) 0.2s backwards;
}
/* ── Wave 2 – "Votre" (0.55s) ── */
.ha-word1 {
  animation: hWordFade 0.65s cubic-bezier(0.4,0,0.2,1) 0.55s backwards;
  display:inline-block;
}
/* ── Wave 3 – "Syndic Professionnel" gradient (0.78s) ── */
.ha-word2 {
  animation: hGradientReveal 0.8s cubic-bezier(0.34,1.1,0.64,1) 0.78s backwards;
}
/* ── Wave 4 – "au Maroc" (1.0s) ── */
.ha-word3 {
  animation: hWordFade 0.6s cubic-bezier(0.4,0,0.2,1) 1.0s backwards;
  display:block;
}
/* ── Wave 5 – Subtitle (1.18s) ── */
.ha-sub {
  animation: hWordFade 0.7s cubic-bezier(0.4,0,0.2,1) 1.18s backwards;
}
/* ── Wave 6 – Buttons (1.38s / 1.52s) ── */
.ha-btn1 {
  animation: hBtnBounce 0.55s cubic-bezier(0.34,1.4,0.64,1) 1.38s backwards;
}
.ha-btn2 {
  animation: hBtnBounce 0.55s cubic-bezier(0.34,1.4,0.64,1) 1.52s backwards;
}
/* ── Wave 7 – Trust badges (1.68s / 1.78s / 1.88s) ── */
.ha-t1 { animation: hTrustSlide 0.45s ease 1.68s backwards; }
.ha-t2 { animation: hTrustSlide 0.45s ease 1.78s backwards; }
.ha-t3 { animation: hTrustSlide 0.45s ease 1.88s backwards; }
/* ── Wave 8 – Device mockup (0.5s, parallel start) ── */
.ha-device {
  animation: hDeviceEntrance 1.0s cubic-bezier(0.34,1.05,0.64,1) 0.5s backwards;
}
/* ── Mobile stats ── */
.ha-stats {
  animation: hWordFade 0.7s ease 1.6s backwards;
}

/* ===== Hero ===== */
.hero-section {
  background-color: #d8f5f7;          /* fallback colour while image loads  */
  background-size:  cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;       /* parallax / fixed on desktop        */
}
/* iOS Safari / mobile: fixed-attachment on elements causes a rendering bug */
@media (max-width: 1024px) {
  .hero-section { background-attachment: scroll; }
}
/* Ensure full-viewport on all browsers */
.hero-section { min-height: 100vh; min-height: 100dvh; }
.hero-particle {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .25;
  pointer-events: none;
}
/* Hero floating cards – LIGHT THEME (white cards, soft shadow) */
.hero-floating-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.11), 0 2px 8px rgba(0,0,0,0.05);
  padding: 20px 22px;
  animation: float 6s ease-in-out infinite;
}
.hero-floating-card.delay-a { animation-delay: 1.5s; }
.hero-floating-card.delay-b { animation-delay: 3s; }

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #23CED9, #15a8b5);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600; font-size: .95rem;
  border: none; cursor: pointer;
  transition: all .3s ease;
  position: relative; overflow: hidden;
  text-decoration: none; white-space: nowrap;
}
.btn-primary::after {
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.18),transparent);
  transform: translateX(-100%);
  transition: transform .5s ease;
}
.btn-primary:hover::after  { transform: translateX(100%); }
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 12px 32px rgba(35,206,217,.4); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600; font-size: .95rem;
  border: 2px solid rgba(255,255,255,.45);
  cursor: pointer;
  transition: all .3s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-outline:hover { border-color:#fff; background:rgba(255,255,255,.1); transform:translateY(-2px); }

.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
  color: var(--navy-900);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700; font-size: .95rem;
  border: none; cursor: pointer;
  transition: all .3s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-gold:hover { transform:translateY(-2px); box-shadow:0 12px 32px rgba(252,164,124,.4); }

.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy-900);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600; font-size: .95rem;
  border: 2px solid rgba(255,255,255,.12);
  cursor: pointer;
  transition: all .3s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-dark:hover { border-color: var(--teal); color: var(--teal); transform:translateY(-2px); }

/* Light-background outline button (dark border + navy text) */
.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: #054F58;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600; font-size: .95rem;
  border: 2px solid rgba(5,79,88,0.30);
  cursor: pointer;
  transition: all .3s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-outline-dark:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
  background: rgba(35,206,217,0.05);
}

/* ===== Section Helpers ===== */
.section-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(35,206,217,.1);
  border: 1px solid rgba(35,206,217,.25);
  color: var(--teal);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 16px;
}
.section-badge-gold {
  background: rgba(252,164,124,.12);
  border-color: rgba(252,164,124,.3);
  color: var(--gold);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.2;
}
.section-title-white { color: #fff; }

.section-sub {
  font-size: 1.05rem;
  color: #6B7280;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}
.section-sub-white { color: rgba(255,255,255,.7); }

.divider {
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 2px;
  margin: 16px auto 32px;
}
.divider-left { margin-left: 0; }

/* ===== Advantage Cards  – SPECTACULAR IMAGE CARDS ===== */

/* Entrance: blur + scale + slide — overrides default reveal */
.adv-card.reveal {
  opacity: 0 !important;
  transform: translateY(70px) scale(0.86) !important;
  filter: blur(5px) !important;
  transition: opacity .85s cubic-bezier(.4,0,.2,1),
              transform .85s cubic-bezier(.4,0,.2,1),
              filter .85s ease !important;
}
.adv-card.reveal.revealed {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  filter: blur(0) !important;
}

/* Card shell */
.adv-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 320px;
  cursor: pointer;
  background: #054F58;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  transition: box-shadow .45s ease, transform .45s ease;
}
.adv-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 28px 64px rgba(35,206,217,.28),
              0 10px 28px rgba(0,0,0,.22);
}

/* Background image */
.adv-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .75s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.adv-card:hover .adv-bg { transform: scale(1.12); }

/* Permanent dark gradient (readability) */
.adv-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(6,14,28,.96)  0%,
    rgba(6,14,28,.68) 50%,
    rgba(6,14,28,.28) 100%
  );
  transition: background .45s ease;
}
.adv-card:hover .adv-overlay {
  background: linear-gradient(
    to top,
    rgba(6,14,28,.98)  0%,
    rgba(10,60,72,.75) 55%,
    rgba(6,14,28,.18)  100%
  );
}

/* Teal shimmer sweep on hover */
.adv-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(35,206,217,.12) 50%,
    transparent 100%
  );
  transform: translateX(-100%) skewX(-15deg);
  transition: transform .7s cubic-bezier(.4,0,.2,1);
  z-index: 2; pointer-events: none;
}
.adv-card:hover::before { transform: translateX(160%) skewX(-15deg); }

/* Gold accent bar at bottom */
.adv-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, #23CED9, #FCA47C, #F9D779);
  transition: width .55s cubic-bezier(.4,0,.2,1);
  z-index: 5;
}
.adv-card:hover::after { width: 100%; }

/* Content layout */
.adv-content {
  position: absolute; inset: 0;
  padding: 26px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  z-index: 3;
}

/* Icon pill */
.adv-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: rgba(35,206,217,.22);
  border: 1px solid rgba(35,206,217,.45);
  color: #5eead4;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all .38s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
  align-self: flex-start;
}
.adv-card:hover .adv-icon {
  background: #23CED9;
  border-color: #23CED9;
  color: #fff;
  box-shadow: 0 8px 24px rgba(35,206,217,.55);
  transform: scale(1.12) rotate(-4deg);
}

/* Category tag (top-right) */
.adv-tag {
  position: absolute; top: 22px; right: 22px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.7);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .06em;
  backdrop-filter: blur(6px);
  transition: all .3s ease;
  z-index: 4;
}
.adv-card:hover .adv-tag {
  background: rgba(35,206,217,.3);
  border-color: rgba(35,206,217,.5);
  color: #5eead4;
}

/* Bottom block */
.adv-bottom { position: relative; }

.adv-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0;
  transition: margin-bottom .38s ease;
}
.adv-card:hover .adv-title { margin-bottom: 10px; }

.adv-desc {
  color: rgba(255,255,255,.72);
  font-size: .83rem;
  line-height: 1.65;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height .42s ease .04s,
              opacity .38s ease .06s,
              transform .38s ease .06s;
}
.adv-card:hover .adv-desc {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
}

.adv-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: #5eead4; font-size: .78rem; font-weight: 600;
  margin-top: 10px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease .16s, transform .3s ease .16s;
  text-decoration: none;
}
.adv-link svg { transition: transform .25s ease; }
.adv-card:hover .adv-link { opacity: 1; transform: translateY(0); }
.adv-card:hover .adv-link:hover svg { transform: translateX(4px); }

/* ===== Service Cards ===== */
.service-tab-btn {
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600; font-size: .9rem;
  border: 2px solid #E5E7EB;
  background: #fff;
  color: #6B7280;
  cursor: pointer;
  transition: all .3s ease;
  white-space: nowrap;
}
.service-tab-btn:hover { border-color: var(--teal); color: var(--teal); }
.service-tab-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 6px 20px rgba(35,206,217,.35);
}

.service-panel { display: none; }
.service-panel.active { display: block; animation: fadeInUp .4s ease; }

.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.05);
  transition: all .4s ease;
  position: relative; overflow: hidden;
}
.service-card::before {
  content:'';
  position:absolute; top:0; left:0;
  width:4px; height:100%;
  background: linear-gradient(180deg, var(--teal), var(--gold));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .4s ease;
}
.service-card:hover::before   { transform: scaleY(1); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.1);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(35,206,217,.12), rgba(35,206,217,.2));
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
  transition: all .3s ease;
  margin-bottom: 16px;
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--teal), #15a8b5);
  color: #fff;
}

/* ===== Stats ===== */
.stats-bg {
  background: linear-gradient(135deg, #022830 0%, #054F58 40%, #097C87 100%);
  position: relative; overflow: hidden;
}
.stats-bg::before {
  content:'';
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 25% 50%, rgba(35,206,217,.15) 0%, transparent 50%),
    radial-gradient(circle at 75% 50%, rgba(252,164,124,.1)  0%, transparent 50%);
}

.stat-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 40px 28px;
  text-align: center;
  transition: all .4s ease;
  position: relative; overflow: hidden;
}
.stat-card::after {
  content:'';
  position:absolute; bottom:0; left:0;
  width:100%; height:2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  opacity: 0;
  transition: opacity .3s ease;
}
.stat-card:hover::after  { opacity:1; }
.stat-card:hover {
  background: rgba(255,255,255,.09);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,.4);
}
.stat-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(35,206,217,.15);
  border: 1px solid rgba(35,206,217,.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  animation: pulseGlow 2.5s ease infinite;
}

/* ===== Timeline / Process ===== */
.process-line {
  position: absolute;
  left: 23px; top: 48px;
  width: 2px;
  height: calc(100% + 32px);
  background: linear-gradient(180deg, var(--teal) 0%, rgba(35,206,217,.1) 100%);
}
.process-step:last-child .process-line { display: none; }

.process-dot {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #054F58);
  border: 3px solid rgba(35,206,217,.3);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800; font-size: .9rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px rgba(35,206,217,.1);
  animation: pulseGlow 3s ease infinite;
}
.process-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  border: 1px solid rgba(0,0,0,.06);
  flex: 1;
  transition: all .4s ease;
}
.process-card:hover { transform: translateX(6px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.process-step { position: relative; display: flex; gap: 20px; margin-bottom: 32px; align-items: flex-start; }

/* ===== SmartSyndic / Platform ===== */
.platform-bg {
  background: linear-gradient(135deg, #023040 0%, #054F58 50%, #022830 100%);
  position: relative; overflow: hidden;
}
.platform-bg::before {
  content:'';
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 15% 30%, rgba(35,206,217,.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(252,164,124,.08)  0%, transparent 45%);
}

.platform-mockup {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05);
}
.mockup-topbar {
  background: rgba(35,206,217,.25);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.dot-red    { width:12px; height:12px; border-radius:50%; background:#ff5f57; }
.dot-yellow { width:12px; height:12px; border-radius:50%; background:#febc2e; }
.dot-green  { width:12px; height:12px; border-radius:50%; background:#28c840; }

.mockup-sidebar {
  background: rgba(5,79,88,.8);
  width: 56px;
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 0; gap: 20px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.mockup-sidebar-dot {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
}
.mockup-sidebar-dot.active { background: rgba(35,206,217,.3); }

.platform-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(35,206,217,.12);
  border: 1px solid rgba(35,206,217,.25);
  color: var(--teal-l);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: .83rem; font-weight: 500;
  transition: all .3s ease;
}
.platform-pill:hover { background: rgba(35,206,217,.25); transform: translateY(-2px); }

/* ===== Testimonials Carousel ===== */
.testimonial-wrap  { overflow: hidden; }
.testimonial-track {
  display: flex;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.testimonial-slide {
  flex: 0 0 100%;
  padding: 0 8px;
}
@media (min-width:768px)  { .testimonial-slide { flex: 0 0 50%; } }
@media (min-width:1024px) { .testimonial-slide { flex: 0 0 33.333%; } }

.testimonial-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px;
  height: 100%;
  box-shadow: 0 6px 28px rgba(0,0,0,.07);
  border: 1px solid rgba(0,0,0,.05);
  transition: all .4s ease;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 20px 56px rgba(0,0,0,.12); }

.stars { color: var(--gold); letter-spacing: 2px; }

.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none; cursor: pointer;
  transition: all .3s ease;
  background: #D1D5DB;
}
.carousel-dot.active { background: var(--teal); width: 28px; border-radius: 5px; }

/* ===== FAQ ===== */
.faq-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.07);
  background: #fff;
  transition: box-shadow .3s ease;
}
.faq-item:hover { box-shadow: 0 8px 28px rgba(0,0,0,.08); }

.faq-btn {
  width:100%; padding: 22px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: transparent; border: none; cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 1rem; font-weight: 600; color: var(--navy-900);
  transition: background .2s ease;
}
.faq-btn:hover { background: rgba(35,206,217,.04); }
.faq-icon { flex-shrink:0; transition: transform .35s ease; color: var(--teal); }
.faq-item.open .faq-icon { transform: rotate(180deg); }

.faq-body {
  max-height: 0; overflow: hidden;
  padding: 0 28px;
  transition: max-height .4s ease, padding .3s ease;
  color: #6B7280; font-size: .95rem; line-height: 1.75;
}
.faq-item.open .faq-body { max-height: 320px; padding-bottom: 24px; }

/* ===== Contact ===== */
.contact-bg {
  background: linear-gradient(135deg, #edfbfc 0%, #f8fafc 50%, #f0fdf4 100%);
}
.contact-input {
  width: 100%; padding: 14px 20px;
  border: 2px solid #E5E7EB; border-radius: 14px;
  font-size: .95rem; font-family: 'Inter', sans-serif;
  transition: all .3s ease; outline: none;
  background: #fff; color: #1a2332;
}
.contact-input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(35,206,217,.1); }
.contact-input.err   { border-color: #EF4444; box-shadow: 0 0 0 4px rgba(239,68,68,.08); }
.contact-input.ok    { border-color: #10B981; }

.err-msg { color:#EF4444; font-size:.8rem; margin-top:4px; display:none; }
.err-msg.show { display:block; animation: fadeInUp .2s ease; }

.contact-info-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px; padding: 20px 22px;
  transition: all .3s ease;
}
.contact-info-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(35,206,217,.15), rgba(35,206,217,.25));
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 999;
}
.whatsapp-btn {
  width: 58px; height: 58px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: all .3s ease;
  text-decoration: none;
  animation: float 4s ease-in-out infinite;
}
.whatsapp-btn:hover { transform: scale(1.12); box-shadow: 0 12px 36px rgba(37,211,102,.6); }

/* ===== Back to Top ===== */
#back-to-top {
  position: fixed; bottom: 100px; right: 28px;
  width: 44px; height: 44px;
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%; z-index: 998;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
  opacity: 0; transform: translateY(16px);
  transition: all .3s ease;
}
#back-to-top.visible { opacity:1; transform:translateY(0); }
#back-to-top:hover { background: var(--teal); border-color: var(--teal); }

/* ===== Notification Toast =====
   NOTE: position:fixed is NOT clipped by overflow-x:hidden on body.
   We use opacity+visibility to truly hide it, and translateX only
   for the slide-in animation when .show is added.               */
.toast {
  position: fixed; bottom: 90px; right: 28px;
  background: #10B981; color: #fff;
  padding: 16px 22px; border-radius: 14px;
  font-weight: 500; font-size: .9rem;
  box-shadow: 0 8px 24px rgba(16,185,129,.4);
  /* Hidden state – truly invisible, not just off-screen */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(.96);
  z-index: 1001;
  transition: opacity .35s ease, visibility .35s ease,
              transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; align-items: center; gap: 10px;
  max-width: 340px;
}
/* Shown state – slides up into view */
.toast.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* ===== Footer ===== */
.footer-bg {
  background: linear-gradient(135deg, #011820 0%, var(--navy-900) 100%);
}
.footer-link {
  color: rgba(255,255,255,.55);
  text-decoration: none; font-size: .88rem;
  transition: color .3s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-link:hover { color: var(--teal); }

.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: all .3s ease;
}
.social-btn:hover { background: var(--teal); border-color: var(--teal); color:#fff; transform:translateY(-3px); }

/* ===== Misc ===== */
.tag {
  display: inline-block;
  background: rgba(35,206,217,.1);
  border: 1px solid rgba(35,206,217,.2);
  color: var(--teal);
  padding: 4px 12px; border-radius: 50px;
  font-size: .78rem; font-weight: 600;
}

.checkmark-list li {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 12px;
  color: rgba(255,255,255,.8); font-size: .93rem;
}
.checkmark-list li::before {
  content:'';
  width: 20px; height: 20px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230D9488'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/%3E%3C/svg%3E") center/contain no-repeat;
  margin-top: 2px;
}

/* ===== Responsive tweaks ===== */
@media (max-width:768px) {
  .section-title { font-size: 1.7rem; }
  .btn-primary, .btn-outline, .btn-gold, .btn-dark { padding: 12px 24px; font-size: .88rem; }
  #main-content.menu-open { padding-top: calc(var(--nav-h) + 340px); }
}

/* ===== Print ===== */
@media print {
  .whatsapp-float, #back-to-top, #navbar, .toast { display:none !important; }
  #main-content { padding-top: 0 !important; }
}
