/* ===========================================================
   VeloxSim Tech – Shared site stylesheet
   Used by index.html and all sub-pages for a consistent look.
   =========================================================== */

:root {
  --vs-navy: #1f2e4d;
  --vs-navy-dark: #152037;
  --vs-teal: #49889D;
  --vs-teal-hover: #5f9db1;
  --vs-accent: #f0a500;
  --vs-text: #333;
  --vs-bg: #f4f4f4;
  --vs-bg-alt: #f0f0f0;
  --vs-white: #ffffff;
  --vs-heading: #1f2e4d;
  --vs-heading-sub: #1e4a5f;
  --vs-max: 1200px;
}

/* --- Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  background-color: var(--vs-bg);
  color: var(--vs-text);
  line-height: 1.5;
  overflow-x: hidden; /* prevent rogue horizontal scrollbars */
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--vs-heading);
  margin: 0 0 20px 0;
  line-height: 1.25;
}

h1 { font-size: 2em; }
h2 { font-size: 1.5em; color: var(--vs-heading-sub); }
h3 { font-size: 1.2em; color: #1f424d; }

p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 20px auto;
  line-height: 1.6;
}

a {
  color: var(--vs-teal);
}

a:hover {
  color: var(--vs-accent);
}

.highlight-link {
  color: var(--vs-accent);
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid var(--vs-accent);
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.highlight-link:hover {
  color: var(--vs-navy);
  background-color: var(--vs-accent);
  border-bottom-color: var(--vs-navy);
  padding: 2px 4px;
  border-radius: 4px;
}

/* --- Buttons --- */
.button,
button.button,
a.button {
  display: inline-block;
  padding: 14px 28px;
  background-color: var(--vs-navy);
  color: var(--vs-white);
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95em;
  font-weight: bold;
  letter-spacing: 0.5px;
  border-radius: 2px;
  transition: background-color 0.25s ease, transform 0.15s ease;
}

.button:hover,
button.button:hover,
a.button:hover {
  background-color: var(--vs-accent);
  color: var(--vs-white);
  transform: translateY(-1px);
}

/* --- Shared navbar --- */
.site-nav {
  background: var(--vs-teal);
  color: var(--vs-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.site-nav .nav-inner {
  max-width: var(--vs-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.site-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--vs-white);
  font-weight: bold;
  text-decoration: none;
  font-size: 1.15em;
  letter-spacing: 1px;
}

.site-nav .brand img {
  height: 36px;
  width: auto;
}

.site-nav .nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--vs-white);
  font-size: 1.3em;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 3px;
  line-height: 1;
}

.site-nav .nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.site-nav .nav-links a {
  color: var(--vs-white);
  text-decoration: none;
  padding: 10px 14px;
  text-transform: uppercase;
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 3px;
  display: inline-block;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a:focus {
  background-color: var(--vs-teal-hover);
  color: var(--vs-white);
  outline: none;
}

.site-nav .nav-links a.active {
  background-color: var(--vs-navy);
  color: var(--vs-white);
}

.site-nav .nav-links a.cta {
  background-color: var(--vs-accent);
  color: var(--vs-navy);
}

.site-nav .nav-links a.cta:hover {
  background-color: var(--vs-white);
  color: var(--vs-navy);
}

/* Mobile nav */
@media (max-width: 900px) {
  .site-nav .nav-toggle {
    display: inline-block;
  }
  .site-nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--vs-teal);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px 14px;
    gap: 4px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
  }
  .site-nav.open .nav-links {
    display: flex;
  }
  .site-nav .nav-links a {
    padding: 12px 14px;
    font-size: 1em;
  }
}

/* --- Hero banner (index.html) --- */
.hero-banner {
  background: var(--vs-navy) url('../img/banner.webp') center/cover no-repeat;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--vs-white);
  position: relative;
  padding: 40px 20px;
  text-align: center;
}

