/* Royal Windows & Siding funnel site styles */
body {
  /* Use a more legible font across the site */
  font-family: Verdana, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #222;
}
header {
  background-color: #003366;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header img {
  /* Increase header logo size for better visibility of the new logo */
  height: 60px;
}

/* Larger logo inside hero section */
/* Increase hero logo size for greater visibility. */
.hero-logo {
  height: 130px;
  margin-bottom: 20px;
}
header nav a {
  color: #ffffff;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
}
header nav a:hover {
  text-decoration: underline;
}
/*
 * Hero section styles.
 * Added a semi‑transparent dark overlay to improve text contrast against the
 * background image. The overlay sits behind the hero content but on top of
 * the background image. All child elements in the hero are positioned
 * relative so they stack above the overlay.
 */
.hero {
  position: relative;
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px;
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* Semi‑transparent overlay for the hero section. */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

/* Ensure hero content appears above the overlay */
.hero > * {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 10px 0;
}
.hero p {
  /* Increase font size for better readability on hero tagline */
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.btn-primary {
  background-color: #cc0000;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}
.btn-primary:hover {
  background-color: #a50000;
}
main {
  padding: 40px 20px;
}
.section {
  margin-bottom: 40px;
}
.section h2 {
  color: #003366;
  margin-bottom: 10px;
}
.services {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.service {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
  flex: 1;
  min-width: 220px;
}
.service h3 {
  color: #003366;
}
.contact-form {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 5px;
  border: 1px solid #ddd;
  max-width: 400px;
}
.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.contact-form button {
  background-color: #cc0000;
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
}
.contact-form button:hover {
  background-color: #a50000;
}
footer {
  background-color: #003366;
  color: #ffffff;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
}
