/* TransRoyal public site — shared components (Phase 3A)
   Extracted from rules verified identical (or functionally
   equivalent) across multiple pages in the dominant public design
   system: navbar, mobile menu, section utilities, buttons, the CTA
   banner, footer, back-to-top, and scroll-reveal utilities.
   Requires public-tokens.css to be loaded first.

   Known drift not yet reconciled across other pages (see Phase 3A
   duplication analysis): some pages define slightly different
   values for .section-desc max-width, use a different footer
   shimmer keyframe name, or use differently-structured button
   classes (e.g. services.html's .btn-white does not rely on a
   shared .btn base). Those pages will need verification, not a
   blind swap to this file, when they are migrated. */

/* ── SCROLL PROGRESS ── */
.scroll-progress { position: fixed; top: 0; left: 0; z-index: 1001; height: 3px; width: 0%; background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary)); transition: width 0.1s linear; border-radius: 0 2px 2px 0; pointer-events: none; }

/* ── NAVBAR ── */
.navbar { position: fixed; top: 0; left: 0; right: 0; height: 72px; background: rgba(255,255,255,0.97); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); border-bottom: 1px solid rgba(0,0,163,0.07); z-index: 1000; transition: box-shadow var(--dur-mid) ease, background var(--dur-mid) ease; }
.navbar.scrolled { box-shadow: 0 4px 32px rgba(0,0,163,0.1); background: rgba(255,255,255,0.99); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 52px; width: auto; transition: transform var(--dur-mid) var(--ease-expo); }
.nav-logo img:hover { transform: scale(1.05); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links > li > a, .nav-dropdown-btn { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.5rem 0.875rem; font-family: var(--font-display); font-size: 0.875rem; font-weight: 600; color: var(--primary); background: none; border: none; letter-spacing: 0.02em; border-radius: 8px; position: relative; transition: color var(--dur-fast) ease, background var(--dur-fast) ease; }
.nav-links > li > a::after { content: ''; position: absolute; bottom: 4px; left: 0.875rem; right: 0.875rem; height: 2px; background: var(--primary); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform var(--dur-mid) var(--ease-expo); }
.nav-links > li > a:hover, .nav-dropdown-btn:hover { color: var(--secondary); background: rgba(0,0,163,0.04); }
.nav-links > li > a:hover::after, .nav-links > li > a.active::after { transform: scaleX(1); }
.nav-dropdown { position: relative; }
.nav-dropdown-btn .chevron { font-size: 0.6rem; transition: transform var(--dur-mid) var(--ease-expo); display: inline-block; }
.nav-dropdown-menu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); min-width: 230px; background: var(--white); border: 1px solid rgba(0,0,163,0.1); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,163,0.14), 0 4px 16px rgba(0,0,0,0.06); padding: 0.5rem; z-index: 200; }
.nav-dropdown-menu a { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 1rem; border-radius: 10px; font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; color: var(--text-dark); transition: background var(--dur-fast) ease, color var(--dur-fast) ease, padding-left var(--dur-fast) ease; }
.nav-dropdown-menu a::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); opacity: 0; flex-shrink: 0; transition: opacity var(--dur-fast) ease; }
.nav-dropdown-menu a:hover { background: rgba(0,0,163,0.05); color: var(--primary); padding-left: 1.25rem; }
.nav-dropdown-menu a:hover::before { opacity: 1; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; z-index: 110; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: all 0.35s var(--ease-expo); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-overlay { position: fixed; inset: 0; background: rgba(13,13,63,0.45); backdrop-filter: blur(6px); z-index: 1049; opacity: 0; pointer-events: none; transition: opacity var(--dur-mid) ease; }
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px,88vw); background: var(--white); border-left: 1px solid rgba(0,0,163,0.07); z-index: 1050; transform: translateX(100%); transition: transform 0.45s var(--ease-expo); overflow-y: auto; display: flex; flex-direction: column; }
.mobile-menu.open { transform: translateX(0); }
.mm-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(0,0,163,0.07); flex-shrink: 0; }
.mm-header img { height: 40px; width: auto; }
.mm-close { width: 36px; height: 36px; border-radius: 10px; background: rgba(0,0,163,0.06); border: none; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 0.875rem; transition: background var(--dur-fast) ease; }
.mm-close:hover { background: rgba(0,0,163,0.12); }
.mm-nav { flex: 1; padding: 1rem 1.25rem; }
.mm-nav a, .mm-nav button.mm-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0.875rem 0.75rem; border: none; background: none; font-family: var(--font-display); font-size: 0.975rem; font-weight: 600; color: var(--primary); border-radius: 10px; transition: background var(--dur-fast) ease, color var(--dur-fast) ease, padding-left var(--dur-fast) ease; }
.mm-nav a:hover, .mm-nav button.mm-btn:hover { background: rgba(0,0,163,0.05); color: var(--secondary); padding-left: 1.125rem; }
.mm-divider { height: 1px; background: rgba(0,0,163,0.06); margin: 0.25rem 0; }
.mm-sub { background: rgba(0,0,163,0.03); border-radius: 10px; margin: 0.25rem 0 0.5rem; overflow: hidden; }
.mm-sub a { padding: 0.7rem 0.75rem 0.7rem 1.5rem; font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--text-light); border-radius: 0; }
.mm-sub a:hover { color: var(--primary); padding-left: 1.875rem; }
.mm-sub a + a { border-top: 1px solid rgba(0,0,163,0.05); }
.mm-footer { padding: 1.25rem 1.5rem; border-top: 1px solid rgba(0,0,163,0.07); flex-shrink: 0; }
.mm-cta { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 0.875rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border: none; border-radius: 12px; font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; transition: all var(--dur-mid) ease; }
.mm-cta:hover { background: linear-gradient(135deg, var(--secondary), var(--accent)); transform: translateY(-1px); }
@media (max-width: 1023px) { .nav-links { display: none; } .hamburger { display: flex; } }

