/* ============================================================
   QLEC — Quantum Leap Engineering Consultancy
   Custom Stylesheet (Tailwind supplement)
   Font: Barlow Condensed (display) + DM Sans (body)
   Palette: Navy #0B1D3A | Orange #F97316 | Slate #F1F4F8
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:      #0B1D3A;
  --navy-mid:  #162d56;
  --orange:    #F97316;
  --orange-lt: #FFF0E6;
  --slate:     #F1F4F8;
  --muted:     #64748B;
  --border:    #E2E8F0;
  --white:     #FFFFFF;
  --font-disp: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ── Base Reset ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}

/* ── Typography ── */
.font-display { font-family: var(--font-display, var(--font-disp)); }

h1, h2, h3, .display-text {
  font-family: var(--font-disp);
  letter-spacing: -0.01em;
}

/* ── Navbar ── */
#navbar {
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
}

#navbar.scrolled {
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 1px 0 var(--border), 0 8px 32px rgba(11,29,58,0.08);
  backdrop-filter: blur(12px);
}

.nav-link {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.25s cubic-bezier(.4,0,.2,1);
}

.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--navy); }
.nav-link.active::after { width: 100%; }

/* Mobile Menu */
#mobile-menu {
  transition: max-height 0.35s cubic-bezier(.4,0,.2,1), opacity 0.3s;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* ── Hero Section ── */
.hero-bg {
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(249,115,22,0.10) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(249,115,22,0.35);
  border-radius: 99px;
  padding: 5px 14px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse-dot 2s infinite;
}

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

.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: #fff;
  text-transform: uppercase;
}

.hero-title .accent { color: var(--orange); }

.hero-stat-num {
  font-family: var(--font-disp);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #ea6c10;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.35);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.35);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}

/* ── Section Labels ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--orange);
}

.section-title {
  font-family: var(--font-disp);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* ── Service Cards ── */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s, border-color 0.3s;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(11,29,58,0.10);
  border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 8px;
  background: var(--orange-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.2s;
}

.service-card:hover .service-icon-wrap {
  background: var(--orange);
}

.service-card:hover .service-icon-wrap svg {
  color: #fff !important;
}

/* ── Industry Tabs ── */
.industry-chip {
  padding: 8px 20px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: var(--font-body);
}

.industry-chip:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.industry-chip.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ── Stats Bar ── */
.stat-item {
  text-align: center;
  padding: 28px 20px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

.stat-number {
  font-family: var(--font-disp);
  font-size: 3rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

/* ── Testimonial Cards ── */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
}

.testimonial-card:hover {
  box-shadow: 0 12px 36px rgba(11,29,58,0.09);
  transform: translateY(-3px);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px; right: 24px;
  font-family: var(--font-disp);
  font-size: 5rem;
  font-weight: 800;
  color: var(--orange-lt);
  line-height: 1;
  pointer-events: none;
}

/* ── Training Cards ── */
.training-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s, transform 0.3s;
}

.training-card:hover {
  box-shadow: 0 12px 36px rgba(11,29,58,0.10);
  transform: translateY(-4px);
}

.training-card-header {
  background: var(--navy);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.training-card-header::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(249,115,22,0.15);
}

/* ── Case Study Cards ── */
.case-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.case-card:hover {
  box-shadow: 0 16px 40px rgba(11,29,58,0.10);
  transform: translateY(-4px);
}

.case-stat {
  font-family: var(--font-disp);
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

/* ── FAQ Accordion ── */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  gap: 16px;
  transition: color 0.2s;
  font-family: var(--font-body);
}

.faq-question:hover { color: var(--orange); }

.faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s, background 0.2s, border-color 0.2s;
  font-size: 0.75rem;
  color: var(--muted);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.4,0,.2,1), padding 0.3s;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  padding-bottom: 0;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

/* ── Contact Form ── */
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #94a3b8;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
  font-family: var(--font-body);
}

/* ── WhatsApp FAB ── */
#wa-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  animation: fab-pop 0.5s cubic-bezier(.4,0,.2,1) 1.5s both;
}

@keyframes fab-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

#wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 32px rgba(37,211,102,0.5);
}

#wa-fab::before {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #25D366;
  animation: wa-pulse 2.5s infinite;
}

@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ── Trust Badges ── */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
}

.trust-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
}

/* ── Section Divider ── */
.diagonal-divider {
  width: 100%;
  height: 60px;
  background: var(--slate);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Active Nav Highlight ── */
.active-section .nav-link { color: var(--navy); }

/* ── Horizontal Scroll for Industry Strip ── */
.industry-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.industry-strip::-webkit-scrollbar { display: none; }

/* ── Orange Accent Line ── */
.accent-line {
  display: block;
  width: 48px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: 20px;
}

/* ── Map Embed ── */
.map-container {
  width: 100%;
  height: 240px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ── Footer ── */
footer {
  background: var(--navy);
}

.footer-link {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.footer-link:hover { color: var(--orange); }

/* ── Responsive Tweaks ── */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .stat-number { font-size: 2.2rem; }
  .stat-item::after { display: none; }
}

/* ── Smooth number counter ── */
.count-up {
  display: inline-block;
}

/* ── Industry content panels ── */
.industry-panel {
  display: none;
}

.industry-panel.active {
  display: grid;
}

/* ── Page Loader ── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-bar {
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 99px;
  animation: loader-anim 0.8s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes loader-anim {
  from { width: 0; }
  to   { width: 100%; }
}
