/* ==========================================================================
   Nexa Reach Digital - Modern Responsive Stylesheet
   Domain: nexareachdigital.com
   ========================================================================== */

:root {
  --navy: #051d3b;
  --navy-dark: #031226;
  --blue: #0c84ff;
  --blue-hover: #006ce0;
  --blue-gradient: linear-gradient(135deg, #0c84ff 0%, #0056cc 100%);
  --orange: #ff6a00;
  --orange-hover: #e55e00;
  --orange-gradient: linear-gradient(135deg, #ff6a00 0%, #ff8a00 100%);
  --soft-bg: #f5f9ff;
  --text-main: #0b2d55;
  --text-muted: #5e738d;
  --border-light: #e2ecf7;
  --card-shadow: 0 10px 30px rgba(5, 31, 65, 0.07);
  --card-shadow-hover: 0 20px 42px rgba(5, 31, 65, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ------------------ Top Bar ------------------ */
.topbar {
  background: linear-gradient(90deg, #041f40 0%, #083b6f 100%);
  color: #e2edfb;
  padding: 8px 0;
  font-size: 0.86rem;
}
.topbar a {
  color: #e2edfb;
  text-decoration: none;
  transition: color 0.2s ease;
}
.topbar a:hover {
  color: #ff984d;
}
.topbar i {
  color: var(--orange);
  margin-right: 5px;
}

/* ------------------ Navbar ------------------ */
.navbar {
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}
.brand-logo {
  max-height: 50px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.brand-logo:hover {
  transform: scale(1.02);
}
.navbar .nav-link {
  font-weight: 600;
  color: var(--navy) !important;
  padding: 0.75rem 0.9rem !important;
  position: relative;
  transition: color 0.25s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--orange) !important;
}
.navbar .nav-link.active:not(.dropdown-toggle)::before,
.navbar .nav-link:not(.dropdown-toggle):hover::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.25rem;
  height: 2.5px;
  background: var(--orange);
  border-radius: 4px;
}
.dropdown-menu {
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 15px 35px rgba(5, 31, 65, 0.12);
  border: 1px solid var(--border-light);
}
.dropdown-item {
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--navy);
  transition: all 0.2s ease;
}
.dropdown-item:hover {
  background: #f0f7ff;
  color: var(--blue);
  transform: translateX(4px);
}

/* ------------------ Buttons ------------------ */
.btn-orange {
  background: var(--orange-gradient);
  color: #ffffff !important;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  box-shadow: 0 8px 22px rgba(255, 106, 0, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.28s ease;
}
.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 106, 0, 0.38);
}
.btn-outline-primary {
  border: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  transition: all 0.25s ease;
}
.btn-outline-primary:hover {
  background: var(--blue);
  color: #ffffff !important;
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(12, 132, 255, 0.25);
}

/* ------------------ Eyebrow / Badges ------------------ */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--blue);
  display: inline-block;
  margin-bottom: 0.75rem;
  background: #eef6ff;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid #d4e7fc;
}

