/* Base styles */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #243447;
  background-color: #f5f8fb;
}

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

a {
  color: #0a5797;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0a2740;
  color: #ffffff;
  padding: 10px 20px;
}

.navbar .brand {
  font-size: 1.4rem;
  font-weight: bold;
  color: #ffffff;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.navbar li {
  margin-left: 20px;
}

.navbar li a {
  color: #ffffff;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

.navbar li a:hover {
  opacity: 0.8;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  margin: 8px 8px 8px 0;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background-color: #e53935;
  color: #ffffff;
}

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

.btn.secondary {
  background-color: #ffffff;
  color: #e53935;
  border: 2px solid #e53935;
}

.btn.secondary:hover {
  background-color: #e53935;
  color: #ffffff;
}

/* Hero section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 70vh;
  color: #ffffff;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 39, 64, 0.6);
  z-index: 1;
}

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

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Generic section styling */
section {
  padding: 60px 20px;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
  color: #0a2740;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  background-color: #ffffff;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  text-align: center;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #0a2740;
}

.feature-card p {
  font-size: 0.95rem;
  color: #36454f;
}

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 12px 16px;
  border: 1px solid #dfe4ea;
  text-align: left;
  font-size: 0.95rem;
}

.pricing-table thead {
  background-color: #0a2740;
  color: #ffffff;
}

.pricing-table tbody tr:nth-child(even) {
  background-color: #f0f4f8;
}

.pricing-table tbody tr:hover {
  background-color: #eaf0f6;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-grid img {
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial {
  background-color: #ffffff;
  border-left: 4px solid #e53935;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.testimonial p {
  font-size: 0.95rem;
  color: #36454f;
  margin-bottom: 8px;
}

.testimonial .author {
  font-weight: 600;
  color: #0a2740;
}

/* Footer */
footer {
  background-color: #0a2740;
  color: #ffffff;
  padding: 40px 20px;
}

footer .footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

footer .footer-section {
  flex: 1 1 200px;
  margin-bottom: 20px;
}

footer h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer li {
  margin-bottom: 6px;
}

footer a {
  color: #ffffff;
  font-size: 0.9rem;
}

/* Form styles */
form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

form .form-group {
  margin-bottom: 15px;
}

form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

form input, form select, form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #dfe4ea;
  border-radius: 4px;
  font-size: 0.95rem;
}

form button {
  padding: 12px 20px;
  background-color: #e53935;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

form button:hover {
  background-color: #c62828;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    align-items: flex-start;
  }
  .navbar li {
    margin: 8px 0;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* FAQ styles */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

details {
  border: 1px solid #dfe4ea;
  border-radius: 4px;
  padding: 15px 20px;
  margin-bottom: 10px;
  background-color: #ffffff;
}

details summary {
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-right: 25px;
  list-style: none;
}

/* Hide the default triangle */
details summary::marker {
  display: none;
}

details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
}

details[open] summary::after {
  content: "\2212";
}

details p {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #36454f;
}