/* ── APP TAB BAR (phone-app shell, mobile only) ──
   Replaces the hamburger drawer as the primary mobile nav surface below
   768px. The drawer itself (.mobile-menu) still exists in the DOM and is
   still opened by assets/js/app-shell.js — the "Menu" tab below just
   simulates a click on the now-hidden .hamburger button so all existing
   Alpine state (mobileOpen/toggleMobile/closeMobile) keeps working. */
.app-tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1002;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-top: 1px solid rgba(0,0,163,0.08);
  box-shadow: 0 -6px 24px rgba(0,0,163,0.08);
}
.app-tabbar-inner { display: flex; align-items: stretch; justify-content: space-around; max-width: 560px; margin: 0 auto; }
.app-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; flex: 1; padding: 6px 2px; min-height: 48px;
  color: #8b8dab; background: none; border: none;
  font-family: var(--font-display); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.01em; border-radius: 10px; transition: color var(--dur-fast) ease;
}
.app-tab i { font-size: 1.05rem; line-height: 1; }
.app-tab.active { color: var(--primary); }

/* ── MOBILE CAROUSEL (assets/js/carousel.js turns card-grids into a
   swipeable, snap-scrolling strip with prev/next buttons + dots below
   768px; the grid class itself — .services-grid, .benefits-grid, etc —
   is left untouched so desktop's multi-column layout is unaffected).
   !important is used only where it overrides a specific page's own
   grid-template-columns mobile rule, which this must always win over
   regardless of that rule's position in the cascade. ── */
