/* ======================
   GLOBAL
====================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f9f5ff;
    overflow-x:hidden;
    padding-top:130px;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* ======================
   HEADER
====================== */

.site-header{
    position:fixed;
    top:0;
    width:100%;
    z-index:999;
    background:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

/* Top Bar */

.top-bar{
    background:linear-gradient(
        to right,
        #ede9fe,
        #dcfce7
    );
}

.top-bar .container{
    display:flex;
    justify-content:flex-end;
    gap:30px;
    padding:10px 0;
}

.top-bar a{
    color:#555;
    text-decoration:none;
}

/* Navbar */

.navbar{
    padding:15px 0;
}

.nav-wrapper{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    display:flex;
    align-items:center;
    gap:15px;
    text-decoration:none;
}

.logo img{
    height:55px;
}

.logo span{
    font-size:24px;
    font-weight:700;
    color:#7c3aed;
}

/* Desktop Menu */

.desktop-menu{
    display:flex;
    gap:30px;
}

.desktop-menu a{
    text-decoration:none;
    color:#444;
    font-weight:500;
}

.desktop-menu a:hover{
    color:#7c3aed;
}

/* Mobile Button */

.mobile-menu-btn{
    display:none;
}

/* ====================================
   REHABILITATION FOR ELDERLY FRAILTY
==================================== */

.elderly-hero{
    position: relative;
    min-height: 100vh;     
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;

    padding-bottom: 60px;   
}

.elderly-video{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.elderly-overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.40);
}

.elderly-content{
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 30px;
    color: #ffffff;
}

.elderly-content h1{
    font-size: 3rem;
    font-weight: 700;
    margin-top: 120px;
    margin-bottom: 25px;
    line-height: 1.2;
}

.elderly-content p{
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 40px;
}

