:root {
  --navy-950: #071525;
  --navy-900: #0b1f3a;
  --navy-800: #102b4d;

  --blue-700: #075ca8;
  --blue-600: #0b6abd;
  --blue-500: #1687d8;

  --amber: #f2a900;

  --white: #ffffff;
  --off-white: #f6f8fb;
  --light-blue: #edf5fc;

  --text: #1a2635;
  --muted: #667587;
  --border: #dfe6ee;

  --container: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

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

/* GLOBAL NAVBAR */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.nav-wrapper {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 34px;
}

/* LOGO */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--amber);
  color: var(--navy-950);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.logo-image {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}
.logo-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}
.logo-name {
  color: var(--white);
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo-tagline {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

/* NAVIGATION */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 33px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s ease;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

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

/* NAV CTA */
.nav-cta {
  min-height: 44px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: var(--amber);
  color: var(--navy-950);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: #ffc238;
}

/* MOBILE MENU BUTTON */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--white);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* MOBILE NAV */
@media (max-width: 850px) {
  .nav-wrapper {
    min-height: 72px;
    position: relative;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: 100%;
    padding: 18px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--navy-950);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 999;
  }

  .main-nav.is-open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .main-nav .nav-link {
    width: 100%;
    padding: 12px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .nav-link {
    padding: 15px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    display: none;
  }

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

  .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);
  }
}

/* GLOBAL FOOTER */
.site-footer {
  background: var(--navy-950);
  color: var(--white);
}

/* FOOTER LOGO */
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-logo .logo-image {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

.footer-logo .logo-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.footer-logo .logo-name {
  color: var(--white);
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.footer-logo .logo-tagline {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

/* FOOTER MAIN */
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 70px;
  padding: 70px 0;
}

.footer-brand {
  max-width: 400px;
}

.footer-brand p {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  line-height: 1.8;
}

/* FOOTER COLUMNS */
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-column h4 {
  margin-bottom: 9px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-column a,
.footer-column span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--amber);
}

/* FOOTER BOTTOM */
.footer-bottom {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.43);
  font-size: 13px;
}

/* FOOTER RESPONSIVE */
@media (max-width: 1000px) {
  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .main-nav {
    gap: 22px;
  }

  .nav-link {
    font-size: 13px;
  }

  .footer-main {
    gap: 45px;
  }
}

@media (max-width: 850px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px 25px;
    padding: 55px 0;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .logo-image {
    width: 45px;
    height: 45px;
  }

  .logo-name {
    font-size: 20px;
  }

  .logo-tagline {
    font-size: 7px;
    letter-spacing: 1.3px;
  }

  .container {
    width: calc(100% - 30px);
  }

  .footer-logo .logo-image {
    width: 45px;
    height: 45px;
  }
  .footer-logo .logo-name {
    font-size: 20px;
  }
  .footer-logo .logo-tagline {
    font-size: 7px;
    letter-spacing: 1.3px;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .footer-brand {
    grid-column: auto;
  }
  .footer-bottom {
    min-height: auto;
    padding: 22px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* ---------- BACK TO TOP BUTTON ---------- */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy-950);
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease,
    background 0.25s ease;
  box-shadow: 0 10px 30px rgba(7, 21, 37, 0.18);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #ffc238;
  transform: translateY(-3px);
}

@media (max-width: 650px) {
  .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
}
