/*
 * Style sheet for the EDS multi‑page landing website
 *
 * Colours and layout were chosen to provide high contrast and a clean, modern
 * appearance. The design is responsive and works well on both mobile and
 * desktop screens. A sticky header and footer ensure navigation is always
 * accessible. A cookie banner is styled at the bottom of the viewport and
 * remains hidden until consent is required.
 */

:root {
  --primary-color: #0d47a1; /* dark blue for header/footer */
  --secondary-color: #1976d2; /* lighter blue accents */
  --accent-color: #2196f3; /* call‑to‑action buttons */
  --text-color: #333;
  --bg-color: #ffffff;
  --link-color: #1976d2;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

/* Header and navigation */
header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
}

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

header nav ul li {
  margin-left: 20px;
}

header nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.2s ease;
}

header nav ul li a:hover {
  opacity: 0.8;
}

/* Hero section on the home page */
.hero {
  background: url('images/hero.png') no-repeat center center/contain,
              var(--primary-color);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero .buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero .buttons a {
  background-color: var(--accent-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.hero .buttons a:hover {
  background-color: var(--secondary-color);
}

/* Generic section styling */
.section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

/* Features list on the home page */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-top: 30px;
}

.feature {
  flex: 1 1 300px;
  margin: 10px;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  text-align: center;
  background-color: #fafafa;
}

.feature h3 {
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.feature p {
  font-size: 0.95rem;
}

/* Steps (how it works) */
.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-top: 30px;
}

.step {
  flex: 1 1 200px;
  margin: 10px;
  text-align: center;
}

.step h3 {
  margin-bottom: 5px;
  color: var(--secondary-color);
}

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

footer p {
  margin: 5px 0;
  font-size: 0.9rem;
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 15px 20px;
  display: none;
  z-index: 10000;
  font-size: 0.9rem;
}

.cookie-banner .banner-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cookie-banner .banner-buttons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-banner button {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.cookie-banner .accept {
  background-color: var(--accent-color);
  color: #fff;
}

.cookie-banner .reject {
  background-color: #bbb;
  color: #000;
}

@media (min-width: 600px) {
  .cookie-banner .banner-content {
    flex-direction: row;
    align-items: center;
  }
  .cookie-banner .banner-buttons {
    margin-top: 0;
  }
}