/* ==========================================
   HELPRAJ FOUNDATION - MAIN STYLESHEET
   Theme: Navy Blue | White | Sky Blue
   Design: Premium & Modern
========================================== */

/* 1. ROOT VARIABLES */
:root {
    --navy: #102B46;
    --navy-dark: #091D30;
    --navy-light: #193F60;
    --blue: #2589C7;
    --blue-light: #EAF5FC;
    --white: #FFFFFF;
    --light: #F4F7FA;
    --text: #263746;
    --muted: #687987;
    --border: #E4EAF0;
    --shadow: 0 12px 35px rgba(16, 43, 70, 0.10);
    --transition: all 0.35s ease;
}

/* 2. RESET & GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.75;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

.container {
    width: min(1200px, 90%);
    margin: auto;
}

section {
    position: relative;
}

/* 3. HEADER & NAVIGATION */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    box-shadow: 0 3px 20px rgba(16, 43, 70, 0.07);
    border-bottom: 1px solid rgba(228, 234, 240, 0.8);
}

.header-container {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand-text h2 {
    color: var(--navy);
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    line-height: 1.3;
}

.brand-text span {
    color: var(--blue);
    font-size: 12px;
    font-weight: 600;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 23px;
}

.main-nav > a {
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
}

.main-nav > a:not(.donate-btn)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: var(--transition);
}

.main-nav > a:hover {
    color: var(--blue);
}

.main-nav > a:hover::after {
    width: 100%;
}

.main-nav .donate-btn {
    background: var(--blue);
    color: var(--white);
    padding: 11px 19px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(37, 137, 199, 0.22);
}

.main-nav .donate-btn:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--navy);
    font-size: 28px;
    cursor: pointer;
}

/* 4. HERO SECTION */
.hero-section {
    min-height: calc(100vh - 86px);
    display: flex;
    align-items: center;
    background:
        url("../images/foundation/hero.jpg")
        center center / cover no-repeat;
    background-color: var(--navy-dark);
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(5, 23, 40, 0.94) 0%,
            rgba(10, 36, 59, 0.84) 48%,
            rgba(10, 36, 59, 0.35) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
    padding-bottom: 100px;
    max-width: 1200px;
    animation: fadeUp 1s ease both;
}

.hero-label {
    display: inline-block;
    color: #82CCF5;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 18px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 15px;
    max-width: 850px;
}

.hero-content h2 {
    color: #8FD0F5;
    font-size: clamp(25px, 3vw, 36px);
    margin-bottom: 12px;
    font-weight: 700;
}

.hero-tagline {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 22px;
}

.hero-description {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 14px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

/* 5. COMMON BUTTONS */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 13px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-4px);
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
}

.btn-primary:hover {
    background: #1476B3;
    box-shadow: 0 8px 22px rgba(37, 137, 199, 0.25);
}

.btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.8);
    background: transparent;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
}

.btn-donate {
    background: #FFFFFF;
    color: var(--navy);
}

.btn-donate:hover {
    background: #DCEFFA;
}

.btn-review {
    background: var(--blue);
    color: var(--white);
}

.btn-review:hover {
    background: var(--navy);
}

/* 6. SECTION HEADINGS */
.section-heading {
    text-align: center;
    margin-bottom: 55px;
}

.section-label {
    display: inline-block;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-heading h2 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.3;
}

.heading-line {
    width: 65px;
    height: 4px;
    background: var(--blue);
    border-radius: 10px;
    margin: 18px auto 0;
}

/* 7. ABOUT FOUNDATION */
.about-section {
    padding: 110px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 65px;
}

.about-text p {
    color: var(--muted);
    font-size: 16px;
    line-height: 2;
    margin-bottom: 22px;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: "";
    position: absolute;
    width: 75%;
    height: 85%;
    right: -14px;
    bottom: -14px;
    border-radius: 12px;
    background: var(--blue-light);
    z-index: 0;
}

.about-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 390px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
}

/* 8. FOUNDER SECTION */
.founder-section {
    padding: 110px 0;
    background: var(--light);
}

.founder-content {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 65px;
}

.founder-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.founder-text p {
    font-size: 15px;
    color: var(--muted);
    line-height: 2;
    margin-bottom: 20px;
}

.founder-text h3 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    font-size: 27px;
    margin-top: 25px;
}

.founder-designation {
    color: var(--blue);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* 9. LOCATION SECTION */
.location-section {
    padding: 100px 0;
    background: var(--white);
}

.location-content {
    max-width: 850px;
    margin: auto;
    padding: 55px 35px;
    background: var(--light);
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
}

.location-icon {
    font-size: 42px;
    display: inline-block;
    margin-bottom: 12px;
}

.location-info h3 {
    color: var(--navy);
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 12px;
}

.location-info p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 25px;
}

/* 10. GOOGLE REVIEW SECTION */
.review-section {
    padding: 85px 0;
    background: var(--blue-light);
    text-align: center;
}

.review-content h2 {
    color: var(--navy);
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 4vw, 40px);
    margin-bottom: 15px;
}

.review-content p {
    max-width: 650px;
    margin: 0 auto 28px;
    color: var(--muted);
    font-size: 15px;
}

