/* =============================================
   CERVUS LIMITED — MAIN STYLESHEET
   Concept 1: Corporate Blue + White + Orange
   ============================================= */

:root {
  --blue-dark:   #0A1F5C;
  --blue-mid:    #1A3A8F;
  --blue-light:  #2155CD;
  --orange:      #F26522;
  --orange-dark: #D4521A;
  --white:       #FFFFFF;
  --off-white:   #F5F7FC;
  --gray-100:    #F0F2F8;
  --gray-200:    #E2E6F0;
  --gray-500:    #8B94B2;
  --gray-700:    #4A5070;
  --text-dark:   #111827;
  --text-body:   #3D4460;

  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  --shadow-sm:   0 2px 8px rgba(10,31,92,0.08);
  --shadow-md:   0 6px 24px rgba(10,31,92,0.12);
  --shadow-lg:   0 16px 48px rgba(10,31,92,0.16);
  --radius:      10px;
  --radius-lg:   16px;
  --transition:  0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── UTILITIES ─────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 56px 0; }

.section-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 560px;
  margin-bottom: 48px;
}

.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
}
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(242,101,34,0.35); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

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

/* ── TOPBAR ────────────────────────────────── */
.topbar {
  background: var(--blue-dark);
  padding: 6px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.topbar a:hover { color: var(--orange); }
.topbar-left, .topbar-right { display: flex; gap: 20px; align-items: center; }
.topbar-right a { display: flex; align-items: center; gap: 5px; }

/* ── NAVBAR ────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--blue-dark);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg { width: 26px; height: 26px; }

.logo-text { line-height: 1; }
.logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--blue-dark);
  letter-spacing: 0.5px;
}
.logo-tag {
  font-size: 10px;
  color: var(--gray-500);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--blue-light); background: var(--gray-100); }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: '▾';
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.6;
}
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px;
  border: 1px solid var(--gray-200);
}
.has-dropdown:hover .dropdown { display: block; animation: fadeDown 0.2s ease; }
.dropdown a { display: block; padding: 9px 14px; font-size: 13px; border-radius: 6px; color: var(--text-body); }
.dropdown a:hover { background: var(--gray-100); color: var(--blue-light); }

.nav-cta { margin-left: 12px; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--blue-dark); border-radius: 2px; transition: var(--transition); }

/* ── HERO CAROUSEL ─────────────────────────── */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
}

/* Crossfade approach — much smoother than sliding */
.slides { display: block; height: 100%; position: relative; }

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 9s ease;
  transform: scale(1.0);
}
.slide.active .slide-bg { transform: scale(1.07); }

/* Overlay gradient */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,31,92,0.82) 0%, rgba(10,31,92,0.55) 55%, rgba(10,31,92,0.15) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0 24px;
  margin-left: calc((100vw - 1180px)/2);
  margin-left: max(24px, calc((100vw - 1180px)/2));
}

.slide-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}
.slide-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease 0.38s, transform 0.75s ease 0.38s;
}
.slide-title span { color: var(--orange); }
.slide-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 480px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease 0.54s, transform 0.7s ease 0.54s;
}
.slide-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease 0.68s, transform 0.7s ease 0.68s;
}

.slide.active .slide-eyebrow,
.slide.active .slide-title,
.slide.active .slide-desc,
.slide.active .slide-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Reset content when slide becomes inactive */
.slide:not(.active) .slide-eyebrow,
.slide:not(.active) .slide-title,
.slide:not(.active) .slide-desc,
.slide:not(.active) .slide-actions {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Carousel controls */
.hero-prev, .hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.hero-prev { left: 24px; }
.hero-next { right: 24px; }
.hero-prev:hover, .hero-next:hover { background: var(--orange); border-color: var(--orange); }

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.hero-dot.active { background: var(--orange); width: 28px; border-radius: 4px; }

/* ── STATS BAR ─────────────────────────────── */
.stats-bar {
  background: var(--blue-dark);
  padding: 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background 0.25s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.05); }
