/* ============================================================
   Lift CTO — Custom Styles (Light Theme)
   Tailwind handles utilities. This file: custom components only.
============================================================ */

/* ── Brand colours ──────────────────────────────────────── */
:root {
  --color-blue:       #2563eb;
  --color-blue-light: #3b82f6;
  --color-purple:     #7c3aed;
  --color-orange:     #f97316;
  --color-dark:       #0a0f1e;
}

/* ── Font ───────────────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Gradient text ──────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero section ───────────────────────────────────────── */
.hero-bg {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(219, 234, 254, 0.6) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 40%, rgba(237, 233, 254, 0.4) 0%, transparent 70%),
    #ffffff;
}

/* ── Subtle dot grid ────────────────────────────────────── */
.grid-overlay {
  background-image:
    radial-gradient(circle, rgba(148, 163, 184, 0.15) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── Image placeholders ─────────────────────────────────── */
.placeholder-img {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ── Logo shimmer placeholders ──────────────────────────── */
.logo-placeholder {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  height: 1.75rem;
  border-radius: 0.375rem;
}

/* ── Nav Dropdown ───────────────────────────────────────── */
.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  padding: 0;
  color: inherit;
  transition: color 0.2s;
}

.nav-dropdown-chevron {
  transition: transform 0.2s;
}

.nav-dropdown-wrap.open .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  display: none;
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 95vw);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.14), 0 1px 4px rgba(0,0,0,0.06);
  z-index: 200;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.nav-dropdown-wrap.open .nav-dropdown-panel {
  display: block;
}

.nav-dropdown-inner {
  display: grid;
  grid-template-columns: 1fr 260px;
}

.nav-dropdown-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 1.5rem;
}

.nav-service-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-service-item:hover {
  background: #f8fafc;
}

.nav-service-icon {
  flex-shrink: 0;
  color: var(--color-blue);
  margin-top: 0.1rem;
}

.nav-service-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.nav-service-desc {
  font-size: 0.775rem;
  color: #94a3b8;
  line-height: 1.4;
}

.nav-dropdown-cta {
  background: transparent;
  display: flex;
  align-items: stretch;
  padding: 1rem 1rem 1rem 0;
}

.nav-dropdown-cta-inner {
  background: var(--color-dark);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.nav-dropdown-cta-heading {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

.nav-dropdown-cta-body {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin: 0;
}

.nav-dropdown-cta-btn {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: opacity 0.15s;
}

.nav-dropdown-cta-btn:hover {
  opacity: 0.75;
}

/* ── Navbar ─────────────────────────────────────────────── */
#navbar {
  background: transparent;
}

/* Logo variants: dark-bg version when unscrolled over hero, light-bg when scrolled */
#navbar:not(.scrolled) .nav-logo-dark-bg  { display: block; }
#navbar:not(.scrolled) .nav-logo-light-bg { display: none;  }
#navbar.scrolled       .nav-logo-dark-bg  { display: none;  }
#navbar.scrolled       .nav-logo-light-bg { display: block; }

/* Unscrolled: sitting over the dark hero — flip text to white */
#navbar:not(.scrolled) .nav-logo-text {
  color: #ffffff !important;
}
#navbar:not(.scrolled) .nav-link {
  color: rgba(255,255,255,0.6) !important;
}
#navbar:not(.scrolled) .nav-link:hover {
  color: #ffffff !important;
}
#navbar:not(.scrolled) .nav-cta {
  background: rgba(255,255,255,0.1) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  box-shadow: none !important;
}
#navbar:not(.scrolled) .nav-cta:hover {
  background: rgba(255,255,255,0.18) !important;
}
#navbar:not(.scrolled) #mobile-menu-btn {
  color: rgba(255,255,255,0.7) !important;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid #e2e8f0;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* ── Scroll progress bar ────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-orange), #ec4899, var(--color-purple));
  z-index: 100;
  transition: width 0.1s ease;
  pointer-events: none;
}

/* ── FAQ accordion ──────────────────────────────────────── */
.faq-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.2s ease;
  display: block !important;
}

.faq-content.open {
  max-height: 400px;
}

.faq-trigger .faq-icon {
  transition: transform 0.25s ease;
}

.faq-trigger .faq-icon.open {
  transform: rotate(180deg);
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(1.08); }
}

.animate-pulse-slow {
  animation: pulse-slow 5s ease-in-out infinite;
}

/* ── Typewriter text ────────────────────────────────────── */
#typewriter {
  color: var(--color-blue);
}

/* ── Typewriter cursor ──────────────────────────────────── */
.typewriter-cursor {
  display: inline-block;
  font-weight: 900;
  color: var(--color-blue);
  animation: blink 1.1s ease-in-out infinite;
  margin-left: 1px;
  vertical-align: baseline;
}

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

/* ── Terminal cursor ────────────────────────────────────── */
@keyframes cursorFade {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.terminal-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  border-radius: 1px;
  vertical-align: middle;
  background: var(--color-orange);
  animation: cursorFade 0.95s ease-in-out infinite;
  margin-left: 2px;
}

/* ── Smooth scroll ──────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}
