:root {
  --ocean-blue: #035c9f;
  --ocean-blue-dark: #023e6b;
  --ocean-blue-light: #1380d3;
  --card-bg: #ffffff;
  --text-main: #f5f7ff;
  --accent: #ff8a3d;
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.18);
  --radius-xl: 20px;
  --transition-fast: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0c89d9 0, var(--ocean-blue) 35%, #012a4a 100%);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}

/* Links & images */

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* HEADER / NAV */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(1, 46, 88, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
}

.logo-text span:first-child {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo-text span:last-child {
  opacity: 0.75;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links > li {
  list-style: none;
  position: relative;
}

.nav-links > li > a,
.nav-links > li > button,
.dropdown-toggle {
  border: none;
  background: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.35rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.nav-links > li > a:hover,
.nav-links > li > button:hover,
.dropdown-toggle:hover {
  color: var(--accent);
}

.nav-links > li.active > a {
  color: var(--accent);
}

/* Dropdown */

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 150%;
  left: 0;
  min-width: 220px;
  background: #012a4a;
  border-radius: 16px;
  padding: 0.5rem 0.25rem;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #e2efff;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-menu a:hover {
  background: rgba(19, 128, 211, 0.2);
  color: var(--accent);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hamburger */

.hamburger {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.hamburger span {
  width: 60%;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.25s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
  width: 70%;
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
  width: 70%;
}

/* Mobile Nav */

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 64px 1rem auto 1rem;
    flex-direction: column;
    align-items: stretch;
    background: rgba(0, 27, 55, 0.98);
    border-radius: var(--radius-xl);
    padding: 1rem 1.25rem 1.25rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto;
    background: transparent;
    box-shadow: none;
    padding: 0 0 0.4rem;
  }

  .dropdown-menu a {
    padding-left: 1.8rem;
  }

  .dropdown:hover .dropdown-menu {
    /* Disabled hover effect on mobile */
  }
}

@media (min-width: 901px) {
  .hamburger {
    display: none;
  }
}

/* MAIN LAYOUT */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 3rem;
}

.page-section {
  margin-bottom: 3rem;
}

/* Section headers */

.section-header {
  margin-bottom: 1.75rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: #b6d9ff;
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
}

.section-subtitle {
  font-size: 0.96rem;
  max-width: 640px;
  color: #d5e6ff;
  margin-top: 0.4rem;
}

/* Cards & grids */

.card {
  background: rgba(3, 61, 112, 0.9);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.card-light {
  background: #f9fbff;
  color: #0b1530;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

/* Two column layout */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Generic list */

.list {
  margin-left: 1rem;
  margin-top: 0.4rem;
  font-size: 0.9rem;
}

.list li {
  margin-bottom: 0.3rem;
}

/* HERO (HOME) */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.hero-text h1 {
  font-size: clamp(2rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.hero-text p {
  max-width: 520px;
  color: #d7e7ff;
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

/* Buttons */

.btn-primary,
.btn-ghost {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--ocean-blue-light));
  color: #111827;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #e5f1ff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Hero slider */

.hero-slider {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #001225;
  aspect-ratio: 16 / 10;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slider-overlay {
  position: absolute;
  inset: auto 1.1rem 1.1rem 1.1rem;
  background: radial-gradient(circle at top left, rgba(3, 92, 159, 0.9), rgba(1, 20, 43, 0.9));
  border-radius: 16px;
  padding: 0.7rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #e5f3ff;
  font-size: 0.8rem;
}

.hero-slider-dots {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.hero-slider-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: width var(--transition-fast), background var(--transition-fast);
}

.hero-slider-dots span.active {
  width: 16px;
  background: var(--accent);
}

@media (max-width: 900px) {
  main {
    padding-top: 4.75rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-slider {
    order: -1;
  }
}

/* HOME: SERVICES PREVIEW CAROUSEL */

.services-preview {
  margin-top: 1.5rem;
}

.services-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  background: rgba(0, 20, 43, 0.9);
  margin-top: 1rem;
}

.services-track {
  display: flex;
  transition: transform 0.8s ease;
}

.services-slide {
  min-width: 100%;
  padding: 1.2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
}

.service-card {
  background: rgba(4, 75, 136, 0.9);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

.service-card img {
  height: 220px;
  object-fit: contain;
}

.service-card-title {
  padding: 0.7rem 0.9rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 600;
}

/* CONTACT PAGE */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-form {
  display: grid;
  gap: 0.7rem;
}

.contact-form label {
  font-size: 0.82rem;
  margin-bottom: 0.15rem;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.24);
  padding: 0.55rem 0.9rem;
  font: inherit;
  outline: none;
  transition: border var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form textarea {
  border-radius: 18px;
  resize: vertical;
  min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ocean-blue-light);
  box-shadow: 0 0 0 1px rgba(19, 128, 211, 0.4);
}

.form-note {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.7;
}

.contact-meta {
  font-size: 0.9rem;
}

.contact-meta p {
  margin-bottom: 0.35rem;
}

/* Badges, pills, meta */

.badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  background: rgba(15, 23, 42, 0.05);
  font-size: 0.78rem;
}

.job-meta {
  font-size: 0.82rem;
  color: #4b5563;
  margin-top: 0.5rem;
}

/* FOOTER */

footer {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  margin-top: 2.5rem;
  padding: 1.2rem 1.25rem 0.75rem;
  font-size: 0.8rem;
  color: #cbd5f5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  align-items: center;
}

footer span {
  opacity: 0.85;
}


/* =========================
   Home: full-width hero carousel + new sections
   ========================= */

body { overflow-x: hidden; }

.full-bleed {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

.hero-carousel {
  margin-bottom: 3rem;
}

.hero-carousel .hero-slider {
  height: clamp(420px, 72vh, 760px);
  border-radius: 0;
  aspect-ratio: auto;
  box-shadow: none;
}

.hero-carousel .hero-slide img {
  height: 100%;
  width: 100%;
}

.hero-carousel .hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(1, 20, 43, 0.74) 0%, rgba(1, 20, 43, 0.35) 52%, rgba(1, 20, 43, 0.12) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-carousel .hero-content-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-carousel .hero-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero-carousel .hero-panel {
  max-width: 760px;
}

.hero-carousel .hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.12;
}

.hero-carousel .hero-text p {
  max-width: 56ch;
  color: rgba(245, 247, 255, 0.92);
}

.hero-carousel .btn-ghost {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-carousel .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-carousel .hero-slider-overlay {
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2.5rem);
  max-width: 1200px;
}

@media (max-width: 700px) {
  .hero-carousel .hero-content { padding: 0 1rem; }
  .hero-carousel .hero-slider-overlay { width: calc(100% - 2rem); }
}

/* Card links (used in What We Do + News on homepage) */
.card-link {
  display: block;
  color: inherit;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  width: 46px;
  border-radius: 14px;
  margin-bottom: 0.8rem;
  background: rgba(3, 92, 159, 0.12);
  color: var(--ocean-blue-dark);
  font-size: 1.35rem;
}

.card-meta {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: rgba(11, 21, 48, 0.72);
}

.section-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}


/* =========================
   Footer (3-column) - responsive
   ========================= */
.footer {
  background: #071a2b;
  color: rgba(255, 255, 255, 0.86);
  padding: 3rem 1.25rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 1fr 1.2fr;
}

.footer-title {
  margin: 0 0 0.9rem 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-logo {
  height: 46px;
  width: auto;
}

.footer-brand-top {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.footer-company {
  font-weight: 900;
  font-size: 1.05rem;
  color: #ffffff;
}

.footer-domain {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.2rem;
}

.footer-note {
  margin: 1rem 0 1.1rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 50ch;
}

.footer-social {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.88);
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(0, 180, 216, 0.18);
  border-color: rgba(0, 180, 216, 0.35);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1rem;
}

.footer-links-grid a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  text-decoration: none;
}

.footer-links-grid a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(0, 180, 216, 0.6);
  text-underline-offset: 4px;
}

.contact-list {
  display: grid;
  gap: 0.9rem;
}

.contact-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.contact-ico {
  width: 28px;
  height: 28px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-ico svg {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, 0.88);
}

.footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.footer a:hover {
  color: #ffffff;
}

.contact-stack {
  display: grid;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  line-height: 1.45;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}

.footer-bottom-split {
  opacity: 0.55;
}

@media (max-width: 980px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 2.4rem 1rem 1.2rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-note {
    max-width: none;
  }
}


/* =========================
   Homepage: What We Do + News cards (write-ups + thumbnails)
   ========================= */

.what-cards .card-desc {
  margin-top: 0.55rem;
  color: rgba(11, 21, 48, 0.78);
  line-height: 1.55;
}

.card-points {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: rgba(11, 21, 48, 0.78);
  line-height: 1.55;
}

.card-points li {
  margin: 0.25rem 0;
}

.card-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 0.95rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn-small.btn-primary {
  background: var(--ocean-blue);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.0);
}

.btn-small.btn-primary:hover { background: var(--ocean-blue-dark); }

.btn-small.btn-ghost {
  background: rgba(3, 92, 159, 0.10);
  border: 1px solid rgba(3, 92, 159, 0.22);
  color: var(--ocean-blue-dark);
}

.btn-small.btn-ghost:hover { background: rgba(3, 92, 159, 0.16); }

.news-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.2rem;
}

.news-card {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.news-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(3, 92, 159, 0.10);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-body {
  padding: 1rem 1.05rem 1.1rem;
  display: grid;
  gap: 0.6rem;
}

.news-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.news-date {
  font-size: 0.9rem;
  color: rgba(11, 21, 48, 0.72);
  font-weight: 800;
}

.news-title {
  font-size: 1.12rem;
  font-weight: 900;
  color: rgba(11, 21, 48, 0.98);
  line-height: 1.25;
  margin: 0.1rem 0 0;
}

.news-desc {
  color: rgba(11, 21, 48, 0.78);
  line-height: 1.55;
  margin: 0;
}

.news-actions {
  margin-top: 0.35rem;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
}


/* =========================
   Logo mark (use image inside oval)
   ========================= */
.logo-mark{
  width: 46px;
  height: 46px;
  border-radius: 999px; /* keep oval/circle shape */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;      /* clip image to oval */
  background: transparent; /* don't interfere with logo */
  border: 1px solid rgba(3, 92, 159, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.logo-mark img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px; /* gives breathing room */
  background: transparent;
  display: block;
}


/* =========================
   Dropdown fix (desktop click + hover bridge)
   ========================= */

/* Remove the gap that causes the menu to close before click */
.dropdown-menu {
  top: calc(100% + 10px);
}

/* Invisible hover bridge between trigger and menu */
.dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

/* Support click-to-open on desktop */
.dropdown.is-open .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mobile: hide submenu until opened */
@media (max-width: 900px) {
  .dropdown-menu { display: none; }
  .dropdown.is-open .dropdown-menu { display: block; }
  .dropdown::after { display: none; }
}


/* =========================
   Soft tint for white surfaces (cards/entries)
   ========================= */
.card-light,
.news-card,
/*.service-card,*/
.service-item,
.feature-card {
  background: linear-gradient(
    180deg,
    rgba(202, 240, 248, 0.34) 0%,
    rgba(255, 255, 255, 0.92) 62%,
    rgba(255, 255, 255, 0.9) 100%
  );
  border: 1px solid rgba(3, 92, 159, 0.10);
}



/* =========================
   Service card image motion (hover)
   ========================= */
.service-card img {
  transition: transform 1.4s ease;
  transform: scale(1.01);
}

.service-card:hover img {
  transform: scale(1.08);
}



/* =========================
   Multi-level Services dropdown
   ========================= */

.dropdown-menu {
  overflow: visible;
}

.dropdown-menu .has-submenu {
  position: relative;
}

.dropdown-menu .has-submenu > a {
  position: relative;
  padding-right: 2.2rem;
}

.dropdown-menu .has-submenu > a::after {
  content: "›";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.75;
  font-size: 1rem;
}

.dropdown-menu .has-submenu::after {
  content: "";
  position: absolute;
  top: 0;
  right: -10px;
  width: 14px;
  height: 100%;
}

.dropdown-menu .submenu {
  position: absolute;
  top: -0.35rem;
  left: 100%;
  margin-left: 0.35rem;
  min-width: 260px;
  background: #012a4a;
  border-radius: 16px;
  padding: 0.5rem 0.25rem;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 1000;
}

/* Keep deeper submenus visible (flip 3rd level to the left) */
.dropdown-menu .submenu .submenu {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: 0.35rem;
  transform: translateX(-6px);
}

/* If the screen is a bit tight, flip ALL fly-out submenus to the left */
@media (max-width: 1150px) {
  .dropdown-menu .submenu {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 0.35rem;
    transform: translateX(-6px);
  }
}

.dropdown-menu .has-submenu:hover > .submenu,
.dropdown-menu .has-submenu:focus-within > .submenu {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Anchor offsets so fixed header doesn't cover sections */
.page-section,
.menu-anchor {
  scroll-margin-top: 90px;
}

.menu-anchor {
  height: 0;
}

/* Mobile: show nested lists stacked (no fly-out) */
@media (max-width: 900px) {
  .dropdown-menu .submenu {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: transparent;
    box-shadow: none;
    padding: 0 0 0.4rem;
    margin: 0;
  }

  .dropdown-menu > li > a { padding-left: 1.1rem; }
  .dropdown-menu .submenu > li > a { padding-left: 2.2rem; }
  .dropdown-menu .submenu .submenu > li > a { padding-left: 3.2rem; }

  .dropdown-menu .has-submenu > a::after {
    display: none;
  }

  .dropdown-menu .has-submenu::after {
    display: none;
  }
}
