/* ============================================================
   Netaxis Corp — Main Stylesheet
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Overpass:wght@700;900&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:       #1a1e2e;
  --blue:       #1a557e;
  --accent:     #2ea3f2;
  --accent-dark:#1480cc;
  --white:      #ffffff;
  --light:      #f5f7fa;
  --border:     #e0e8f0;
  --text:       #2d2d2d;
  --text-muted: #6b7a8d;
  --gradient:   linear-gradient(135deg, #1a1e2e 0%, #1a557e 100%);
  --shadow:     0 4px 24px rgba(26,30,46,0.12);
  --shadow-lg:  0 12px 40px rgba(26,30,46,0.18);
  --radius:     8px;
  --transition: 0.25s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4, h5 {
  font-family: 'Overpass', sans-serif;
  line-height: 1.2;
  color: var(--navy);
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Utility ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-accent  { color: var(--accent); }
.bg-light     { background: var(--light); }
.bg-navy      { background: var(--navy); }
.bg-gradient  { background: var(--gradient); }

.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-family: 'Overpass', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,163,242,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Section Layout ─────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.section-header { margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}
.section-header.light h2,
.section-header.light p { color: var(--white); }
.section-header.light p { opacity: 0.85; }

.divider {
  width: 56px;
  height: 4px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}
.divider-left { margin-left: 0; }

/* ── Navigation ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav-top {
  background: var(--blue);
  padding: 8px 0;
  font-size: 0.82rem;
}
.nav-top .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  color: rgba(255,255,255,0.85);
}
.nav-top a { color: rgba(255,255,255,0.85); }
.nav-top a:hover { color: var(--white); }
.nav-top .nav-top-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-main {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.nav-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.nav-logo img { height: 64px; width: auto; display: block; }
.nav-logo:hover { opacity: 0.9; }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  display: block;
  padding: 8px 16px;
  font-family: 'Overpass', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--accent);
  background: rgba(46,163,242,0.08);
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--accent);
  list-style: none;
  overflow: hidden;
  animation: dropIn 0.2s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-links > li:hover .dropdown-menu { display: block; }

.dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
  border-bottom: 1px solid var(--border);
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover {
  background: var(--light);
  color: var(--accent);
  padding-left: 26px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-phone {
  font-family: 'Overpass', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue);
}
.nav-phone:hover { color: var(--accent); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 150px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient);
  z-index: 0;
}
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}
.hero .container { position: relative; z-index: 1; }

.hero-content { max-width: 640px; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(46,163,242,0.2);
  color: var(--accent);
  font-family: 'Overpass', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(46,163,242,0.3);
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 46%;
  max-width: 600px;
  opacity: 0.9;
}

/* ── Feature Cards Grid ─────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.feature-card:hover {
  border-color: rgba(46,163,242,0.3);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  object-fit: contain;
}
.feature-icon-svg {
  width: 56px;
  height: 56px;
  background: rgba(46,163,242,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 1.6rem;
}
.feature-card h3 {
  font-size: 1rem;
  font-family: 'Overpass', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Two-column content ─────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.two-col-text h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 20px;
}
.two-col-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}
.two-col-text .btn { margin-top: 8px; }

.two-col-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.two-col-image img { width: 100%; }

/* ── Info rows (for/why/how sections) ───────────────────────── */
.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
}
.info-block { padding: 28px; background: var(--white); border-radius: 12px; border: 1px solid var(--border); }
.info-block h3 {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.info-block p { font-size: 0.93rem; color: var(--text-muted); line-height: 1.75; }

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  background: var(--gradient);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(46,163,242,0.08);
  border-radius: 50%;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--white);
  margin-bottom: 16px;
}
.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .btn-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Solutions Grid (homepage) ──────────────────────────────── */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.solution-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.solution-card-image {
  height: 180px;
  overflow: hidden;
  background: var(--light);
}
.solution-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.solution-card:hover .solution-card-image img { transform: scale(1.05); }
.solution-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.solution-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--navy);
}
.solution-card-body p { font-size: 0.9rem; color: var(--text-muted); flex: 1; margin-bottom: 20px; }
.solution-card-body .btn { align-self: flex-start; }

/* ── Stats bar ──────────────────────────────────────────────── */
.stats-bar {
  background: var(--navy);
  padding: 40px 0;
}
.stats-bar .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'Overpass', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Contact Section ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 20px;
}
.contact-info p {
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(46,163,242,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail-text strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 4px; }
.contact-detail-text span, .contact-detail-text a { color: var(--navy); font-weight: 600; }

.contact-form { background: var(--white); border-radius: 16px; padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.contact-form h3 { font-size: 1.3rem; margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,163,242,0.12); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 160px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-col h4 {
  font-family: 'Overpass', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 0.9rem; }
.footer-contact-item i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: var(--accent); }

/* ── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
  padding: 150px 0 72px;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(60% 100% at 50% 100%);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}
.page-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
}
.page-hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 32px;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { color: rgba(255,255,255,0.4); }

/* ── Highlight strip ────────────────────────────────────────── */
.highlight-strip {
  background: var(--accent);
  padding: 20px 0;
  text-align: center;
  color: var(--white);
  font-family: 'Overpass', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
.highlight-strip a { color: var(--white); text-decoration: underline; }

/* ── Checklist ──────────────────────────────────────────────── */
.checklist { list-style: none; margin: 16px 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.93rem;
  color: var(--text-muted);
}
.checklist li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Back to top ────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  z-index: 500;
}
#back-to-top.visible { display: flex; }
#back-to-top:hover { background: var(--accent-dark); transform: translateY(-3px); }

/* ── Animations ─────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse { direction: ltr; }
  .hero-image { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .nav-top { display: none; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-phone { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px;
    box-shadow: var(--shadow);
    gap: 4px;
  }
  .nav-links.open .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--accent);
    border-radius: 0;
    margin-left: 16px;
    display: block;
    animation: none;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .solutions-grid { grid-template-columns: 1fr; }
  .stats-bar .container { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .cta-banner .btn-actions { flex-direction: column; align-items: center; }
}
