/* Sri Rudrani Sri Vidya Ashram
   Navigation Stylesheet */

#site-header,
#site-footer {
    display: block;
}

#site-header:empty {
    min-height: 7.45rem;
}

#site-footer:empty {
    min-height: 6.6rem;
}

.site-header,
.site-footer {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    font-family: Georgia, "Times New Roman", serif;
}

.site-header {
    position: relative;
    z-index: 20;
    padding: 0.55rem clamp(1rem, 4vw, 4.5rem) 0.7rem;
    overflow: hidden;
    color: #56341c;
    background:
        radial-gradient(circle at 50% -30%, rgba(255, 255, 255, 0.98), transparent 29rem),
        url("../assets/images/vision/vision-ivory-stone-grain.svg") repeat,
        linear-gradient(180deg, #fff7e6 0%, #f7e3b7 100%);
    border-bottom: 1px solid rgba(177, 111, 27, 0.52);
    box-shadow: 0 5px 18px rgba(93, 58, 16, 0.08);
    text-align: center;
}

.site-branding {
    width: min(100%, 1420px);
    margin: 0 auto 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.site-branding__logo {
    display: block;
    width: auto;
    height: 4.15rem;
    flex: 0 0 auto;
    border: 1px solid rgba(168, 106, 33, 0.38);
    box-shadow: 0 2px 7px rgba(94, 47, 19, 0.1);
}

.site-branding__wordmark {
    min-width: 0;
    display: grid;
    justify-items: center;
}

.site-branding__title {
    margin: 0;
    color: #7a1f2d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 2.45vw, 2.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0.018em;
}

.site-branding__subtitle {
    margin: 0.14rem 0 0;
    color: #8e5b20;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-size: clamp(0.58rem, 0.78vw, 0.7rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}

.site-header nav {
    width: min(100%, 1420px);
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.site-header nav ul {
    width: auto;
    max-width: min(100%, 54rem);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem clamp(1.05rem, 2vw, 1.45rem);
}

.site-header nav li {
    flex: 0 0 auto;
}

nav a {
    color: inherit;
    font-size: 0.93rem;
    font-weight: normal;
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.4em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

nav a[aria-current="page"] {
    color: #ffe1a3;
    text-decoration-color: #d4af37;
}

nav a:hover {
    color: #e5bd68;
    text-decoration-color: rgba(229, 189, 104, 0.72);
}

nav a:focus-visible {
    outline: 2px solid #e5bd68;
    outline-offset: 4px;
}

.site-header nav a {
    display: inline-block;
    color: #674424;
    font-size: 0.78rem;
    line-height: 1.35;
    white-space: nowrap;
    text-underline-offset: 0.48em;
}

.site-header nav a[aria-current="page"] {
    color: #7a1f2d;
    text-decoration-color: #c88838;
}

.site-header nav a:hover {
    color: #a86a21;
    text-decoration-color: rgba(168, 106, 33, 0.62);
}

.site-header :focus-visible,
.site-footer :focus-visible {
    outline: 2px solid #a8651e;
    outline-offset: 4px;
}

.site-footer {
    margin-top: 0;
    padding: 0.65rem clamp(1rem, 4vw, 4.5rem) 0.55rem;
    color: #6a3b15;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 249, 211, 0.55), transparent 48%),
        #edbd43;
    border-top: 1px solid rgba(174, 112, 20, 0.42);
    box-shadow: 0 10px 30px rgba(71, 48, 20, 0.12);
    text-align: center;
}

.site-footer nav ul {
    justify-content: center;
    margin: 0;
}

.site-footer nav a,
.site-footer nav a[aria-current="page"] {
    color: #6c3a14;
}

.site-footer nav a[aria-current="page"],
.site-footer nav a:hover {
    color: #6c3a14;
    text-decoration-color: #8c5418;
}

footer nav a[aria-current="page"],
footer nav a:hover {
    color: var(--color-secondary);
    text-decoration-color: var(--color-secondary);
}

footer nav a:focus-visible {
    outline-color: var(--color-secondary);
}

.site-footer .footer-name {
    margin: 0.35rem 0 0.04rem;
    color: #713813;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-size: clamp(1.25rem, 1.8vw, 1.45rem);
    line-height: 1.28;
}

.site-footer .footer-dedication {
    margin: 0;
    color: rgba(92, 49, 17, 0.76);
    font-size: 0.78rem;
    line-height: 1.7;
}

@media (max-width: 920px) {
    .site-header,
    .site-footer {
        box-shadow: none;
    }

    .site-branding__logo {
        height: 3.75rem;
    }

    .site-header nav ul,
    .site-footer nav ul {
        max-width: 42rem;
        margin-right: auto;
        margin-left: auto;
        flex-direction: row;
        gap: 0.38rem clamp(0.85rem, 2.2vw, 1.15rem);
    }
}

@media (max-width: 720px) {
    #site-header:empty,
    #site-footer:empty {
        min-height: 8.35rem;
    }

    .site-header {
        padding: 0.55rem 0.85rem 0.68rem;
    }

    .site-branding {
        max-width: 100%;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.6rem;
    }

    .site-branding__wordmark {
        max-width: calc(100% - 3rem);
    }

    .site-branding__logo {
        height: 3.25rem;
    }

    .site-branding__title {
        max-width: 100%;
        font-size: clamp(1.3rem, 5.8vw, 1.7rem);
        overflow-wrap: anywhere;
    }

    .site-branding__subtitle {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .site-header nav ul {
        width: auto;
        max-width: min(100%, 28rem);
        display: flex;
        gap: 0.34rem 0.78rem;
    }

    .site-header nav a {
        font-size: 0.72rem;
        line-height: 1.3;
    }
}

@media (max-width: 440px) {
    .site-header {
        padding-top: 0.28rem;
        padding-bottom: 0.34rem;
    }

    .site-branding {
        margin-bottom: 0.08rem;
    }

    .site-branding__logo {
        height: 2.8rem;
    }

    .site-branding__title {
        font-size: clamp(1.22rem, 6vw, 1.5rem);
    }

    .site-branding__subtitle {
        margin-top: 0.06rem;
        font-size: 0.52rem;
        letter-spacing: 0.11em;
    }

    .site-header nav ul {
        width: auto;
        max-width: min(100%, 19.75rem);
        gap: 0.12rem 0.68rem;
    }

    .site-header nav a {
        font-size: 0.69rem;
        line-height: 1.18;
    }
}

@media (max-width: 380px) {
    .site-header nav ul {
        gap: 0.12rem 0.56rem;
    }

    .site-header nav a {
        font-size: 0.67rem;
    }
}
