/* ============================================================
   TOKENS
   ============================================================ */
:root{
  --bg:            #FFFFFF;
  --bg-alt:        #F5F7FA;
  --blue:          #1B4E9B;
  --blue-dark:     #0F3269;
  --blue-bright:   #2E6FE0;
  --blue-tint:     #EAF1FC;
  --brown:         #DD2400;   /* heading / accent color, per brand request */
  --brown-dark:    #A81B00;
  --text:          #34363B;
  --text-muted:    #6B6F76;
  --border:        #E4E7EC;
  --white:         #FFFFFF;

  --font-display:  'Work Sans', 'Georgia', serif;
  --font-body:     'Inter', sans-serif;
  --font-ui:       'Inter', sans-serif;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;

  --container: 1180px;
  --gap-section: clamp(50px, 9vw, 50px);

  --shadow-sm: 0 2px 10px rgba(15, 50, 105, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 50, 105, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 50, 105, 0.16);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:500;
  color:var(--brown);
  margin:0;
  line-height:1.12;
  letter-spacing:-0.015em;
}
h1{ font-weight:500; }
h2{ font-weight:500; }
h3{ font-weight:600; font-family:var(--font-body); letter-spacing:-0.005em; }
p{ margin:0; line-height:1.75; color:var(--text-muted); font-weight:400; }

.kicker{
  font-family:var(--font-body);
  font-size:0.82rem;
  font-weight:600;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--blue);
  margin:0 0 18px;
}
.kicker-light{ color:rgba(255,255,255,0.82); }

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 28px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-body);
  font-size:0.8rem;
  font-weight:600;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--blue);
  margin-bottom:18px;
}
.eyebrow::before{
  content:"";
  width:22px; height:1px;
  background:var(--blue);
  display:inline-block;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 30px;
  border-radius:4px;
  font-family:var(--font-ui);
  font-weight:600;
  font-size:0.9rem;
  letter-spacing:0.02em;
  border:1.5px solid transparent;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--blue);
  color:var(--white);
  box-shadow:var(--shadow-sm);
}
.btn-primary:hover{
  background:var(--blue-bright);
  transform:translateY(-2px);
  box-shadow:var(--shadow-md);
}
.btn-outline{
  background:rgba(255,255,255,0.08);
  color:var(--white);
  border-color:rgba(255,255,255,0.55);
}
.btn-outline:hover{
  border-color:var(--white);
  background:rgba(255,255,255,0.18);
  transform:translateY(-2px);
}
.btn:focus-visible, a:focus-visible, button:focus-visible{
  outline:2.5px solid var(--blue-bright);
  outline-offset:3px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  background:rgba(255,255,255,0.85);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid transparent;
  transition:box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.nav.scrolled{
  background:rgba(255,255,255,0.96);
  box-shadow:var(--shadow-sm);
  border-color:var(--border);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:76px;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:2rem;
  letter-spacing:-0.01em;
  color:var(--blue-dark);
}
.logo-mark{
  width:34px; height:34px;
  flex-shrink:0;
}
.logo-word-nescom{ color:var(--blue-dark); }
.logo-word-tech{ color:var(--brown); font-weight:500; }

.nav-links{
  display:flex;
  align-items:center;
  gap:38px;
}
.nav-links a{
  font-size:0.95rem;
  font-weight:500;
  color:var(--text);
  position:relative;
  padding:6px 0;
  transition:color .2s ease;
}
.nav-links a::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width:0; height:2px;
  background:var(--blue);
  transition:width .25s ease;
}
.nav-links a:hover{ color:var(--blue-dark); }
.nav-links a:hover::after{ width:100%; }

.nav-cta-wrap{ display:flex; align-items:center; gap:22px; }
.nav-cta-wrap .btn-outline{ color:var(--blue-dark); border-color:var(--border); background:transparent; }

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:38px; height:38px;
  background:none;
  border:none;
  padding:0;
}
.nav-toggle span{
  width:100%; height:2px;
  background:var(--blue-dark);
  border-radius:2px;
  transition:transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.mobile-panel{ display:none; }

/* ============================================================
   HERO — landscape photographic banner
   ============================================================ */
.hero{
  position:relative;
  min-height:88vh;
  display:flex;
  align-items:center;
  padding:150px 0 96px;
  overflow:hidden;
  isolation:isolate;
}
.hero-media{
  position:absolute;
  inset:0;
  z-index:-2;
}
.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(100deg, rgba(9,26,54,0.94) 0%, rgba(15,50,105,0.88) 38%, rgba(15,50,105,0.55) 65%, rgba(15,50,105,0.35) 100%);
}
.hero-pulses{
  position:absolute;
  inset:0;
  width:100%; height:100%;
}
.mesh-pulse{
  fill:#8FB6F2;
  opacity:0;
  animation:pulse 3.4s ease-in-out infinite;
}
@keyframes pulse{
  0%{ opacity:0; transform:scale(0.4); }
  35%{ opacity:0.9; transform:scale(1.6); }
  70%{ opacity:0; transform:scale(2.6); }
  100%{ opacity:0; }
}