.review-content .btn {
    box-shadow: 0 7px 20px rgba(37, 137, 199, 0.18);
}

/* 11. FOOTER */
.site-footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 75px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.7fr;
    gap: 50px;
    padding-bottom: 55px;
}

.footer-brand h2 {
    font-family: 'Playfair Display', serif;
    font-size: 27px;
    margin-bottom: 8px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-contact h3,
.footer-links h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #8FD0F5;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    margin-bottom: 13px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #8FD0F5;
    padding-left: 5px;
}

.footer-bottom {
    padding: 20px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* 12. ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 13. TABLET RESPONSIVE */
@media (max-width: 1050px) {

    .header-container {
        gap: 12px;
    }

    .main-nav {
        gap: 13px;
    }

    .main-nav > a {
        font-size: 12px;
    }

    .brand-text h2 {
        font-size: 18px;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .about-content,
    .founder-content {
        gap: 35px;
    }
}

/* 14. MOBILE RESPONSIVE */
@media (max-width: 768px) {

    .container {
        width: 90%;
    }

    .header-container {
        min-height: 72px;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .brand-text h2 {
        font-size: 17px;
    }

    .brand-text span {
        font-size: 10px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px 5%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        box-shadow: 0 12px 20px rgba(16, 43, 70, 0.12);
        border-top: 1px solid var(--border);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav > a {
        display: block;
        padding: 12px 5px;
        font-size: 14px;
        border-bottom: 1px solid var(--border);
    }

    .main-nav > a::after {
        display: none;
    }

    .main-nav .donate-btn {
        margin-top: 12px;
        text-align: center;
        border: none;
        padding: 13px;
    }

    .hero-section {
        min-height: 90vh;
        background-position: center;
    }

    .hero-overlay {
        background: rgba(5, 23, 40, 0.82);
    }

    .hero-content {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .hero-content h1 {
        font-size: 43px;
    }

    .hero-content h2 {
        font-size: 26px;
    }

    .hero-tagline {
        font-size: 15px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 330px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .about-section,
    .founder-section {
        padding: 75px 0;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .about-content,
    .founder-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        height: 280px;
    }

    .founder-image img {
        height: 400px;
    }

    .about-text p,
    .founder-text p {
        font-size: 14px;
    }

    .location-section {
        padding: 75px 0;
    }

    .location-content {
        padding: 40px 20px;
    }

    .review-section {
        padding: 65px 0;
    }

    .site-footer {
        padding-top: 55px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-bottom: 35px;
    }

}

/* 15. SMALL MOBILE */
@media (max-width: 400px) {

    .brand-text h2 {
        font-size: 15px;
    }

    .hero-content h1 {
        font-size: 35px;
    }

    .hero-content h2 {
        font-size: 23px;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .founder-image img {
        height: 330px;
    }

}

/* 16. ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

}

/* ==========================================
   HEADER - MORE DROPDOWN & DONATION FIX
========================================== */

/* More - Same Font as Main Menu */
.main-nav .nav-dropdown {
    position: relative;
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
}

.main-nav .nav-dropdown > summary {
    list-style: none;
    cursor: pointer;
    color: var(--navy);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.75;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.main-nav .nav-dropdown > summary::-webkit-details-marker {
    display: none;
}

.main-nav .nav-dropdown > summary span {
    font-size: 13px;
}

/* Dropdown - Vertical Menu */
.main-nav .nav-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 225px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 7px 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(16, 43, 70, 0.14);
    z-index: 9999;
}

.main-nav .nav-dropdown[open] .dropdown-menu {
    display: flex;
}

.main-nav .nav-dropdown .dropdown-menu a {
    display: block;
    width: 100%;
    padding: 11px 16px;
    color: var(--navy);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.main-nav .nav-dropdown .dropdown-menu a:hover {
    background: var(--blue-light);
    color: var(--blue);
}

/* Donation Button */
.main-nav .donate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Mobile Dropdown */
@media (max-width: 768px) {

    .main-nav .nav-dropdown {
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .main-nav .nav-dropdown > summary {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 12px 5px;
        font-size: 14px;
    }

    .main-nav .nav-dropdown .dropdown-menu {
        position: static;
        width: 100%;
        min-width: 100%;
        padding: 5px 0;
        margin: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: var(--light);
    }

    .main-nav .nav-dropdown .dropdown-menu a {
        padding: 10px 15px;
        font-size: 13px;
        white-space: normal;
    }

    .main-nav .donate-btn {
        margin-top: 12px;
        padding: 13px;
        text-align: center;
    }
}


/* HEADER MENU FINAL WIDTH FIX */

@media (min-width: 1051px) {

    .site-header {
        width: 100% !important;
    }

    .header-container {
        width: 96% !important;
        max-width: 1600px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
    }

    .brand {
        flex: 0 0 auto !important;
    }

    .main-nav {
        display: flex !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        justify-content: flex-end !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 7px !important;
    }

    .main-nav > a {
        flex: 0 1 auto !important;
        font-family: 'DM Sans', sans-serif !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        padding: 8px 3px !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    .main-nav > a.donate-btn {
        flex: 0 0 auto !important;
        font-size: 11px !important;
        padding: 10px 12px !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
}