.elderly-content h2{
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.elderly-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.elderly-card{
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 10px;
    padding: 18px;
    backdrop-filter: blur(4px);
    transition: 0.3s ease;
}

.elderly-card:hover{
    background: rgba(255,255,255,0.20);
    transform: translateY(-3px);
}

.elderly-btn{
    display: inline-block;
    background: #7e22ce;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s ease;
}

.elderly-btn:hover{
    background: #6b21a8;
}

/* ===================================
   FOOTER STARTS HERE
=================================== */

.site-footer{

    background:linear-gradient(
        180deg,
        #9b86cd 0%,
        #9579d7 100%
    );

    color:#fff;

    padding:30px 20px 10px;

    margin-top:0;

    overflow:hidden;
}

/* Container */

.site-footer .container{

    max-width:1350px;

    margin:auto;
}

/* ===========================
        GRID
=========================== */

.footer-grid{

    display:grid;

    grid-template-columns:
        1.4fr
        1fr
        1.2fr
        1.25fr;

    gap:15px;

    margin-bottom:10px;
}

/* ===========================
        BRAND
=========================== */

.footer-brand img{

    width:82px;

    height:82px;

    object-fit:cover;

    border-radius:14px;

    background:#fff;

    padding:5px;

    box-shadow:0 8px 20px rgba(0,0,0,.18);

    margin-bottom:15px;
}

.footer-brand h3{

    font-size:1.8rem;

    font-weight:700;

    line-height:1.35;

    margin-bottom:18px;
}

.footer-brand p{

    margin-bottom:12px;

    color:rgba(255,255,255,.95);

    font-size:1.05rem;
}

/* ===========================
        HEADINGS
=========================== */

.footer-links h4,
.footer-contact h4{

    font-size:1.35rem;

    font-weight:700;

    margin-bottom:20px;

    color:#ffffff;
}

/* Remove underline */

.footer-links h4::after,
.footer-contact h4::after{

    display:none;
}

/* ===========================
        LINKS
=========================== */

.footer-links ul{

    list-style:none;

    margin:0;

    padding:0;
}

.footer-links li{

    margin-bottom:14px;
}

.footer-links a{

    color:#fff;

    text-decoration:none;

    transition:.3s;
}

.footer-links a:hover{

    color:#AEC880;

    padding-left:6px;
}

/* ===========================
        CONTACT
=========================== */

.footer-contact p{

    margin-bottom:16px;

    line-height:1.7;
}

.footer-contact strong{

    color:#ffffff;
}

.footer-contact a{

    color:#fff;

    text-decoration:none;
}

.footer-contact a:hover{

    color:#AEC880;
}

/* ===========================
        HOURS
=========================== */

.footer-hours{

    margin-top:18px;

    background:rgba(255,255,255,.10);

    padding:14px;

    border-radius:12px;
}

.footer-hours strong{

    display:block;

    margin-bottom:8px;

    color:#AEC880;
}

.footer-hours p{

    margin:4px 0;

    font-size:.96rem;
}

/* ===========================
        SOCIAL
=========================== */

.social-links{

    margin-top:22px;
}

.social-links a{

    width:45px;

    height:45px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    background:rgba(255,255,255,.15);

    color:#fff;

    font-size:1.2rem;

    text-decoration:none;

    transition:.35s;
}

.social-links a:hover{

    background:#AEC880;

    color:#fff;

    transform:translateY(-4px);
}

/* ===========================
        FOOTER BOTTOM
=========================== */

.footer-bottom{

    border-top:1px solid rgba(255,255,255,.15);

    padding-top:18px;

    text-align:center;
}

.footer-bottom p{

    margin:6px 0;

    color:#fff;

    font-size:1rem;
}

.footer-bottom a{

    color:#AEC880;

    text-decoration:none;

    font-weight:600;
}

.footer-bottom a:hover{

    color:#ffffff;
}

/* ====================================
   MOBILE RESPONSIVE STYLES STARTS HERE
==================================== */

/* ====================================
   GLOBAL RESET FOR MOBILE DEVICES
==================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    overflow-x:hidden;
}

body{
    overflow-x:hidden;
    font-family:'Poppins',sans-serif;
}

img,
video,
iframe{
    max-width:100%;
    display:block;
}

/* ====================================
   MOBILE HEADER
==================================== */

@media (max-width:768px){

    .top-bar .container{
        justify-content:center;
        flex-direction:column;
        align-items:center;
        gap:6px;
        text-align:center;
        padding:8px 15px;
    }

    .top-bar a{
        font-size:13px;
    }

    .nav-wrapper{
        padding:12px 15px;
    }

    .logo{
        max-width:80%;
    }

    .logo img{
        height:42px;
    }

    .logo span{
        font-size:0.95rem;
        line-height:1.3;
    }

    .desktop-menu{
        display:none;
    }

    .mobile-menu-btn{
        display:block;
        background:none;
        border:none;
        font-size:1.7rem;
        color:#7e22ce;
        cursor:pointer;
    }

    .mobile-menu{
        display:none;
        flex-direction:column;
        background:#ffffff;
        border-top:1px solid #e5e5e5;
    }

    .mobile-menu.active{
        display:flex;
    }

    .mobile-menu a{
        padding:15px;
        text-decoration:none;
        color:#333;
        border-bottom:1px solid #f0f0f0;
        text-align:center;
        font-weight:500;
    }

    .mobile-menu a:hover{
        background:#f9f5ff;
        color:#7e22ce;
    }

}

/* Desktop defaults */

.mobile-menu{
    display:none;
}

.mobile-menu-btn{
    display:none;
}

/* Mobile */

@media (max-width:768px){

    .desktop-menu{
        display:none;
    }

    .mobile-menu-btn{
        display:block;
    }

    .mobile-menu.active{
        display:flex;
        flex-direction:column;
    }

}

/* ====================================
   HERO SECTION - MOBILE
==================================== */

@media (max-width:768px){

    /* HERO */
    .elderly-hero{
        min-height:100vh;
        padding-bottom:40px;
    }

    .elderly-content{
        padding:0 15px;
    }

    .elderly-content h1{
        font-size:26px;
        margin-top:80px;
        margin-bottom:18px;
        line-height:1.3;
    }

    .elderly-content p{
        font-size:0.95rem;
        line-height:1.6;
        margin-bottom:25px;
    }

    .elderly-content h2{
        font-size:20px;
        margin-bottom:18px;
    }

    /* GRID */
    .elderly-grid{
        grid-template-columns:1fr;
        gap:12px;
        margin-bottom:30px;
    }

    /* CARDS */
    .elderly-card{
        padding:14px;
        font-size:0.9rem;
    }

    /* BUTTON */
    .elderly-btn{
        padding:10px 18px;
        font-size:0.85rem;
        width:100%;
        max-width:220px;
        margin:0 auto;
        display:block;
        text-align:center;
    }
}

/* ====================================
   FOOTER - MOBILE
==================================== */

@media (max-width:768px){

    .site-footer{
        padding:40px 15px 15px;
        
        text-align:center;
    }

    /* Footer Grid */

    .footer-grid{
        grid-template-columns:1fr;
        gap:35px;
        margin-bottom:25px;
        text-align:center;
    }

    /* ==========================
       BRAND SECTION
    ========================== */

    /* Brand */

.footer-brand{
    text-align:center;
}

.footer-brand-top{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:15px;
    margin-bottom:15px;
}

.footer-brand-top img{
    width:65px;
    height:65px;
    flex-shrink:0;
}

.footer-brand-top h3{
    font-size:1.35rem;
    line-height:1.3;
    margin:0;
    text-align:left;
}

.footer-brand p{
    font-size:0.95rem;
    line-height:1.7;
}

    /* ==========================
       HEADINGS
    ========================== */

    .footer-links,
    .footer-contact{
        text-align:center;
    }

    .footer-links h4,
    .footer-contact h4{
        font-size:1.2rem;
        margin-bottom:15px;
    }

    /* ==========================
       LINKS
    ========================== */

    .footer-links ul{
        padding:0;
        margin:0;
    }

    .footer-links li{
        margin-bottom:10px;
    }

    .footer-links a{
        font-size:0.95rem;
    }

    /* ==========================
       CONTACT
    ========================== */

    .footer-contact p{
        font-size:0.95rem;
        line-height:1.7;
    }

    /* ==========================
       HOURS
    ========================== */

    .footer-hours{
        margin-top:15px;
        padding:12px;
    }

    .footer-hours p{
        font-size:0.9rem;
    }

    /* ==========================
       SOCIAL
    ========================== */

    .social-links{
        display:flex;
        justify-content:center;
        gap:12px;
        margin-top:18px;
    }

    .social-links a{
        width:42px;
        height:42px;
        font-size:1.1rem;
    }

    /* ==========================
       FOOTER BOTTOM
    ========================== */

    .footer-bottom{
        padding-top:15px;
    }

    .footer-bottom p{
        font-size:0.9rem;
        line-height:1.6;
        margin:8px 0;
    }
    
}