/*
 * ============================================================
 * Astriva Technologies — Main Stylesheet
 * Architecture: Tokens → Reset → Utilities → Buttons →
 *               Navbar → Hero → Sections → Footer
 * ============================================================
 */

/* ============================================================
   1. DESIGN TOKENS (CSS Custom Properties)
============================================================ */
:root {
  /* --- Background --- */
  --bg-primary:     #060C1A;
  --bg-section-alt: #0A1220;
  --bg-card:        #0A1628;
  --bg-card-deep:   #0F1E3D;

  /* --- Brand Colors --- */
  --color-primary:  #4F8EF7;
  --color-accent:   #22D3EE;
  --color-ai:       #A78BFA;
  --color-laravel:  #FF2D20;

  /* --- Text --- */
  --text-primary:   #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted:     #6B7280;

  /* --- Borders --- */
  --border-color:   #1E3A5F;

  /* --- Gradients --- */
  --gradient-primary:  linear-gradient(180deg, #4F8EF7 0%, #1A56DB 100%);
  --gradient-hero:     radial-gradient(ellipse at 65% 30%, #1A3A8F 0%, #0D1B5E 40%, #060C1A 100%);
  --gradient-cta:      linear-gradient(135deg, #0D1B5E 0%, #1A3A8F 50%, #0D1B5E 100%);

  /* --- Typography --- */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --- Spacing --- */
  --section-pad-y:    100px;
  --container-max:    1200px;
  --container-px:     120px;
  --nav-height:       96px;

  /* --- UI --- */
  --radius:      12px;
  --radius-sm:   8px;
  --radius-full: 100px;
  --transition:  0.3s ease;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 8px 32px rgba(79, 142, 247, 0.2);
}

/* ============================================================
   2. CSS RESET & BASE STYLES
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: var(--nav-height);
  /* Prevent iOS font size inflation on orientation change */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* iOS smooth momentum scrolling */
  -webkit-overflow-scrolling: touch;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================================
   3. UTILITIES
============================================================ */
.container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  /* Fluid padding: 16px on small mobile → 80px on desktop */
  padding-inline: clamp(16px, 5vw, 80px);
}

/* Section badge pill */
.section-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: rgba(15, 30, 61, 0.9);
  border: 1px solid rgba(79, 142, 247, 0.4);
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Section header block */
.section-header {
  text-align: center;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
}

/* ============================================================
   4. BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  border: 1px solid transparent;
}

/* Primary — blue gradient */
.btn-primary {
  background: var(--gradient-primary);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(79, 142, 247, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79, 142, 247, 0.45);
}
.btn-primary:active { transform: translateY(0); }

/* Ghost — dark card with border */
.btn-ghost {
  background: var(--bg-card-deep);
  color: var(--text-primary);
  border-color: var(--border-color);
}
.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Ghost White — for CTA banner on blue bg */
.btn-ghost-white {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   5. NAVBAR
   — Transparent on hero, glass morphism on scroll
============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  /* Starts fully transparent — merges with hero animation */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease,
              border-color 0.4s ease, backdrop-filter 0.4s ease;
}

/* Glass morphism appears on scroll */
.navbar.scrolled {
  background: rgba(6, 12, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 58, 95, 0.5);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}


.nav-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  /* Fluid horizontal padding: 16px mobile → 80px desktop */
  padding-inline: clamp(16px, 5vw, 80px);
  /* iOS notch safe area */
  padding-left: max(clamp(16px, 5vw, 80px), env(safe-area-inset-left));
  padding-right: max(clamp(16px, 5vw, 80px), env(safe-area-inset-right));
  /* Top padding: breathing room from browser top edge */
  padding-top: 10px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-img {
  height: 56px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition), height 0.4s ease,
              filter 0.4s ease;
}

/* Larger + glowing logo when floating over hero */
.navbar:not(.scrolled) .nav-logo-img {
  height: 70px;
  filter: brightness(1.1) drop-shadow(0 0 18px rgba(79, 142, 247, 0.45));
}

/* Standard size once navbar gains background */
.navbar.scrolled .nav-logo-img {
  height: 56px;
  filter: brightness(1.05);
}

.nav-logo:hover .nav-logo-img {
  opacity: 0.85;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

/* Full brightness links when floating over hero */
.navbar:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* CTA in nav */
.nav-cta {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 14px;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   5b. MOBILE MENU OVERLAY
   — Lives outside <header> to escape z-index stacking context
   — Uses visibility+opacity (NOT display) so CSS transitions work
============================================================ */
.mobile-menu {
  /* Always rendered as flex — visibility controls show/hide */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  position: fixed;
  top: var(--nav-height, 76px); /* sits directly below navbar */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;

  background: rgba(6, 12, 26, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);

  padding: 20px 24px max(32px, env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  /* Hidden state — delay visibility so fade-out finishes first */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.28s ease, transform 0.28s ease,
              visibility 0s linear 0.28s;
}

/* Open state — show immediately, animate in */
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.28s ease, transform 0.28s ease,
              visibility 0s linear 0s;
}

.mobile-menu nav {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.mobile-menu ul {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
}

.mobile-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  min-height: 52px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  letter-spacing: 0.2px;
}

.mobile-link:hover,
.mobile-link.active {
  color: #ffffff;
  background: rgba(79, 142, 247, 0.1);
  border-color: rgba(79, 142, 247, 0.25);
}

.mobile-menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  font-size: 1rem;
  white-space: normal;
  text-align: center;
}

/* ============================================================
   6. HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* No padding-top — navbar is transparent overlay, hero fills full viewport */
  overflow: hidden;
  background: var(--gradient-hero);
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 860px;
  /*
   * Top padding = navbar height + breathing room
   * This pushes content below the transparent floating navbar
   * Bottom padding keeps content from touching footer
   */
  padding: calc(var(--nav-height) + clamp(40px, 6vh, 80px))
           clamp(16px, 6vw, 60px)
           clamp(40px, 6vh, 80px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-card-deep);
  border: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 32px;
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-headline {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-accent {
  font-size: clamp(15px, 1.8vw, 22px);
  color: var(--color-primary);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero-description {
  font-size: clamp(14px, 1.2vw, 17px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 48px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   7. STATS BAR
============================================================ */
.stats-bar {
  background: var(--bg-section-alt);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 120px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 80px);
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 24px 20px;
}

.stat-number {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.stat-number.stat-highlight {
  color: var(--color-accent);
}
.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-color);
  flex-shrink: 0;
}

/* ============================================================
   8. SERVICES
============================================================ */
.services {
  padding: var(--section-pad-y) 0;
  background: linear-gradient(180deg, #060C1A 0%, #080F1E 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

/* Standard Service Card */
.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(79, 142, 247, 0.35);
}

/* Top accent gradient bar */
.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.card-accent--blue { background: linear-gradient(90deg, #4F8EF7, #22D3EE); }
.card-accent--cyan { background: linear-gradient(90deg, #22D3EE, #4F8EF7); }

.service-icon        { width: 32px; height: 32px; color: var(--color-primary); }
.service-icon--cyan  { color: var(--color-accent); }

.service-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.service-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.service-arrow       { width: 18px; height: 18px; color: var(--color-primary); }
.service-arrow--cyan { color: var(--color-accent); }

/* Arrow link wrapper — makes service card arrow a navigable link */
.service-arrow-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition);
}
.service-arrow-link:hover { transform: translateX(4px); }

/* AI Featured Card */
.service-card-ai {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 48px;
  background: linear-gradient(135deg, #0D0820 0%, #0A1628 100%);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card-ai:hover {
  transform: translateY(-3px);
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.18);
}

.card-ai-left-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #A78BFA, #4F8EF7);
}
.service-ai-icon    { width: 44px; height: 44px; color: var(--color-ai); flex-shrink: 0; }
.service-ai-content { flex: 1; }
.service-ai-title   { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.service-ai-desc    { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.service-ai-badge {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: var(--color-ai);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  flex-shrink: 0;
}
.service-ai-arrow { width: 20px; height: 20px; color: var(--color-ai); flex-shrink: 0; }

/* ============================================================
   9. WHY CHOOSE US
============================================================ */
.why-us {
  padding: var(--section-pad-y) 0;
  background: linear-gradient(135deg, #0A1220 0%, #0C1528 100%);
  border-top: 1px solid rgba(30, 58, 95, 0.5);
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-us-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.why-us-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.why-us-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.why-us-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.why-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.why-us-cta { margin-top: 32px; }

.why-us-img-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(79, 142, 247, 0.25);
}
.why-us-img-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.why-us-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 18, 32, 0.55) 0%, transparent 40%);
  pointer-events: none;
}

/* Placeholder when image is missing */
.img-placeholder {
  width: 100%;
  height: 480px;
  background: linear-gradient(135deg, #0A1628, #0F1E3D);
  border: 1px dashed rgba(79, 142, 247, 0.3);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 14px;
}
.img-placeholder i { width: 48px; height: 48px; color: var(--color-primary); opacity: 0.4; }

/* ============================================================
   10. HOW WE WORK
============================================================ */
.how-we-work {
  padding: var(--section-pad-y) 0;
  background: linear-gradient(180deg, #060C1A 0%, #070D1A 100%);
  border-top: 1px solid rgba(30, 58, 95, 0.5);
}

.steps-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.step-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 142, 247, 0.4);
  box-shadow: var(--shadow-glow);
}
.step-card--highlight        { border-color: rgba(34, 211, 238, 0.3); }
.step-card--highlight:hover  { border-color: rgba(34, 211, 238, 0.55); box-shadow: 0 8px 28px rgba(34, 211, 238, 0.12); }

.step-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #4F8EF7 0%, #1A56DB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  flex-shrink: 0;
}
.step-number--cyan { background: linear-gradient(135deg, #22D3EE 0%, #0EA5E9 100%); }

.step-title { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.step-desc  { font-size: 14px; color: var(--text-secondary); line-height: 1.6; flex: 1; }

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: rgba(79, 142, 247, 0.4);
  flex-shrink: 0;
}
.step-connector i { width: 20px; height: 20px; }

/* ============================================================
   11. TECHNOLOGIES
============================================================ */
.technologies {
  padding: var(--section-pad-y) 0;
  background: linear-gradient(180deg, #0A1220 0%, #080F1E 100%);
  border-top: 1px solid rgba(30, 58, 95, 0.5);
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.tech-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 24px;
  min-width: 100px;
  background: var(--bg-card-deep);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}
.tech-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 142, 247, 0.4);
  box-shadow: var(--shadow-glow);
}
.tech-tile i    { width: 28px; height: 28px; }
.tech-tile span { font-size: 12px; font-weight: 600; color: var(--text-secondary); }

/* AI/ML tile — special dark purple bg */
.tech-tile--ai { background: #120B2E; border-color: rgba(167, 139, 250, 0.3); }
.tech-tile--ai:hover { border-color: rgba(167, 139, 250, 0.55); box-shadow: 0 8px 28px rgba(167, 139, 250, 0.15); }

/* ============================================================
   12. CTA BANNER
============================================================ */
.cta-banner {
  position: relative;
  padding: var(--section-pad-y) 0;
  background: var(--gradient-cta);
  border-top: 1px solid rgba(79, 142, 247, 0.2);
  overflow: hidden;
  text-align: center;
}

/* Glow orbs */
.cta-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-orb--left {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.18) 0%, transparent 70%);
  top: -100px; left: -100px;
}
.cta-orb--right {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12) 0%, transparent 70%);
  bottom: 0; right: 50px;
}

/* Orbit rings */
.cta-rings {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  transform: translate(-50%, -50%);
  animation: orbit 10s linear infinite;
}
.cta-ring--1 { width: 280px; height: 280px; border-color: rgba(79, 142, 247, 0.15); }
.cta-ring--2 { width: 340px; height: 340px; border-color: rgba(34, 211, 238, 0.10); animation-duration: 14s; animation-direction: reverse; }
.cta-ring--3 { width: 400px; height: 400px; border-color: rgba(79, 142, 247, 0.07); animation-duration: 20s; }

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-title {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
}
.cta-desc {
  font-size: 18px;
  color: #B0C4DE;
  line-height: 1.6;
  max-width: 560px;
}
.cta-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   13. FOOTER
============================================================ */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.footer-main {
  display: grid;
  grid-template-columns: 300px 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px clamp(20px, 7vw, 120px);
}

/* Brand column */
.footer-brand { display: flex; flex-direction: column; gap: 20px; }

.footer-logo {
  display: inline-flex;
  text-decoration: none;
}
.footer-logo-img {
  height: 60px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
  filter: brightness(1.05);
  transition: opacity var(--transition);
}
.footer-logo:hover .footer-logo-img {
  opacity: 0.82;
}
.footer-desc          { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 280px; }

/* Social icons */
.footer-socials { display: flex; gap: 12px; }
.social-btn {
  width: 36px; height: 36px;
  background: var(--bg-card-deep);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.social-btn:hover            { background: var(--color-primary); color: #FFFFFF; border-color: var(--color-primary); }
.social-btn--instagram:hover { background: #E1306C; border-color: #E1306C; color: #FFFFFF; }
.social-btn i                { width: 16px; height: 16px; }

/* Link columns */
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title { font-size: 14px; font-weight: 700; color: var(--text-primary); letter-spacing: 0.5px; }

.footer-link          { font-size: 14px; color: var(--text-muted); transition: color var(--transition); }
.footer-link:hover    { color: var(--text-primary); }
.footer-link--accent  { color: var(--color-primary); }
.footer-link--accent:hover { color: var(--color-accent); }

/* Offices */
.footer-offices-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  margin-top: 4px;
}
.footer-offices { display: flex; flex-direction: column; gap: 10px; }
.footer-office  { font-size: 14px; color: var(--text-muted); }
.footer-office--canada { color: var(--color-accent); }

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px clamp(20px, 7vw, 120px);
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  background: var(--bg-section-alt);
  font-size: 14px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal-link { color: var(--text-muted); transition: color var(--transition); }
.footer-legal-link:hover { color: var(--text-primary); }

/* ==========================================================================
   FAQ SECTION — shared across home and inner pages
   ========================================================================== */
.faq-section { padding: var(--section-pad-y, 96px) 0; background: var(--bg-section-alt, #0A1220); border-top: 1px solid rgba(30,58,95,0.5); }
.faq-list { max-width: 760px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-card, #0A1628); border: 1px solid var(--border-color, #1E3A5F); border-radius: var(--radius, 12px); overflow: hidden; transition: border-color 0.3s ease; }
.faq-item.open { border-color: rgba(79,142,247,0.35); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: none; border: none; text-align: left; cursor: pointer; font-family: var(--font-main, 'Inter', sans-serif); font-size: 15px; font-weight: 600; color: var(--text-primary, #FFF); transition: color 0.3s ease; }
.faq-question:hover { color: var(--color-primary, #4F8EF7); }
.faq-icon { width: 20px; height: 20px; color: var(--text-muted, #6B7280); flex-shrink: 0; transition: transform 0.3s ease, color 0.3s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--color-primary, #4F8EF7); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 240px; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 14px; color: var(--text-secondary, #94A3B8); line-height: 1.75; }
