:root {
  --navy: #081627;
  --navy-light: #0d2137;
  --navy-dark: #05111e;
  --gold: #d7a447;
  --gold2: #efc977;
  --gold-glow: rgba(215, 164, 71, 0.25);
  --paper: #f8f9fa;
  --ink: #0c1b2c;
  --muted: #5e6d82;
  --line: #e4e7eb;
  --white: #ffffff;
  --shadow-sm: 0 4px 12px rgba(8, 22, 39, 0.06);
  --shadow-md: 0 12px 32px rgba(8, 22, 39, 0.08);
  --shadow-lg: 0 20px 50px rgba(8, 22, 39, 0.14);
  --radius: 8px;
  --header-height: 86px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 22, 39, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  min-width: 210px;
  border-radius: 6px;
  overflow: hidden;
}

.logo-wrap img {
  height: 62px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  border-radius: 4px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-link:hover {
  opacity: 1;
  color: var(--gold2);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu hamburger toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 110;
  border-radius: 4px;
}

.mobile-toggle:focus-visible {
  outline: 2px solid var(--gold);
}

.mobile-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold2) 0%, var(--gold) 100%);
  color: #071321;
  box-shadow: 0 4px 14px var(--gold-glow);
}

.btn-gold:hover {
  box-shadow: 0 6px 20px rgba(215, 164, 71, 0.4);
}

.btn-outline {
  border: 1px solid rgba(239, 201, 119, 0.8);
  color: #ffffff;
  background: rgba(8, 22, 39, 0.4);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(215, 164, 71, 0.15);
  border-color: var(--gold2);
  color: var(--gold2);
}

.btn-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 1rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 17, 30, 0.98) 0%, rgba(5, 17, 30, 0.94) 35%, rgba(5, 17, 30, 0.55) 70%, rgba(5, 17, 30, 0.35) 100%),
    url('assets/hero.jpg') center/cover no-repeat;
  color: #ffffff;
}

.hero-inner {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

.kicker {
  color: var(--gold2);
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 12px 0 22px;
  max-width: 700px;
  font-weight: 800;
}

.hero h1 span {
  color: var(--gold2);
}

.hero p {
  max-width: 620px;
  color: #e2e8f0;
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 0 32px;
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.values {
  background: rgba(5, 17, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 30px;
  border-radius: 12px;
}

.value {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: center;
}

.value:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.value:first-child {
  padding-top: 0;
}

.ico {
  width: 44px;
  height: 44px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 900;
  font-size: 1.15rem;
  background: rgba(215, 164, 71, 0.08);
  flex-shrink: 0;
}

.value b {
  display: block;
  color: var(--gold2);
  font-size: 1rem;
  margin-bottom: 3px;
}

.value span {
  font-size: 0.9rem;
  color: #d1d8e0;
  line-height: 1.4;
}

/* ==========================================================================
   Section Base & Headings
   ========================================================================== */
section {
  padding: 90px 0;
}

.head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.head h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 8px 0 16px;
  color: var(--ink);
}

.head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ==========================================================================
   Services Section (Cards)
   ========================================================================== */
.services-section {
  background: #ffffff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(215, 164, 71, 0.45);
}

.card .ico {
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ink);
}

.card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 20px;
  flex-grow: 1;
}

.more {
  color: #b47d20;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.more:hover {
  color: #8c5e10;
  gap: 8px;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process {
  background: var(--navy);
  color: #ffffff;
}

.process .head h2 {
  color: #ffffff;
}

.process .head p {
  color: #a0aec0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.step {
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  min-height: 240px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.step .n {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold2);
  font-weight: 800;
  font-size: 1rem;
  background: rgba(215, 164, 71, 0.1);
}

.step h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: #ffffff;
}

.step p {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   People & Culture Section
   ========================================================================== */
.people {
  position: relative;
  background-color: #ffffff;
  background-image:
    linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.97) 45%, rgba(255, 255, 255, 0.75) 60%, rgba(255, 255, 255, 0.3) 100%),
    url('assets/team.jpg');
  background-position: right center;
  background-size: 55% cover;
  background-repeat: no-repeat;
}

.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  align-items: center;
}

.people-copy {
  max-width: 540px;
  background: rgba(255, 255, 255, 0.7);
  padding: 30px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.people-copy h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 10px 0 20px;
  color: var(--ink);
}

.people-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 24px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 8px 16px;
  border: 1px solid #d4dae0;
  background: #ffffff;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   Call To Action Section
   ========================================================================== */
.cta {
  background: linear-gradient(135deg, #071321 0%, #0d2742 100%);
  color: #ffffff;
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta h2 {
  margin: 4px 0 0;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  max-width: 720px;
  line-height: 1.2;
  font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--navy-dark);
  color: #a0aec0;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1.1fr;
  gap: 40px;
}

.footer-brand img {
  width: 215px;
  height: auto;
  margin-bottom: 16px;
  border-radius: 4px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 300px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin: 0 0 16px;
  font-weight: 700;
}

.footer-col a,
.footer-col p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--gold2);
}

.footer-contact-link {
  display: inline-block;
  color: #cbd5e1 !important;
  font-weight: 500;
}

.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 48px;
  padding-top: 24px;
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: #718096;
}

.legal-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.legal-btn {
  background: none;
  border: none;
  padding: 0;
  color: #94a3b8;
  font-size: 0.84rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.legal-btn:hover {
  color: var(--gold2);
}

/* ==========================================================================
   Modals (Dialog)
   ========================================================================== */
dialog.modal {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 560px;
  width: calc(100% - 32px);
  background: #ffffff;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  margin: auto;
}

dialog.modal::backdrop {
  background: rgba(8, 22, 39, 0.75);
  backdrop-filter: blur(4px);
}

.modal-box {
  padding: 30px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--ink);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: #f1f5f9;
  color: var(--ink);
}

.modal-body p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 14px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 980px) {
  .mobile-toggle {
    display: flex;
  }

  .menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(8, 22, 39, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 28px 36px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }

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

  .nav-link {
    font-size: 1.05rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-cta {
    margin-top: 10px;
    width: 100%;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
  }

  .values {
    max-width: 100%;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .people {
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.92) 100%),
      url('assets/team.jpg');
    background-size: cover;
    background-position: center;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }

  .people-copy {
    background: none;
    padding: 0;
    backdrop-filter: none;
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 74px;
  }

  .container {
    width: min(calc(100% - 32px), 1180px);
  }

  .logo-wrap img {
    height: 50px;
    max-width: 190px;
  }

  section {
    padding: 64px 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: auto;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-action {
    width: 100%;
  }

  .cta-action .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}