/*
 * Global stylesheet for the Velor Platforms multi‑page site.
 *
 * This file defines the basic typography, layout and color palette used
 * across all pages. It was inspired by the original one‑page design at
 * velorplatforms.com, which emphasised a strong blue accent colour and
 * clean card components for content sections. The updated site uses
 * consistent navigation and section styling to tie the individual pages
 * together.
 */

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  /* Prevent horizontal overflow when zooming out on mobile browsers */
  overflow-x: hidden;
}

/* Navigation bar */
nav {
  /* Use a unified dark tone for the navigation bar */
  background-color: #020b2c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .logo {
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  /* Allow the navigation items to wrap onto multiple lines on narrow viewports */
  flex-wrap: wrap;
  /* Centre items when they wrap to improve alignment on small screens */
  justify-content: center;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  font-size: 0.95rem;
  /* Ensure nav link backgrounds display correctly across browsers like Safari */
  display: inline-block;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: #2d57f2;
}

/* Hero section for the landing page */
.hero {
  background-color: #2468ef;
  color: #ffffff;
  text-align: center;
  /* Make the hero section flexible to fill available height and remain centred */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  min-height: 80vh;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  /* Use natural casing for better readability and avoid excessive letter spacing */
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.2rem;
  margin: 0 auto 40px auto;
  max-width: 700px;
}

.hero a.btn {
  display: inline-block;
  /* Use blue CTA buttons with white text on the hero section */
  background-color: #2468ef;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hero a.btn:hover {
  background-color: #1a54c9;
}

/* Generic section styling */
.section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

.section h2 {
  font-size: 2.2rem;
  color: #2468ef;
  text-align: center;
  margin-bottom: 20px;
}

.section p.lead {
  font-size: 1.1rem;
  color: #555;
  text-align: center;
  margin-bottom: 40px;
}

/* Card layout for features */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  flex: 1 1 calc(33.33% - 20px);
  min-width: 280px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card h3 {
  color: #2468ef;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.card p {
  margin: 0;
}

/* Contact form styling */
.contact-container {
  background-color: #020b2c;
  color: #ffffff;
  padding: 60px 20px;
}

.contact-container h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 20px;
}

.contact-container p.subhead {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  color: #d0d7ff;
}

.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  padding: 16px;
  border-radius: 4px;
  border: none;
  background-color: #19224c;
  color: #ffffff;
  font-size: 1rem;
  resize: vertical;
}

.contact-form button {
  padding: 16px;
  background-color: #2468ef;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-form button:hover {
  background-color: #3f77f7;
}

footer {
  /* Match the footer to the same dark tone used for the nav and other sections */
  background-color: #020b2c;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* Cookie banner styling */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  /* Use the unified dark tone for the cookie banner with slight transparency */
  background-color: rgba(2, 11, 44, 0.95);
  color: #ffffff;
  padding: 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  z-index: 10000;
}
.cookie-banner a {
  /* Use the primary blue accent for links in the cookie banner */
  color: #2468ef;
  text-decoration: underline;
}
.cookie-banner button {
  background-color: #2468ef;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

/* Generic button style for anchor elements */
a.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

/* CTA link variation using the primary blue accent */
a.cta-link {
  background-color: #2468ef;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}
a.cta-link:hover {
  background-color: #1a54c9;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  nav {
    padding: 12px 20px;
  }
  nav .logo {
    font-size: 1.2rem;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  .hero {
    padding: 80px 20px;
    min-height: 60vh;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}