.hero-inner{ position:relative; }
.hero-copy{ max-width:660px; }
.hero-copy h1{
  color:var(--white);
  font-size:clamp(2.6rem, 5vw, 2.6rem);
  font-weight:500;
  letter-spacing:-0.02em;
  margin-bottom:26px;
}
.hero-copy h1 .accent{ color:#FF8A70; font-style:italic; }
.hero-copy .lead{
  font-size:1.15rem;
  font-weight:400;
  line-height:1.65;
  color:rgba(255,255,255,0.86);
  max-width:520px;
  margin-bottom:34px;
}
.hero-actions{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:56px;
}

.trust-bar{
  display:grid;
  grid-template-columns:repeat(4,auto);
  gap:36px;
  padding-top:34px;
  border-top:1px solid rgba(255,255,255,0.22);
}
.trust-stat .num{
  font-family:var(--font-display);
  font-weight:500;
  font-size:1.7rem;
  letter-spacing:-0.01em;
  color:var(--white);
  display:block;
}
.trust-stat .label{
  font-size:0.76rem;
  font-weight:500;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:rgba(255,255,255,0.68);
}

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
section{ padding:var(--gap-section) 0; }
.section-alt{ background:var(--bg-alt); }
.section-head{
  max-width:640px;
  margin-bottom:56px;
}
.section-head h2{
  font-size:clamp(2.1rem, 3.4vw, 2.9rem);
  font-weight:500;
  letter-spacing:-0.02em;
  margin-bottom:18px;
}
.section-head p{ font-size:1.06rem; line-height:1.7; }

.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.reveal.in-view{ opacity:1; transform:translateY(0); }

/* ============================================================
   ABOUT — real photography, simplified structure (fixes prior distortion)
   ============================================================ */
.about-inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:center;
}
.about-copy p + p{ margin-top:18px; }
.about-copy .lead-line{
  font-family:var(--font-display);
  font-style:italic;
  font-weight:500;
  font-size:1.35rem;
  line-height:1.4;
  letter-spacing:-0.01em;
  color:var(--brown);
  margin-bottom:24px;
}
.badge-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:32px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 16px;
  background:var(--blue-tint);
  color:var(--blue-dark);
  border-radius:999px;
  font-size:0.83rem;
  font-weight:600;
}
.badge svg{ width:15px; height:15px; }

.about-visual{
  position:relative;
  width:100%;
  /* fixed, predictable box: this replaces the old gradient panel that
     caused overlap/stretch on smaller breakpoints */
  border-radius:var(--radius-lg);
  overflow:visible;
}
.about-visual img{
  width:100%;
  /*aspect-ratio:4/5;*/
  object-fit:cover;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
}
.about-visual .stat-card{
  position:absolute;
  left:24px;
  bottom:-28px;
  max-width:calc(100% - 48px);
  background:var(--blue-dark);
  border-radius:var(--radius-md);
  padding:20px 22px;
  color:var(--white);
  box-shadow:var(--shadow-md);
}
.about-visual .stat-card .big{
  font-family:var(--font-display);
  font-size:2rem;
  font-weight:500;
  letter-spacing:-0.01em;
  display:block;
}
.about-visual .stat-card .cap{
  font-size:0.8rem;
  letter-spacing:0.01em;
  opacity:0.85;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:28px;
}
.service-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:34px 28px;
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-md);
  border-color:transparent;
}
.service-icon{
  width:52px; height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--blue-tint);
  border-radius:var(--radius-sm);
  margin-bottom:22px;
}
.service-icon svg{ width:26px; height:26px; stroke:var(--blue); }
.service-card h3{
  font-size:1.15rem;
  margin-bottom:10px;
}
.service-card p{ font-size:0.95rem; }

/* ============================================================
   SECTORS
   ============================================================ */
.sectors-grid{
  display:grid;
  grid-template-columns:repeat(6, 1fr);
  gap:18px;
}
.sector-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:14px;
  padding:26px 20px;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  transition:border-color .25s ease, transform .25s ease;
}
.sector-card:hover{
  border-color:var(--blue);
  transform:translateY(-4px);
}
.sector-icon{ width:30px; height:30px; }
.sector-icon svg{ width:100%; height:100%; stroke:var(--brown); }
.sector-card span{
  font-family:var(--font-body);
  font-weight:600;
  font-size:0.92rem;
  letter-spacing:-0.005em;
  color:var(--text);
}

/* ============================================================
   CTA STRIP — photographic background
   ============================================================ */