.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat-num span { color: var(--orange); }
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 5px;
  font-weight: 500;
}

/* ── WHAT WE DO / SERVICES ─────────────────── */
.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-icon svg { width: 26px; height: 26px; color: var(--blue-light); }
.service-card:hover .service-icon { background: var(--blue-dark); }
.service-card:hover .service-icon svg { color: var(--white); }

.service-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 10px;
}
.service-desc { font-size: 14px; color: var(--gray-500); line-height: 1.65; }

/* ── SOFTWARE PRODUCTS ─────────────────────── */
.products { background: var(--off-white); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.product-img {
  height: 190px;
  background: var(--blue-mid);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-inner { transform: scale(1.05); }

.product-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.product-body { padding: 22px 24px 26px; }
.product-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.product-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.product-desc { font-size: 13.5px; color: var(--gray-500); margin-bottom: 18px; line-height: 1.6; }
.product-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.product-link:hover { gap: 10px; }

/* ── CLIENTS ────────────────────────────────── */
.clients { background: var(--white); }

.clients-label {
  text-align: center;
  margin-bottom: 40px;
}

.clients-track-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.clients-track {
  display: flex;
  gap: 32px;
  animation: scrollClients 28s linear infinite;
  width: max-content;
}

.client-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 40px;
  padding: 10px 20px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.client-chip:hover { border-color: var(--blue-light); box-shadow: var(--shadow-md); }
.client-chip-icon {
  width: 30px;
  height: 30px;
  background: var(--blue-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  flex-shrink: 0;
}
.client-chip-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-dark);
}

/* ── WHY CERVUS ─────────────────────────────── */
.why-us { background: var(--blue-dark); }

.why-us .section-label { color: var(--orange); }
.why-us .section-title { color: var(--white); }
.why-us .section-sub { color: rgba(255,255,255,0.6); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: var(--transition);
}
.why-card:hover { background: rgba(255,255,255,0.09); transform: translateY(-3px); }

.why-icon {
  width: 50px;
  height: 50px;
  background: var(--orange);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.why-icon svg { width: 24px; height: 24px; color: var(--white); }
.why-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.why-desc { font-size: 13.5px; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ── INDUSTRIES ─────────────────────────────── */
.industries { background: var(--off-white); }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.industry-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.industry-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--blue-light); }

.industry-icon {
  width: 60px;
  height: 60px;
  background: var(--blue-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: var(--transition);
}
.industry-card:hover .industry-icon { background: var(--orange); }
.industry-icon svg { width: 28px; height: 28px; color: var(--white); }
.industry-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.industry-desc { font-size: 13px; color: var(--gray-500); }

/* ── CONTACT ────────────────────────────────── */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.contact-info-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 20px;
}

.contact-info-items { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-dark);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; color: var(--white); }
.contact-info-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--blue-dark); margin-bottom: 2px; }
.contact-info-text span { font-size: 14px; color: var(--gray-500); }

.contact-form-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--gray-200);
}

.form-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 24px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue-light); }
.form-group textarea { resize: vertical; min-height: 110px; }

/* ── FOOTER ─────────────────────────────────── */
.footer { background: var(--blue-dark); color: rgba(255,255,255,0.75); }

.footer-top {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 14px 0 24px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.footer-social:hover { background: var(--orange); color: var(--white); }

.footer-col-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--orange); }

