
/* =========================================
   GLOBAL
========================================= */

html {
    font-size: 14px;
    height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    color: #4a4a4a;
    margin: 0;
}

main {
    flex: 1 0 auto;
    position: relative;
}

.site-footer {
    flex-shrink: 0;
}

:root {
    --brand-maroon: #7c1f3d;
    --brand-purple: #3a2258;
    --brand-orange: #e0692f;
    --bg-soft: #f4f4f2;
    --footer-yellow: #eebd24;
    --footer-olive: #7c8a43;
}

/* Focus states */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* =========================================
   NAVBAR
========================================= */

.site-navbar {
    border-bottom: 3px solid var(--brand-purple);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.site-brand {
    display: flex;
    align-items: center;
    margin-right: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand-purple);
    gap: 0.6rem;
}

.site-logo {
/*    height: 100px;*/
    width: auto;
    max-width: 180px;
    display: block;
    object-fit: contain;
}

.navbar-toggler {
    border-color: var(--brand-purple);
    margin-left: auto;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(58, 34, 88, 0.25);
    }

.navbar-nav {
    gap: 0.5rem;
}

    .navbar-nav .nav-link {
        font-family: 'Poppins', sans-serif;
        font-weight: 500;
        font-size: 1.15rem;
        color: var(--brand-purple);
        padding: 0.6rem 0.9rem;
        position: relative;
        transition: color 0.2s ease;
    }

        .navbar-nav .nav-link::after {
            content: '';
            position: absolute;
            left: 0.9rem;
            right: 0.9rem;
            bottom: 0.35rem;
            height: 2px;
            background: var(--brand-orange);
            transform: scaleX(0);
            transform-origin: center;
            transition: transform 0.2s ease;
        }

        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link:focus,
        .navbar-nav .nav-link.active {
            color: var(--brand-orange);
        }

            .navbar-nav .nav-link:hover::after,
            .navbar-nav .nav-link.active::after {
                transform: scaleX(1);
            }

    .navbar-nav .dropdown-toggle::after {
        vertical-align: 0.15em;
        border-top-color: var(--brand-purple);
        transition: transform 0.2s ease;
    }

    .navbar-nav .dropdown-toggle:hover::after {
        border-top-color: var(--brand-orange);
    }

    .navbar-nav .dropdown.show .dropdown-toggle::after {
        transform: rotate(180deg);
    }

.dropdown-menu {
    border: none;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--brand-purple);
    padding: 0.55rem 1.25rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: var(--bg-soft);
        color: var(--brand-orange);
    }

/* =========================================
   HERO
========================================= */

.page-hero {
    background-color: var(--brand-maroon);
    background-image: radial-gradient( circle at 0% 50%, rgba(255, 255, 255, 0.06) 38px, transparent 39px ), radial-gradient( circle at 100% 50%, rgba(255, 255, 255, 0.06) 38px, transparent 39px );
    background-size: 76px 76px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

    .page-hero h1 {
        color: #fff;
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 2.25rem;
        margin: 0;
        padding: 0 1rem;
    }

/* =========================================
   MAIN CONTENT
========================================= */

.content-card {
    position: relative;
    z-index: 2;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--footer-yellow);
    font-family: 'Inter', sans-serif;
}

    /* Yellow main footer */
    .site-footer .footer-main {
        position: relative;
        display: block;
        padding: 35px 0 85px;
        background: var(--footer-yellow);
    }

        /* Match content to a common centered width */
        .site-footer .footer-main > .container {
            width: 100%;
            max-width: 1240px;
            margin: 0 auto;
            padding-left: 24px;
            padding-right: 24px;
        }

    /* Logo/description left, social icons right */
    .site-footer .footer-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        width: 100%;
        position: relative;
        z-index: 2;
    }

    /* Logo and text grouped closely together */
    .site-footer .footer-left {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 16px;
        flex: 0 1 auto;
        min-width: 0;
        max-width: 650px;
        margin: 0;
        text-align: left;
    }

    /* Logo */
    .site-footer .footer-logo {
        display: block;
        width: 90px;
        height: 90px;
        max-width: 90px;
        object-fit: contain;
        flex: 0 0 90px;
        margin: 0;
    }

    /* Description beside logo */
    .site-footer .footer-description {
        display: block;
        margin: 0;
        padding: 0;
        color: #fff;
        font-family: 'Inter', sans-serif;
        font-size: 13px;
        line-height: 1.7;
        font-weight: 500;
        letter-spacing: 0;
        text-align: left;
    }

        .site-footer .footer-description strong {
            display: block;
            color: #fff;
            font-family: 'Poppins', sans-serif;
            font-size: 14px;
            font-weight: 600;
            line-height: 1.5;
            margin: 0 0 4px;
        }

    /* =========================================
   SOCIAL ICONS
========================================= */

    .site-footer .footer-social {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 12px;
        flex: 0 0 auto;
        margin: 0;
    }

        .site-footer .footer-social a {
            width: 40px;
            height: 40px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1.5px solid rgba(255, 255, 255, 0.85);
            border-radius: 50%;
            color: #fff !important;
            text-decoration: none;
            font-size: 16px;
            font-weight: 600;
            line-height: 1;
            transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
        }

            .site-footer .footer-social a:hover {
                background: #fff;
                border-color: #fff;
                color: #8c6b12 !important;
                transform: translateY(-3px);
            }

    /* =========================================
   OUTLINED TAMBARAM WORDMARK
========================================= */

    .site-footer .footer-wordmark {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 34px;
        z-index: 1;
        display: block;
        width: 100%;
        overflow: hidden;
        margin: 0;
        padding: 0 10px;
        text-align: center;
        white-space: nowrap;
        line-height: 0.85;
        user-select: none;
        pointer-events: none;
    }

        .site-footer .footer-wordmark .l {
            display: inline-block;
            font-family: 'Poppins', sans-serif;
            font-weight: 700;
            /* Smaller outlined wordmark */
            font-size: clamp(32px, 8vw, 125px);
            letter-spacing: 0.01em;
            color: transparent;
            -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.95);
            padding-bottom: 0.02em;
            margin-bottom: -0.02em;
        }

