/* ============================================================
   BBM FL REMODELING - CORE STYLESHEET
   Blue + Black palette, white background
   ============================================================ */

:root {
  --brand: #1d4ed8;          /* primary blue */
  --brand-deep: #0a2540;     /* deep blue/navy */
  --navy: #050a14;           /* near-black with blue tint */
  --ink: #0a1220;            /* body text */
  --muted: #5a6b82;          /* secondary text */
  --paper: #ffffff;          /* white background */
  --mist: #eef2f8;           /* light section bg */
  --accent: #3b82f6;         /* bright blue CTA / highlight */
  --line: rgba(10, 18, 32, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Archivo', system-ui, sans-serif;
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.02;
}

p { margin: 0; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color .25s;
}
a:hover { color: var(--accent); }

img { display: block; max-width: 100%; }

/* CSS custom-property animations (used by hero iris / clock reveals) */
@property --r { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@property --ca { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ============================================================
   ANIMATION KEYFRAMES
   - Tuned for snappy entrance, no long delays
   ============================================================ */

@keyframes np-iris {
  from { --r: 0%; }
  to   { --r: 150%; }
}

/* Loader overlay fades out quickly so the page is interactive ASAP */
@keyframes np-loadfade {
  0% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes np-markpop {
  0%   { opacity: 0; transform: translateY(10px) scale(.96); filter: blur(4px); }
  35%  { opacity: 1; transform: none; filter: blur(0); }
  100% { opacity: 0; transform: scale(1.04); filter: blur(2px); }
}

/* Default preloader overlay rule (HTML pages also set inline for safety) */
#np-loader {
  animation: np-iris 0.6s cubic-bezier(.76,0,.24,1) 0.05s forwards,
             np-loadfade 0.9s ease forwards;
}
#np-loader > div { animation: np-markpop 0.7s ease forwards; }

@keyframes np-float  { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-14px);} }
@keyframes np-floatS { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
@keyframes np-spin   { to { transform: rotate(360deg); } }
@keyframes np-grid   { to { background-position: 60px 60px; } }
@keyframes np-sheen  {
  0%        { transform: translateX(-120%) skewX(-18deg); }
  60%, 100% { transform: translateX(240%)  skewX(-18deg); }
}
@keyframes np-bob      { 0%,100%{transform:translateY(0);} 50%{transform:translateY(6px);} }
@keyframes np-btnbob   { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-4px);} }
@keyframes np-drift    { 0%,100%{transform:translateY(0) rotate(0);} 50%{transform:translateY(-10px) rotate(1.5deg);} }
@keyframes np-pulse    {
  0%,100%{ box-shadow:0 12px 30px -8px rgba(0,0,0,.5), 0 0 0 0 rgba(255,255,255,.5); }
  50%    { box-shadow:0 12px 30px -8px rgba(0,0,0,.5), 0 0 0 14px rgba(255,255,255,0); }
}
@keyframes np-ping     { from{transform:scale(1);opacity:.9;} to{transform:scale(2.8);opacity:0;} }
@keyframes np-bub      { 0%{opacity:.8;transform:translate(-50%,-50%) scale(1);} 100%{opacity:0;transform:translate(-50%,calc(-50% - 36px)) scale(.2);} }

#np-hero-form input::placeholder,
#np-modal input::placeholder,
#np-modal textarea::placeholder { color: #8fa4c4; }
#np-hero-form option,
#np-modal option { color: #0a1220; background: #fff; }

/* ============================================================
   HAMBURGER MENU (mobile)
   ============================================================ */
#np-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1005;
}
#np-hamburger span {
  display: block;
  width: 100%; height: 2px;
  background-color: #fff;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s ease, background-color .35s ease;
  border-radius: 2px;
}
#np-nav.solid #np-hamburger span { background-color: var(--navy); }
#np-hamburger.active span { background-color: #fff !important; }
#np-hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#np-hamburger.active span:nth-child(2) { opacity: 0; }
#np-hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

#np-mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%; height: 100vh;
  background: linear-gradient(180deg, rgba(8,18,38,.98), rgba(4,11,24,.99));
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 28px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s cubic-bezier(.2,.8,.2,1), visibility .4s ease;
}
#np-mobile-menu.active { opacity: 1; visibility: visible; }
#np-mobile-menu a {
  color: #fff;
  font-family: 'Archivo', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: color .25s, transform .25s;
}
#np-mobile-menu a:hover { color: var(--accent); transform: scale(1.05); }
#np-mobile-menu a.cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 10px 26px -8px rgba(59, 130, 246, .6);
}

/* ============================================================
   LOGO IMAGE STYLING
   The user-supplied image logo replaces the old text logo.
   Sized generously in the header so it's clearly visible.
   ============================================================ */
#np-logo-img {
  height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
  transition: filter .35s ease, height .35s ease, max-width .35s ease;
}
#np-nav.solid #np-logo-img { filter: drop-shadow(0 1px 2px rgba(0,0,0,.15)); }
@media (max-width: 700px) { #np-logo-img { height: 44px; max-width: 180px; } }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1020px) {
  #np-hero-content {
    grid-template-columns: 1fr !important;
    gap: 46px !important;
  }
  #np-hero-form {
    justify-self: stretch !important;
    max-width: 560px !important;
    margin: 0 auto !important;
  }
  #np-services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #np-about-grid, #np-why-grid, #np-contact-grid, #np-faq-grid {
    grid-template-columns: 1fr !important;
  }
  #np-why-card { position: static !important; }
  #np-process { grid-template-columns: repeat(2, 1fr) !important; }
  #np-proc-track { display: none !important; }
  #np-gallery { grid-template-columns: repeat(2, 1fr) !important; }
  #np-gallery [data-col]:nth-child(3) { display: none !important; }
  #np-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  #np-footer-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 880px) {
  #np-links { display: none !important; }
  #np-hamburger { display: flex; }
  #np-toast { display: none !important; }
  #np-hero-cta-buttons { display: none !important; }
}

@media (max-width: 700px) {
  #np-services-grid, #np-process, #np-gallery {
    grid-template-columns: 1fr !important;
  }
  #np-gallery [data-col]:nth-child(2) { display: none !important; }
  #np-footer-grid { grid-template-columns: 1fr !important; }
  #np-topbar { display: none !important; }
  #np-scrollhint { display: none !important; }
}