.footer-contact-items { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact-item svg { width: 16px; height: 16px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: 13.5px; color: rgba(255,255,255,0.6); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* Mobile demo button — hidden on desktop, shown only in mobile nav */
.mobile-demo-btn { display: none; }

/* ── BACK TO TOP ────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 42px;
  height: 42px;
  background: var(--orange);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 16px rgba(242,101,34,0.4);
  border: none;
  font-size: 18px;
}
.back-top.visible { opacity: 1; pointer-events: all; }
.back-top:hover { transform: translateY(-3px); }

/* ── ANIMATIONS ─────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollClients {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── FADE-IN ANIMATIONS ──────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-child.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ─────────────────────────────── */
/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 1024px)
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid      { grid-template-columns: repeat(2, 1fr); }
  .products-grid      { grid-template-columns: repeat(2, 1fr); }
  .why-grid           { grid-template-columns: repeat(2, 1fr); }
  .industry-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-top         { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 768px)
══════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── TOPBAR ── */
  .topbar { display: none; }

  /* ── CONTAINER ── */
  .container { padding: 0 16px; }

  /* ── NAVBAR ── */
  .navbar { padding: 0 16px; }
  .navbar-inner { height: 64px; }
  .logo-name { font-size: 16px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--white);
    padding: 12px 16px 20px;
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    gap: 0;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 999;
  }
  .nav-links.open li { border-bottom: 1px solid var(--gray-100); }
  .nav-links.open li a { padding: 12px 4px; display: block; font-size: 15px; color: var(--blue-dark); }
  .nav-links.open li a:hover { color: var(--orange); background: none; }
  /* Mobile dropdowns — hidden by default, revealed on tap */
  .nav-links.open .has-dropdown .dropdown {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    padding: 4px 0 8px 12px;
    min-width: unset;
    background: transparent;
    animation: none;
  }
  .nav-links.open .has-dropdown.mobile-open .dropdown {
    display: flex;
    flex-direction: column;
  }
  .nav-links.open .dropdown a {
    font-size: 13px;
    padding: 8px 4px;
    color: var(--gray-500);
    border-bottom: none;
    border-radius: 0;
  }
  .nav-links.open .dropdown a:hover { color: var(--orange); background: none; }
  /* Rotate arrow when open */
  .has-dropdown.mobile-open > a::after { content: '▴'; }
  /* Demo button at bottom of mobile nav */
  .mobile-demo-btn {
    display: block;
    margin: 14px 0 0;
    padding: 13px 20px;
    background: var(--orange);
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    border: none;
    width: 100%;
  }

  /* ── HERO ── */
  .hero { height: auto; min-height: 520px; }
  .slide { min-height: 520px; }
  .slide-content {
    margin-left: 0;
    padding: 40px 20px;
    max-width: 100%;
  }
  .slide-title { font-size: clamp(26px, 7vw, 38px); }
  .slide-desc { font-size: 14.5px; }
  .slide-actions { flex-direction: column; gap: 10px; }
  .slide-actions .btn { width: 100%; justify-content: center; text-align: center; }
  .hero-prev, .hero-next { width: 36px; height: 36px; font-size: 14px; }
  .hero-prev { left: 12px; }
  .hero-next { right: 12px; }

  /* ── STATS BAR ── */
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 20px 12px; }
  .stat-num { font-size: 32px; }

  /* ── SECTIONS ── */
  .section { padding: 56px 0; }
  .section-title { font-size: clamp(22px, 6vw, 32px); }
  .section-sub { font-size: 14px; }

  /* ── GRIDS → SINGLE COLUMN ── */
  .services-grid  { grid-template-columns: 1fr; }
  .products-grid  { grid-template-columns: 1fr; }
  .why-grid       { grid-template-columns: 1fr; }
  .industry-grid  { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .contact-grid   { grid-template-columns: 1fr; }

  /* ── FOOTER ── */
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; font-size: 12px; }
  .footer-links { gap: 6px; }

  /* ── FORMS ── */
  .form-row { grid-template-columns: 1fr; }

  /* ── CLIENTS LOGOS ── */
  .clients-track img { height: 36px; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — SMALL PHONES  (≤ 480px)
══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero { min-height: 480px; }
  .slide { min-height: 480px; }
  .industry-grid { grid-template-columns: 1fr; }
  .hero-dots { bottom: 14px; }
  .hero-dot { width: 6px; height: 6px; }
  .hero-dot.active { width: 20px; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .section { padding: 44px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .slide-bg, .clients-track { animation: none; transition: none; }
  .slide.active .slide-bg   { transform: none; }
}
