/*
 * Base styles for the cleaning company website.
 *
 * The design focuses on clear typography, generous whitespace and a
 * bright accent colour to draw attention to calls‑to‑action. The
 * layout is responsive so that the site looks good on both desktop
 * and mobile devices. Navigation items stack on smaller screens.
 */

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #222;
  /* Light neutral background keeps pages bright and airy */
  background-color: #fafafa;
}

/* Links use our primary blue colour for improved contrast */
a {
  color: #005f9e;
  text-decoration: none;
}

/* Underline links on hover for clarity */
a:hover {
  text-decoration: underline;
}

/* Header uses a slightly lighter navy inspired by our logo */
header {
  background-color: #005f9e;
  color: #fff;
  padding: 1rem 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

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

header h1 {
  font-size: 1.5rem;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

nav li {
  margin-left: 1.5rem;
}

nav li:first-child {
  margin-left: 0;
}

nav a {
  color: #fff;
  font-weight: 500;
}

/* Hero section on the home page */
.hero {
  /* Hero section displays our bright exterior image with a semi‑transparent overlay */
  background-image: linear-gradient(rgba(0, 95, 158, 0.55), rgba(0, 95, 158, 0.55)), url('hero_cropped.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  /* Reduce vertical padding for less empty space while maintaining impact */
  padding: 4rem 1rem;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.hero p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0.5rem auto 2rem;
  color: #fff;
}

/* Primary buttons use our sunshine yellow for a cheerful call to action */
.btn-primary {
  display: inline-block;
  background-color: #f5b400;
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

/* Darken the button on hover for contrast */
.btn-primary:hover {
  background-color: #d19900;
}

/* Section styling */
section {
  /* Reduce vertical padding to minimise excess whitespace while maintaining breathing room */
  padding: 2rem 0;
}

section h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #005f9e;
}

section p {
  margin-bottom: 1rem;
}

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

.service-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

  .service-card h3 {
  margin-bottom: 0.5rem;
  color: #005f9e;
  font-size: 1.25rem;
  }

.service-card p {
  font-size: 0.95rem;
}

/* FAQ list */
.faq-item {
  margin-bottom: 1.5rem;
}

  .faq-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #005f9e;
  }

/* Table styling for policies */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.75rem;
  text-align: left;
}

th {
  /* Pale yellow header row for tables */
  background-color: #fff5e6;
  font-weight: 600;
}

/* Footer */
footer {
  background-color: #005f9e;
  color: #fff;
  /* Slightly smaller vertical padding in the footer */
  padding: 1.5rem 0;
}

/* Logo styling in the header */
header h1 {
  display: flex;
  align-items: center;
}
header h1 img {
  height: 48px;
  width: auto;
  margin-right: 0.5rem;
}

/* Ensure logo images size consistently when class is applied */
.logo {
  height: 48px;
  width: auto;
}

footer .footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

footer h4 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer li {
  margin-bottom: 0.5rem;
}

footer a {
  color: #fff;
  font-weight: 500;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  nav li {
    margin-left: 0;
    margin-bottom: 0.5rem;
  }
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero h2 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
}