/* ------------------ Hero Section ------------------ */
.hero-section {
  background: radial-gradient(circle at 85% 15%, rgba(12, 132, 255, 0.12) 0%, transparent 45%),
              linear-gradient(135deg, #ffffff 0%, #f4f9ff 100%);
  position: relative;
  overflow: hidden;
}
.min-vh-hero {
  min-height: 640px;
}
.hero-section h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.hero-section h1 span,
.text-orange {
  color: var(--orange);
}
.hero-points {
  margin-top: 1.5rem;
}
.hero-points span {
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
}
.hero-points i {
  color: var(--orange);
  margin-right: 0.45rem;
  font-size: 1.1rem;
}

/* Hero Dashboard Graphic */
.dashboard-art {
  max-width: 580px;
  padding: 40px 20px 25px;
  position: relative;
}
.screen-card {
  background: #ffffff;
  border: 1px solid #dbe7f5;
  border-radius: 24px;
  box-shadow: 0 25px 55px rgba(5, 33, 67, 0.14);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.screen-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}
.screen-toolbar {
  background: #f1f6fc;
  padding: 12px 16px;
  display: flex;
  gap: 7px;
  border-bottom: 1px solid #e3edfa;
}
.screen-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cdd9e8;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.metric-row div {
  background: #f7faff;
  border: 1px solid #e2ecf7;
  padding: 14px 10px;
  border-radius: 14px;
  text-align: center;
}
.metric-row small {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 600;
}
.metric-row strong {
  font-size: 1.3rem;
  color: var(--navy);
}
.chart-wrap svg {
  width: 100%;
  height: auto;
}

/* Floating Badges */
.floating-card {
  position: absolute;
  background: #ffffff;
  border: 1px solid #e2ecf7;
  box-shadow: 0 12px 32px rgba(6, 33, 67, 0.12);
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
  z-index: 2;
}
.floating-card i {
  font-size: 1.8rem;
  color: var(--blue);
}
.floating-card strong {
  display: block;
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.2;
}
.floating-card span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.growth-card {
  left: -10px;
  top: 15px;
}
.growth-card i {
  color: var(--orange);
}
.target-card {
  left: 15px;
  bottom: 25px;
  animation-delay: 1s;
}
.roi-card {
  right: -5px;
  bottom: 60px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-9px); }
}

