/* Global Styles */
/* Root variables for consistent colours and typography */
:root {
  --primary-color: #0A75B0; /* deep blue tone for trust */
  --primary-color-hover: #085a8c; /* darker shade for hover states */
  --secondary-color: #00A86B; /* green accent for growth */
  --secondary-color-hover: #008f5e; /* darker shade of secondary colour */
  --light-bg: #f7f9fc; /* light background colour */
  --dark-text: #11263a; /* dark text colour */
  --muted-text: #4d6275; /* muted text */
  --header-height: 70px;
  --border-radius: 8px;
  --transition-speed: 0.3s;
  --font-family-base: 'Segoe UI', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-base);
  color: var(--dark-text);
  background-color: var(--light-bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container helps constrain content widths and centre page elements */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 600;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.btn.primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn.primary:hover,
.btn.primary:focus {
  background-color: var(--primary-color-hover);
}

.btn.secondary {
  background-color: var(--secondary-color);
  color: #fff;
}

.btn.secondary:hover,
.btn.secondary:focus {
  background-color: var(--secondary-color-hover);
}

/* Header & Navigation */
header {
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

.logo img {
  height: 40px;
  width: 40px;
  margin-right: 0.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  padding: 0.5rem 0;
  font-weight: 500;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-speed) ease;
}

nav ul li a:hover::after,
nav ul li a:focus::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Navigation toggle button for mobile */
#nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

#nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--dark-text);
  border-radius: 2px;
  transition: transform var(--transition-speed);
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: url('images/hero.png') center/cover no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(10, 117, 176, 0.65), rgba(0, 168, 107, 0.65));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Services overview on home page */
.services-overview {
  padding: 3rem 0;
  background-color: #fff;
}

.services-overview h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.service-card img {
  height: 60px;
  width: 60px;
  margin: 0 auto 1rem auto;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--muted-text);
  margin-top: 0.5rem;
}

.service-card ul {
  list-style: none;
  margin-top: 0.5rem;
  text-align: left;
  padding-left: 0.5rem;
}

.service-card ul li {
  margin-bottom: 0.3rem;
  padding-left: 1.2rem;
  position: relative;
  color: var(--muted-text);
}

.service-card ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

/* Core values / features section */
.values-section {
  padding: 3rem 0;
}

.values-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.value-box {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value-box svg {
  flex-shrink: 0;
  height: 40px;
  width: 40px;
  fill: var(--secondary-color);
}

/* Ensure strokes and fills within inline SVGs use the secondary colour for consistency */
.value-box svg path,
.value-box svg rect,
.value-box svg circle,
.value-box svg line {
  stroke: var(--secondary-color);
  fill: var(--secondary-color);
}

.value-box h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.value-box p {
  font-size: 0.95rem;
  color: var(--muted-text);
}

/* Footer */
footer {
  background-color: #102f4a;
  color: #d3e4f0;
  padding: 2rem 0;
  font-size: 0.95rem;
}

footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

footer h4 {
  margin-bottom: 1rem;
  color: #fff;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.4rem;
}

footer a {
  color: #c3d7e8;
  transition: color var(--transition-speed);
}

footer a:hover,
footer a:focus {
  color: #fff;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icons a svg {
  width: 24px;
  height: 24px;
  fill: #c3d7e8;
  transition: fill var(--transition-speed);
}

.social-icons a:hover svg,
.social-icons a:focus svg {
  fill: #fff;
}

/* Responsive behaviour */
@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: var(--header-height);
    right: 0;
    width: 200px;
    flex-direction: column;
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform var(--transition-speed) ease;
  }

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

  #nav-toggle {
    display: flex;
  }

  nav ul li {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }
}