.hero-logo {
  position: absolute;
  top: 20px;
  left: 20px;
  width: clamp(140px, 18vw, 240px);
  height: auto;
  opacity: 0.92;
}

.hero-banner h1 {
  color: #e6dfd2;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  margin: 10px 0;
}

.hero-title h1 {
  font-size: clamp(2em, 5vw, 3em);
}

.hero-subtitle .hero-tagline {
  font-size: clamp(1.2em, 3vw, 1.8em);
  font-weight: normal;
  color: #e6dfd2;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  max-width: none;
  margin: 10px 0;
}

@media (max-width: 640px) {
  .hero-logo {
    position: static;
    display: block;
    margin: 0 auto 16px;
  }
}

/* --- Sections --- */
section {
  padding: 60px 24px;
  background-color: var(--vs-white);
}

section.section-dark {
  background-color: var(--vs-bg-alt);
}

section > h1,
section > h2,
section > p {
  text-align: center;
}

section > a.button,
section > button.button {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Two-column layouts */
#software,
#greennet .two-col {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--vs-max);
  margin: 0 auto;
  text-align: left;
  flex-wrap: wrap;
}

#software .particle-image {
  width: 100%;
  max-width: 450px;
  border-radius: 4px;
  flex: 0 0 auto;
}

#software .content,
#greennet .col.right.content {
  flex: 1 1 320px;
  min-width: 0;
}

#greennet .col.left {
  flex: 0 0 320px;
  text-align: center;
}

.greennet-logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  background: var(--vs-white);
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  display: block;
  margin: 0 auto;
}

/* Text fallback if the logo image ever fails to load */
.greennet-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.greennet-fallback .gn-primary { color: #009F00; font-size: 2em; line-height: 1; }
.greennet-fallback .gn-accent  { color: var(--vs-navy); font-size: 2em; line-height: 1; margin-top: 4px; }

.greennet-tagline {
  margin: 10px 0 0;
  font-size: 0.95em;
  color: var(--vs-navy);
  opacity: 0.85;
  text-align: center;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px;
}

.feature-list li {
  margin: 6px 0;
  line-height: 1.5;
  position: relative;
  padding-left: 18px;
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #009F00;
  font-weight: bold;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.disclaimer {
  display: block;
  margin-top: 8px;
  color: #555;
  font-size: 0.85em;
}

@media (max-width: 900px) {
  #software,
  #greennet .two-col {
    flex-direction: column;
    text-align: center;
  }
  #greennet .col.left,
  #greennet .col.right.content {
    flex: 1 1 auto;
  }
  #software .content {
    text-align: center;
  }
}

/* --- Carousel --- */
.carousel-container {
  position: relative;
  max-width: var(--vs-max);
  margin: 20px auto 0;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}

.carousel-slide {
  display: none;
  position: relative;
}

.carousel-slide.active {
  display: block;
}

.carousel-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.carousel-container .caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(31, 46, 77, 0.8);
  padding: 10px 16px;
  text-align: left;
}

.carousel-container .caption h2 {
  margin: 0;
  color: var(--vs-white);
  font-size: 1.1em;
  text-align: left;
}

.carousel-indicators {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--vs-white);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus {
  background: rgba(0, 0, 0, 0.8);
  outline: none;
}

.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }

.dot {
  height: 12px;
  width: 12px;
  background-color: rgba(255, 255, 255, 0.6);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--vs-accent);
}

/* --- Client logos --- */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 24px auto;
  max-width: var(--vs-max);
}

