/*
  Global stylesheet for the Retrov8 website.

  This file defines the core layout, typography and colours used
  throughout the site.  It aims to provide a clean, modern design
  optimised for desktop and mobile visitors.  Elements have been
  grouped logically by section for ease of maintenance.
*/

/* Reset some basic styles */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #333;
  line-height: 1.5;
}

/* Header layout */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #f5f5f5;
  flex-wrap: wrap;
}

/* Logo */
header .logo {
  width: 200px;
  height: auto;
}

/* Branding text next to logo */
header .branding {
  flex: 1;
  text-align: center;
}
header .branding h1 {
  margin: 0;
  font-size: 28px;
  color: #2C6E49;
}
header .branding p {
  margin: 2px 0 0 0;
  font-size: 14px;
  color: #666;
}

/* Trust logos container within header */
header .trust-logos {
  margin-top: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
header .trust-logos img {
  /* Make the official certification logos slightly larger for better visibility */
  height: 32px;
  width: auto;
}

/* Navigation bar */
nav {
  background: #0096C7;
  text-align: center;
  padding: 10px 0;
}
nav a {
  color: #fff;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}
nav a:hover {
  text-decoration: underline;
}

/* Main section styles */
section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

/* Hero section styling */
.hero {
  text-align: center;
  margin-top: 20px;
}
.hero h2 {
  font-size: 32px;
  color: #2C6E49;
  margin-bottom: 10px;
}
.hero p {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
}

/* Forms */
form {
  margin: 20px 0;
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
}
form .form-group {
  margin-bottom: 15px;
}
form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
form input,
form select,
form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
form button {
  background: #2C6E49;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}
form button:hover {
  background: #1f5035;
}

/* Call to action banner at bottom of pages */
.cta-banner {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
}
.cta-banner h3 {
  margin-top: 0;
  color: #2C6E49;
}

/* Footer styling */
footer {
  background: #2C6E49;
  color: #fff;
  padding: 20px;
  text-align: center;
  font-size: 14px;
}
footer p {
  margin: 5px 0;
}

/* Social media links in header */
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}
.social-links a {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: 50%;
  background-color: #0096C7;
  color: #fff;
  /* Remove font styling since icons are now images */
  font-size: 0;
  font-weight: normal;
  text-align: center;
  text-decoration: none;
}
.social-links a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.social-links a:hover {
  background-color: #2C6E49;
}

/* Contact phone in header */
.contact-phone {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 5px;
}
.contact-phone a {
  display: flex;
  align-items: center;
  color: #2C6E49;
  font-weight: bold;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  background: #e8f5e9;
}
.contact-phone a img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  object-fit: contain;
}
.contact-phone a:hover {
  background: #c8e6c9;
}

/* Testimonials */
.testimonials {
  margin-top: 30px;
}
.testimonials blockquote {
  border-left: 4px solid #2C6E49;
  margin: 20px 0;
  padding-left: 10px;
  color: #555;
  font-style: italic;
}
.testimonials cite {
  display: flex;
  align-items: center;
  margin-top: 10px;
  font-weight: bold;
  color: #333;
}
.testimonials cite img {
  border-radius: 50%;
  height: 40px;
  width: 40px;
  margin-right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  header .branding {
    text-align: left;
    margin-top: 10px;
  }
  nav a {
    display: inline-block;
    margin: 5px 10px;
  }
  .hero h2 {
    font-size: 26px;
  }
  .hero p {
    font-size: 16px;
  }
}