/* My Event Sathi: scoped header/footer styles. No external font or icon dependencies. */
:root {
  --mes-navy: #0d1b2e;
  --mes-gold: #f4b544;
  --mes-cream: #fcfaf5;
  --mes-line: #e8dfcc;
  --mes-muted: #5b6573;
  --mes-header-bg: #b5808a;
}
.mes-header,
.mes-footer {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
.mes-header *,
.mes-footer * {
  box-sizing: border-box;
}
.mes-container {
  width: min(1440px, calc(100% - 64px));
  margin-inline: auto;
}
.mes-header a,
.mes-footer a {
  text-decoration: none;
}
.mes-header a:focus-visible,
.mes-footer a:focus-visible,
.mes-header button:focus-visible {
  outline: 3px solid var(--mes-gold);
  outline-offset: 5px;
}

/* ══ Floating Navy Header ══ */

.mes-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--mes-navy);
  border-radius: 50px;
  padding: 20px 40px;
  box-shadow: 0 6px 36px rgba(0, 0, 0, 0.55);

  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  width: calc(100% - 100px);
  max-width: 1440px;
  box-sizing: border-box;

  border: 2px solid #d9a441 !important;
  isolation: isolate;
  border: 2px solid #d9a441 !important;
  border-radius: 50px;

  background: linear-gradient(110deg, #08182f 0%, #102746 50%, #08182f 100%);

  box-shadow:
    0 0 10px rgba(217, 164, 65, 0.35),
    0 0 25px rgba(217, 164, 65, 0.2),
    0 8px 35px rgba(0, 0, 0, 0.35);

  transition:
    box-shadow 0.4s ease,
    border-color 0.4s ease;

  animation: mes-header-glow 3s ease-in-out infinite;
  z-index: 99;
}

/* Animated Border */
.border-animetion {
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* Rotating Golden Glow */
.border-animetion::before {
  content: "";
  position: absolute;
  inset: -100%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    #ffb52e 305deg,
    #fff3a0 320deg,
    #ffffff 330deg,
    #ffb52e 340deg,
    transparent 360deg
  );
  animation: mes-border-rotate 4s linear infinite;
}

/* Keep animation only on the border */
.border-animetion::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: #0d1b3e;
  z-index: 1;
}

/* Rotation */
@keyframes mes-border-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Animated Gold Glow */
/* .mes-header-inner::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 2px solid rgba(255, 204, 92, 0.65);

    box-shadow:
        0 0 12px rgba(255, 190, 65, 0.65),
        0 0 25px rgba(217, 164, 65, 0.45),
        0 0 45px rgba(217, 164, 65, 0.20);

    opacity: 0.7;
    pointer-events: none;
    z-index: -1;

    animation: mes-border-pulse 2.5s ease-in-out infinite;
} */

/* Header Glow Animation */
/* @keyframes mes-header-glow {

    0%, 100% {
        box-shadow:
            0 0 8px rgba(217, 164, 65, 0.25),
            0 0 20px rgba(217, 164, 65, 0.15),
            0 8px 35px rgba(0, 0, 0, 0.35);
    }

    50% {
        box-shadow:
            0 0 15px rgba(255, 195, 75, 0.65),
            0 0 35px rgba(217, 164, 65, 0.40),
            0 0 55px rgba(217, 164, 65, 0.20),
            0 8px 35px rgba(0, 0, 0, 0.35);
    }
} */

