/* =====================================================
   NEXORA — Premium Bootstrap 5 Business Theme
   Custom Design System (overrides + extensions)
   ===================================================== */

:root {
  /* Color system */
  --n-primary: #155EEF;
  --n-primary-dark: #0E3FB0;
  --n-secondary: #6941C6;
  --n-navy: #0B1437;
  --n-success: #12B76A;
  --n-slate: #667085;
  --n-slate-light: #98A2B3;
  --n-bg: #F7F9FC;
  --n-bg-alt: #EEF2FF;
  --n-border: #E4E7EC;
  --n-white: #FFFFFF;

  /* Gradients */
  --n-gradient-primary: linear-gradient(135deg, #155EEF 0%, #6941C6 100%);
  --n-gradient-soft: linear-gradient(135deg, #EEF2FF 0%, #F4F0FF 100%);
  --n-gradient-dark: linear-gradient(135deg, #0B1437 0%, #1A2456 100%);

  /* Typography */
  --n-font-display: 'Sora', sans-serif;
  --n-font-body: 'Inter', sans-serif;

  /* Spacing rhythm (8px base) */
  --n-space-xs: 0.5rem;
  --n-space-sm: 1rem;
  --n-space-md: 1.5rem;
  --n-space-lg: 2.5rem;
  --n-space-xl: 4rem;
  --n-space-2xl: 6rem;

  /* Radius */
  --n-radius-sm: 8px;
  --n-radius-md: 14px;
  --n-radius-lg: 20px;
  --n-radius-pill: 100px;

  /* Shadows */
  --n-shadow-sm: 0 2px 8px rgba(11, 20, 55, 0.06);
  --n-shadow-md: 0 8px 24px rgba(11, 20, 55, 0.08);
  --n-shadow-lg: 0 20px 48px rgba(11, 20, 55, 0.12);
  --n-shadow-primary: 0 12px 28px rgba(21, 94, 239, 0.25);

  /* Bootstrap overrides */
  --bs-primary: #155EEF;
  --bs-primary-rgb: 21, 94, 239;
  --bs-body-font-family: var(--n-font-body);
  --bs-body-color: var(--n-slate);
  --bs-body-bg: var(--n-white);
}

/* =====================================================
   BASE
   ===================================================== */
html { scroll-behavior: smooth; }

body {
  font-family: var(--n-font-body);
  color: var(--n-slate);
  background-color: var(--n-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.font-display {
  font-family: var(--n-font-display);
  color: var(--n-navy);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-weight: 800; }

p { line-height: 1.7; }

a { text-decoration: none; }

.text-primary-custom { color: var(--n-primary) !important; }
.text-slate { color: var(--n-slate) !important; }
.text-navy { color: var(--n-navy) !important; }
.bg-soft { background-color: var(--n-bg) !important; }
.bg-soft-alt { background: var(--n-gradient-soft) !important; }
.bg-navy { background-color: var(--n-navy) !important; }
.bg-gradient-primary { background: var(--n-gradient-primary) !important; }
.bg-gradient-dark { background: var(--n-gradient-dark) !important; }

/* Section spacing rhythm */
.section { padding-top: var(--n-space-2xl); padding-bottom: var(--n-space-2xl); }
.section-sm { padding-top: var(--n-space-xl); padding-bottom: var(--n-space-xl); }

@media (max-width: 767.98px) {
  .section { padding-top: var(--n-space-xl); padding-bottom: var(--n-space-xl); }
  .section-sm { padding-top: var(--n-space-lg); padding-bottom: var(--n-space-lg); }
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--n-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--n-primary);
  background: var(--n-bg-alt);
  padding: 0.4rem 1rem;
  border-radius: var(--n-radius-pill);
  margin-bottom: var(--n-space-sm);
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--n-primary);
  display: inline-block;
}

.section-title { margin-bottom: var(--n-space-sm); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--n-slate);
  max-width: 620px;
}
.section-header { margin-bottom: var(--n-space-xl); }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  font-family: var(--n-font-display);
  font-weight: 600;
  border-radius: var(--n-radius-sm);
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  border-width: 1.5px;
}

.btn-primary {
  background: var(--n-gradient-primary);
  border: none;
  box-shadow: var(--n-shadow-primary);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(21, 94, 239, 0.32);
  color: #fff;
}

.btn-outline-primary {
  border-color: var(--n-primary);
  color: var(--n-primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--n-primary);
  border-color: var(--n-primary);
  transform: translateY(-2px);
}

.btn-light-custom {
  background: #fff;
  color: var(--n-navy);
  border: 1.5px solid var(--n-border);
}

.btn-light-custom:hover {
  background: var(--n-bg);
  transform: translateY(-2px);
}

.btn-outline-white {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

.btn-lg-custom { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-sm-custom { padding: 0.5rem 1.25rem; font-size: 0.85rem; }

/* Comfortable touch targets on phones / tablets */
@media (max-width: 991.98px) {
  .btn { min-height: 46px; }
  .btn-lg-custom { min-height: 52px; }
  .btn-sm-custom { min-height: 44px; }
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar-nexora {
  padding: 1.25rem 0;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.0);
}

.navbar-nexora.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--n-shadow-sm);
}

.navbar-brand-custom {
  font-family: var(--n-font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--n-navy) !important;
  letter-spacing: -0.02em;
}

.navbar-brand-custom span { color: var(--n-primary); }

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  padding: 4px 10px;
  border-radius: 8px;
}

