:root {
  --bg: #f5f7fa;
  --bg-soft: #edf0f5;
  --panel: rgba(255, 255, 255, 0.92);
  --line: rgba(201, 162, 78, 0.42);
  --text: #1a2540;
  --muted: #5a6a8a;
  --gold: #c9a24e;
  --gold-soft: #e8c87a;
  --radius: 18px;
  --shadow: 0 8px 32px rgba(26, 37, 64, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Plus Jakarta Sans", sans-serif;
  overflow-x: hidden;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1400px 600px at 90% -5%, rgba(215, 177, 102, 0.07), transparent 60%),
    radial-gradient(800px 500px at -10% 20%, rgba(92, 137, 204, 0.05), transparent 60%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.025;
  background-image: radial-gradient(#1a2540 0.48px, transparent 0.48px);
  background-size: 3px 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(7, 16, 33, 0.97), rgba(7, 16, 33, 0.92));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.9rem clamp(1rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 280ms ease, border-color 220ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  color: #eaf1ff;
  text-decoration: none;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.brand img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand span {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #F0D7A1;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: clamp(1rem, 2vw, 1.8rem);
}

.header-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-toggle,
.menu-toggle {
  border: 1px solid rgba(240, 215, 161, 0.38);
  background: rgba(11, 27, 53, 0.78);
  color: #eaf1ff;
  border-radius: 999px;
}

.lang-toggle {
  padding: 0.52rem 0.86rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.lang-toggle:hover {
  border-color: rgba(240, 215, 161, 0.72);
  color: var(--gold-soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: background-color 220ms ease, border-color 220ms ease;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #f0d7a1;
  border-radius: 1px;
  transition: transform 280ms ease, opacity 220ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.nav a {
  color: rgba(175, 190, 217, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 220ms ease;
}

.nav a:hover {
  color: var(--gold-soft);
}

.section {
  width: min(1140px, 92vw);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.hero {
  min-height: 86vh;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: clamp(1.2rem, 4vw, 3.4rem);
  position: relative;
  isolation: isolate;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  padding: clamp(2.6rem, 5vw, 4rem);
  margin-top: 1.4rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(108deg, rgba(5, 13, 27, 0.84) 0%, rgba(5, 13, 27, 0.62) 46%, rgba(8, 20, 38, 0.88) 100%),
    url("images/hero-port.jpg") center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 20, 38, 0.5), rgba(10, 20, 38, 0.08));
}

/* Hero text stays light — it sits over a dark image overlay */
.hero .hero-copy {
  color: #eaf1ff;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  margin-bottom: 1rem;
}

/* Eyebrow inside the dark hero should be lighter gold */
.hero .eyebrow {
  color: var(--gold-soft);
}

h1,
h2,
h3 {
  font-family: "Bodoni Moda", serif;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  max-width: 12ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.65rem, 4vw, 2.9rem);
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.72rem);
}

.lead {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.75;
  color: rgba(200, 220, 255, 0.82);
  max-width: 56ch;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #0a1429;
  background: linear-gradient(120deg, #d2ab58 0%, #f0d7a1 100%);
  text-decoration: none;
  font-weight: 700;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(215, 177, 102, 0.28);
  filter: saturate(1.06);
}

.btn-small {
  padding: 0.6rem 1rem;
  font-size: 0.86rem;
}

.text-link {
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 215, 161, 0.45);
  padding-bottom: 0.2rem;
}

/* Hero card stays dark — it sits inside the dark hero */
.hero-card {
  background: linear-gradient(145deg, rgba(16, 36, 64, 0.88), rgba(8, 20, 38, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  color: #eaf1ff;
}

/* Light cards for service, pillar, and contact */
.service-card,
.pillar,
.contact-card {
  background: #ffffff;
  border: 1px solid rgba(26, 37, 64, 0.09);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(26, 37, 64, 0.07);
}

.hero-card {
  padding: 1.4rem;
}

.hero-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.hero-card li {
  padding: 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-card span {
  color: rgba(175, 190, 217, 0.85);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-head {
  margin-bottom: 1.5rem;
}

.about p {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.82;
  color: var(--muted);
}

.about-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: stretch;
}

.about-copy {
  background: #ffffff;
  border: 1px solid rgba(26, 37, 64, 0.08);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 4px 24px rgba(26, 37, 64, 0.06);
}

.about-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(26, 37, 64, 0.1);
  box-shadow: 0 8px 32px rgba(26, 37, 64, 0.09);
}

.about-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.service-grid,
.pillars,
.logo-grid {
  display: grid;
  gap: 1.15rem;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.pillar {
  padding: 1.35rem;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.service-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(26, 37, 64, 0.08);
  margin-bottom: 1rem;
  display: block;
}

.service-card p,
.pillar p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.service-card h3,
.pillar h3 {
  color: var(--text);
}

.service-card:hover,
.pillar:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 162, 78, 0.38);
  box-shadow: 0 12px 36px rgba(26, 37, 64, 0.11);
}

.pillars {
  grid-template-columns: repeat(3, 1fr);
}

.trust-band {
  margin-top: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.8rem;
  color: var(--gold);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(201, 162, 78, 0.05);
}

.logo-grid {
  grid-template-columns: repeat(3, 1fr);
}

.logo-grid figure {
  margin: 0;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid rgba(26, 37, 64, 0.09);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(26, 37, 64, 0.06);
}

.logo-grid img {
  width: 100%;
  max-height: 110px;
  object-fit: contain;
}

figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-card {
  padding: 1.3rem;
  display: grid;
  gap: 0.7rem;
  max-width: 560px;
}

.contact-card a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.contact-card p {
  color: var(--muted);
  margin: 0;
}

.footer {
  border-top: 1px solid rgba(26, 37, 64, 0.1);
  background: #0d1c33;
  text-align: center;
  padding: 1.5rem 1rem 2.3rem;
  color: #9eb0ce;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 110ms;
}

.delay-2 {
  transition-delay: 190ms;
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3.5rem;
  }

  .service-grid,
  .pillars,
  .logo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-media img {
    min-height: 220px;
  }

}

@media (max-width: 768px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav {
    display: none;
  }

  .topbar-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.15rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: max-height 340ms ease, opacity 280ms ease, transform 280ms ease;
    border-radius: 14px;
    background: rgba(8, 20, 38, 0.94);
    border: 1px solid rgba(240, 215, 161, 0.24);
    padding: 0 0.25rem;
  }

  .mobile-menu a {
    color: rgba(234, 241, 255, 0.92);
    text-decoration: none;
    padding: 0.86rem 0.7rem;
    border-bottom: 1px solid rgba(158, 176, 206, 0.18);
    font-size: 0.95rem;
  }

  .mobile-menu a:last-child {
    border-bottom: none;
  }

  .mobile-menu.is-open {
    max-height: 390px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    padding: 0.35rem;
  }

  .mobile-cta {
    margin-top: 0.28rem;
  }
}

@media (max-width: 680px) {
  .service-grid,
  .pillars,
  .logo-grid {
    grid-template-columns: 1fr;
  }

  .mobile-cta {
    width: 100%;
  }
}