@media (max-width: 768px) {
  .is-carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1rem;
    padding: 0.25rem 1.25rem 0.5rem;
    margin: 0 -1.25rem;
  }
  .is-carousel::-webkit-scrollbar { display: none; }
  .is-carousel > * {
    scroll-snap-align: start;
    flex: 0 0 78% !important;
    max-width: 78% !important;
    min-width: 240px;
  }
}
.carousel-controls { display: none; }
@media (max-width: 768px) {
  .carousel-controls {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.25rem; margin: -0.25rem 0 0.875rem;
  }
}
.carousel-dots { display: flex; gap: 6px; align-items: center; }
.carousel-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,163,0.16); transition: all var(--dur-mid) var(--ease-expo); }
.carousel-dot.active { width: 18px; border-radius: 3px; background: var(--primary); }
.carousel-arrows { display: flex; gap: 0.5rem; }
.carousel-arrow {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: #fff; border: 1px solid rgba(0,0,163,0.12);
  box-shadow: 0 4px 14px rgba(0,0,163,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 0.78rem;
  transition: opacity var(--dur-fast) ease, transform 0.15s ease, background var(--dur-fast) ease;
}
.carousel-arrow:active { transform: scale(0.92); background: rgba(0,0,163,0.06); }
.carousel-arrow:disabled { opacity: 0.3; pointer-events: none; }

/* ── SCROLL REVEAL UTILITIES ── */
.reveal { opacity: 0; transform: translateY(40px) scale(0.97); transition: opacity var(--dur-slow) var(--ease-expo), transform var(--dur-slow) var(--ease-expo); }
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }
.reveal-left { transform: translateX(-48px) scale(0.97); opacity: 0; transition: opacity var(--dur-slow) var(--ease-expo), transform var(--dur-slow) var(--ease-expo); }
.reveal-right { transform: translateX(48px) scale(0.97); opacity: 0; transition: opacity var(--dur-slow) var(--ease-expo), transform var(--dur-slow) var(--ease-expo); }
.reveal-left.visible, .reveal-right.visible { transform: translateX(0) scale(1); opacity: 1; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

/* ── SECTION WAVE DIVIDERS (seamless transitions) ── */
.wave-divider { position: relative; overflow: hidden; line-height: 0; }
.wave-divider svg { display: block; width: 100%; }

/* ── SECTION UTILITIES ── */
.section { padding: 6rem 2rem; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-label { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); background: rgba(0,0,163,0.06); border: 1px solid rgba(0,0,163,0.14); border-radius: 100px; padding: 0.38rem 1rem; margin-bottom: 1rem; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem,4vw,3.1rem); font-weight: 800; color: var(--text-dark); letter-spacing: -0.025em; line-height: 1.08; margin-bottom: 1.25rem; }
.section-desc { font-family: var(--font-body); font-size: 1.05rem; font-weight: 300; color: var(--text-muted); line-height: 1.8; max-width: 560px; }
.section-header-center { text-align: center; }
.section-header-center .section-desc { margin: 0 auto; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.78rem 1.5rem; border-radius: 12px; font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.02em; border: none; transition: all var(--dur-mid) var(--ease-smooth); white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; box-shadow: 0 4px 16px rgba(0,0,163,0.2); }
.btn-primary:hover { background: linear-gradient(135deg, var(--secondary), var(--accent)); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,163,0.3); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: calc(0.78rem - 2px) calc(1.5rem - 2px); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,163,0.2); }
.btn-white { background: #fff; color: var(--primary); box-shadow: 0 4px 15px rgba(0,0,0,0.12); }
.btn-white:hover { background: var(--bg-light); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.16); }
.btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border: 2px solid rgba(255,255,255,0.3); backdrop-filter: blur(8px); padding: calc(0.78rem - 2px) calc(1.5rem - 2px); }
.btn-ghost:hover { background: rgba(255,255,255,0.24); border-color: rgba(255,255,255,0.55); transform: translateY(-2px); }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ── CTA BANNER ── */
.cta-section { padding: 3rem 2rem 6rem; }
.cta-card { max-width: 1200px; margin: 0 auto; background: linear-gradient(135deg,#080f50 0%,var(--primary) 55%,var(--secondary) 100%); border-radius: 32px; padding: 4rem; position: relative; overflow: hidden; box-shadow: var(--shadow-xl); animation: ctaFloat 4s ease-in-out infinite; }
.cta-card:hover { animation-play-state: paused; transform: translateY(-14px); box-shadow: 0 64px 140px rgba(0,0,163,0.38); transition: transform 0.4s var(--ease-expo),box-shadow 0.4s var(--ease-expo); }
@keyframes ctaFloat { 0%,100% { transform: translateY(0); box-shadow: var(--shadow-xl); } 50% { transform: translateY(-10px); box-shadow: 0 56px 120px rgba(0,0,163,0.32); } }
.cta-orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.07); pointer-events: none; }
.cta-orb-1 { width: 320px; height: 320px; top: -80px; right: -80px; }
.cta-orb-2 { width: 200px; height: 200px; bottom: -60px; left: -60px; }
.cta-orb-3 { width: 120px; height: 120px; top: 40%; right: 22%; }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.cta-text h2 { font-family: var(--font-display); font-size: clamp(1.75rem,3.5vw,2.8rem); font-weight: 800; color: #fff; letter-spacing: -0.025em; margin-bottom: 0.75rem; }
.cta-text p { font-family: var(--font-body); color: rgba(255,255,255,0.75); font-size: 1rem; font-weight: 300; max-width: 480px; margin-bottom: 1.5rem; }
.cta-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-badge { display: flex; align-items: center; gap: 0.4rem; background: rgba(255,255,255,0.11); border: 1px solid rgba(255,255,255,0.22); border-radius: 100px; padding: 0.38rem 1rem; font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.cta-dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; animation: badgePulse 2s ease-in-out infinite; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; flex-shrink: 0; }
@keyframes badgePulse { 0%,100% { opacity:1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); } 50% { opacity:0.7; box-shadow: 0 0 0 5px rgba(16,185,129,0); } }