/* ------------------ Sections ------------------ */
.section-space {
  padding: 80px 0;
}
.section-heading {
  max-width: 780px;
}
.section-heading h2 {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  color: var(--navy);
  margin: 0.6rem 0;
}
.section-heading p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Service Cards */
.service-card {
  border: 1px solid var(--border-light);
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: #c4defc;
}
.service-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: #eef6ff;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  color: var(--blue);
  font-size: 1.8rem;
  transition: all 0.3s ease;
}
.service-card:hover .service-icon {
  transform: scale(1.1);
  background: var(--blue);
  color: #ffffff;
}
.service-icon.orange {
  color: var(--orange);
  background: #fff3eb;
}
.service-card:hover .service-icon.orange {
  background: var(--orange);
  color: #ffffff;
}
.service-card h5 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* Stats Panel */
.stats-panel {
  background: linear-gradient(110deg, #051d3b 0%, #07386d 100%);
  color: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(4, 25, 52, 0.18);
}
.stat-item {
  padding: 35px 20px;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.stat-item i {
  font-size: 2.2rem;
  color: var(--orange);
}
.stat-item strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
}
.stat-item span {
  display: block;
  font-size: 0.85rem;
  color: #c9ddf2;
}

/* Team / Feature Visual */
.team-visual {
  min-height: 440px;
  border-radius: 28px;
  background: linear-gradient(135deg, #e4f0fd 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--border-light);
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 100%;
}
.avatar-card {
  min-height: 160px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(6, 33, 67, 0.15);
  transition: transform 0.3s ease;
}
.avatar-card:hover {
  transform: translateY(-6px) scale(1.02);
}
.avatar-card i {
  font-size: 2.8rem;
  margin-bottom: 8px;
}
.a1 { background: linear-gradient(135deg, #0c84ff, #005bc9); }
.a2 { background: linear-gradient(135deg, #ff7b1a, #e65c00); }
.a3 { background: linear-gradient(135deg, #0f3563, #051a34); }
.a4 { background: linear-gradient(135deg, #00b4d8, #0077b6); }

.check-list li {
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
  display: flex;
  align-items: center;
}
.check-list i {
  color: var(--orange);
  font-size: 1.15rem;
  margin-right: 0.65rem;
}

/* Case Study Cards */
.case-card {
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}
.case-image {
  height: 180px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 3.2rem;
  position: relative;
  overflow: hidden;
}
.ecommerce { background: linear-gradient(135deg, #157aff, #034891); }
.healthcare { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.local { background: linear-gradient(135deg, #ff9024, #d95300); }
.saas { background: linear-gradient(135deg, #6366f1, #4338ca); }

.case-card span {
  font-size: 0.78rem;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
}
.case-card h5 {
  font-weight: 800;
  color: var(--navy);
  margin-top: 0.3rem;
}

/* Blog Cards */
.blog-card {
  height: 100%;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 28px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}
.blog-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #eef6ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  margin-bottom: 18px;
}
.blog-card .badge {
  background: #fff2e8;
  color: var(--orange);
  font-weight: 700;
  padding: 6px 12px;
  margin-bottom: 12px;
}
.blog-card h4 {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.blog-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.blog-card a {
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.blog-card a:hover {
  color: var(--orange);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(105deg, #051d3b 0%, #083c6f 100%);
  color: #ffffff;
}

/* ------------------ Footer ------------------ */
.site-footer {
  background: #031429;
  color: #ffffff;
}
.footer-logo {
  max-height: 52px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px 12px;
  display: inline-block;
}
.site-footer h6 {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.site-footer li {
  margin-bottom: 10px;
}
.site-footer a {
  color: #bfd4ed;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer a:hover {
  color: var(--orange);
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #08284e;
  color: #ffffff;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}
.footer-social a:hover {
  background: var(--orange);
  color: #ffffff;
  transform: translateY(-3px);
}
.contact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.contact-list i {
  color: var(--orange);
  font-size: 1.1rem;
  margin-top: 2px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  color: #a2b9d2;
  font-size: 0.88rem;
}
.footer-bottom a {
  color: #a2b9d2;
}
.footer-bottom a:hover {
  color: #ffffff;
}

/* Scroll to top & Floating call */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 0;
  background: var(--orange);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(255, 106, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 999;
}
.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.scroll-top:hover {
  background: var(--orange-hover);
  transform: scale(1.05);
}

.mobile-float-call {
  position: fixed;
  left: 20px;
  bottom: 22px;
  background: linear-gradient(135deg, #ff6a00 0%, #ff8a00 100%);
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(255, 106, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 998;
  transition: transform 0.2s ease;
}
.mobile-float-call:hover {
  transform: scale(1.05);
}

/* Animation utilities */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}
[data-animate="zoom-in"] { transform: scale(0.95); }
[data-animate="slide-left"] { transform: translateX(-35px); }
[data-animate="slide-right"] { transform: translateX(35px); }
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------ Mobile & Responsive Breakpoints ------------------ */
@media (max-width: 1199.98px) {
  .brand-logo { max-height: 45px; }
  .service-card { padding: 24px 16px; }
}

@media (max-width: 991.98px) {
  .topbar { display: none !important; }
  .navbar-collapse {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(5, 31, 65, 0.1);
    margin-top: 12px;
  }
  .navbar .nav-link {
    padding: 0.65rem 0 !important;
  }
  .navbar .nav-link.active:not(.dropdown-toggle)::before,
  .navbar .nav-link:not(.dropdown-toggle):hover::before {
    left: 0;
    right: auto;
    width: 32px;
    bottom: 0.2rem;
  }
  .min-vh-hero { min-height: auto; }
  .hero-section { text-align: center; padding-bottom: 40px; }
  .hero-points,
  .hero-section .d-flex {
    justify-content: center;
  }
  .dashboard-art { margin: 20px auto 0; }
  .stat-item:nth-child(2)::after { display: none; }
}

@media (max-width: 767.98px) {
  .section-space { padding: 55px 0; }
  .hero-section h1 { font-size: 2.35rem; }
  .dashboard-art { padding: 20px 0 10px; }
  .screen-card { transform: none; }
  .floating-card {
    position: static;
    margin: 10px auto;
    width: max-content;
    animation: none;
  }
  .stat-item {
    padding: 20px 10px;
  }
  .stat-item::after { display: none; }
  .team-visual { min-height: auto; padding: 20px; }
  .avatar-card { min-height: 130px; }
  .brand-logo { max-height: 42px; }
  .footer-bottom { text-align: center; }
}

@media (max-width: 575.98px) {
  .hero-section h1 { font-size: 2.1rem; }
  .metric-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .avatar-card { min-height: 110px; font-size: 0.8rem; }
  .avatar-card i { font-size: 2rem; }
  .btn-orange { width: 100%; justify-content: center; }
  .footer-logo { max-height: 48px; }
}