/* Scroll reveal */
.js .site-footer .footer-wordmark .l {
    transform: translateY(105%);
    opacity: 0;
    transition: transform 1.9s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * .12s + .15s), opacity 1.3s ease calc(var(--i) * .12s + .15s);
}

.js .site-footer .footer-wordmark.in .l {
    transform: translateY(0);
    opacity: 1;
}

/* =========================================
   COPYRIGHT BAR
========================================= */

.site-footer .footer-bottom {
    position: relative;
    z-index: 2;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 24px;
    text-align: center;
    background: #f2bd22;
}

    .site-footer .footer-bottom p {
        position: relative;
        z-index: 2;
        margin: 0;
        color: #fff;
        font-family: 'Inter', sans-serif;
        font-size: 11px;
        line-height: 1.6;
        font-weight: 600;
        letter-spacing: 0.1px;
        text-align: center;
    }

/* =========================================
   TABLET
========================================= */

@media (max-width: 991.98px) {
    .site-navbar .container {
        display: flex;
        align-items: center;
    }

    .site-brand {
        margin-right: auto;
    }

    .site-logo {
        height: 80px;
        max-width: 160px;
    }

    .navbar-toggler {
        margin-left: auto;
    }

    .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
    }

    .site-footer .footer-main > .container {
        max-width: 100%;
    }

    .site-footer .footer-content {
        gap: 20px;
    }

    .site-footer .footer-left {
        gap: 12px;
    }

    .site-footer .footer-logo {
        width: 75px;
        height: 75px;
        max-width: 75px;
        flex-basis: 75px;
    }

    .site-footer .footer-description {
        font-size: 12px;
    }

        .site-footer .footer-description strong {
            font-size: 13px;
        }

    .site-footer .footer-social {
        gap: 8px;
    }

        .site-footer .footer-social a {
            width: 35px;
            height: 35px;
            font-size: 14px;
        }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 576px) {
    .site-logo {
        height: 65px;
        max-width: 140px;
    }

    .content-card {
        margin: 16px 1rem 2rem;
        padding: 1.5rem 1.25rem;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .site-footer .footer-main {
        padding: 28px 0 70px;
    }

        .site-footer .footer-main > .container {
            padding-left: 20px;
            padding-right: 20px;
        }

    /* Keep logo and description beside each other */
    .site-footer .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .site-footer .footer-left {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }

    .site-footer .footer-logo {
        width: 65px;
        height: 65px;
        max-width: 65px;
        flex-basis: 65px;
    }

    .site-footer .footer-description {
        font-size: 11px;
        line-height: 1.6;
    }

        .site-footer .footer-description strong {
            font-size: 12px;
        }

    .site-footer .footer-social {
        justify-content: flex-start;
    }

    .site-footer .footer-wordmark {
        bottom: 32px;
    }

        .site-footer .footer-wordmark .l {
            font-size: 9vw;
            -webkit-text-stroke-width: 1px;
        }

    .site-footer .footer-bottom {
        min-height: 55px;
        padding: 13px 12px;
    }

        .site-footer .footer-bottom p {
            font-size: 10px;
        }
}

/* Very small phones */
@media (max-width: 360px) {
    .site-footer .footer-main > .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .site-footer .footer-left {
        gap: 9px;
    }

    .site-footer .footer-logo {
        width: 55px;
        height: 55px;
        max-width: 55px;
        flex-basis: 55px;
    }

    .site-footer .footer-description {
        font-size: 10px;
    }

        .site-footer .footer-description strong {
            font-size: 11px;
        }

    .site-footer .footer-social {
        gap: 8px;
    }

        .site-footer .footer-social a {
            width: 32px;
            height: 32px;
        }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    .js .site-footer .footer-wordmark .l {
        transform: none;
        opacity: 1;
        transition: none;
    }

    .site-footer .footer-social a {
        transition: none;
    }

    .navbar-nav .nav-link::after {
        transition: none;
    }
}

/* Remove extra left and right space in footer */
.site-footer .footer-main > .container {
    max-width: 100% !important;
    width: 100%;
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-left: 0;
    margin-right: 0;
}

.site-footer .footer-content {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
}

/* Keep logo and description together */
.site-footer .footer-left {
    margin-left: 0;
    gap: 14px;
}

/* Bring social icons closer to the right edge */
.site-footer .footer-social {
    margin-right: 0;
}

/* Avoid extra horizontal spacing on smaller screens */
@media (max-width: 576px) {
    .site-footer .footer-main > .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* Make TAMBARAM wordmark very small */
.site-footer .footer-wordmark .l {
    font-size: clamp(20px, 3.5vw, 55px) !important;
    -webkit-text-stroke-width: 1px;
    letter-spacing: 0;
}

@media (max-width: 576px) {
    .site-footer .footer-wordmark .l {
        font-size: 22px !important;
        -webkit-text-stroke-width: 0.8px;
    }
}
