/* VARIABLES */
:root {
  --color-white: #fff;
  --color-black: #333;
  --brand-primary: #1a4d7c;
  --brand-primary-dark: #143d62;
  --brand-secondary: #9c4ed8;
  --brand-accent: #38c6e9;
  --brand-orange: #f97316;

  --font-primary: "Sora", sans-serif;
  --font-secondary: "Outfit", sans-serif;
}

html {
  font-size: 10px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-white);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-black);
  line-height: 1.2;
}

.container {
  display: block;
  max-width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .container {
    max-width: 1200px;
  }
}

/* Sticky header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.3s ease;
}

.header__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: transparent;
  transition: all 0.3s ease;

  @media (max-width: 991px) {
    padding: 15px 20px;
  }

  @media (max-width: 767px) {
    padding: 16px 15px;
  }
}

/* Scrolled state */
.header.scrolled .header__wrapper {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 12px 40px;

  @media (max-width: 991px) {
    padding: 12px 20px;
  }

  @media (max-width: 767px) {
    padding: 12px 15px;
  }
}

/* Dark header variant for pages with colored hero */
.header--dark .header__logo img {
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.header--dark .header__links a {
  color: rgba(255, 255, 255, 0.9);
}

.header--dark .header__links a:hover {
  color: var(--color-white);
}

.header--dark .header__links a.active {
  color: var(--color-white);
}

.header--dark .header__link--highlight {
  color: var(--color-white) !important;
}

.header--dark .header__link--highlight::after {
  background: rgba(255, 255, 255, 0.6);
}

.header--dark .c-btn-primary {
  background: var(--color-white);
  color: var(--brand-primary);
}

.header--dark .c-btn-primary:hover {
  background: var(--brand-orange);
  color: var(--color-white);
}

.header--dark .header__hamburger-line {
  background-color: var(--color-white);
}

/* Dark header scrolled - revert to normal */
.header--dark.scrolled .header__logo img {
  filter: none;
}

.header--dark.scrolled .header__links a {
  color: var(--color-black);
}

.header--dark.scrolled .header__links a:hover {
  color: var(--brand-orange);
}

.header--dark.scrolled .header__links a.active {
  color: var(--brand-orange);
}

.header--dark.scrolled .header__link--highlight {
  color: var(--brand-primary) !important;
}

.header--dark.scrolled .header__link--highlight::after {
  background: var(--brand-orange);
}

.header--dark.scrolled .c-btn-primary {
  background: var(--brand-primary);
  color: var(--color-white);
}

.header--dark.scrolled .c-btn-primary:hover {
  background: var(--brand-orange);
}

.header--dark.scrolled .header__hamburger-line {
  background-color: var(--brand-primary);
}

.header__links {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: center;

  @media (max-width: 991px) {
    gap: 20px;
  }

  @media (max-width: 767px) {
    gap: 32px;
    flex-direction: column;
  }
}

.header__links a {
  color: var(--color-black);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  transition: all 0.3s ease;

  @media screen and (max-width: 767px) {
    font-weight: 700;
    font-size: 24px;
    padding: 5px;
    /* color: var(--color-white); */
  }
}

.header__links a:hover {
  color: var(--brand-orange);
}

.header__links a.active {
  color: var(--brand-orange);
  font-weight: 600;
}

/* Highlighted nav link (Become a Vendor) */
.header__link--highlight {
  color: var(--brand-primary) !important;
  font-weight: 600 !important;
  position: relative;
}

.header__link--highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-orange);
  border-radius: 2px;
}

.header__link--highlight:hover {
  color: var(--brand-orange) !important;
}

.header__link--highlight.active {
  color: var(--brand-orange) !important;
}

.header__logo a {
  color: var(--brand-primary);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  transition: all 0.3s ease;

  @media screen and (max-width: 767px) {
    font-size: 22px;

    img {
      width: 70px;
    }
  }
}

.header__options {
  display: flex;
  align-items: center;
  gap: 15px;
}

.c-btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background-color: var(--brand-primary);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;

  @media screen and (max-width: 767px) {
    padding: 10px 28px;
    font-size: 14px;
  }

  &:hover {
    background-color: var(--brand-orange);
  }
}

.hamburger__wrapper {
  height: 100%;
}

.header__hamburger {
  width: 30px;
  height: 30px;
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  z-index: 15;
}

.header__hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--brand-primary);
  transition: all 0.3s ease;
  display: block;
  border-radius: 50px;
}

.hamburger__menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-white);
  padding: 20px 15px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
}

.hamburger__menu.active {
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
}

.hamburger__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
}

.header__hamburger.active {
  gap: 0;
}

.header__hamburger.active .header__hamburger-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.header__hamburger.active .header__hamburger-line:nth-of-type(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}
