/* Global Font Definitions */
@font-face {
    font-family: 'Agrandir';
    src: url('/wp-content/themes/custom/fonts/Agrandir-Tight.otf') format('opentype');
    font-weight: normal;
  font-style: normal;
}

@font-face {
    font-family: 'Agrandir';
    src: url('/wp-content/themes/custom/fonts/Agrandir-TextBold.otf') format('opentype');
    font-weight: bold;
  font-style: normal;
}

/* Global Color Variables */
:root {
    --monger-primary-color: #0c463d;
    --monger-secondary-color: #ebf4d6;
}

/* Header Styles */
.monger-header {
    background-color: #ffffff;
    padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
    position: relative;
    max-width: 1413px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Logo Section */
.monger-header-logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.monger-header-logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.monger-header-logo {
    height: 32px;
    max-width: 180px !important;
    width: auto;
  object-fit: contain;
}

/* Navigation Section */
.monger-header-nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
  flex: 1;
    justify-content: center;
}

.monger-header-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.monger-header-nav-links li {
  position: relative;
}

.monger-header-nav-links a {
    color: #0c463d !important;
  text-decoration: none;
    font-size: 1.1rem;
    font-weight: normal;
    font-family: 'Agrandir', sans-serif;
    transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
    gap: 0.25rem;
}

.monger-header-nav-links a:hover {
    opacity: 0.7;
}

.monger-header-dropdown-icon {
    width: 12px;
    height: 12px;
    fill: #0c463d !important;
    stroke: #0c463d !important;
    transition: transform 0.2s ease;
}

.monger-header-nav-links li:hover .monger-header-dropdown-icon {
    transform: translateY(2px);
}

/* Dropdown Menu */
.monger-header-dropdown-menu {
  position: absolute;
    top: 100%;
  left: 0;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
  visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 1000;
}

.monger-header-nav-links li:hover .monger-header-dropdown-menu {
    opacity: 1;
  visibility: visible;
    transform: translateY(0);
}

.monger-header-dropdown-menu li {
  width: 100%;
}

.monger-header-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #0c463d !important;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: normal;
    font-family: 'Agrandir', sans-serif;
    transition: background-color 0.2s ease;
}

.monger-header-dropdown-menu a:hover {
    background-color: #ebf4d6;
    opacity: 1;
}

/* Right Section - Auth Buttons */
.monger-header-auth-section {
  display: flex;
  align-items: center;
    gap: 1.5rem;
  flex-shrink: 0;
}

.monger-header-sign-in-link {
    color: #0c463d !important;
  text-decoration: none;
    font-size: 1.1rem;
    font-weight: normal;
    font-family: 'Agrandir', sans-serif;
    transition: opacity 0.2s ease;
}

.monger-header-sign-in-link:hover {
    opacity: 0.7;
}

.monger-header-sign-up-button {
    background-color: #ebf4d6 !important;
    color: #0c463d !important;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-family: 'Agrandir', sans-serif;
  cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.monger-header-sign-up-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(12, 70, 61, 0.15);
}

.monger-header-arrow-icon {
    width: 18px;
    height: 18px;
    background-color: #0c463d !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}

.monger-header-arrow-icon svg {
    width: 10px;
    height: 10px;
    fill: #ebf4d6 !important;
    stroke: #ebf4d6 !important;
}

/* Mobile Auth Section - Hidden on Desktop */
.monger-header-mobile-auth-section {
    display: none;
}

/* Mobile Menu Toggle */
.monger-header-mobile-menu-toggle {
  display: none;
  flex-direction: column;
    gap: 4px;
    background: none !important;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    outline: none !important;
}

.monger-header-mobile-menu-toggle:focus,
.monger-header-mobile-menu-toggle:active,
.monger-header-mobile-menu-toggle:hover {
    background: transparent !important;
    outline: none !important;
}

.monger-header-mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: #0c463d !important;
    transition: all 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .monger-header-nav-container {
        gap: 1.5rem;
}

    .monger-header-nav-links {
        gap: 1.5rem;
}
}

@media (max-width: 768px) {
    .monger-header {
        padding: 1rem 1.5rem;
}

    .monger-header-mobile-menu-toggle {
        display: flex;
}

    .monger-header-nav-container {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 1000;
    }

    .monger-header-nav-container.active {
        display: flex;
    }

    .monger-header-nav-links {
        flex-direction: column;
  width: 100%;
        gap: 1rem;
}

    .monger-header-nav-links li {
  width: 100%;
}

    .monger-header-nav-links a {
  width: 100%;
        padding: 0.5rem 0;
}

    .monger-header-dropdown-menu {
        position: static;
    opacity: 0;
        visibility: hidden;
    max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        padding-left: 1.5rem;
        padding-top: 0;
        padding-bottom: 0;
        background-color: transparent;
        transition: opacity 0.3s ease, max-height 0.3s ease, padding 0.3s ease;
}

    .monger-header-nav-links li.monger-header-dropdown-active .monger-header-dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .monger-header-nav-links li.monger-header-dropdown-active .monger-header-dropdown-icon {
        transform: rotate(180deg);
}

    .monger-header-dropdown-menu a {
        padding: 0.5rem 0;
    }

    .monger-header-nav-links li.monger-header-has-dropdown > a {
        cursor: pointer;
}

    .monger-header-auth-section {
    display: none;
  }

    .monger-header-mobile-auth-section {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(12, 70, 61, 0.1);
  }

    .monger-header-mobile-auth-section .monger-header-sign-in-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
  }

    .monger-header-mobile-auth-section .monger-header-sign-up-button {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
    .monger-header {
        padding: 0.7rem 0.9rem;
  }

    .monger-header-logo {
        height: 26px;
  }

    .monger-header-nav-container {
        padding: 1.25rem;
  }

    .monger-header-nav-links {
        gap: 0.875rem;
  }

    .monger-header-nav-links a {
        font-size: 0.9rem;
        padding: 0.45rem 0;
  }

    .monger-header-mobile-auth-section {
        gap: 0.875rem;
        margin-top: 0.875rem;
        padding-top: 0.875rem;
  }

    .monger-header-mobile-auth-section .monger-header-sign-in-link {
        font-size: 0.875rem;
        padding: 0.7rem 0;
  }

    .monger-header-mobile-auth-section .monger-header-sign-up-button {
        padding: 0.7rem 0.9rem;
        font-size: 0.875rem;
  }

    .monger-header-arrow-icon {
        width: 15px;
        height: 15px;
  }

    .monger-header-mobile-menu-toggle {
        width: 32px;
        height: 32px;
  }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .monger-header {
        padding: 0.6rem 0.8rem;
  }

    .monger-header-logo {
        height: 24px;
  }

    .monger-header-nav-container {
        padding: 1rem;
  }

    .monger-header-nav-links {
        gap: 0.75rem;
  }

    .monger-header-nav-links a {
        font-size: 0.85rem;
  }

    .monger-header-mobile-auth-section {
        gap: 0.75rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
  }

    .monger-header-mobile-auth-section .monger-header-sign-up-button {
        padding: 0.65rem 0.8rem;
        font-size: 0.8rem;
  }

    .monger-header-mobile-auth-section .monger-header-sign-in-link {
        font-size: 0.8rem;
        padding: 0.65rem 0;
  }

    .monger-header-arrow-icon {
        width: 14px;
        height: 14px;
  }

    .monger-header-mobile-menu-toggle {
        width: 30px;
        height: 30px;
  }
}