/* ── FOOTER ── */
.footer { background: linear-gradient(180deg,#080f50 0%,#0a1660 50%,#000045 100%); color: rgba(255,255,255,0.72); padding: 0 0 2rem; position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; top: 0; left: -100%; right: 0; height: 2px; background: linear-gradient(90deg,transparent 0%,var(--primary-light) 20%,var(--accent) 50%,var(--secondary) 80%,transparent 100%); animation: footerBorderShimmer 4s ease-in-out infinite; }
@keyframes footerBorderShimmer { 0%{left:-100%;opacity:0.6} 50%{opacity:1} 100%{left:100%;opacity:0.6} }
.footer-bg-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.4; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 4rem 2rem 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand-logo { margin-bottom: 1.25rem; }
.footer-brand-logo img { height: 108px; width: auto; opacity: 0.9; }
.footer-brand-desc { font-family: var(--font-body); font-size: 0.875rem; font-weight: 300; color: rgba(255,255,255,0.52); line-height: 1.75; margin-bottom: 1.5rem; max-width: 260px; }
.footer-brand-socials { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.social-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); font-size: 0.875rem; transition: all var(--dur-mid) var(--ease-expo); position: relative; overflow: hidden; }
.social-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg,var(--primary),var(--accent)); opacity: 0; transition: opacity var(--dur-mid) ease; }
.social-btn:hover::before { opacity: 1; }
.social-btn:hover { color: #fff; border-color: transparent; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,163,0.4); }
.social-btn i { position: relative; z-index: 1; }
.footer-col h4 { font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; color: #fff; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.25rem; padding-bottom: 0.75rem; position: relative; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 28px; height: 2px; background: linear-gradient(90deg,var(--accent),var(--secondary)); border-radius: 2px; transition: width var(--dur-mid) var(--ease-expo); }
.footer-col:hover h4::after { width: 48px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.2rem; }
.footer-col a { font-family: var(--font-body); color: rgba(255,255,255,0.48); font-size: 0.875rem; font-weight: 300; display: flex; align-items: center; gap: 0; padding: 0.35rem 0; position: relative; overflow: hidden; transition: color var(--dur-fast) ease,padding-left var(--dur-mid) var(--ease-expo); }
.footer-col a::before { content: ''; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0; transition: all var(--dur-mid) var(--ease-expo); }
.footer-col a i { font-size: 0.65rem; opacity: 0.4; margin-right: 0.5rem; flex-shrink: 0; transition: opacity var(--dur-fast) ease; }
.footer-col a:hover { color: #fff; padding-left: 16px; }
.footer-col a:hover::before { left: 2px; opacity: 1; }
.footer-col a:hover i { opacity: 0.8; }
.footer-newsletter { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 2rem 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; position: relative; overflow: hidden; transition: border-color var(--dur-mid) ease,background var(--dur-mid) ease; }
.footer-newsletter:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); }
.footer-newsletter::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg,rgba(0,0,163,0.12) 0%,transparent 60%); pointer-events: none; }
.footer-newsletter-text { position: relative; }
.footer-newsletter-text h5 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #fff; margin-bottom: 0.35rem; }
.footer-newsletter-text p { font-family: var(--font-body); font-size: 0.85rem; font-weight: 300; color: rgba(255,255,255,0.52); }
.footer-newsletter-form { display: flex; gap: 0.625rem; flex-shrink: 0; position: relative; }
.footer-nl-input { height: 46px; padding: 0 1.25rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; outline: none; font-family: var(--font-body); font-size: 0.875rem; color: #fff; width: 240px; transition: all var(--dur-mid) ease; }
.footer-nl-input::placeholder { color: rgba(255,255,255,0.35); }
.footer-nl-input:focus { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); box-shadow: 0 0 0 3px rgba(0,119,255,0.15); }
.footer-nl-btn { height: 46px; padding: 0 1.5rem; background: linear-gradient(135deg,var(--primary),var(--secondary)); border: none; border-radius: 10px; font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: #fff; letter-spacing: 0.04em; transition: all var(--dur-mid) var(--ease-expo); display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.footer-nl-btn:hover { background: linear-gradient(135deg,var(--secondary),var(--accent)); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,163,0.4); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.75rem 0 0; border-top: 1px solid rgba(255,255,255,0.07); }
.footer-bottom-left { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-copy { font-family: var(--font-body); font-size: 0.8rem; color: rgba(255,255,255,0.32); }
.footer-bottom-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom-links a { font-family: var(--font-body); font-size: 0.78rem; color: rgba(255,255,255,0.32); transition: color var(--dur-fast) ease; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }
.footer-bottom-badge { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.35); letter-spacing: 0.06em; }
.footer-bottom-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }
.footer-orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(90px); }
.footer-orb-1 { width: 500px; height: 500px; background: rgba(0,0,163,0.12); bottom: -200px; left: -150px; animation: vmBgOrb 30s ease-in-out infinite alternate; }
.footer-orb-2 { width: 360px; height: 360px; background: rgba(0,74,173,0.1); top: -100px; right: -100px; animation: vmBgOrb 25s ease-in-out infinite alternate-reverse; }
@keyframes vmBgOrb { 0%,100%{transform:scale(1) translate(0,0)} 50%{transform:scale(1.15) translate(30px,20px)} }

