/* Global resets and typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  /* Use a dark navy tone from the logo for primary text */
  color: #1d3a5e;
  background-color: #f9f9f9;
}

/* Header */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

header .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 24px;
  /* Accent color updated to match the new logo */
  color: #1c7893;
}

/* Logo container styling */
header .logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Prevent underline on hover for logo link */
header .logo-container:hover {
  text-decoration: none;
}

/* Logo icon styling */
header .logo-icon {
  /* Height increased to make the icon prominent */
  height: 70px;
  width: auto;
  margin-right: 12px;
}

/* Logo title styling */
header .logo-title {
  font-size: 24px;
  font-weight: bold;
  /* Use the dark navy tone for the primary text */
  color: #1d3a5e;
  line-height: 1;
}

/* Logo tagline styling */
header .logo-tagline {
  font-size: 14px;
  /* Use the accent colour for the tagline */
  color: #1c7893;
  display: block;
  line-height: 1;
  margin-top: 4px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

nav a {
  text-decoration: none;
  /* Use the dark navy tone from the logo for nav links */
  color: #1d3a5e;
  font-weight: bold;
  transition: color 0.2s ease;
}

nav a:hover {
  /* Hover state uses the primary accent from the logo */
  color: #1c7893;
}

/* Hero section */
.hero {
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  height: 50vh;
  position: relative;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Lighten the overlay for a brighter hero section */
  background-color: rgba(0, 0, 0, 0.3);
}

.hero .content {
  position: relative;
  max-width: 800px;
  padding: 20px;
}

.hero h2 {
  font-size: 48px;
  margin-bottom: 10px;
  /* Use white for the hero heading for maximum brightness */
  color: #ffffff;
}

.hero p {
  font-size: 20px;
  margin-bottom: 20px;
  /* Use white for the hero description for better visibility */
  color: #ffffff;
}

/* Buttons */
.btn {
  display: inline-block;
  /* Button uses the primary accent from the logo */
  background-color: #1c7893;
  color: #ffffff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.btn:hover {
  /* Darker shade for hover */
  background-color: #166075;
}

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

.section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  /* Headings use the primary accent colour */
  color: #1c7893;
  text-align: center;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.card h3 {
  /* Card titles also use the primary accent */
  color: #1c7893;
  margin-bottom: 10px;
}

.card p {
  font-size: 16px;
  color: #555;
}

/* Add spacing below the team introduction paragraph on the Team page */
.team-intro {
  margin-bottom: 30px;
}

/* Add spacing below the services introduction paragraph on the Services page */
.services-intro {
  margin-bottom: 30px;
}

/* Add spacing between paragraphs on the About Us page */
.about-us p + p {
  margin-top: 20px;
}

/* Form styling */
form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 15px;
}

form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

form textarea {
  height: 120px;
  resize: vertical;
}

/* Footer */
footer {
  /* Use the dark navy tone from the logo for the footer */
  background-color: #1d3a5e;
  color: #ffffff;
  padding: 20px;
  text-align: center;
}

/* Footer single-line styling */
footer .footer-line {
  font-size: 14px;
}

footer .footer-line a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 8px;
}

footer .footer-line a:hover {
  text-decoration: underline;
}

/* Footer copyright styling */
footer .footer-bottom {
  font-size: 14px;
  margin-top: 8px;
}