/* Border Pulse */
@keyframes mes-border-pulse {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

/* Hover Effect */
.mes-header-inner:hover {
  border-color: #ffd477 !important;

  box-shadow:
    0 0 18px rgba(255, 196, 75, 0.65),
    0 0 40px rgba(217, 164, 65, 0.4),
    0 10px 40px rgba(0, 0, 0, 0.35);
}

/* Mobile Optimization: keep signature pill shape on all screens */
@media (max-width: 767px) {
  .mes-header-inner {
    border-radius: 50px;
    animation-duration: 3.5s;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .mes-header-inner,
  .mes-header-inner::before {
    animation: none !important;
  }
}
/* ══ Brand / Logo ══ */
.mes-brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  line-height: 1.1;
  color: #fff;
}
.mes-logo-image {
  display: block;
  max-width: 155px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.mes-wordmark {
  display: flex;
  flex-direction: column;
  font-size: 25px;
  letter-spacing: -1px;
  font-family: Georgia, serif;
}
.mes-wordmark-my {
  font-style: italic;
  color: var(--mes-gold);
  font-size: 15px;
  margin-left: 4px;
  margin-bottom: 2px;
}
.mes-wordmark b {
  display: inline-block;
  background: var(--mes-gold);
  padding: 2px 6px;
  color: var(--mes-navy);
  border-radius: 3px;
  transform: rotate(-4deg);
  font-family: Arial, sans-serif;
  letter-spacing: -1.5px;
}
.mes-wordmark i {
  color: var(--mes-gold);
  font-size: 27px;
}

/* ══ Navigation ══ */
.mes-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: 1;
}
.mes-menu,
.mes-footer-menu,
.mes-legal-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mes-menu {
  display: flex;
  align-items: center;
  gap: 0;
}
.mes-menu > li {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.mes-menu a {
  font-size: 12.5px;
  font-weight: 700;
  color: #b8c4d4;
  padding: 10px 14px;
  display: block;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.mes-menu a:hover {
  color: var(--mes-gold);
}
.mes-menu .current-menu-item > a {
  color: var(--mes-gold);
}
.mes-menu .current-menu-item > a::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--mes-gold);
  border-radius: 2px;
  margin: 3px auto 0;
}

/* ══ Header Actions (right) ══ */
.mes-header-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}
.mes-account-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #b8c4d4;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
}
.mes-account-link:hover {
  color: var(--mes-gold);
}
.mes-account-link svg {
  width: 17px;
  height: 17px;
}

/* ══ Buttons ══ */
.mes-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.mes-button-gold {
  background: var(--mes-gold);
  color: var(--mes-navy) !important;
  box-shadow: 0 2px 14px rgba(244, 181, 68, 0.35);
}
.mes-button-gold:hover {
  background: #ffc96d;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(244, 181, 68, 0.55);
}
.mes-button-outline {
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
}
.mes-button-outline:hover {
  border-color: var(--mes-gold) !important;
  color: var(--mes-gold) !important;
  transform: translateY(-2px);
}
/* Arrow circle icon inside the gold button */
.mes-button-gold span[aria-hidden] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--mes-navy);
  color: var(--mes-gold);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

/* ══ Mobile hamburger ══ */
.mes-menu-toggle {
  display: none;
}
.mes-submenu-toggle {
  background: none;
  border: 0;
  padding: 10px 6px;
  min-width: 32px;
  min-height: 44px;
  cursor: pointer;
  color: inherit;
}
.mes-submenu-toggle span {
  display: block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: rotate(45deg);
  margin: 0 auto 3px;
}

/* ══ Dropdown ══ */
.mes-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  padding: 10px 16px;
  margin: 0;
  list-style: none;
  background: #162444;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 2;
}
.mes-menu .sub-menu a {
  padding: 9px 0;
  font-weight: 400;
  color: #b8c4d4;
  text-transform: none;
  letter-spacing: 0;
}
.mes-menu .sub-menu a:hover {
  color: var(--mes-gold);
}
.mes-menu .is-submenu-open > .sub-menu {
  display: block;
}
/* Without JavaScript, nested links remain available */
html:not(.mes-js) .mes-menu .sub-menu {
  display: block;
  position: static;
  box-shadow: none;
}

/* ══ Skip link ══ */
.mes-skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10000;
  background: var(--mes-navy);
  color: #fff;
  padding: 12px 20px;
}
.mes-skip-link:focus {
  top: 12px;
}

