/* Global Styles */
body {
  font-family: 'PT Sans', sans-serif;
  margin: 0;
  padding: 0;
  color: #002d62;
  background-color: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

main {
  padding: 20px;
}

/* Header */
header {
  width: 100%;
  box-sizing: border-box;
  background-color: #e6f0ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
}

header img {
  max-width: 300px;
  height: auto;
  padding: 10px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  background-color: #003366;
  padding: 1rem;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 20px;
  display: block;
}

nav a:hover {
  background-color: #004080;
}

/* Footer */
footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 20px;
  background-color: #f0f8ff;
}

.cta-button {
  background-color: #0057a0;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
  font-weight: bold;
}

.cta-button:hover {
  background-color: #003e77;
}

/* Overview Section */
.overview {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
}

.overview-card {
  background: white;
  border: 1px solid #ddd;
  padding: 20px;
  width: 300px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Service Cards */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
}

/* Force 3-column layout on wide screens */
@media (min-width: 1000px) {
  .service-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1.5rem;
  background: #f9f9ff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Contact Form */
form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  box-sizing: border-box;
}

label {
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: bold;
}

input, textarea {
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 5px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

button[type="submit"] {
  margin-top: 20px;
  background-color: #003366;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #00509e;
}

.success-message {
  background-color: #e0ffe0;
  color: #155724;
  padding: 1em;
  margin-bottom: 1em;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  font-weight: bold;
}

.hidden {
  display: none;
}

.success-stories {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.success-stories li {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
  position: relative;
}

.success-stories li::before {
  content: "✔️";
  position: absolute;
  left: 0;
  top: 0;
}

/* Responsive */
@media (max-width: 600px) {
  nav {
    flex-direction: column;
    align-items: center;
  }

  header img {
    width: 90%;
  }

  form {
    padding: 0 10px;
  }
}

@media (min-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 40px;
  }

  nav {
    flex-direction: row;
    justify-content: center;
    width: auto;
  }

  nav a {
    width: auto;
    padding: 10px 20px;
  }

  .overview {
    flex-direction: row;
    justify-content: space-between;
  }

  .overview-card {
    flex: 1;
  }
}