:root {
  /* Colors */
  --primary-color: #0A2F5A; /* Deep Blue */
  --secondary-color: #FFC107; /* Amber */
  --accent-color: #4CAF50; /* Green */
  --background-color: #F5F7FA; /* Light Grey */
  --text-color: #333333; /* Dark Grey */
  --heading-font: 'Merriweather', serif;
  --body-font: 'Roboto', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* General Styles */
body {
  font-family: var(--body-font);
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--primary-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Header */
header {
  background-color: #fff;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

img {
  width: 100%;
  height: auto;
}

.logo {
  display: flex;
}

.logo a {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo img {
  height: 40px;
  width: auto;
  margin-right: var(--space-sm);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav li {
  margin-left: var(--space-md);
}

nav a {
  font-weight: 500;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  background-color: var(--primary-color);
  color: #fff;
  padding: var(--space-xl) 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
  color: #fff;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto var(--space-md);
}

.hero .hero-text {
  margin-bottom: 2rem;
}

.hero .btn {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 5px;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.hero .btn:hover {
  background-color: #ffca2c;
}

/* Specific button styles for the hero section on the Waypoint page */
.hero-section .btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 5px;
  font-weight: 700;
  transition: background-color 0.3s ease;
  text-decoration: none; /* Ensures anchor tags look like buttons */
}

.hero-section .btn:hover {
  background-color: #ffca2c;
}

.workflow-section ol {
  list-style: none;
  padding-left: 0;
}

.workflow-section li {
  margin-bottom: var(--space-lg);
}

/* Sections */
section {
  padding: var(--space-xl) 0;
}

section:nth-of-type(even) {
  background-color: #fff;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.benefit-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: var(--space-md);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.benefit-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: var(--space-md);
  border-radius: 5px;
}

.benefit-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.benefit-card .learn-more {
  display: inline-block;
  margin-top: var(--space-sm);
  font-weight: 700;
  color: var(--accent-color);
}

/* FAQ Section */
.faq-item {
  border-bottom: 1px solid #ddd;
  padding: var(--space-md) 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item h3::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item.active h3::after {
  transform: rotate(45deg);
}

.faq-item section {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active section {
  max-height: 1000px; /* Adjust as needed */
}

/* Contact Form */
.contact-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.form-field {
  flex: 1;
}

.contact-form label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid #ddd;
  border-radius: 5px;
}

.contact-form .btn {
  background-color: var(--primary-color);
  color: #fff;
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.contact-form .btn:hover {
  background-color: #082649;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: var(--space-lg) 0;
  text-align: center;
}

footer a {
  color: #fff;
}

footer a:hover {
  color: var(--secondary-color);
}

/* Contact Form Enhancements */
.contact .text-center {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.contact .text-center p {
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.8;
  max-width: 600px;
  margin: var(--space-xs) auto 0;
}

.contact-form-container {
  background-color: #fff;
  padding: var(--space-lg);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-form {
  max-width: none;
  margin: 0;
}

.contact-form > .form-field { /* For the textarea field */
  margin-bottom: var(--space-md);
}

.contact-form input,
.contact-form textarea {
  background-color: #F5F7FA;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.contact-form .btn {
  width: 100%;
  font-size: 1.1rem;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
  margin-top: var(--space-sm);
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.contact-form .btn:hover {
  transform: scale(1.02);
}

.text-center {
  text-align: center;
}

.form-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
}

.form-checkbox input[type="checkbox"] {
  width: 1.15em;
  height: 1.15em;
  border-radius: 4px;
  border: 1px solid #ddd;
  margin-right: var(--space-sm);
  cursor: pointer;
  accent-color: var(--primary-color);
}

.form-checkbox label {
  margin: 0;
  font-weight: 400;
  font-size: 0.95rem;
}

.form-checkbox a {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.nav-toggle {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    position: absolute;
    top: 2rem;
    right: 1rem;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0.5em;
    z-index: 1000;
  }

  .hamburger {
    display: block;
    position: relative;
  }

  .hamburger,
  .hamburger::before,
  .hamburger::after {
    content: '';
    display: block;
    background: var(--primary-color);
    height: 3px;
    width: 2em;
    border-radius: 1em;
    transition: transform 250ms ease-in-out;
  }

  .hamburger::before {
    position: absolute;
    bottom: 8px;
  }

  .hamburger::after {
    position: absolute;
    top: 8px;
  }

  .nav {
    position: fixed;
    background: var(--background-color);
    color: var(--text-color);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 250ms cubic-bezier(.5, 0, .5, 1);
  }

  .nav ul {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav li {
    margin: 1em 0;
  }

  .nav a {
    color: var(--text-color);
    font-size: 1.5rem;
  }

  .nav-open .nav {
    transform: translateX(0);
  }

  .nav-open .hamburger {
    transform: rotate(.625turn);
  }

  .nav-open .hamburger::before {
    transform: rotate(90deg) translateX(-8px);
  }

  .nav-open .hamburger::after {
    opacity: 0;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .form-row {
    flex-direction: column;
  }
}