/* ══════════════════════
   FOOTER (MyEventSathi Luxury Design)
══════════════════════ */
.mes-footer {
  background-image: url(../images/footer-background.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #c4d0df;
  position: relative;
  overflow: hidden;
  padding-top: 56px;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
}

.mes-footer:before {
  display: none;
}

.mes-footer .mes-container {
  position: relative;
  z-index: 2;
}

.mes-footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.05fr 1.15fr;
  gap: clamp(24px, 3.5vw, 48px);
  padding-bottom: 20px;
}

/* Brand Column */
.mes-footer-brand {
  display: inline-block;
  text-decoration: none !important;
  margin-bottom: 6px;
}

.mes-brand-combo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.mes-brand-flower-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.mes-brand-text {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1;
}

.mes-footer-tagline {
  font-size: 13px;
  color: #cbd5e1;
  margin: 4px 0 16px 0;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.mes-footer-desc {
  font-size: 14px;
  color: #c4d0df;
  line-height: 1.55;
  margin: 0 0 20px 0;
  max-width: 280px;
}

/* Social Buttons */
.mes-footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mes-social-square {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.25s ease;
  text-decoration: none !important;
}

.mes-social-square:hover {
  background: #e5a932;
  border-color: #e5a932;
  color: #031c30;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(229, 169, 50, 0.35);
}

/* Headings with Gold Underline */
.mes-footer-heading {
  color: #ffffff !important;
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  margin: 0 0 20px 0 !important;
  position: relative;
  display: inline-block;
  padding-bottom: 7px;
  letter-spacing: -0.2px;
}

.mes-footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  background-color: #e5a932;
  border-radius: 2px;
}

/* Footer Menus */
.mes-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mes-footer-menu li {
  margin-bottom: 12px;
}

.mes-footer-menu a {
  color: #c4d0df;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
  display: inline-block;
}

.mes-footer-menu a:hover {
  color: #e5a932;
  transform: translateX(3px);
}

/* Get the App Column */
.mes-footer-app-subtitle {
  font-size: 14px;
  color: #c4d0df;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.mes-footer-app-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mes-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 6px 14px;
  color: #ffffff !important;
  text-decoration: none !important;
  width: fit-content;
  min-width: 155px;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.mes-app-badge:hover {
  border-color: #e5a932;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.mes-store-icon {
  flex-shrink: 0;
}

.mes-app-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.mes-badge-sub {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #cbd5e1;
  font-weight: 500;
}

.mes-badge-main {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

/* Skyline Illustration */
.mes-footer-skyline-wrap {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: 10px;
}

.mes-footer-skyline {
  width: 100%;
  height: 50px;
}

/* Bottom Strip */
.mes-footer-bottom-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px 0;
  background: #031c30;
  position: relative;
  z-index: 2;
}

.mes-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: #9cb0c7;
}

.mes-footer-copy-text,
.mes-footer-love-text {
  margin: 0;
}

.mes-footer-love-text {
  color: #cbd5e1;
}

