/* ============================================================
   Nexovate Digital — Design Tokens
   ============================================================ */
:root{
  --c-primary: #234C85;
  --c-primary-dark: #173A67;
  --c-accent: #21C7D9;
  --c-accent-dark: #1AA9B8;
  --c-bg: #FFFFFF;
  --c-bg-alt: #F5F7FA;
  --c-heading: #1F2937;
  --c-text: #2C2C2C;
  --c-text-muted: #6B7280;
  --c-border: #E5E7EB;

  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 16px;
  --shadow-soft: 0 8px 24px rgba(23, 58, 103, 0.08);
  --shadow-lift: 0 16px 36px rgba(23, 58, 103, 0.14);
  --container-max: 1240px;
}

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

html{ scroll-behavior: smooth; }

body{
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,.brand-mark{
  font-family: var(--font-display);
  color: var(--c-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a{ color: var(--c-primary); text-decoration: none; }
a:hover{ color: var(--c-primary-dark); }

.container{ max-width: var(--container-max); }

.skip-link{
  position:absolute; left:-999px; top:0; background:var(--c-primary); color:#fff;
  padding:.6rem 1rem; z-index:2000; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

:focus-visible{ outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* ============ Section rhythm ============ */
section{ padding: 6.5rem 0; }
.section-alt{ background: var(--c-bg-alt); padding: 6.5rem 0; }
.section-head{ max-width: 640px; margin: 0 auto 3rem; text-align:center; }
.section-lead{ color: var(--c-text-muted); font-size: 1.05rem; }

.eyebrow{
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-accent); display:flex; align-items:center; gap:.4rem; justify-content:center; margin-bottom: .75rem;
}
.eyebrow-dark{ color: var(--c-primary); justify-content:flex-start; }
.hero-copy .eyebrow{ justify-content:flex-start; color: var(--c-primary); background: var(--c-bg-alt); border:1px solid var(--c-border); width:fit-content; padding:.4rem .9rem; border-radius: 999px; }

/* ============ Buttons ============ */
.btn-nexo-primary{
  background: var(--c-primary); color:#fff; border:1px solid var(--c-primary);
  font-weight:600; padding:.75rem 1.6rem; border-radius: 10px; transition: all .2s ease;
}
.btn-nexo-primary:hover{ background: var(--c-primary-dark); border-color: var(--c-primary-dark); color:#fff; }

.btn-nexo-secondary{
  background:#fff; color: var(--c-primary); border:1px solid var(--c-primary);
  font-weight:600; padding:.75rem 1.6rem; border-radius: 10px; transition: all .2s ease;
}
.btn-nexo-secondary:hover{ background: var(--c-primary); color:#fff; }

.btn-nexo-cta{
  background: var(--c-accent); color: var(--c-primary-dark); border:1px solid var(--c-accent);
  font-weight:700; padding:.75rem 1.8rem; border-radius: 10px; transition: all .2s ease;
}
.btn-nexo-cta:hover{ background: var(--c-accent-dark); color: var(--c-primary-dark); }

/* ============ Header / Navbar ============ */
.site-header{
  position: sticky; top:0; z-index:1000; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.site-header.scrolled{ box-shadow: 0 4px 20px rgba(23,58,103,.08); }
.navbar{ padding: .9rem 0; transition: padding .2s ease; }
.brand-mark{ font-size:1.6rem; font-weight:800; color: var(--c-heading); letter-spacing: .02em; }
.brand-accent{ color: var(--c-primary); }
.brand-sub{ display:block; font-size:.56rem; letter-spacing:.16em; color: var(--c-text-muted); font-weight:600; margin-top:-2px; }
.footer-brand-sub{ display:block; font-size:.62rem; letter-spacing:.16em; color: rgba(255,255,255,.55); font-weight:600; margin: -4px 0 1rem; }

.main-nav .nav-link{
  color: var(--c-text); font-weight:600; padding: .6rem 1rem !important; font-size:.95rem;
  transition: color .15s ease;
}
.main-nav .nav-link:hover, .main-nav .nav-link:focus{ color: var(--c-primary); }
.main-nav .dropdown-toggle::after{ vertical-align: 2px; }

/* Mega menu */
.mega-dropdown{ position: static; }
.mega-menu{
  width: 100%; border:none; border-top: 1px solid var(--c-border);
  box-shadow: var(--shadow-lift); border-radius: 0 0 16px 16px; padding: 0; margin-top: 0;
}
.mega-menu-inner{ padding: 2.2rem 2rem; }
.mega-col-title{
  font-family: var(--font-display); font-weight:700; font-size:.85rem; color: var(--c-heading);
  display:flex; align-items:center; gap:.5rem; margin-bottom: .9rem;
}
.mega-col-title i{ color: var(--c-primary); }
.mega-menu ul{ list-style:none; padding:0; margin:0; }
.mega-menu ul li{ margin-bottom:.55rem; }
.mega-menu ul li a{ color: var(--c-text-muted); font-size:.9rem; }
.mega-menu ul li a:hover{ color: var(--c-primary); }
.mega-menu-foot{
  border-top:1px solid var(--c-border); margin-top: 1.8rem; padding-top: 1.2rem;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem;
}
.mega-menu-foot span{ color: var(--c-text-muted); font-size:.9rem; }
.mega-cta{ font-weight:700; color: var(--c-primary); }

@media (min-width: 992px){
  .mega-dropdown:hover .mega-menu{ display:block; }
}

/* ============ Hero ============ */
.hero{ padding-top: 0; padding-bottom: 0; position:relative; overflow:hidden; }
.hero-carousel{ padding-top: 3.5rem; padding-bottom: 3rem; }
.hero-carousel .carousel-item{ transition: transform .7s ease-in-out; }

.hero-photo-frame{
  position: relative; border-radius: var(--radius); overflow:hidden;
  box-shadow: var(--shadow-lift); border: 1px solid var(--c-border);
  aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--c-bg-alt), #E9EEF4);
}
.hero-photo-frame img{ width:100%; height:100%; object-fit: cover; display:block; }
.hero-photo-frame.img-fallback{
  display:flex; align-items:center; justify-content:center;
}
.hero-photo-tag{
  position:absolute; left:1.2rem; bottom:1.2rem; background: rgba(23,58,103,.9); color:#fff;
  font-size:.8rem; font-weight:700; padding:.45rem 1rem; border-radius: 999px; backdrop-filter: blur(4px);
}

.hero-indicators{ position: static; margin-top: 2.4rem; gap:.5rem; }
.hero-indicators [data-bs-target]{
  width:34px; height:4px; border-radius: 4px; background: var(--c-border); opacity:1;
  border:none; margin: 0 .3rem;
}
.hero-indicators button.active{ background: var(--c-primary); }

.carousel-control-prev, .carousel-control-next{ width: 4%; opacity:1; }
.hero-arrow{
  width:44px; height:44px; border-radius:50%; background:#fff; border:1px solid var(--c-border);
  display:flex; align-items:center; justify-content:center; color: var(--c-primary); box-shadow: var(--shadow-soft);
}
.hero-arrow:hover{ background: var(--c-primary); color:#fff; }

/* Casual body images */
.body-photo{
  border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--c-border);
}
.body-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.case-thumb, .insight-thumb{ border-radius: 12px 12px 0 0; overflow:hidden; aspect-ratio: 16/10; margin: -2rem -2rem 1.4rem; background: var(--c-bg-alt); }
.case-thumb img, .insight-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.hero h1{ font-size: clamp(2.1rem, 4vw, 3.1rem); line-height:1.12; margin-bottom: 1.2rem; }
.text-accent-blue{ color: var(--c-primary); }
.hero-lead{ color: var(--c-text-muted); font-size:1.1rem; max-width: 520px; margin-bottom: 2rem; }
.hero-actions{ display:flex; gap: 1rem; flex-wrap:wrap; margin-bottom: 2.2rem; }
.hero-trust{ display:flex; align-items:center; gap:1rem; flex-wrap:wrap; font-size:.85rem; color: var(--c-text-muted); }
.hero-trust-flags{ display:flex; gap: 1rem; font-weight:600; color: var(--c-heading); }
.hero-trust-flags i{ font-size:.4rem; color: var(--c-accent); margin-right:.35rem; vertical-align: middle; }

.hero-visual{ display:flex; justify-content:center; }
.globe-graphic{ width:100%; max-width: 480px; height:auto; }
.node-label{ font-family: var(--font-body); font-size: 11px; font-weight:600; fill: var(--c-text-muted); }
.node-label-main{ font-size: 12px; font-weight:800; fill: var(--c-primary-dark); letter-spacing: .05em; }
.arc{ stroke-dashoffset: 0; animation: dashmove 6s linear infinite; }
@keyframes dashmove{ to{ stroke-dashoffset: -60; } }

.hero-stats{ background: var(--c-primary-dark); margin-top: 4rem; padding: 2.6rem 0; }
.stat{ font-family: var(--font-display); font-size: 2.2rem; font-weight:800; color:#fff; }
.stat-label{ color: rgba(255,255,255,.75); font-size:.85rem; margin-top:.2rem; }

/* ============ Logo strip ============ */
.logo-strip{ padding: 3rem 0; border-bottom: 1px solid var(--c-border); }
.logo-strip-label{ text-align:center; color: var(--c-text-muted); font-size:.85rem; margin-bottom: 1.6rem; }
.logo-row{ display:flex; justify-content:center; gap: 2.6rem; flex-wrap:wrap; }
.logo-row span{ font-family: var(--font-display); font-weight:700; color:#9CA3AF; letter-spacing:.04em; font-size:.95rem; }

/* ============ Solutions ============ */
.solution-card{
  background:#fff; border:1px solid var(--c-border); border-radius: var(--radius);
  padding: 2rem; height:100%; transition: transform .2s ease, box-shadow .2s ease;
}
.solution-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.solution-num{ font-family: var(--font-display); font-weight:800; color: var(--c-accent); font-size:1.1rem; margin-bottom: .8rem; }
.solution-card h3{ font-size:1.15rem; margin-bottom:.6rem; }
.solution-card p{ color: var(--c-text-muted); font-size:.95rem; margin:0; }

/* ============ Service cards ============ */
.service-card{
  background:#fff; border:1px solid var(--c-border); border-radius: var(--radius);
  padding: 2.2rem; height:100%; transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.service-icon{
  width:52px; height:52px; border-radius: 12px; background: var(--c-bg-alt);
  display:flex; align-items:center; justify-content:center; font-size:1.4rem; color: var(--c-primary); margin-bottom: 1.3rem;
}
.service-card h3{ font-size:1.2rem; margin-bottom:.6rem; }
.service-card p{ color: var(--c-text-muted); font-size:.95rem; margin-bottom: 1.1rem; }
.service-link{ font-weight:700; font-size:.9rem; color: var(--c-primary); }
.service-link i{ transition: transform .2s ease; display:inline-block; }
.service-card:hover .service-link i{ transform: translateX(4px); }

/* ============ Industries ============ */
.industry-card{
  background:#fff; border:1px solid var(--c-border); border-radius: 12px;
  padding: 1.6rem 1rem; text-align:center; height:100%;
  display:flex; flex-direction:column; align-items:center; gap:.7rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.industry-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.industry-card i{ font-size:1.6rem; color: var(--c-accent); }
.industry-card span{ font-weight:600; font-size:.9rem; color: var(--c-heading); }

/* ============ Why choose us ============ */
.why-item{ padding: 1.6rem; border-radius: var(--radius); background: var(--c-bg-alt); height:100%; }
.why-item i{ font-size:1.4rem; color: var(--c-primary); margin-bottom:.8rem; display:block; }
.why-item h3{ font-size:1.05rem; margin-bottom:.5rem; }
.why-item p{ color: var(--c-text-muted); font-size:.9rem; margin:0; }

/* ============ Case studies ============ */
.case-card{
  display:block; background:#fff; border:1px solid var(--c-border); border-radius: var(--radius);
  padding: 2rem; height:100%; transition: transform .2s ease, box-shadow .2s ease;
}
.case-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.case-tag{ display:inline-block; font-size:.75rem; font-weight:700; color: var(--c-primary); background: var(--c-bg-alt); padding:.3rem .7rem; border-radius: 999px; margin-bottom: 1.1rem; }
.case-card h3{ font-size:1.1rem; color: var(--c-heading); margin-bottom: 1.4rem; }
.case-link{ font-weight:700; font-size:.88rem; color: var(--c-primary); }

/* ============ Testimonials ============ */
.testimonial{ max-width: 720px; margin:0 auto; text-align:center; }
.testimonial p{ font-size: 1.3rem; font-family: var(--font-display); color: var(--c-heading); font-weight:500; line-height:1.5; }
.testimonial-author{ margin-top: 1.4rem; display:flex; flex-direction:column; }
.testimonial-author strong{ color: var(--c-primary); }
.testimonial-author span{ color: var(--c-text-muted); font-size:.85rem; }
.carousel-dots{ display:flex; justify-content:center; gap:.5rem; margin-top: 2rem; }
.carousel-dots button{
  width:8px; height:8px; border-radius:50%; border:none; background: var(--c-border); padding:0;
}
.carousel-dots button.active{ background: var(--c-primary); }

/* ============ Insights ============ */
.insight-card{
  display:block; background:#fff; border:1px solid var(--c-border); border-radius: var(--radius);
  padding: 2rem; height:100%; transition: transform .2s ease, box-shadow .2s ease;
}
.insight-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.insight-date{ font-size:.8rem; color: var(--c-accent-dark); font-weight:700; }
.insight-card h3{ font-size:1.05rem; color: var(--c-heading); margin-top: .8rem; }

/* ============ About ============ */
.about-points{ display:flex; flex-direction:column; gap:.7rem; margin: 1.6rem 0 2rem; }
.about-points div{ display:flex; align-items:center; gap:.6rem; font-weight:600; color: var(--c-heading); font-size:.95rem; }
.about-points i{ color: var(--c-accent); }
.about-panel{ background: var(--c-primary-dark); border-radius: var(--radius); padding: 2rem; }
.about-panel-row{ display:flex; justify-content:space-between; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.7); font-size:.9rem; }
.about-panel-row:last-child{ border-bottom:none; }
.about-panel-row strong{ color:#fff; font-weight:600; }

/* ============ CTA band ============ */
.cta-band{ background: var(--c-primary); color:#fff; padding: 4.5rem 0; }
.cta-band h2{ color:#fff; margin-bottom:.5rem; }
.cta-band p{ color: rgba(255,255,255,.8); margin:0; }

/* ============ Contact ============ */
.contact-detail{ display:flex; align-items:center; gap:.7rem; color: var(--c-text-muted); margin-bottom: 1rem; font-size:.95rem; }
.contact-detail i{ color: var(--c-primary); }
.contact-form .form-label{ font-weight:600; font-size:.85rem; color: var(--c-heading); }
.contact-form .form-control, .contact-form .form-select{
  border: 1px solid var(--c-border); border-radius: 10px; padding: .7rem .9rem; font-size:.95rem;
}
.contact-form .form-control:focus, .contact-form .form-select:focus{
  border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(35,76,133,.12);
}

/* ============ Footer ============ */
.site-footer{ background: var(--c-primary-dark); color: rgba(255,255,255,.75); padding: 4.5rem 0 2rem; }
.footer-brand{ color:#fff; }
.footer-brand .brand-accent{ color: var(--c-accent); }
.footer-about{ font-size:.9rem; margin: 1rem 0 1.4rem; max-width: 320px; }
.footer-social{ display:flex; gap: .9rem; }
.footer-social a{ color:#fff; width:36px; height:36px; border:1px solid rgba(255,255,255,.2); border-radius:50%; display:flex; align-items:center; justify-content:center; }
.footer-social a:hover{ background: var(--c-accent); border-color: var(--c-accent); color: var(--c-primary-dark); }
.site-footer h4{ color:#fff; font-size:.9rem; text-transform:uppercase; letter-spacing:.05em; margin-bottom:1.2rem; }
.site-footer ul{ list-style:none; padding:0; margin:0; }
.site-footer ul li{ margin-bottom:.7rem; }
.site-footer ul li a{ color: rgba(255,255,255,.7); font-size:.9rem; }
.site-footer ul li a:hover{ color: var(--c-accent); }
.footer-newsletter{ display:flex; border:1px solid rgba(255,255,255,.25); border-radius: 10px; overflow:hidden; }
.footer-newsletter input{ flex:1; background:transparent; border:none; padding:.6rem .8rem; color:#fff; font-size:.85rem; }
.footer-newsletter input::placeholder{ color: rgba(255,255,255,.5); }
.footer-newsletter button{ background: var(--c-accent); border:none; color: var(--c-primary-dark); width:42px; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.15); margin-top: 3rem; padding-top: 1.6rem;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap: 1rem; font-size:.82rem;
}
.footer-legal{ display:flex; gap: 1.4rem; }
.footer-legal a{ color: rgba(255,255,255,.7); }
.footer-legal a:hover{ color: var(--c-accent); }

/* ============ Back to top ============ */
.back-to-top{
  position: fixed; right: 1.6rem; bottom: 1.6rem; width:46px; height:46px; border-radius:50%;
  background: var(--c-primary); color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-lift); opacity:0; visibility:hidden; transition: all .25s ease; z-index: 900;
}
.back-to-top.show{ opacity:1; visibility:visible; }
.back-to-top:hover{ background: var(--c-primary-dark); color:#fff; }

/* ============ Reveal on scroll ============ */
[data-reveal]{ opacity:0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible{ opacity:1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 991.98px){
  .mega-menu{ box-shadow:none; border-radius:0; border-top:1px solid var(--c-border); }
  .mega-menu-inner{ padding: 1.2rem 0; }
  section, .section-alt{ padding: 4rem 0; }
  .hero{ padding-top: 0; text-align:left; }
  .hero-carousel{ padding-top: 2rem; padding-bottom: 2rem; }
  .hero-stats{ margin-top: 2.6rem; }
  .carousel-control-prev, .carousel-control-next{ display:none; }
  .hero-photo-frame{ margin-top: 1.5rem; }
}