.footer-nexora .brand-logo { height: 46px; }

@media (max-width: 575.98px) {
  .brand-logo { height: 34px; padding: 3px 8px; }
}

.navbar-nexora .nav-link {
  font-family: var(--n-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--n-navy) !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: var(--n-radius-sm);
  transition: all 0.2s ease;
}

.navbar-nexora .nav-link:hover,
.navbar-nexora .nav-link.active {
  color: rgb(15, 15, 64) !important;
  background: var(--n-bg-alt);
}

.navbar-toggler-custom {
  border: none;
  width: 44px;
  height: 44px;
  border-radius: var(--n-radius-sm);
  background: var(--n-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  padding: 0;
}

.navbar-toggler-custom .bar {
  width: 20px;
  height: 2px;
  background: var(--n-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Navbar sitting on a dark hero (page-header pages) — keep text
   readable before the white scrolled background kicks in */
.navbar-on-dark .nav-link,
.navbar-on-dark .navbar-brand-custom {
  color: #fff !important;
}

.navbar-on-dark .nav-link:hover,
.navbar-on-dark .nav-link.active {
  color: var(--n-navy) !important;
}

.navbar-on-dark .navbar-toggler-custom {
  background: rgba(255, 255, 255, 0.15);
}

.navbar-on-dark .navbar-toggler-custom .bar {
  background: #fff;
}

.navbar-on-dark.scrolled .nav-link,
.navbar-on-dark.scrolled .navbar-brand-custom {
  color: var(--n-navy) !important;
}

.navbar-on-dark.scrolled .navbar-toggler-custom {
  background: var(--n-bg-alt);
}

.navbar-on-dark.scrolled .navbar-toggler-custom .bar {
  background: var(--n-navy);
}

.navbar-toggler-custom.active .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.navbar-toggler-custom.active .bar:nth-child(2) { opacity: 0; }
.navbar-toggler-custom.active .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Mobile navigation drawer (below lg) ---------- */
@media (max-width: 991.98px) {
  /* On phones the bar always has a solid surface — the menu panel
     and links need a readable background, not the transparent hero. */
  .navbar-nexora,
  .navbar-nexora.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--n-shadow-sm);
  }

  /* Sub-pages: navbar no longer floats on the dark page-header on mobile */
  .navbar-on-dark .nav-link,
  .navbar-on-dark .navbar-brand-custom,
  .navbar-on-dark.scrolled .nav-link,
  .navbar-on-dark.scrolled .navbar-brand-custom {
    color: var(--n-navy) !important;
  }
  .navbar-on-dark .navbar-toggler-custom { background: var(--n-bg-alt); }
  .navbar-on-dark .navbar-toggler-custom .bar { background: var(--n-navy); }

  .navbar-nexora .navbar-collapse {
    background: var(--n-white);
    margin-top: 0.5rem;
    padding: 0.25rem 0 0.75rem;
    border-top: 1px solid var(--n-border);
    box-shadow: 0 18px 28px rgba(11, 20, 55, 0.14);
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .navbar-nexora .navbar-nav { gap: 0 !important; }

  .navbar-nexora .nav-item { border-bottom: 1px solid var(--n-border); }
  .navbar-nexora .nav-item:last-child { border-bottom: none; }

  .navbar-nexora .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.65rem 0.25rem !important;
    font-size: 1.05rem;
    border-radius: 0;
  }

  .navbar-nexora .nav-link:hover,
  .navbar-nexora .nav-link.active {
    background: transparent;
    color: var(--n-primary) !important;
  }

  .navbar-nexora .navbar-nav .btn {
    width: 100%;
    min-height: 50px;
    margin-top: 0.85rem;
  }
}

/* =====================================================
   HERO
   ===================================================== */
/* Mobile-first: full-bleed image hero with a readable scrim,
   content-driven height (no fixed vh that crops on mobile browsers). */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  min-height: 78vh;
  min-height: 78svh;
  padding-top: calc(60px + 2.5rem);
  padding-bottom: 3.5rem;
  text-align: center;
}