/* ══════════════════════
   RESPONSIVE
══════════════════════ */
@media (min-width: 1101px) {
  html:not(.mes-js) .mes-menu > li:hover > .sub-menu {
    display: block;
  }
}
@media (max-width: 1200px) {
  .mes-header-inner {
    gap: 16px;
  }
  .mes-menu a {
    padding: 10px 10px;
  }
  .mes-navigation {
    gap: 14px;
  }
  .mes-header-actions {
    gap: 12px;
  }
}
@media (max-width: 1100px) {
  /* Keep header bar as a sleek pill and float mobile nav as a dropdown below it */
  .mes-header-inner {
    min-height: 58px;
    width: calc(100% - 32px);
    padding: 8px 14px 8px 20px;
    top: 14px;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12px;
    border-radius: 50px;
    position: absolute;
    z-index: 101;
  }
  .mes-brand {
    position: relative;
    z-index: 102;
  }
  .mes-logo-image {
    max-height: 42px;
    max-width: 145px;
  }
  .mes-navigation {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100dvh - 92px);
    flex-basis: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    padding: 18px 20px 28px;
    background: linear-gradient(160deg, #08182f 0%, #102746 100%);
    border: 1.5px solid #d9a441;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    z-index: 98;
    overflow-y: auto;
  }
  .mes-js .mes-navigation {
    display: flex;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.28s ease,
      visibility 0.35s ease;
  }
  .mes-js .mes-navigation.is-open {
    display: flex;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .mes-js .mes-menu-toggle {
    position: relative;
    z-index: 102;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(217, 164, 65, 0.45);
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
  }
  .mes-hamburger {
    width: 18px;
    height: 12px;
    position: relative;
    border-top: 2px solid;
    border-bottom: 2px solid;
    transition: border-color 0.2s ease;
  }
  .mes-hamburger:before,
  .mes-hamburger:after {
    content: "";
    height: 2px;
    background: currentColor;
    position: absolute;
    left: 0;
    right: 0;
    top: 3px;
    transition: transform 0.25s ease;
  }
  /* Show X close icon when menu is open */
  .mes-menu-toggle[aria-expanded="true"] .mes-hamburger {
    border-top-color: transparent;
    border-bottom-color: transparent;
  }
  .mes-menu-toggle[aria-expanded="true"] .mes-hamburger:before {
    transform: rotate(45deg);
    top: 5px;
  }
  .mes-menu-toggle[aria-expanded="true"] .mes-hamburger:after {
    transform: rotate(-45deg);
    top: 5px;
  }
  .mes-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .mes-menu > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: space-between;
  }
  .mes-menu > li > a {
    flex: 1;
    padding: 12px 0;
  }
  .mes-menu .current-menu-item > a::after {
    margin: 4px 0 0;
  }
  .mes-menu .sub-menu {
    position: static;
    flex-basis: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 16px 10px;
    background: rgba(0, 0, 0, 0.2);
  }
  .mes-header-actions {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
  }
  .mes-footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 30px;
  }
  .mes-footer-brand-col {
    grid-column: 1 / -1;
  }
  .mes-footer-brand-col .mes-footer-desc {
    max-width: none;
  }
}
@media (max-width: 680px) {
  .mes-footer {
    padding-top: 44px;
  }
  .mes-footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 20px;
  }
  .mes-footer-brand-col,
  .mes-footer-app-col {
    grid-column: 1 / -1;
  }
  .mes-footer-app-badges {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .mes-footer-skyline {
    height: 40px;
  }
  .mes-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
@media (max-width: 600px) {
  .mes-container {
    width: calc(100% - 32px);
  }
  /* Keep mobile header pill-shaped and compact */
  .mes-header-inner {
    min-height: 52px;
    width: calc(100% - 24px);
    padding: 7px 10px 7px 16px;
    top: 12px;
    border-radius: 50px;
  }
  .mes-navigation {
    height: calc(100dvh - 82px);
  }
  .mes-logo-image {
    max-height: 36px;
    max-width: 130px;
  }
  .mes-wordmark {
    font-size: 22px;
  }
  .mes-wordmark i {
    font-size: 24px;
  }
  .mes-wordmark-my {
    font-size: 14px;
  }
  .mes-header-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .mes-account-link {
    min-height: 44px;
    justify-content: center;
  }
  .mes-header-actions .mes-button {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .mes-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .mes-footer-app-badges {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mes-button {
    transition: none;
  }
}

/* ══ Admin Bar Offset for Floating Pill Header ══ */
body.admin-bar .mes-header-inner {
  top: 52px;
}
@media (max-width: 782px) {
  body.admin-bar .mes-header-inner {
    top: 58px;
  }
}

/* ══ Responsive Header & Footer Refinements ══ */
@media (max-width: 1320px) {
  /* Give desktop nav extra horizontal room on 1101px-1320px laptops to prevent wrapping */
  .mes-header-inner {
    width: calc(100% - 48px);
    padding: 14px 24px;
  }
}

/* ══ Lock body fixed when mobile menu is open ══ */
body.mes-menu-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  touch-action: none;
}

/* ══ Hide RB Marketplace branding heading ══ */
.rbmv-heading {
  display: none !important;
}
