/* ---------- Base Reset ---------- */
html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "Poppins", "Open Sans", Arial, sans-serif;
  background: #ffffff;
  color: #1d2530;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease; /* smooth zoom transitions */
}

/* ---------- Top Bar ---------- */
.topbar {
  background: #0f2946;
  color: #ffffff;
  font-size: 0.85rem;
  padding: 6px 5%;
  text-align: right;
}

/* ---------- Navbar ---------- */
.navbar {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.brand .title {
  font-size: 1.25rem;
  color: #0f2946;
  font-weight: 600;
}

.brand .subtitle {
  font-size: 0.65rem;
  line-height: 1.1;
  color: #6b7a8c;
}

/* ---------- Navbar Links ---------- */
.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: #1f2937;
  padding: 8px 8px;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links .active {
  color: #0f2946;
  border-bottom: 2px solid #82c9be;
  background: transparent !important;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 60vh;
  padding: 60px 5%;
  color: #ffffff;
  text-align: left;
  overflow: hidden; /* ensure zoom stays contained */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(15,41,70,0.85), rgba(15,41,70,0.85)),
              url("../images/hero-bg.jpg") center/cover no-repeat;
  z-index: -1;
  transition: transform 2.5s ease;
  transform: scale(1); /* default zoom level */
}

/* Zoom effect on hero hover */
.hero:hover::before {
  transform: scale(1.1); /* zoom in by 10% */
}

.hero-text {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  min-width: 160px;
  text-decoration: none;
  background: #0f2946;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 41, 70, 0.25);
}

.btn-primary:hover,
.btn-outline:hover {
  background: #82c9be;
  color: #0f2946;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(15, 41, 70, 0.25);
}

.hero-cta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: left;
}

/* ---------- Section Blocks ---------- */
.section {
  padding: 80px 5%;
  background: #ffffff;
}

.section.alt {
  background: #f7f9fb;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2rem;
  color: #0f2946;
  margin-bottom: 10px;
}

.section-title p {
  color: #61758a;
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- Equal Height Cards ---------- */
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid rgba(15, 41, 70, 0.05);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 6px 18px rgba(15, 41, 70, 0.04);
  height: 100%;
  min-height: 240px;
  overflow: hidden; /* contain zoom effect */
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
  transform: scale(1.05); /* slight default zoom for tighter look */
}

.card:hover img {
  transform: scale(1.15); /* zooms on hover */
}

/* ---------- Card Text ---------- */
.card h3 {
  color: #0f2946;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.card p {
  color: #556575;
  font-size: 0.9rem;
  flex-grow: 1;
}

/* ---------- Page Hero Banners ---------- */
.page-hero {
  position: relative;
  color: #ffffff;
  text-align: center;
  padding: 120px 5%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  overflow: hidden;
  transition: transform 1.5s ease;
}

.page-hero:hover {
  transform: scale(1.05);
}

.page-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Backgrounds per page */
.about-hero {
  background-image: linear-gradient(rgba(15,41,70,0.75), rgba(15,41,70,0.75)), url("../images/about-bg.jpg");
}

.vision-hero {
  background-image: linear-gradient(rgba(15,41,70,0.75), rgba(15,41,70,0.75)), url("../images/vision-bg.jpg");
}

.services-hero {
  background-image: linear-gradient(rgba(15,41,70,0.75), rgba(15,41,70,0.75)), url("../images/services-bg.jpg");
}

.strength-hero {
  background-image: linear-gradient(rgba(15,41,70,0.75), rgba(15,41,70,0.75)), url("../images/strength-bg.jpg");
}

/* ---------- Contact Hero Banner ---------- */
.contact-hero {
  background: linear-gradient(rgba(15, 41, 70, 0.85), rgba(15, 41, 70, 0.85)),
              url('../images/contact-bg.jpg') center/cover no-repeat;
  color: #ffffff;
  text-align: center;
  padding: 90px 5% 70px;
  transition: transform 2s ease;
}

.contact-hero:hover {
  transform: scale(1.05);
}

.contact-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.contact-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ---------- Contact Section ---------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: stretch;
  margin-top: 30px;
}

.contact-left,
.contact-right {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(15, 41, 70, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.contact-right {
  background: #113458;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Form Elements ---------- */
form .form-group {
  margin-bottom: 14px;
}

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: #1a2b3b;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid rgba(15, 41, 70, 0.14);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

/* ---------- Map Preview ---------- */
.map-preview {
  margin: 16px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  height: 260px;
}

.map-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
  transition: transform 1.5s ease;
}

.map-preview:hover iframe {
  transform: scale(1.1);
}

/* ---------- Map Link ---------- */
.map-link {
  display: inline-block;
  color: #82c9be;
  font-weight: 500;
  text-decoration: none;
  margin-top: 10px;
}

.map-link:hover {
  text-decoration: underline;
}

/* ---------- Contact Info ---------- */
.contact-info {
  background: #0f2946;
  color: #ffffff;
  text-align: center;
  padding: 28px 5%;
  margin-top: 50px;
}

.contact-info p {
  font-size: 0.95rem;
  margin: 6px 0;
}

.contact-info a {
  color: #82c9be;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ---------- Success Banner ---------- */
.alert-success {
  display: none;
  background: #82c9be;
  color: #0f2946;
  text-align: center;
  padding: 12px 0;
  font-weight: 500;
  animation: fadeInOut 6s ease forwards;
}

@keyframes fadeInOut {
  0% {opacity: 0;}
  10% {opacity: 1;}
  90% {opacity: 1;}
  100% {opacity: 0;}
}

/* ---------- Footer ---------- */
footer {
  background: #0b1f34;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 20px 5%;
  font-size: 0.8rem;
}

footer a {
  color: rgba(255, 255, 255, 0.86);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    min-height: auto;
  }
  .hero-text {
    max-width: 100%;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
}
