/* ==========================================================================
   Gloat Redesign Override — New Look & Feel
   Overrides existing header & footer styles to match 2026 Figma designs.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --g-navy: #121225;
  --g-navy-85: rgba(18, 18, 37, 0.85);
  --g-cream: #f1dfdb;
  --g-cream-95: rgba(241, 223, 219, 0.95);
  --g-cream-93: rgba(241, 223, 219, 0.93);
  --g-red: #ff4848;
  --g-red-85: rgba(255, 72, 72, 0.85);
  --g-font-mono: 'Roboto Mono', monospace;
  --g-font-serif: 'Prata', serif;
}

/* ==========================================================================
   HEADER — Desktop
   ========================================================================== */

.header {
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
}

.header .container {
  max-width: 1220px;
  margin: 25px auto 0;
  background-color: var(--g-navy-85);
  border: 1px solid var(--g-cream);
  height: 80px;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Remove the white scroll state — keep dark always */
.header.white .container,
.header.header-white .container {
  background-color: var(--g-navy-85) !important;
  box-shadow: none !important;
  border: 1px solid var(--g-cream);
}

.header.white,
.header.header-white {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Logo */
.header .logo {
  width: 63px;
  flex-shrink: 0;
}

.header .logo .logo-white {
  opacity: 1 !important;
}

.header .logo .logo-red {
  opacity: 0 !important;
}

.header.white .logo .logo-white,
.header.header-white .logo .logo-white {
  opacity: 1 !important;
}

.header.white .logo .logo-red,
.header.header-white .logo .logo-red {
  opacity: 0 !important;
}

/* Nav */
.header .nav {
  margin-left: auto;
  width: auto;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header .nav > ul {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: center;
}

.header .nav > ul > li {
  margin: 0;
  position: relative;
}

.header .nav > ul > li > a {
  color: var(--g-cream) !important;
  font-family: var(--g-font-mono);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.45px;
  padding: 10px 0;
  border-bottom: none !important;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.header .nav > ul > li:hover > a,
.header .nav > ul > li.active > a {
  color: var(--g-red) !important;
  border-bottom: none !important;
}

/* Chevron arrows on menu items with children */
.header .nav > ul > li:not(.nochild) > a::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 5px;
  margin-left: 6px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='5' viewBox='0 0 10 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 4L9 1' stroke='%23f1dfdb' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}

.header .nav > ul > li:not(.nochild):hover > a::after {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='5' viewBox='0 0 10 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L5 1L9 4' stroke='%23f1dfdb' stroke-width='1.2'/%3E%3C/svg%3E");
}

/* Overlay on hover — remove */
.header .nav > ul > li::before {
  display: none !important;
}

/* ---------- CTA Button ---------- */
.header .header__button {
  margin-left: 16px;
  display: flex !important;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header .header__button .btn {
  background-color: var(--g-red) !important;
  border: 1px solid var(--g-red) !important;
  color: #fff !important;
  font-family: var(--g-font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.45px;
  padding: 12px 30px;
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.header .header__button .btn:hover {
  background-color: #e03e3e !important;
  border-color: #e03e3e !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.header.white .header__button .btn,
.header.header-white .header__button .btn {
  background-color: var(--g-red) !important;
  border-color: var(--g-red) !important;
  color: #fff !important;
}

/* Burger — keep hidden on desktop */
.burger span {
  background: var(--g-cream) !important;
}

.header.white .burger span,
.header.header-white .burger span {
  background: var(--g-cream) !important;
}

/* ==========================================================================
   SUBMENUS — Desktop
   ========================================================================== */

.sub-menu {
  background-color: var(--g-cream-95) !important;
  border: 1px solid var(--g-navy) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  top: calc(100% + 10px);
  left: 0 !important;
  right: auto !important;
}

.sub-menu * {
  color: var(--g-navy) !important;
}

.sub-menu-type-col {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  padding: 0 !important;
  width: 544px !important;
  max-width: 544px !important;
  gap: 0;
}

.sub-menu-col-item {
  padding: 18px 17px !important;
  border: 1px solid var(--g-navy);
  transition: background-color 0.2s ease;
  display: flex !important;
  align-items: center;
  gap: 15px;
  min-height: 77px;
}

.sub-menu-col-item:hover {
  background-color: rgba(241, 223, 219, 1) !important;
}

/* Red dot bullet */
.sub-menu-col-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--g-red);
  flex-shrink: 0;
  display: block;
}

.sub-menu-col-item span,
.sub-menu-col-item .menulist span a,
.sub-menu-col-item h3 {
  font-family: var(--g-font-mono) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: var(--g-navy) !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
}

.sub-menu-col-item p {
  display: none !important;
}

.sub-menu-col-item .menulist {
  display: flex;
  align-items: center;
}

/* Dot submenu type */
.sub-menu-type-col-dot {
  grid-template-columns: repeat(2, 1fr) !important;
  width: 544px !important;
  max-width: 544px !important;
}

.sub-menu-type-col-dot h3 {
  padding-left: 0 !important;
}

.sub-menu-type-col-dot h3 span {
  display: none !important;
}

.sub-menu-type-col-dot .sub-menu-col-item .label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sub-menu-type-col-dot .sub-menu-col-item .label span {
  display: none !important;
}

.sub-menu-type-col-dot .sub-menu-col-item .label div {
  font-family: var(--g-font-mono) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
}

/* Vertical list submenu */
.vertical-list {
  grid-template-columns: repeat(2, 1fr) !important;
  width: 544px !important;
  max-width: 544px !important;
  padding: 0 !important;
}

.vertical-list .sub-menu-col-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  padding: 18px 17px !important;
  border: 1px solid var(--g-navy);
  border-bottom: 1px solid var(--g-navy) !important;
}

.vertical-list .sub-menu-col-item span {
  font-family: var(--g-font-mono) !important;
  font-size: 15px !important;
  color: var(--g-navy) !important;
}

.vertical-list .sub-menu-col-item span a {
  text-decoration: none !important;
  color: var(--g-navy) !important;
}

.vertical-list .sub-menu-col-item > p {
  display: none !important;
}

.vertical-list ul {
  display: none !important;
}

/* List + offer submenu */
.sub-menu-type-list-ofer {
  background-color: var(--g-cream-95) !important;
  border: 1px solid var(--g-navy) !important;
  width: auto !important;
}

.sub-menu-type-list-ofer .sub-menu-list {
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.sub-menu-type-list-ofer .sub-menu-list li {
  padding: 18px 17px;
  border: 1px solid var(--g-navy);
  min-height: 77px;
  display: flex;
  align-items: center;
  margin-top: 0 !important;
}

.sub-menu-type-list-ofer .sub-menu-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--g-red);
  flex-shrink: 0;
  margin-right: 15px;
}

.sub-menu-type-list-ofer .sub-menu-list a {
  font-family: var(--g-font-mono) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: var(--g-navy) !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
}

.sub-menu-type-list-ofer .sub-menu-list a:hover {
  text-decoration: none !important;
}

/* Hide offer sections in dropdowns */
.sub-menu-ofer {
  display: none !important;
}

/* Right-positioned listing submenu */
.sub-menu.right-position {
  width: 544px !important;
}

.sub-menu.right-position ul {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  padding: 0 !important;
}

.sub-menu.right-position ul li {
  padding: 18px 17px;
  border: 1px solid var(--g-navy);
  min-height: 77px;
  display: flex;
  align-items: center;
  margin-top: 0 !important;
}

.sub-menu.right-position ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--g-red);
  flex-shrink: 0;
  margin-right: 15px;
}

/* Subchildren in vertical list */
.subchildren .circle {
  display: none !important;
}

/* ==========================================================================
   HEADER — Mobile (max-width: 768px)
   ========================================================================== */

@media screen and (max-width: 768px) {
  .header {
    padding: 0 !important;
  }

  .header.header-white {
    padding: 0 !important;
    background-color: transparent !important;
  }

  .header .container {
    max-width: 100%;
    margin: 0;
    height: 70px;
    border: none;
    border-bottom: 1px solid var(--g-cream);
    padding: 0 25px;
    background-color: var(--g-navy-85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .header.white .container,
  .header.header-white .container {
    background-color: var(--g-navy-85) !important;
    border: none !important;
    border-bottom: 1px solid var(--g-cream) !important;
  }

  .header .logo {
    width: 47px !important;
    height: auto !important;
  }

  .header .logo .logo-white {
    opacity: 1 !important;
  }

  .header .logo .logo-red {
    opacity: 0 !important;
  }

  .header:hover .logo-red {
    opacity: 0 !important;
  }

  .burger {
    width: 25px !important;
    height: 16px !important;
    margin-bottom: 0 !important;
  }

  .burger span {
    background: var(--g-cream) !important;
    height: 2px !important;
    border-radius: 0 !important;
  }

  .header.header-white .burger span {
    background: var(--g-cream) !important;
  }

  /* Mobile nav panel */
  .header .nav {
    background-color: var(--g-cream-93) !important;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .nav__mob-top {
    background-color: var(--g-cream-93) !important;
    padding: 20px 25px !important;
    border-bottom: 1px solid rgba(18, 18, 37, 0.15);
  }

  .nav__mob-top .logo .logo-red {
    opacity: 1 !important;
  }

  .nav .close img {
    /* Keep existing close icon but tint */
    filter: brightness(0);
  }

  .header .nav > ul {
    padding: 35px 25px !important;
    gap: 0;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
  }

  .header .nav > ul > li {
    border-top: 1px solid rgba(18, 18, 37, 0.2) !important;
  }

  .header .nav > ul > li:first-child {
    border-top: none !important;
  }

  .header .nav > ul > li > a {
    color: var(--g-navy) !important;
    font-family: var(--g-font-mono) !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    padding: 20px 0 !important;
  }

  /* Chevron on mobile */
  .header .nav > ul > li:not(.nochild) > a::after {
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='5' viewBox='0 0 10 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 4L9 1' stroke='%23121225' stroke-width='1.2'/%3E%3C/svg%3E");
  }

  .header .nav > ul > li:not(.nochild)::after {
    display: none !important;
  }

  .header .nav > ul > li.active > a::before {
    display: none !important;
  }

  .header .nav > ul > li.active::after {
    display: none !important;
  }

  /* Mobile submenu items */
  .header .nav .sub-menu {
    background-color: transparent !important;
    border: none !important;
    margin: 0 0 10px 25px !important;
  }

  .header .nav .sub-menu-type-col,
  .header .nav .vertical-list {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .header .nav .sub-menu-col-item {
    border: none !important;
    padding: 12px 0 !important;
    min-height: auto;
    gap: 15px;
  }

  .header .nav .sub-menu-col-item::before {
    width: 5px;
    height: 5px;
  }

  .header .nav .sub-menu-col-item span,
  .header .nav .sub-menu-col-item .menulist span a,
  .header .nav .sub-menu-col-item h3 {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--g-navy) !important;
  }

  .header .nav .sub-menu-col-item p {
    display: block !important;
    font-family: var(--g-font-mono) !important;
    font-size: 12px !important;
    color: var(--g-navy) !important;
    opacity: 0.7;
    margin: 4px 0 0 !important;
    line-height: 1.45 !important;
  }

  /* Mobile list submenus */
  .header .nav .sub-menu-type-list-ofer {
    border: none !important;
    flex-direction: column;
  }

  .header .nav .sub-menu-type-list-ofer .sub-menu-list {
    grid-template-columns: 1fr !important;
  }

  .header .nav .sub-menu-type-list-ofer .sub-menu-list li {
    border: none !important;
    padding: 12px 0 !important;
    min-height: auto;
  }

  .header .nav .sub-menu-type-list-ofer .sub-menu-list a {
    font-size: 16px !important;
    font-weight: 500 !important;
  }

  .header .nav .sub-menu.right-position {
    width: 100% !important;
  }

  .header .nav .sub-menu.right-position ul {
    grid-template-columns: 1fr !important;
  }

  .header .nav .sub-menu.right-position ul li {
    border: none !important;
    padding: 12px 0 !important;
    min-height: auto;
  }

  /* Vertical list on mobile */
  .header .nav .vertical-list .sub-menu-col-item {
    flex-direction: row !important;
    border: none !important;
    border-bottom: none !important;
  }

  .header .nav .vertical-list ul {
    display: none !important;
  }

  /* Mobile CTA */
  .header__button-mobile {
    padding: 0 25px 35px !important;
  }

  .header__button-mobile .btn {
    display: block !important;
    width: 100% !important;
    background-color: var(--g-red) !important;
    border: 1px solid var(--g-red) !important;
    color: #fff !important;
    font-family: var(--g-font-mono) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0.45px;
    text-align: center;
    padding: 12px 30px !important;
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
  }
}

/* ==========================================================================
   FOOTER — Desktop
   ========================================================================== */

.footer {
  background-color: var(--g-navy) !important;
  padding: 60px 0 40px !important;
  position: relative;
  overflow: hidden;
}

.footer .container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer .row {
  display: flex !important;
  justify-content: space-between !important;
  margin-top: 0 !important;
  gap: 40px;
}

/* Footer logo */
.footer .footer__logo {
  width: 80px !important;
}

.footer .footer__logo img {
  filter: brightness(0) invert(1);
}

/* Footer social */
.footer .footer__social {
  margin-top: 20px !important;
  gap: 10px !important;
}

.footer .footer__social a {
  border: 1px solid var(--g-cream) !important;
  width: 30px !important;
  height: 30px !important;
  color: var(--g-cream) !important;
  transition: opacity 0.2s ease;
}

.footer .footer__social a:hover {
  opacity: 0.7;
}

.footer .footer__social i {
  font-size: 14px !important;
  color: var(--g-cream) !important;
}

/* Footer search — hide */
.footer .footer__search {
  display: none;
}

/* Footer menus */
.footer .footer__menu {
  padding: 0 !important;
  width: auto !important;
}

.footer .footer__menu--title {
  font-family: var(--g-font-mono) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--g-cream) !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2 !important;
  margin-bottom: 20px;
}

.footer .footer__menu li {
  margin-bottom: 12px !important;
}

.footer .footer__menu a {
  font-family: var(--g-font-mono) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--g-cream) !important;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  line-height: 1.4 !important;
}

.footer .footer__menu a:hover {
  opacity: 1;
  text-decoration: none !important;
}

/* Footer bottom */
.footer .footer__bottom {
  margin-top: 50px !important;
  font-family: var(--g-font-mono) !important;
  font-size: 12px !important;
  color: var(--g-cream) !important;
  opacity: 0.6;
  text-align: center;
}

.footer .footer__bottom a {
  color: var(--g-cream) !important;
}

/* Decorative images — hide old ones */
.footer .footer__img-decorative {
  display: none;
}

.footer .footer__img-bottom {
  display: none;
}

/* ==========================================================================
   FOOTER — Mobile
   ========================================================================== */

@media screen and (max-width: 769px) {
  .footer {
    padding: 40px 0 30px !important;
  }

  .footer .container {
    padding: 0 25px;
  }

  .footer .row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 30px;
    margin-top: 0 !important;
  }

  .footer .footer__first-col {
    margin-right: 0 !important;
    width: 100% !important;
    display: flex;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    flex-direction: column !important;
    margin-bottom: 10px !important;
  }

  .footer .footer__logo {
    width: 60px !important;
  }

  .footer .footer__social {
    margin-top: 15px !important;
    gap: 8px !important;
  }

  .footer .footer__social a {
    width: 28px !important;
    height: 28px !important;
    border: 1px solid var(--g-cream) !important;
  }

  .footer .footer__social i {
    font-size: 12px !important;
  }

  .footer .footer__menu {
    width: 100% !important;
    padding: 0 !important;
  }

  .footer .footer__menu:not(:first-child) {
    margin-top: 0 !important;
  }

  .footer .footer__menu--title {
    font-size: 13px !important;
    margin-bottom: 15px;
  }

  .footer .footer__menu li {
    margin-bottom: 10px !important;
  }

  .footer .footer__menu li:not(:first-child) {
    margin-top: 0 !important;
  }

  .footer .footer__menu a {
    font-size: 13px !important;
  }

  .footer .footer__bottom {
    margin-top: 30px !important;
    font-size: 11px !important;
    text-align: left;
  }
}

/* ==========================================================================
   PAGE-LEVEL — Ensure body/content has enough top padding for floating header
   ========================================================================== */

.page > header + * {
  /* Account for floating header */
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}
