/* Rewritten full style.css with image-fill, parallax, lightbox fixes */
:root {
  --bg-dark: #023047;
  --bg-darker: #012535;
  --brand: #219ebc;
  --primary: #ffb703;
  --primary-dark: #fb8500;
  --accent: #ffb703;
  --bg-soft: #F0F7FB;
  --bg-soft2: #ffffff;
  --bg-soft3: #CAF0F8;
  --bg-light: #ffffff;
  --text-light: #ffffff;
  --text-dark: #023047;
  --text-muted: #0B3B4A;
  --border-soft: #D0E8F2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 18px;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* HERO + HEADER */
.hero-wrap {
  background-image: url('assets/hero.jpeg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

.hero-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(2, 48, 71, 0.75);
  z-index: -1;
}

.hero-wrap .container {
  position: relative;
  z-index: 2;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-box {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--bg-dark);
  font-size: 22px;
}

.logo-text-main {
  font-weight: 700;
  font-size: 20px;
}

.logo-text-sub {
  font-size: 14px;
  color: #DDDDDD;
}

nav {
  display: flex;
  gap: 16px;
  font-size: 16px;
}

nav a {
  padding: 4px 8px;
  border-radius: 999px;
}

nav a:hover {
  background-color: rgba(255,255,255,0.08);
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  padding: 4px 8px !important;
  border-radius: 999px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-toggle::after {
  content: "▼";
  font-size: 10px;
}

.dropdown-menu {
  position: absolute;
  background-color: var(--bg-dark);
  min-width: 200px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  z-index: 1000;
  top: 100%;
  /* For RTL layout align menu under the toggle on the right */
  right: 0;
  left: auto;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  pointer-events: none;
}

/* Dropdown items should stack vertically and fill the menu width */
.dropdown-menu a {
  display: block;
  width: 100%;
  padding: 10px 14px;
  color: var(--text-light);
  text-decoration: none;
  box-sizing: border-box;
  text-align: right; /* RTL: align labels to the right */
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-menu a:last-child { border-bottom: none; }

.dropdown-menu a:hover {
  background-color: rgba(255,255,255,0.06);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

nav a.cta-nav {
  background-color: var(--primary);
  color: var(--bg-dark);
  font-weight: 600;
}

.hero {
  padding: 80px 0 90px;
  text-align: center;
}

.hero-title {
  font-size: 36px;
  margin-bottom: 10px;
  color: var(--primary);
}

.hero-subtitle {
  font-size: 22px;
  margin-bottom: 18px;
  color: var(--text-light);
}

.hero-text {
  max-width: 640px;
  margin: 0 auto 24px;
  color: #DDDDDD;
}

/* BUTTONS */
.btn {
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 18px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

    /* Icon helpers (used in contact buttons and feature cards) */
    .btn-icon {
      width: 18px;
      height: 18px;
      vertical-align: middle;
      margin-inline-start: 8px;
      fill: currentColor;
      flex: 0 0 18px;
    }

    .why-icon {
      width: 18px;
      height: 18px;
      vertical-align: middle;
      margin-inline-start: 8px;
      fill: var(--primary);
      display: inline-block;
    }

    .highlight-icon {
      width: 18px;
      height: 18px;
      vertical-align: middle;
      margin-inline-end: 8px;
      fill: var(--text-light);
      display: inline-block;
    }

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-outline {
  background-color: var(--primary);
  color: var(--bg-dark);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.contact-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.contact-floating {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 200;
}

/* SECTIONS */
section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 6px;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

/* FIX: remove placeholder */
.image-placeholder {
  background: none !important;
  padding: 0 !important;
  height: auto !important;
}

/* PARALLAX */
.parallax-container {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  /* height is controlled by utility classes (.h-150, .h-260, etc.) */
  height: auto;
  min-height: 120px; /* sensible fallback when utility class is missing */
}

.parallax-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateY(0) scale(1.05);
  will-change: transform;
  display: block;
}

/* Utility height helpers used across pages */
.h-150 { height: 150px; }
.h-180 { height: 180px; }
.h-200 { height: 200px; }
.h-260 { height: 260px; }
.h-300 { height: 300px; }

/* GALLERY --- FIXED IMAGE FILL */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: none;
  padding: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-item img.parallax-img {
  transform: translateY(0) scale(1.25);
  transition: transform 0.06s linear;
  will-change: transform;
}


.gallery-item img:hover {
  transform: scale(1.05);
}

/* CARDS */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background-color: #FFFFFF;
  border-radius: 12px;
  border: 2px solid #023047;
  padding: 18px;
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* WHY US */
.why-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* LIGHTBOX */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background-color: rgba(0,0,0,0.8);
  padding: 20px;
  align-items: center;
  justify-content: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-modal img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  font-weight: bold;
}

/* FOOTER */
footer {
  background-color: var(--bg-darker);
  color: var(--text-light);
  padding: 30px 0 12px;
  font-size: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.footer-bottom {
  text-align: center;
  color: #888888;
  border-top: 1px solid #333333;
  padding-top: 8px;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .why-cards,
  .cards-3,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  nav {
    flex-wrap: wrap;
  }
  .hero-title {
    font-size: 30px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .why-cards,
  .cards-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.service-img {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 12px;
}


.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* If a service image should explicitly disable parallax add the class `.no-parallax` on the image.
   This avoids using !important which prevented JS transforms from applying site-wide. */
.service-img img.no-parallax { transform: none !important; will-change: auto !important; }


.highlight-bar {
  background-color: var(--primary);
  color: var(--bg-dark);
  padding: 16px 0;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
}
* {
  box-sizing: border-box;
}
.highlight-bar {
  color: var(--bg-dark);
}
.highlight-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 16px;
}

.highlight-title {
  font-weight: 700;
}

.highlight-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--bg-dark);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  font-size: 16px;
}


.logo-strip {
  background-color: var(--bg-soft);
  padding: 40px 0;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  align-items: center;
}

.cta-band {
  background-color: var(--primary);
  color: var(--bg-dark);
  text-align: center;
  padding: 32px 16px;
}

.parallax-container {
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

.parallax-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateY(0) scale(1.05);
  will-change: transform;
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.gallery-item {
  width: 100%;
  aspect-ratio: 16 / 9;        /* Forces consistent rectangle shape */
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

/* Images */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Video */
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* Prevents the tall video from stretching */
  display: block;
  border-radius: inherit;
}

.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 90vw;
  max-height: 85vh;
  display: none;
  border-radius: 12px;
}
