/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  color: #002D62;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.btn-primary {
  display: inline-block;
  background-color: #0058A3;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-top: 1.2rem;
}

.btn-primary:hover {
  background-color: #003e72;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  /* The hero background image is stored in the repository root when deployed via GitHub Pages */
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 45, 98, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #fff;
}

.hero .subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: #e6eef7;
}

/* Sections */
section {
  padding: 3rem 1rem;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Services */
.services {
  background-color: #f7fafd;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.service-item {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.service-item h3 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
  color: #003e72;
}

.service-item p {
  font-size: 0.95rem;
  color: #555;
}

/* About */
.about {
  background-color: #fff;
  color: #333;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}

.about-content h2 {
  margin-bottom: 1rem;
}

.about-content p + p {
  margin-top: 1rem;
}

/* Benefits */
.benefits {
  background-color: #f7fafd;
}

.benefits ul {
  max-width: 900px;
  margin: 0 auto;
  list-style: none;
  font-size: 0.95rem;
}

.benefits li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.benefits li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
  color: #0058A3;
}

.benefits strong {
  color: #003e72;
}

/* Contact */
.contact {
  text-align: center;
  background-color: #002D62;
  color: #fff;
  padding: 3rem 1rem;
}

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

.contact p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
  color: #d0d9e8;
}

.contact .btn-primary {
  background-color: #F7C208;
  color: #002D62;
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

.contact .btn-primary:hover {
  background-color: #ddb108;
}

/* Contact form styles */
.contact-form {
  max-width: 600px;
  margin: 2rem auto 0;
  text-align: left;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
  color: #333;
}

.form-group select {
  appearance: none;
  background-color: #fff;
}

.form-group textarea {
  resize: vertical;
}

/* Adjust the primary button inside contact form */
.contact-form .btn-primary {
  background-color: #F7C208;
  color: #002D62;
  border: none;
  cursor: pointer;
}

.contact-form .btn-primary:hover {
  background-color: #ddb108;
}

/* Submission message styling */
.submission-message {
  color: #fff;
  margin-top: 1rem;
  font-size: 1rem;
  text-align: center;
}

/* Footer */
footer {
  background-color: #001A3A;
  color: #9aa8c3;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero .subtitle {
    font-size: 1rem;
  }
  section {
    padding: 2rem 1rem;
  }
}