/* =========================================================
   DEHRADUN PUBLIC SCHOOL - NAVBAR
========================================================= */

:root {
    --dps-navy: #09283a;
    --dps-navy-dark: #061d2b;
    --dps-gold: #d7a94d;
    --dps-gold-light: #e8c77d;
    --dps-text: #102b3d;
    --dps-white: #ffffff;
}


/* =========================================================
   GLOBAL
========================================================= */

.dps-navbar {
    width: 100%;
    position: relative;
    z-index: 9999;
    background: var(--dps-white);
    font-family: Arial, Helvetica, sans-serif;
}

.dps-container {
    width: min(100% - 90px, 1440px);
    margin: 0 auto;
}


/* =========================================================
   TOP BAR
========================================================= */

.dps-topbar {
    height: 32px;
    background: var(--dps-navy);
    color: #fff;
}

.dps-topbar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dps-top-left,
.dps-top-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.dps-top-left {
    gap: 12px;
}

.dps-top-left a,
.dps-top-right a {
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    line-height: 1;
    transition: color 0.2s ease;
}

.dps-top-left a:hover,
.dps-top-right a:hover {
    color: var(--dps-gold-light);
}

.dps-top-icon {
    font-size: 11px;
    margin-right: 5px;
}

.dps-top-divider {
    width: 1px;
    height: 13px;
    background: rgba(255, 255, 255, 0.3);
}

.dps-top-right {
    gap: 9px;
}

.dps-top-right > span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
}

.dps-search-btn {
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    padding: 0;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
}


/* =========================================================
   MAIN NAV
========================================================= */

.dps-mainnav {
    height: 68px;
    background: #fff;
    border-bottom: 1px solid #eeeeee;
}

.dps-mainnav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   LOGO
========================================================= */

.dps-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dps-navy);
    flex-shrink: 0;
}

.dps-logo-emblem {
    width: 43px;
    height: 52px;
    border: 2px solid var(--dps-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dps-gold);
    position: relative;
    clip-path: polygon(
        50% 0,
        100% 14%,
        91% 72%,
        50% 100%,
        9% 72%,
        0 14%
    );
}

.dps-logo-emblem span {
    font-size: 20px;
    transform: translateY(-1px);
}

.dps-logo-text {
    line-height: 1;
}

.dps-logo-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    letter-spacing: 0.4px;
    color: var(--dps-navy);
}

.dps-logo-subtitle {
    margin-top: 3px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 9px;
    letter-spacing: 1px;
    color: #243f50;
}

.dps-logo-tagline {
    margin-top: 5px;
    font-size: 6px;
    letter-spacing: 1.4px;
    color: #777;
}


/* =========================================================
   DESKTOP MENU
========================================================= */

.dps-desktop-menu {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.dps-desktop-menu > a {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;

    color: var(--dps-text);
    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.dps-desktop-menu > a:not(.dps-enquire-btn)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--dps-gold);
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.dps-desktop-menu > a:not(.dps-enquire-btn):hover,
.dps-desktop-menu > a.active {
    color: var(--dps-navy);
}

.dps-desktop-menu > a:not(.dps-enquire-btn):hover::after,
.dps-desktop-menu > a.active::after {
    width: 100%;
}


/* =========================================================
   ENQUIRE BUTTON
========================================================= */

.dps-enquire-btn {
    height: auto !important;
    min-width: 118px;
    padding: 13px 21px;

    justify-content: center;

    background: var(--dps-gold);
    color: #172d3b !important;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.dps-enquire-btn:hover {
    background: var(--dps-gold-light);
    transform: translateY(-1px);
}


/* =========================================================
   MOBILE TOGGLE
========================================================= */

.dps-mobile-toggle {
    display: none;

    width: 44px;
    height: 44px;

    border: 1px solid #e2e2e2;
    background: #fff;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;

    cursor: pointer;
}

.dps-mobile-toggle span {
    width: 20px;
    height: 2px;
    background: var(--dps-navy);
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


/* Hamburger -> X */

.dps-mobile-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.dps-mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}

.dps-mobile-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   MOBILE MENU
========================================================= */

.dps-mobile-menu {
    display: none;
    background: #fff;
    border-top: 1px solid #eeeeee;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.dps-mobile-menu nav {
    display: flex;
    flex-direction: column;
}

.dps-mobile-menu nav > a {
    padding: 15px 25px;
    border-bottom: 1px solid #eeeeee;

    color: var(--dps-text);
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.dps-mobile-menu nav > a:hover,
.dps-mobile-menu nav > a.active {
    background: #faf7ef;
    color: var(--dps-navy);
}

.dps-mobile-enquire {
    margin: 15px 20px;
    padding: 13px 20px !important;

    background: var(--dps-gold);
    border: 0 !important;

    text-align: center;
}

.dps-mobile-extra {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #eee;
}

.dps-mobile-extra a {
    padding: 13px 20px;
    color: #53616a;
    text-decoration: none;
    font-size: 12px;
    border-bottom: 1px solid #eee;
}

.dps-mobile-extra a:nth-child(odd) {
    border-right: 1px solid #eee;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1100px) {

    .dps-container {
        width: min(100% - 45px, 1440px);
    }

    .dps-desktop-menu {
        gap: 20px;
    }

    .dps-desktop-menu > a {
        font-size: 12px;
    }

    .dps-enquire-btn {
        min-width: 105px;
        padding: 12px 15px;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 800px) {

    .dps-container {
        width: calc(100% - 30px);
    }

    /* Hide top bar on mobile */
    .dps-topbar {
        display: none;
    }

    .dps-mainnav {
        height: 72px;
    }

    .dps-desktop-menu {
        display: none;
    }

    .dps-mobile-toggle {
        display: flex;
    }

    .dps-logo-emblem {
        width: 38px;
        height: 47px;
    }

    .dps-logo-title {
        font-size: 16px;
    }

    .dps-logo-subtitle {
        font-size: 8px;
    }

    .dps-logo-tagline {
        font-size: 5px;
        letter-spacing: 1px;
    }

    .dps-mobile-menu.show {
        display: block;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .dps-container {
        width: calc(100% - 24px);
    }

    .dps-mainnav {
        height: 68px;
    }

    .dps-logo {
        gap: 7px;
    }

    .dps-logo-emblem {
        width: 34px;
        height: 42px;
    }

    .dps-logo-emblem span {
        font-size: 17px;
    }

    .dps-logo-title {
        font-size: 14px;
    }

    .dps-logo-subtitle {
        font-size: 7px;
        letter-spacing: 0.7px;
    }

    .dps-logo-tagline {
        margin-top: 4px;
        font-size: 4.5px;
    }

    .dps-mobile-toggle {
        width: 40px;
        height: 40px;
    }

    .dps-mobile-menu nav > a {
        padding: 14px 20px;
    }
}