.client-logos img {
  height: 90px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.client-logos img:hover,
.client-logos img:focus {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.client-logos img.logo-small {
  max-height: 60px;
}

/* --- Sub-page content helpers --- */
.page-header {
  background: var(--vs-navy);
  color: var(--vs-white);
  padding: 40px 20px;
  text-align: center;
}

.page-header h1 {
  color: var(--vs-white);
  margin: 0;
  font-size: clamp(1.8em, 4vw, 2.5em);
}

.page-header p {
  color: rgba(255, 255, 255, 0.85);
  margin: 10px auto 0;
}

.page-body {
  max-width: var(--vs-max);
  margin: 0 auto;
  padding: 40px 20px;
}

.page-body .section-title {
  display: block;
  text-align: center;
  color: var(--vs-heading);
  font-size: 1.8em;
  text-decoration: none;
  margin-bottom: 20px;
}

/* Responsive video wrapper — uses modern aspect-ratio so the
   container matches the video's native ratio instead of Vimeo
   letter-boxing inside a wrongly-sized iframe. */
.video-wrapper {
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16 / 9;
  margin: 0 auto 12px;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

/* Override for non-16:9 videos (e.g. wider capture recordings) */
.video-wrapper.ratio-19-10 { aspect-ratio: 1.919 / 1; }

.video-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 24px;
  font-weight: 600;
  color: var(--vs-heading-sub);
}

/* Download list cards */
.download-list {
  max-width: 820px;
  margin: 24px auto;
  display: grid;
  gap: 12px;
}

.download-list a {
  display: block;
  padding: 18px 20px;
  background: var(--vs-white);
  color: var(--vs-navy);
  text-decoration: none;
  border: 1px solid #e0e0e0;
  border-left: 4px solid var(--vs-teal);
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.download-list a:hover,
.download-list a:focus {
  border-left-color: var(--vs-accent);
  transform: translateX(2px);
  color: var(--vs-navy);
  background: #fafafa;
}

/* Benchmark / case study grids (existing outer-grid/inner-grid) */
.outer-grid {
  display: flex;
  flex-wrap: wrap;
  max-width: var(--vs-max);
  margin: 0 auto;
  gap: 16px;
  padding: 0 8px;
}

.outer-grid .inner-grid {
  flex: 1 1 320px;
  min-width: 0;
}

.outer-grid .inner-grid h1 {
  text-align: center;
}

.outer-grid .inner-grid img {
  display: block;
  width: 100%;
  height: auto;
  margin: 8px 0;
  border-radius: 4px;
}

.outer-grid .inner-grid h2.studies {
  padding-left: 10px;
  font-size: 1.05em;
  color: var(--vs-heading-sub);
}

/* Testimonial card */
.testimonials-section {
  background: var(--vs-bg-alt);
  padding: 50px 20px;
  text-align: center;
}

.testimonial-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--vs-white);
  padding: 30px 24px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.testimonial-card h5 {
  color: var(--vs-heading);
  margin: 0 0 10px;
  font-size: 1em;
}

.testimonial-card p {
  font-style: italic;
  color: #444;
  margin: 0;
  font-size: 1em;
}

/* Feature icons grid (used on products.html) */
.features-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: var(--vs-max);
  margin: 0 auto;
  padding: 20px 0;
}

.feature-card {
  flex: 1 1 240px;
  max-width: 320px;
  padding: 30px 20px;
  background: var(--vs-white);
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-card .feature-icon {
  font-size: 3em;
  color: var(--vs-teal);
  margin-bottom: 12px;
}

.feature-card h3 {
  color: var(--vs-heading);
}

/* Image showcase rows (products.html) */
.showcase-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 auto;
  max-width: var(--vs-max);
}

.showcase-row.reverse {
  flex-direction: row-reverse;
}

.showcase-row .showcase-img {
  flex: 1 1 300px;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.showcase-row .showcase-text {
  flex: 1 1 300px;
  padding: 40px;
}

/* --- Footer --- */
.site-footer {
  background: var(--vs-teal);
  color: var(--vs-white);
  padding: 30px 20px;
  text-align: center;
}

.site-footer p {
  margin: 4px 0;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.95);
  max-width: none;
}

.site-footer a {
  color: var(--vs-accent);
}

.site-footer .footer-legal {
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 10px;
}