/* ── BACK TO TOP ── */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; z-index: 500; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; background: linear-gradient(135deg,var(--primary),var(--primary-light),var(--accent)); color: #fff; border: none; border-radius: 14px; padding: 0.6rem 0.875rem; font-size: 1rem; box-shadow: 0 8px 32px rgba(0,0,163,0.35); transition: all 0.4s var(--ease-expo); opacity: 0; transform: translateY(20px); pointer-events: none; min-width: 52px; }
.back-to-top span { font-family: var(--font-display); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: linear-gradient(135deg,var(--accent),var(--secondary)); transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,163,0.45); }

/* ── SHARED RESPONSIVE (navbar / footer breakpoints only) ── */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 1.75rem; }
  .footer-brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2rem; }
  .footer-brand-desc { max-width: 360px; margin-bottom: 0; }
}
@media (max-width: 768px) {
  body { padding-top: 64px; padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .navbar { height: 64px; }
  .nav-inner { padding: 0 1.25rem; }
  .hamburger { display: none !important; }
  .app-tabbar { display: block; }
  .back-to-top { bottom: calc(58px + env(safe-area-inset-bottom) + 14px); right: 1rem; }
  .cta-card { padding: 2.5rem 1.5rem; border-radius: 24px; }
  .cta-inner { flex-direction: column; gap: 1.75rem; }
  .cta-actions { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; flex-direction: column; gap: 1rem; }
  .footer-newsletter { flex-direction: column; gap: 1.25rem; }
  .footer-nl-input { width: 100%; }
  .footer-newsletter-form { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 600px) {
  .section { padding: 3.5rem 1.25rem; }
  .cta-section { padding: 2rem 1.25rem 4rem; }
  .cta-card { padding: 2rem 1.25rem; border-radius: 20px; }
  /* Footer previously kept its 2rem (32px) side gutter at every width while
     every .section above it narrowed to 1.25rem (20px) — the footer read as
     more inset than the rest of the page on phones. Match the same gutter. */
  .footer-inner { padding: 3rem 1.25rem 0; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}
