/* Base structure */
html, body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #ccc; /* Matching the site gray */
  color: #1a2b4c;
}

/* Page transition classes */
body.fade-out {
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.fade-in {
  opacity: 1;
  transition: opacity 0.2s ease;
}

/* Header */
.site-header {
  background-color: #ccc;
  padding: 10px 0;
  text-align: center;
  position: relative;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-header .logo {
  max-width: 180px;
  max-height: 100px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

.site-header nav {
  margin-top: 10px;
  background: #f0f0f0;
  padding: 10px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  z-index: 1001;
  width: 100%;
}

.site-header nav a {
  margin: 0 20px;
  color: #315f94;
  text-decoration: none;
  font-weight: 500;
}

.site-header nav a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: #1a2b4c;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 60px;
}

/* Content box */
.content {
  max-width: 800px;
  margin: 30px auto 40px auto;
  background: white;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  border-radius: 14px;
  position: relative;
  z-index: 1;
}

/* Forms */
form input, form textarea, form button {
  display: block;
  width: 100%;
  margin: 12px 0;
  padding: 12px;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

form button {
  background-color: #315f94;
  color: white;
  border: none;
  font-weight: bold;
}

form button:hover {
  background-color: #244d7a;
}

/* Testimonials / Screenshots */
.testimonial, .screenshot {
  margin-bottom: 30px;
}

.testimonial img, .screenshot img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 10px;
}

.testimonial p, .screenshot p {
  background: #eef1f5;
  padding: 10px;
  border-left: 4px solid #315f94;
  margin-top: 10px;
}

/* Gallery */
.screenshot-gallery {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Buttons */
.button {
  display: inline-block;
  background-color: #007BFF;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.button:hover {
  background-color: #0056b3;
}
.button.success {
  background-color: #28a745;
}
.button.success:hover {
  background-color: #218838;
}

/* Responsive */
@media screen and (max-width: 600px) {
  .site-header nav a {
    display: block;
    margin: 10px 0;
  }

  .content {
    margin: 20px;
  }
}