.hero > .container { min-width: 0; }

.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-bg-slide.active { opacity: 1; }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.88) 45%, rgba(255,255,255,0.78) 100%);
}

.hero-content { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(1.7rem, 3.4vw + 1rem, 3.25rem);
  line-height: 1.2;
  overflow-wrap: break-word;
}

.hero .fs-5 { font-size: 1.0625rem !important; }

/* Compact, auto-width CTAs on mobile (not full-bleed blocks) */
.hero-actions { gap: 0.5rem; }
.hero-actions .btn { flex: 0 1 auto; }
.hero-actions .btn-lg-custom { padding: 0.7rem 1.35rem; font-size: 0.9rem; min-height: 44px; }

@media (min-width: 992px) {
  .hero {
    display: block;
    min-height: 0;
    padding-top: 9rem;
    padding-bottom: 5rem;
    text-align: left;
  }
  .hero h1 { line-height: 1.15; }
  .hero-bg-slide { background-position: center right; }
  .hero::before {
    background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 40%, rgba(255,255,255,0.15) 68%, rgba(255,255,255,0) 85%);
  }
  .hero .fs-5 { font-size: 1.25rem !important; }
  .hero-actions { gap: 1rem; }
  .hero-actions .btn-lg-custom { padding: 1rem 2.25rem; font-size: 1rem; }
}

/* Hero slider controls */
.hero-slider-next {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--n-navy, #0B1437);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--n-shadow-lg);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-slider-next:hover {
  background: var(--n-primary);
  color: #fff;
}

.hero-slider-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--n-radius-pill);
  border: none;
  background: rgba(11, 20, 55, 0.2);
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}

.hero-slider-dot.active {
  width: 26px;
  background: var(--n-primary);
}

/* On touch screens the side arrow overlaps centred copy — rely on
   swipe + dots (see main.js) instead. */
@media (max-width: 991.98px) {
  .hero-slider-next { display: none; }
}

/* Hero visual / dashboard mock card */
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-mock-card {
  background: #fff;
  border-radius: var(--n-radius-lg);
  box-shadow: var(--n-shadow-lg);
  padding: var(--n-space-md);
  border: 1px solid var(--n-border);
  position: relative;
}

.hero-mock-card .mock-bar {
  height: 10px;
  border-radius: var(--n-radius-pill);
  background: var(--n-bg-alt);
  margin-bottom: 0.75rem;
}

.hero-float-badge {
  position: absolute;
  background: #fff;
  border-radius: var(--n-radius-md);
  box-shadow: var(--n-shadow-md);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--n-font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--n-navy);
  z-index: 3;
}

.hero-float-badge.badge-1 { top: -1.5rem; left: -1.5rem; }
.hero-float-badge.badge-2 { bottom: -1.5rem; right: -1.5rem; }

.hero-float-badge .icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .hero-float-badge { padding: 0.6rem 0.9rem; font-size: 0.75rem; }
  .hero-float-badge.badge-1 { top: -1rem; left: -0.5rem; }
  .hero-float-badge.badge-2 { bottom: -1rem; right: -0.5rem; }
}

/* Stats strip */
.stats-strip {
  border-top: 1px solid var(--n-border);
  border-bottom: 1px solid var(--n-border);
}

.stat-item .stat-number {
  font-family: var(--n-font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--n-navy);
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--n-slate);
  font-weight: 500;
}

