/* --- Global Reset --- */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: #f4f4f9;
  color: #333;
}

section {
  padding: 60px 20px;
  position: relative;
  box-sizing: border-box;
}

/* --- Navbar --- */
.navbar {
  background: #000000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 50px;
  height: 100px;
  box-sizing: border-box;
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo img {
  height: 200px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(255,255,255,0.4));
}

/* --- Navigation Links --- */
.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #00aaff;
}

/* --- CTA Button --- */
.cta {
  background: #429d91;
  border: none;
  color: #fff;
  padding: 8px 17px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta:hover {
  background-color: #1f7c70;
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
  background: url('images/hero-bg.jpg') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.cta {
  margin-top: 20px;
}

/* --- Services Section --- */
.services {
  text-align: center;
  background: linear-gradient(180deg, #001f3f 0%, #003366 100%);
  clip-path: polygon(0 0, 100% 0, 100% 99%, 0 100%);
  color: #fff;
  padding: 60px 20px 0;
  margin-bottom: -6px; /* removes white gap */
  border: none;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
  justify-items: center;
}

.service-card {
  background: #f0f0f0c7;
  color: #333;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 320px;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* --- About + Contact Container --- */
.about-contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  background: linear-gradient(180deg, #003366 0%, #001f3f 100%);
  color: #fff;
  padding: 60px 40px 80px;
  box-sizing: border-box;
  margin-top: -6px; /* seamless overlap */
  border: none;
}

/* --- About Us Section --- */
.about {
  flex: 1 1 60%;
  text-align: left;
  overflow-y: auto;
  height: auto;
}

.about h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #fff;
}

.about p {
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
  color: #f0f0f0;
  font-size: 18px;
}

.about-services {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 700px;
  text-align: left;
}

.about-services li {
  background: rgba(255,255,255,0.1);
  margin: 10px 0;
  padding: 15px 20px;
  border-radius: 6px;
  font-size: 16px;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-services li:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 10px rgba(255,255,255,0.2);
}

/* --- Contact Section --- */
.contact-fixed {
  flex: 0 0 320px;
  max-width: 340px;
  background: #f0f0f0c7;
  padding: 25px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-fixed:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.contact-fixed h2 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 24px;
  color: #001f3f;
}

/* --- Contact Form --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  color: #333;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
  border-color: #429d91;
  box-shadow: 0 0 6px rgba(66,157,145,0.4);
  outline: none;
}

button {
  background-color: #429d91;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #1f7c70;
  transform: translateY(-2px);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .about-contact-container {
    flex-direction: column;
    align-items: center;
    margin-top: 0;
  }

  .about, .contact-fixed {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
  }

  .cta {
    margin-top: 15px;
  }

  .logo img {
    height: 70px;
  }
}

/* --- Remove Get Started button from Hero Section --- */
.hero .cta {
  display: none;
  margin-top: 0;
}

/* Hide any empty or stray contact box */
.contact-fixed:empty {
  display: none;
}

/* Or force-hide the specific box if it’s outside the main container */
.about-contact-container + .contact-fixed {
  display: none;
}