/* ==============================================
   JB NE SERVICES — style.css
   ============================================== */

/* --- Custom Properties --- */
:root {
  --navy:        #0A1628;
  --navy-card:   #0F2040;
  --navy-light:  #162B50;
  --blue:        #2563EB;
  --blue-hover:  #3B82F6;
  --blue-glow:   rgba(37, 99, 235, 0.15);
  --blue-border: rgba(37, 99, 235, 0.28);
  --text:        #F8FAFC;
  --muted:       #94A3B8;
  --subtle:      #64748B;
  --border:      rgba(255, 255, 255, 0.07);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --shadow:      0 4px 24px rgba(0, 0, 0, 0.28);
  --shadow-lg:   0 8px 48px rgba(0, 0, 0, 0.40);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  background: var(--navy);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button, input, select, textarea { font: inherit; }

/* --- Container --- */
.container         { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px;  margin: 0 auto; padding: 0 24px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn:focus-visible { outline: 3px solid var(--blue-hover); outline-offset: 3px; }

.btn--primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn--primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--outline:hover {
  border-color: var(--blue-hover);
  color: var(--blue-hover);
  transform: translateY(-1px);
}

.btn--white {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
  font-weight: 700;
}
.btn--white:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.18);
}

.btn--sm   { padding: 8px 18px;  font-size: 14px; }
.btn--lg   { padding: 14px 32px; font-size: 16px; }
.btn--full { width: 100%; }

/* --- Section helpers --- */
.section { padding: 96px 0; }

.section__hd {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}
.section__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-hover);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section__sub {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}


/* ==============================================
   NAVBAR
   ============================================== */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  background: var(--navy);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.nav--scrolled {
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 32px rgba(0, 0, 0, 0.45);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.nav__dot { color: var(--blue); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}
.nav__link:hover { color: var(--text); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
/* Animated X state */
.nav__hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg);  }
.nav__hamburger--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ==============================================
   HERO
   ============================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(150deg, var(--navy) 0%, #0D1F3C 60%, var(--navy-card) 100%);
  padding-top: 68px;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
/* Radial fade on grid so edges dissolve */
.hero__grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 50%, transparent 40%, var(--navy) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 80px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-glow);
  border: 1px solid var(--blue-border);
  color: var(--blue-hover);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero__badge-dot {
  width: 7px;
  height: 7px;
  background: var(--blue-hover);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--blue-hover);
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px var(--blue-hover); }
  50%       { box-shadow: 0 0 14px var(--blue-hover), 0 0 4px var(--blue); }
}
.hero__headline {
  font-size: clamp(36px, 5.5vw, 66px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 780px;
  margin-bottom: 24px;
}
.hero__sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.75;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}
.hero__stats {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 28px;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}
.hero__stat:first-child { padding-left: 0; }
.hero__stat:last-child  { padding-right: 0; }
.hero__stat-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.hero__stat-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.hero__stat-div {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}


/* ==============================================
   SERVICES
   ============================================== */
.services { background: var(--navy-card); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px var(--blue-glow);
  border-color: var(--blue-hover);
  border-left-color: var(--blue-hover);
}
.svc-card__icon {
  width: 52px;
  height: 52px;
  background: var(--blue-glow);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-hover);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.svc-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.svc-card__desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
}
.svc-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-hover);
  transition: color 0.2s, gap 0.2s;
  display: inline-flex;
  align-items: center;
}
.svc-card__link:hover { color: #fff; }


/* ==============================================
   WHY US
   ============================================== */
.why { background: var(--navy); }

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.why__icon {
  width: 56px;
  height: 56px;
  background: var(--blue-glow);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-hover);
  margin-bottom: 20px;
}
.why__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.why__desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}


/* ==============================================
   CTA BANNER
   ============================================== */
.cta-band {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 55%, #0f2040 100%);
  padding: 80px 0;
}
.cta-band__inner { text-align: center; }
.cta-band__title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-band__sub {
  font-size: 17px;
  color: rgba(248, 250, 252, 0.72);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}


/* ==============================================
   FAQ
   ============================================== */
.faq { background: var(--navy-card); }

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq__item {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq__item[open] { border-color: var(--blue-border); }

.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s;
  gap: 16px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--blue-hover);
  flex-shrink: 0;
  transition: transform 0.22s ease;
  line-height: 1;
}
.faq__item[open] .faq__q        { color: var(--blue-hover); }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }

.faq__a {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}


/* ==============================================
   CONTACT
   ============================================== */
.contact { background: var(--navy); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact__icon {
  width: 40px;
  height: 40px;
  background: var(--blue-glow);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-hover);
  flex-shrink: 0;
}
.contact__lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtle);
  margin-bottom: 4px;
}
.contact__val {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
a.contact__val:hover { color: var(--blue-hover); }

.contact__socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.contact__social {
  width: 40px;
  height: 40px;
  background: var(--blue-glow);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-hover);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.contact__social:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

/* Form */
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form__field { margin-bottom: 16px; }
.form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form__opt { font-weight: 400; color: var(--subtle); }
.form__input {
  width: 100%;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 16px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form__input::placeholder { color: var(--subtle); }
.form__input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}
.form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.form__select option { background: var(--navy-card); color: var(--text); }
.form__textarea { resize: vertical; min-height: 120px; }
.form__input--error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}
.form__success {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  color: var(--text);
}
.form__success svg { color: #4ade80; margin: 0 auto 16px; }
.form__success h3  { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.form__success p   { color: var(--muted); font-size: 15px; }
.form__error-msg {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  color: #fca5a5;
  margin-bottom: 16px;
}
.form__error-msg a { color: #fca5a5; text-decoration: underline; }


/* ==============================================
   FOOTER
   ============================================== */
.footer {
  background: var(--navy-card);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 14px;
}
.footer__tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 280px;
}
.footer__hd {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--subtle);
  margin-bottom: 16px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a,
.footer__links li {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text); }

.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--subtle);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bar-links { display: flex; gap: 24px; }
.footer__bar-links a:hover { color: var(--text); }


/* ==============================================
   RESPONSIVE
   ============================================== */

/* Tablet */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid      { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer__grid   { grid-template-columns: 1fr 1fr; }
  .footer__brand  { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Nav mobile */
  .nav__hamburger { display: flex; }
  .nav__links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 24px;
    gap: 2px;
    transform: translateY(-110%);
    transition: transform 0.28s ease;
    box-shadow: var(--shadow-lg);
    z-index: 199;
  }
  .nav__links--open { transform: translateY(0); }
  .nav__link { padding: 11px 12px; font-size: 16px; }
  .nav__links .btn { margin-top: 8px; width: 100%; justify-content: center; }

  /* Hero */
  .hero__stats {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px 20px;
    width: 100%;
  }
  .hero__stat { padding: 8px 16px; width: 50%; }
  .hero__stat:first-child { padding-left: 16px; }
  .hero__stat-div { display: none; }

  /* Services */
  .services__grid { grid-template-columns: 1fr; }

  /* Why */
  .why__grid { grid-template-columns: 1fr; gap: 28px; }

  /* Contact */
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .form__row     { grid-template-columns: 1fr; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bar  { flex-direction: column; align-items: flex-start; }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero__headline { font-size: 34px; letter-spacing: -0.02em; }
  .hero__actions  { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stat { width: 50%; }
  .hero__stats { max-width: 100%; }
  .section__title { font-size: 26px; }
}