/* =====================================================
   ICON BOXES
   ===================================================== */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--n-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.icon-box-primary { background: var(--n-bg-alt); color: var(--n-primary); }
.icon-box-secondary { background: #F4F0FF; color: var(--n-secondary); }
.icon-box-success { background: #E7F9F0; color: var(--n-success); }

.icon-box-lg { width: 72px; height: 72px; font-size: 2rem; border-radius: var(--n-radius-md); }

.icon-box-white {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* =====================================================
   CARDS — premium card system
   ===================================================== */
.card-premium {
  background: #fff;
  border: 1px solid var(--n-border);
  border-radius: var(--n-radius-md);
  box-shadow: var(--n-shadow-sm);
  transition: all 0.3s ease;
  padding: var(--n-space-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-premium > .card-link-arrow:last-child,
.card-premium > .btn:last-child { margin-top: auto !important; padding-top: 0.5rem; }

.card-premium:hover {
  box-shadow: var(--n-shadow-md);
  transform: translateY(-6px);
  border-color: transparent;
}

.card-premium .card-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card-link-arrow {
  font-family: var(--n-font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--n-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}

.card-link-arrow:hover { gap: 0.7rem; color: var(--n-primary-dark); }

/* Pricing card */
.pricing-card {
  background: #fff;
  border: 1px solid var(--n-border);
  border-radius: var(--n-radius-lg);
  padding: var(--n-space-lg);
  box-shadow: var(--n-shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card .btn { margin-top: auto !important; }

.pricing-card:hover { box-shadow: var(--n-shadow-md); transform: translateY(-6px); }

.pricing-card.featured {
  background: var(--n-gradient-dark);
  border: none;
  color: #fff;
  box-shadow: var(--n-shadow-lg);
  transform: scale(1.03);
}

.pricing-card.featured .price, .pricing-card.featured h3 { color: #fff; }
.pricing-card.featured .text-slate { color: rgba(255,255,255,0.65) !important; }
.pricing-card.featured ul li { color: rgba(255,255,255,0.85); }
.pricing-card.featured .pricing-divider { border-color: rgba(255,255,255,0.12); }

@media (max-width: 991.98px) {
  .pricing-card.featured { transform: none; }
}

.pricing-badge {
  position: absolute;
  top: -14px;
  right: 2rem;
  background: var(--n-gradient-primary);
  color: #fff;
  font-family: var(--n-font-display);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  border-radius: var(--n-radius-pill);
  letter-spacing: 0.05em;
}

.price {
  font-family: var(--n-font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--n-navy);
}

.price-period { font-size: 1rem; font-weight: 500; color: var(--n-slate); }

.pricing-divider { border-color: var(--n-border); margin: var(--n-space-md) 0; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--n-slate);
}

.feature-list li i { color: var(--n-success); margin-top: 0.2rem; flex-shrink: 0; }
.feature-list li.disabled { opacity: 0.45; }
.feature-list li.disabled i { color: var(--n-slate-light); }

.feature-list li .fl-label { flex: 1 1 auto; padding-right: 0.75rem; }
.feature-list li .fl-price { white-space: nowrap; flex-shrink: 0; }

/* Blog cards */
.blog-card-img {
  border-radius: var(--n-radius-md) var(--n-radius-md) 0 0;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.blog-card-img img { transition: transform 0.4s ease; width: 100%; height: 100%; object-fit: cover; }
.card-premium:hover .blog-card-img img { transform: scale(1.06); }

.blog-card-body { padding: var(--n-space-md) var(--n-space-md) 0; }

.tag-pill {
  display: inline-block;
  font-family: var(--n-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--n-primary);
  background: var(--n-bg-alt);
  padding: 0.3rem 0.8rem;
  border-radius: var(--n-radius-pill);
  margin-bottom: 0.75rem;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--n-slate-light);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--n-border);
}

/* Portfolio card */
.portfolio-card {
  position: relative;
  border-radius: var(--n-radius-md);
  overflow: hidden;
  box-shadow: var(--n-shadow-sm);
  aspect-ratio: 4/3;
}

.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,20,55,0) 30%, rgba(11,20,55,0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--n-space-md);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-card:hover img { transform: scale(1.08); }

.portfolio-overlay h5 { color: #fff; margin-bottom: 0.25rem; }
.portfolio-overlay span { color: rgba(255,255,255,0.7); font-size: 0.85rem; }

/* Testimonial card */
.testimonial-card {
  background: #fff;
  border-radius: var(--n-radius-md);
  box-shadow: var(--n-shadow-sm);
  border: 1px solid var(--n-border);
  padding: var(--n-space-lg);
  height: 100%;
}

.testimonial-card .stars { color: #FFB400; letter-spacing: 0.15em; font-size: 0.9rem; margin-bottom: 1rem; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: var(--n-space-md);
}

.testimonial-author img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
}

.testimonial-author .name { font-family: var(--n-font-display); font-weight: 700; color: var(--n-navy); font-size: 0.95rem; }
.testimonial-author .role { font-size: 0.8rem; color: var(--n-slate-light); }

/* Process steps (numbered — real sequence) */
.process-step {
  position: relative;
  padding-left: 0;
}

.process-number {
  font-family: var(--n-font-display);
  font-size: 3rem;
  font-weight: 800;
  background: var(--n-gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}

/* Logo cloud */
.logo-cloud-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--n-font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--n-slate-light);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.logo-cloud-item:hover { opacity: 1; color: var(--n-navy); }

.logo-cloud-item.brand-color { opacity: 1; color: var(--n-navy); }

/* =====================================================
   FORMS
   ===================================================== */
.form-control,
.form-select {
  border: 1.5px solid var(--n-border);
  border-radius: var(--n-radius-sm);
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  background-color: var(--n-bg);
  transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--n-primary);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.1);
  background-color: #fff;
}

.form-label {
  font-family: var(--n-font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--n-navy);
  margin-bottom: 0.5rem;
}

.form-control.is-invalid, .form-select.is-invalid { border-color: #DC3545; }
.form-control.is-valid, .form-select.is-valid { border-color: var(--n-success); }

/* Newsletter / CTA section */
.cta-section {
  background: var(--n-gradient-dark);
  border-radius: var(--n-radius-lg);
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section h2 { font-size: clamp(1.5rem, 3.5vw + 0.5rem, 2.15rem); }

@media (max-width: 991.98px) {
  .cta-section .btn { width: 100%; max-width: 360px; }
}

@media (min-width: 768px) {
  .cta-section { padding: 3.5rem 2.5rem; }
}

@media (min-width: 992px) {
  .cta-section { padding: 4rem var(--n-space-lg); text-align: left; }
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,94,239,0.25) 0%, transparent 70%);
}

.cta-section h2, .cta-section p { color: #fff; position: relative; z-index: 1; }
.cta-section p { color: rgba(255,255,255,0.7); }

/* =====================================================
   FOOTER
   ===================================================== */
.footer-nexora {
  background: var(--n-navy);
  color: rgba(255,255,255,0.65);
  padding-top: var(--n-space-2xl);
}

.footer-nexora h6 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--n-space-md);
}

.footer-nexora a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.footer-nexora a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: var(--n-space-xl);
  padding: var(--n-space-md) 0;
  font-size: 0.85rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  transition: all 0.2s ease;
  margin-bottom: 0 !important;
}

.social-icon:hover { background: var(--n-primary); transform: translateY(-3px); }

/* =====================================================
   PAGE HEADER (sub-pages)
   ===================================================== */
.page-header {
  background: var(--n-gradient-dark);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,94,239,0.25) 0%, transparent 70%);
}