.cta-strip{
  position:relative;
  border-radius:var(--radius-lg);
  overflow:hidden;
  min-height:280px;
  display:flex;
  align-items:center;
}
.cta-media{
  position:absolute;
  inset:0;
  width:100%; height:100%;
  object-fit:cover;
  z-index:-2;
}
.cta-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(115deg, rgba(15,50,105,0.94) 0%, rgba(27,78,155,0.85) 55%, rgba(27,78,155,0.6) 100%);
  z-index:-1;
}
.cta-content{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
  padding:56px 48px;
  color:var(--white);
}
.cta-content h3{
  color:var(--white);
  font-size:1.9rem;
  font-weight:500;
  letter-spacing:-0.015em;
  max-width:480px;
}
.cta-content .btn-primary{ background:var(--white); color:var(--blue-dark); }
.cta-content .btn-primary:hover{ background:var(--blue-tint); }

/* ============================================================
   FOOTER
   ============================================================ */
footer{
  background:var(--blue-dark);
  color:rgba(255,255,255,0.72);
  padding:76px 0 0;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.2fr;
  gap:48px;
  padding-bottom:56px;
  border-bottom:1px solid rgba(255,255,255,0.12);
}
.footer-brand .logo{ color:var(--white); margin-bottom:16px; }
.footer-brand .logo-word-nescom{ color:var(--white); }
.footer-brand .logo-word-tech{ color:#F3A896; }
.footer-brand p{ color:rgba(255,255,255,0.62); max-width:280px; font-size:0.92rem; }
.footer-social{ display:flex; gap:12px; margin-top:22px; }
.footer-social a{
  width:36px; height:36px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.25);
  display:flex; align-items:center; justify-content:center;
  transition:background .25s ease, border-color .25s ease;
}
.footer-social a:hover{ background:rgba(255,255,255,0.12); border-color:rgba(255,255,255,0.5); }
.footer-social svg{ width:16px; height:16px; stroke:var(--white); }

footer h4{
  color:var(--white);
  font-family:var(--font-body);
  font-size:0.8rem;
  font-weight:600;
  letter-spacing:0.14em;
  text-transform:uppercase;
  margin-bottom:22px;
}
.footer-links li{ margin-bottom:12px; }
.footer-links a{
  font-size:0.92rem;
  color:rgba(255,255,255,0.7);
  transition:color .2s ease;
}
.footer-links a:hover{ color:var(--white); }

.footer-contact li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:0.92rem;
  margin-bottom:16px;
  color:rgba(255,255,255,0.75);
}
.footer-contact svg{ width:17px; height:17px; flex-shrink:0; margin-top:2px; stroke:#C9DBF7; }

.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:26px 0;
  font-size:0.82rem;
  color:rgba(255,255,255,0.5);
  flex-wrap:wrap;
  gap:12px;
}
.footer-bottom .legal-links{ display:flex; gap:22px; }
.footer-bottom .legal-links a{ color:rgba(255,255,255,0.5); }
.footer-bottom .legal-links a:hover{ color:var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:992px){
  .about-inner{ grid-template-columns:1fr; }
  .about-visual{ max-width:440px; margin:0 auto; order:-1; }
  .about-visual .stat-card{ left:20px; bottom:-24px; }
  .services-grid{ grid-template-columns:repeat(2, 1fr); }
  .sectors-grid{ grid-template-columns:repeat(3, 1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; row-gap:40px; }
}

@media (max-width:768px){
  .nav-links, .nav-cta-wrap .btn-primary{ display:none; }
  .nav-toggle{ display:flex; }
  .mobile-panel{
    position:fixed;
    top:76px; left:0; right:0;
    background:var(--white);
    border-bottom:1px solid var(--border);
    box-shadow:var(--shadow-md);
    display:flex;
    flex-direction:column;
    padding:20px 28px 28px;
    gap:4px;
    transform:translateY(-12px);
    opacity:0;
    pointer-events:none;
    transition:opacity .25s ease, transform .25s ease;
  }
  .mobile-panel.open{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
  }
  .mobile-panel a{
    padding:14px 0;
    font-weight:500;
    border-bottom:1px solid var(--border);
  }
  .mobile-panel .btn{ margin-top:16px; width:100%; }

  .hero{ padding-top:130px; min-height:auto; padding-bottom:64px; }
  .trust-bar{ grid-template-columns:repeat(2,1fr); row-gap:22px; }
  .hero-actions .btn{ width:100%; }
  .hero-actions{ flex-direction:column; }
  .about-visual{ margin-bottom:40px; }
  .cta-content{ flex-direction:column; text-align:center; padding:44px 28px; }
  .cta-content h3{ max-width:100%; }
}

@media (max-width:576px){
  .services-grid{ grid-template-columns:1fr; }
  .sectors-grid{ grid-template-columns:repeat(2, 1fr); }
  .footer-grid{ grid-template-columns:1fr; }
  section{ padding:64px 0; }
  .hero-copy .lead{ max-width:100%; }
  .about-visual .stat-card{ position:static; margin-top:16px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
  html{ scroll-behavior:auto; }
}
