:root {
  --navy-950: #06172e;
  --navy-900: #081d3a;
  --navy-800: #102b4e;
  --gold-500: #d4a62a;
  --gold-400: #e1bb4f;
  --teal-500: #6f9f90;
  --white: #ffffff;
  --off-white: #f6f8fb;
  --gray-100: #e7ebf0;
  --gray-500: #687386;
  --text: #14233a;

  --container: 1240px;
  --header-height: 92px;
  --radius: 18px;
  --shadow:
    0 24px 60px rgba(6, 23, 46, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 100px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-500);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy-900);
  font-family:
    Manrope,
    Inter,
    system-ui,
    sans-serif;
  line-height: 1.1;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(3rem, 7vw, 6.5rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 750;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

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

.button-gold {
  color: var(--navy-950);
  background: var(--gold-500);
}

.button-gold:hover {
  background: var(--gold-400);
}

.button-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.button-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  min-height: var(--header-height);
  color: var(--white);
  transition:
    background 200ms ease,
    box-shadow 200ms ease;
}

.site-header.scrolled {
  background: rgba(6, 23, 46, 0.96);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 188px;
  max-height: 66px;
  object-fit: contain;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.primary-navigation > a,
.dropdown-toggle {
  position: relative;
  padding: 34px 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 700;
}

.primary-navigation > a::after,
.dropdown-toggle::after {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  height: 2px;
  background: var(--gold-500);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.primary-navigation > a:hover::after,
.primary-navigation > a[aria-current="page"]::after,
.dropdown-toggle:hover::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 12px);
  left: -26px;
  width: 270px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  visibility: hidden;
  background: var(--navy-950);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 650;
}

.dropdown-menu a:hover {
  color: var(--navy-950);
  background: var(--gold-500);
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

.hero {
  position: relative;
  display: grid;
  min-height: 800px;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(6, 23, 46, 0.96) 0%,
      rgba(6, 23, 46, 0.82) 48%,
      rgba(6, 23, 46, 0.34) 100%
    ),
    url("/assets/images/pme-hero.jpg")
    center / cover no-repeat;
}

.hero::after {
  position: absolute;
  right: -14%;
  bottom: -47%;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(212, 166, 42, 0.2);
  border-radius: 50%;
  content: "";
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-height);
}

.hero-description {
  max-width: 710px;
  margin: 0 0 36px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

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

.section-heading {
  max-width: 820px;
  margin-bottom: 52px;
}

.section-heading > p:last-child {
  color: var(--gray-500);
  font-size: 1.08rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  min-height: 370px;
  padding: 34px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 35px rgba(6, 23, 46, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.service-number {
  color: var(--gold-500);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.service-card p:not(.service-number) {
  color: var(--gray-500);
}

.service-card a {
  display: inline-block;
  margin-top: 20px;
  color: var(--navy-900);
  font-weight: 800;
}

.cta-section {
  padding: 80px 0;
  color: var(--white);
  background: var(--navy-900);
}

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

.cta-inner h2 {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--white);
}

.site-footer {
  padding: 76px 0 22px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 60px;
}

.footer-brand img {
  width: 220px;
  margin-bottom: 20px;
}

.footer-brand p {
  max-width: 420px;
}

.site-footer h2 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0;
}

.site-footer a {
  display: block;
  margin: 10px 0;
}

.site-footer a:hover {
  color: var(--gold-500);
}

.footer-bottom {
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
}

@media (max-width: 1120px) {
  .header-actions {
    display: none;
  }

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

@media (max-width: 860px) {
  :root {
    --header-height: 78px;
  }

  .section {
    padding: 74px 0;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .primary-navigation {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 26px 20px 50px;
    visibility: hidden;
    overflow-y: auto;
    background: var(--navy-950);
    opacity: 0;
    transform: translateX(100%);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .primary-navigation.open {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
  }

  .primary-navigation > a,
  .dropdown-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 16px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
  }

  .primary-navigation > a::after,
  .dropdown-toggle::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    padding: 8px 0 12px 14px;
    visibility: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transform: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .hero {
    min-height: 720px;
    background-position: 62% center;
  }

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

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

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand img {
    width: 158px;
  }

  .hero {
    min-height: 690px;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.3rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

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

  .service-card {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}