/* styles.css */
/* Reset default margins and ensure box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Header wrapper to align logo and navbar */
.header-wrapper {
  background-color: #FFFFFF; /* White */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo container */
.logo-container {
  display: flex;
  align-items: center;
  padding: 10px 0 10px 35px; /* Left padding to set alignment */
  width: 100%;
  max-width: 1200px;
  justify-content: flex-start; /* Left-align logo */
}

/* Logo image */
.logo {
  width: 50px; /* Adjust size as needed */
  height: auto;
  margin-right: 10px;
}

/* Studio name */
.studio-name {
  font-size: 24px; /* Larger as requested */
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: bold;
  color: #2D2D2D; /* Almost black for text */
}

/* Navbar container */
.navbar {
  padding: 15px 20px 15px 35px; /* Left padding matches logo */
  font-family: 'Helvetica Neue', Arial, sans-serif;
  width: 100%;
  max-width: 1200px;
  text-align: left; /* Left-align overall */
  background-color: #FFFFFF; /* White */
}

/* Nav list */
.nav-list {
  list-style: none;
  display: flex;
  justify-content: flex-start; /* Left-align menu items */
  flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

/* Nav items */
.nav-item {
  margin: 0 15px;
  position: relative; /* For positioning the hover bar */
}

.nav-item a {
  color: #2D2D2D; /* Almost black for text */
  text-decoration: none;
  font-size: 14px; /* Slightly smaller as requested */
  font-weight: 500;
  padding: 10px 5px;
  display: inline-block;
  transition: color 0.3s ease;
}

/* Hover and active effect: orange text and top bar */
.nav-item a:hover, .nav-item.active a {
  color: #F87E44; /* Updated orange */
}

.nav-item a:hover::before, .nav-item.active a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #F87E44; /* Updated orange bar */
}

/* Strip background */
.strip-background {
  width: 100%;
  height: 432px; /* Matches benefits.html */
  background-size: cover;
  background-position: center;
  margin-bottom: 20px; /* Space before main content */
}

/* Welcome page strip background */
.welcome-strip {
  background-image: url('images/greg_drover_ottawa_senators_organist.jpg');
}

/* Benefits page strip background */
.benefits-strip {
  background-image: url('images/upright_piano_greg_drover_ottawa_piano_lessons_in_old_ottawa_south.jpg');
}

/* Footer styling */
footer.footer {
  background-color: #DFDFDF !important; /* Light grey */
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px; /* Approx 3 text lines */
  display: flex;
  align-items: center;
  justify-content: center; /* Center the container */
  font-family: 'Helvetica Neue', Arial, sans-serif;
  z-index: 1000; /* Ensures footer stays above content */
}

/* Footer container for alignment */
.footer-container {
  width: 100%;
  max-width: 1200px;
  padding-left: 35px; /* Align with logo and Welcome */
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Footer text */
.footer-container p {
  color: #2D2D2D; /* Almost black for text */
  font-size: 12px; /* Smaller font as requested */
  margin: 0;
}

/* Ensure content isn't hidden behind fixed footer */
body {
  margin-bottom: 60px; /* Matches footer height */
  font-family: 'Helvetica Neue', Arial, sans-serif; /* Site-wide font approximation */
  color: #2D2D2D; /* Almost black for body text */
}

/* Basic styling for page content */
main {
  width: 100%;
  max-width: 1200px;
  margin: 20px 0;
  margin-left: 35px; /* Matches left padding of logo, navbar, and footer */
  padding: 0 35px 0 0; /* Right padding only to avoid doubling left indent */
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #2D2D2D; /* Almost black for text */
  text-align: left; /* Ensure left alignment */
}

h1, h2 {
  font-size: 28px; /* For h1 */
  margin-bottom: 20px;
  color: #435494; /* Dark blue for headings */
}

h2 {
  font-size: 22px;
  margin-top: 20px;
  margin-bottom: 10px;
}

p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}

a {
  color: #435494; /* Dark blue for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #F87E44; /* Orange on hover */
}

img {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
}

/* Piano image and caption styling */
.piano-image-container {
  margin: 20px 0 30px 0;
  text-align: center;
}

.piano-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border: 3px solid #435494;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.piano-caption {
  background-color: #000000;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  margin: 0;
  display: inline-block;
  max-width: 800px;
  text-align: center;
}

.piano-caption a {
  color: #FFFFFF;
  text-decoration: underline;
}

.piano-caption a:hover {
  color: #F87E44;
}

/* Form styling */
.form-group {
  margin-bottom: 15px;
}

.form-group input, .form-group textarea {
  width: 100%;
  max-width: 100%; /* Full width of container */
  padding: 10px;
  border: 1px solid #A0A0A0; /* Grey border */
  border-radius: 4px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  box-sizing: border-box;
}

.form-group textarea {
  height: 80px; /* Twice the height of input fields */
  resize: vertical;
}

.form-group button {
  background-color: #435494; /* Dark blue */
  color: #FFFFFF;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-group button:hover {
  background-color: #F87E44; /* Orange on hover */
}

.error {
  border-color: #F87E44; /* Orange border for errors */
}

.success-message {
  color: #68B04D; /* Green */
  font-weight: bold;
  font-size: 18px;
  margin-top: 20px;
  padding: 10px;
  background-color: #f0f8f0; /* Light green background */
  border-radius: 4px;
  display: none;
}

/* reCAPTCHA styling */
.recaptcha-container {
  margin-left: 0; /* Aligns with main content */
  margin-bottom: 15px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .logo-container {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 20px; /* Consistent mobile padding */
  }

  .logo {
    margin-bottom: 10px;
  }

  .studio-name {
    font-size: 20px; /* Slightly smaller for mobile */
  }

  .nav-item {
    margin: 10px 10px; /* Tighter spacing for mobile */
  }

  .nav-item a {
    font-size: 12px; /* Slightly smaller text for mobile */
  }

  .navbar {
    padding-left: 20px; /* Aligns 'Welcome' with logo */
  }

  footer.footer {
    height: 60px; /* Maintain height on mobile */
  }

  .footer-container {
    padding-left: 20px; /* Consistent mobile padding */
  }

  body {
    margin-bottom: 60px; /* Ensure content clears footer */
  }

  main {
    margin-left: 20px; /* Match mobile padding */
    padding: 0 20px 0 0; /* Right padding only */
  }

  .strip-background {
    height: 259.2px; /* Matches benefits.html mobile height */
  }

  .piano-image {
    border: 2px solid #435494;
  }

  .piano-caption {
    font-size: 12px;
    padding: 6px 10px;
  }

  .form-group input, .form-group textarea {
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .recaptcha-container {
    margin-left: 0; /* Aligns with mobile padding */
  }
}