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

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .logo-container img {
  height: 40px;
}

header nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.2s ease;
}

header nav a:hover {
  color: #0066cc;
}

/* Hero section */
/* Hero section styling */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Increase hero height to show the entire image */
  min-height: 100vh;
  overflow: hidden;
}

/* The hero image fills the section. Object-fit keeps the aspect ratio
   while covering the container without distortion. */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Show the entire image without cropping */
  object-fit: contain;
  /* Keep the image bright for a sharper appearance */
  filter: brightness(0.95);
  z-index: 0;
}

/* Overlay sits above the image */
.hero-overlay {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  padding: 2rem;
  max-width: 800px;
  text-align: center;
  border-radius: 8px;
}

.hero-overlay h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.hero-overlay p {
  font-size: 1.2rem;
}

/* Generic section styling */
.section {
  padding: 4rem 2rem;
}

.section.light-section {
  background: #f7f9fb;
}

.section-content {
  max-width: 1000px;
  margin: 0 auto;
}

/* Two-column layouts */
.about-content,
.solutions-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.about-content .text,
.solutions-content .text {
  flex: 1 1 50%;
}

.about-content .image,
.solutions-content .image {
  flex: 1 1 50%;
}

.about-content img,
.solutions-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Section headings */
h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #004679;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-section {
  text-align: center;
}

.contact-section a {
  color: #0066cc;
  text-decoration: none;
}

.contact-section a:hover {
  text-decoration: underline;
}

/* Contact form styling */
.contact-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.btn-submit {
  padding: 0.8rem 1.2rem;
  background: #0066cc;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  align-self: flex-start;
}

.btn-submit:hover {
  background: #004a99;
}

.copyright {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #666;
}

footer {
  /* Blue footer similar to jorgensen.com.mx */
  background: #0D2A6B;
  color: #fff;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Standalone image sections inserted between content blocks */
.image-section {
  padding: 0;
}

/* Make images take the full width of the page and preserve aspect ratio */
.full-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 1.8rem;
  }
  .about-content .text,
  .solutions-content .text,
  .about-content .image,
  .solutions-content .image {
    flex-basis: 100%;
  }
  header nav a {
    margin-left: 1rem;
  }
}

/* Additional mobile optimisations */
@media (max-width: 600px) {
  /* Stack navigation links vertically on very narrow screens */
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  header nav {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
  }
  header nav a {
    margin: 0 0 0.5rem 0;
  }
  /* Reduce hero height and font sizes on small devices */
  .hero {
    min-height: 60vh;
  }
  .hero-overlay h1 {
    font-size: 1.5rem;
  }
  .hero-overlay p {
    font-size: 0.9rem;
  }
  /* Ensure standalone images fit nicely on small screens */
  .full-image {
    object-fit: contain;
  }
  .contact-form {
    width: 100%;
  }
}