/*
 * Style sheet for the insurance advice website.
 * Defines color palette, typography, layout, and responsive behaviour.
 */

:root {
  /* Colour variables to maintain a consistent look throughout the site */
  --primary-color: #083d77;      /* dark blue for header and footer */
  --secondary-color: #f5faff;    /* light background tint */
  --accent-color: #00a8e8;       /* bright sky blue used for buttons */
  --text-color: #333333;         /* default text colour */
  --heading-color: #083d77;      /* headings share the primary colour */
}

/* Reset some default styles */
* {
  box-sizing: border-box;
}

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

/* Header & navigation */
header {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 10px 20px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

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

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

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

/* Hero section with background image and call to action */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  background: url('hero.png?v=1') no-repeat center center/cover;
  color: #ffffff;
	  position: relative;
  z-index: 1;
  padding: 60px 20px;
}

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

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

.btn {
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  margin-top: 20px;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #008fc1;
}

/* Sections and layout */
section {
  padding: 40px 20px;
  background-color: #ffffff;
  margin: 20px auto;
  max-width: 1000px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

section h2 {
  color: var(--heading-color);
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

/* Feature cards on the homepage */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
	  margin-top: 40px;
}

.feature {
  flex: 1 1 300px;
  background-color: var(--secondary-color);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e0eaf5;
}

.feature h3 {
  margin-top: 0;
  color: var(--heading-color);
}

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

/* Contact form styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  width: 100%;
  font-size: 1rem;
}

.contact-form button {
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.contact-form button:hover {
  background-color: #008fc1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .features {
    flex-direction: column;
  }
}