.page-header h1 { color: #fff; }

.breadcrumb-custom {
  display: inline-flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.breadcrumb-custom a { color: rgba(255,255,255,0.6); }
.breadcrumb-custom a:hover { color: #fff; }
.breadcrumb-custom .active { color: var(--n-primary); }

/* =====================================================
   SCROLL REVEAL (lightweight)
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-premium:hover, .pricing-card:hover, .btn:hover, .portfolio-card img { transform: none; }
  .wa-float { animation: none; }
  .hero-bg-slide { transition: none; }
}

/* =====================================================
   MISC UTILITIES
   ===================================================== */
.divider-line { height: 1px; background: var(--n-border); border: none; }

/* Lets a flex child shrink below its content size so text can wrap
   instead of pushing the row past the viewport. */
.min-w-0 { min-width: 0; }

.rounded-img { border-radius: var(--n-radius-lg); }

.badge-soft {
  background: var(--n-bg-alt);
  color: var(--n-primary);
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--n-radius-pill);
  font-size: 0.8rem;
}

.list-check {
  list-style: none;
  padding: 0;
}

.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.list-check li i {
  color: var(--n-primary);
  background: var(--n-bg-alt);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Author / sidebar widgets (blog details) */
.widget {
  background: #fff;
  border: 1px solid var(--n-border);
  border-radius: var(--n-radius-md);
  padding: var(--n-space-md);
  margin-bottom: var(--n-space-md);
}

.widget h5 { font-size: 1rem; margin-bottom: var(--n-space-sm); }

.widget-link-list { list-style: none; padding: 0; margin: 0; }
.widget-link-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--n-border);
  font-size: 0.9rem;
  color: var(--n-navy);
  font-weight: 500;
}
.widget-link-list li:last-child { border-bottom: none; }
.widget-link-list li span { color: var(--n-slate-light); font-weight: 400; }

/* FAQ accordion custom */
.accordion-custom .accordion-item {
  border: 1px solid var(--n-border);
  border-radius: var(--n-radius-sm) !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-custom .accordion-button {
  font-family: var(--n-font-display);
  font-weight: 700;
  color: var(--n-navy);
  background: #fff;
  padding: 1.25rem 1.5rem;
}

.accordion-custom .accordion-button:not(.collapsed) {
  color: var(--n-primary);
  background: var(--n-bg-alt);
  box-shadow: none;
}

.accordion-custom .accordion-button:focus { box-shadow: none; border-color: var(--n-border); }
.accordion-custom .accordion-body { padding: 1.25rem 1.5rem; color: var(--n-slate); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--n-gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--n-shadow-primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
  border: none;
}

.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* Contact map placeholder */
.map-frame {
  border-radius: var(--n-radius-md);
  overflow: hidden;
  border: 1px solid var(--n-border);
  height: 50%;
  min-height: 320px;
}

.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* Service detail icon list */
.feature-grid-item {
  display: flex;
  gap: 1rem;
  padding: var(--n-space-md);
  background: var(--n-bg);
  border-radius: var(--n-radius-md);
  height: 100%;
}

/* =====================================================
   WHATSAPP FLOATING BUTTON
   ===================================================== */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.25s ease;
  animation: wa-pulse 2.5s infinite;
}

.wa-float:hover { transform: translateY(-3px); color: #fff !important; }

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 575.98px) {
  .wa-float { width: 48px; height: 48px; font-size: 1.35rem; bottom: 1rem; left: 1rem; }
}

/* =====================================================
   MOBILE-FIRST LAYOUT BEHAVIOURS
   Compact grids sized for the phone — no inner scrollers.
   Progressively handed back to the desktop grid at ≥768 / ≥992.
   ===================================================== */

/* --- Brands: 3-column chip grid --- */
@media (max-width: 767.98px) {
  .brand-grid { --bs-gutter-y: 0.6rem; }
  .brand-grid .logo-cloud-item {
    border: 1px solid var(--n-border);
    border-radius: var(--n-radius-sm);
    background: #fff;
    padding: 0.5rem 0.25rem;
    font-size: 0.78rem;
    width: 100%;
  }
  .brand-grid .logo-cloud-item i { font-size: 0.7rem; }
}

/* --- Compact app-style tiles: 2-up / 2x2 icon-or-number cards.
   Used site-wide: Layanan & Cara kerja (beranda + service-details),
   Nilai kami (tentang kami). --- */
@media (max-width: 767.98px) {
  .tile-grid { --bs-gutter-x: 0.75rem; --bs-gutter-y: 0.75rem; }

  .tile-grid .card-premium,
  .tile-grid .process-step {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
    padding: 1rem 0.8rem;
    background: #fff;
    border: 1px solid var(--n-border);
    border-radius: var(--n-radius-md);
    box-shadow: var(--n-shadow-sm);
  }

  .tile-grid .card-premium .icon-box {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
    margin: 0 0 0.1rem !important;
  }

  .tile-grid .card-premium .card-title,
  .tile-grid .process-step .card-title {
    font-size: 0.88rem;
    line-height: 1.25;
    margin: 0;
  }

  .tile-grid .card-premium p,
  .tile-grid .process-step p {
    font-size: 0.76rem;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .tile-grid .card-premium .card-link-arrow {
    font-size: 0.78rem;
    margin-top: auto;
    padding-top: 0.35rem;
  }

  .tile-grid .process-number {
    font-size: 1.75rem;
    margin-bottom: 0.05rem;
  }
}

/* --- Testimonials: readable single-column stack, tighter --- */
@media (max-width: 767.98px) {
  .testi-grid .testimonial-card { padding: 1.25rem; }
  .testi-grid .testimonial-card p { font-size: 0.9rem; }
}

/* --- Gallery: 2-column photo grid with compact always-on caption --- */
@media (max-width: 767.98px) {
  .gallery-grid { --bs-gutter-x: 0.6rem; --bs-gutter-y: 0.6rem; }
  .gallery-grid .portfolio-card {
    aspect-ratio: 1 / 1;
    border-radius: var(--n-radius-sm);
  }
  .gallery-grid .portfolio-overlay { padding: 0.65rem; }
  .gallery-grid .portfolio-overlay span { font-size: 0.6rem; }
  .gallery-grid .portfolio-overlay h5 {
    font-size: 0.78rem;
    line-height: 1.25;
    margin: 0.1rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* --- Blog list: horizontal "feed row" cards on mobile --- */
@media (max-width: 767.98px) {
  .blog-grid { --bs-gutter-y: 0.75rem; }
  .blog-grid .card-premium { flex-direction: row; align-items: stretch; }
  .blog-grid .blog-card-img {
    flex: 0 0 116px;
    aspect-ratio: auto;
    align-self: stretch;
    border-radius: var(--n-radius-md) 0 0 var(--n-radius-md);
  }
  .blog-grid .blog-card-body {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.85rem 0.8rem !important;
  }
  .blog-grid .blog-card-body .tag-pill {
    font-size: 0.6rem;
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.3rem;
  }
  .blog-grid .blog-card-body .card-title {
    font-size: 0.88rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .blog-grid .blog-card-body p {
    font-size: 0.76rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* --- Contact info: icon-left detail rows (like a phone contact card) --- */
@media (max-width: 767.98px) {
  .contact-cards > [class*="col-"] { width: 100%; }
  .contact-cards .card-premium {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.9rem;
    row-gap: 0.1rem;
    align-items: start;
    text-align: left !important;
    padding: 1rem 1.1rem;
  }
  .contact-cards .card-premium > * { grid-column: 2; align-self: start; }
  .contact-cards .card-premium > .icon-box {
    grid-column: 1;
    grid-row: 1 / span 6;
    margin: 0 !important;
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }
  .contact-cards .card-premium .card-title { font-size: 0.95rem; margin-bottom: 0.2rem; }
  .contact-cards .card-premium p { font-size: 0.82rem; margin-bottom: 0.35rem; line-height: 1.5; }
  .contact-cards .card-premium a { font-size: 0.85rem; }
}

/* --- Feature list items: tighter on small phones --- */
@media (max-width: 575.98px) {
  .feature-grid-item { padding: 0.9rem 1rem; gap: 0.8rem; }
  .feature-grid-item .icon-box { width: 40px; height: 40px; font-size: 1.05rem; }
}

/* --- Gallery: captions can't depend on :hover on touch devices --- */
@media (hover: none), (max-width: 991.98px) {
  .portfolio-overlay {
    opacity: 1;
    background: linear-gradient(180deg, rgba(11, 20, 55, 0) 35%, rgba(11, 20, 55, 0.9) 100%);
  }
}

/* --- Pricing: tighter cards on small phones --- */
@media (max-width: 575.98px) {
  .pricing-card { padding: 1.5rem; }
  .feature-list li { font-size: 0.9rem; }
}

/* --- Fluid section headings --- */
@media (max-width: 767.98px) {
  .section-title { font-size: clamp(1.55rem, 6vw, 2rem); }
}

/* --- Overflow guard: a .g-5 row placed straight inside .container has a
   -3rem side margin that only a wide (centred) container can absorb.
   On phones/tablets clamp its horizontal gutter to the default. --- */
@media (max-width: 991.98px) {
  .container > .row.g-5,
  .container > .row.gx-5 { --bs-gutter-x: 1.5rem; }
}
