/*
 * Brochure‑style multi‑page website template styles
 *
 * This stylesheet shares the same blue and silver colour palette as the
 * one‑page version but introduces minor adjustments for a multipage
 * brochure site. It includes styling for a call‑to‑action section
 * and optional page‑active navigation highlighting.
 */

:root {
  --primary-color: #0d6efd;
  --secondary-color: #c0c0c0;
  --text-color: #343a40;
  --background-color: #f8f9fa;
  --light-grey: #f5f5f5;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

/* Utility wrapper used across sections to constrain content and prevent it from touching the page edges. This ensures a consistent centered layout with breathing room on larger screens. */
.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

header {
  /* Darker header background so the bright blue logo and title pop */
  background-color: #081e5b;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

header .logo {
  /* Use flexbox to align the title graphic; hide font sizing because the title graphic contains text */
  display: flex;
  align-items: center;
  font-size: 0;
}

/* Style the title graphic within the header */
header .logo img {
  /* Increase the height so the title graphic is more prominent */
  height: 55px;
  margin-right: 0;
}

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

header nav ul li {
  margin-left: 1.25rem;
}

header nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Highlight the current page in the navigation when the `active` class is applied */
header nav ul li a.active {
  background-color: #ffffff33;
  color: #fff;
}

header nav ul li a:hover {
  background-color: #ffffff33;
}

/* Hamburger menu button, hidden on larger screens */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  /* Show hamburger icon on mobile */
  .hamburger {
    display: block;
  }
  /* Hide the nav links by default on mobile */
  header nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #081e5b;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
  }
  /* Display nav when toggled */
  header nav ul.show {
    display: flex;
  }
  /* Adjust nav items on mobile */
  header nav ul li {
    margin: 0.5rem 0;
    text-align: left;
    padding-left: 1rem;
  }
}

/* Hero sections for each page */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #06277a 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

/* Styling for the large title graphic on the home page hero */
.hero .hero-title {
  margin-bottom: 1.5rem;
}

.hero .hero-title img {
  display: block;
  max-width: 400px;
  width: 60%;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  background-color: #fff;
  color: var(--primary-color);
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

.services {
  padding: 4rem 0;
  background-color: #fff;
}

.services h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.card {
  background-color: var(--light-grey);
  border-radius: 6px;
  padding: 1.5rem;
  width: 280px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-size: 1.3rem;
}

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

/* About page content styling */
.about {
  padding: 4rem 0;
  background-color: #fff;
}

.about h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.about p {
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  font-size: 1rem;
  line-height: 1.8;
  text-align: center;
}

/* Center the "Why Choose Us" heading on the about page */
.about h3 {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* CTA (call‑to‑action) section used on home page */
.cta {
  background-color: var(--primary-color);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

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

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

/* Contact page styling reused from one‑page version */
.contact {
  padding: 4rem 0;
  background-color: var(--light-grey);
}

.contact h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact p {
  text-align: center;
  margin-bottom: 2rem;
}

form {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  display: flex;
  flex-direction: column;
}

form label {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

form input,
form textarea {
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

form button {
  align-self: flex-start;
  cursor: pointer;
}

.contact-info {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.95rem;
}

.contact-info p {
  margin-bottom: 0.3rem;
}

footer {
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  header nav ul {
    flex-direction: column;
    width: 100%;
    margin-top: 0.5rem;
  }

  header nav ul li {
    margin: 0.25rem 0;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  /* Make founder section stack vertically on tablets and phones */
  .founder-container {
    flex-direction: column;
    text-align: center;
  }
  .founder-image,
  .founder-text {
    width: 100%;
  }

  /* Stack highlights in a single column for narrower screens */
  .highlights-container {
    flex-direction: column;
    align-items: center;
  }

  /* Stack membership section vertically and centre the image */
  .membership-container {
    flex-direction: column;
    text-align: center;
  }
  .membership-image img {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Further adjustments for very small screens (mobile phones) */
@media (max-width: 480px) {
  .hero .hero-title img {
    width: 80%;
    max-width: 280px;
  }
  .hero h2 {
    font-size: 1.7rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .highlight h3 {
    font-size: 1.1rem;
  }
  .card {
    width: 100%;
  }
}

/* Founder section styling */
.founder {
  background-color: var(--light-grey);
  padding: 4rem 0;
}

.founder-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.founder-image img {
  max-width: 300px;
  width: 100%;
  border-radius: 6px;
}

.founder-text {
  flex: 1;
}

.founder-text h2 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.founder-text p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.founder-text .founder-name {
  font-style: italic;
  color: var(--primary-color);
}

/* Testimonials section styling */
.testimonials {
  background-color: #fff;
  padding: 4rem 0;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.testimonial {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  text-align: center;
}

.testimonial p {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.testimonial h4 {
  font-size: 0.95rem;
  color: var(--primary-color);
}

/* Highlights section to display key facts */
.highlights {
  background-color: var(--background-color);
  padding: 3rem 0;
}

.highlights-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.highlight {
  flex: 1 1 200px;
  text-align: center;
}

.highlight h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
}

/* Membership section for protection plans */
.membership {
  background-color: var(--light-grey);
  padding: 4rem 0;
}

.membership-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.membership-image img {
  max-width: 400px;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.membership-text {
  flex: 1;
}

.membership-text h2 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.membership-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.membership-features {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem 0;
}

.membership-features li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1rem;
}

.membership-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.membership-note {
  font-size: 0.95rem;
}

/* Note styling for small print in CTA */
/* Note styling for small print in various sections */
.note {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: var(--text-color);
  opacity: 0.8;
}

/* Adjust note colour within call‑to‑action on dark backgrounds */
.cta .note {
  color: #f5f5f5;
}

/* Features list styling */
.features-list {
  max-width: 800px;
  margin: 1.5rem auto;
  list-style: none;
  padding: 0;
}

.features-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1rem;
}

.features-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* --- Header nav action buttons --- */
header nav ul {
  display: flex;              /* if not already set */
  gap: 1rem;                  /* space between links */
  align-items: center;
}

/* Base button look for nav actions */
header nav ul .nav-action a {
  display: inline-block;
  padding: .55rem .9rem;
  border-radius: .5rem;
  border: 2px solid #c0c8d1;  /* silver outline */
  color: #e6eef7;             /* light text */
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

/* Hover for outline button */
header nav ul .nav-action a:hover {
  background: rgba(255,255,255,.06);
}

/* Primary (blue filled) button */
header nav ul .nav-action.primary a {
  background: #2a5bd7;        /* brand blue */
  border-color: #1f48ad;
  color: #ffffff;
}

header nav ul .nav-action.primary a:hover {
  filter: brightness(1.06);
}

/* Keep buttons aligned to the right on wide screens.
   If your header .container isn't flex yet, this won't harm anything. */
header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

header .container .logo {
  margin: 0;
}

/* Push nav to the right of the logo + hamburger */
header nav { margin-left: auto; }

/* Mobile: when your hamburger reveals the UL, stacking is fine */
@media (max-width: 768px) {
  header nav ul {
    /* your existing mobile rules likely stack items; this ensures no overflow */
    gap: .5rem;
  }

  /* Make full-width buttons on mobile if desired */
  header nav ul .nav-action a {
    width: 100%;
    text-align: center;
  }
}
