/* css/style.css - modern light blue + pinkish theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
}

body {
    background: #fafeff;
    color: #1e2b3a;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* header & mobile menu */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background: #ffffffdd;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,20,30,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

.logo {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}
.logo-pink { color: #e6739f; }
.logo-blue { color: #3f9fd9; }
.my-flag { font-size: 1rem; background: #f4c2c2; padding: 0.2rem 0.6rem; border-radius: 30px; margin-left: 8px; }

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #3f9fd9;
}

.navbar {
    flex: 1;
    display:block;
    justify-content: flex-end;
}
.nav-list {
    list-style: none;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}
.nav-list li { 
	position: relative;
	padding-top: 10px; 
}

.nav-list a {
    text-decoration: none;
    color: #1e3b4f;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 40px;
    transition: 0.2s;
    font-size: 0.9rem;
    background: #f0f9ff;
}
.nav-list a:hover { background: #fcd5dd; color: #a14162; }

/* dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 16px;
    z-index: 999;
    padding: 0.5rem 0;
    max-height: 70vh;
    overflow-y: auto;
}
.dropdown-content li { list-style: none; }
.dropdown-content a {
    padding: 0.5rem 1.2rem;
    display: block;
    background: white;
    border-radius: 0;
}
.dropdown:hover .dropdown-content { display: block; }

/* ========== MOBILE STYLES - FULLY FIXED ========== */
@media screen and (max-width: 1024px) {
    .menu-toggle { display: block; }
    
    .navbar {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background: #fffffffa;
        backdrop-filter: blur(10px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 20px 30px rgba(0,0,0,0.05);
        border-radius: 0 0 30px 30px;
        z-index: 1000;
    }
    
    /* When active, make it scrollable vertically */
    .navbar.active { 
        max-height: 80vh; 
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    /* Vertical list, full width, no horizontal overflow */
    .nav-list { 
        flex-direction: column; 
        align-items: stretch; 
        justify-content: flex-start;
        padding: 1rem; 
        gap: 0.5rem;
        width: 100%;
        margin: 0;
        overflow-x: hidden;
    }
    
    /* Each menu item takes full width */
    .nav-list li {
        width: 100%;
        position: relative;
        list-style: none;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    
    /* Top-level links */
    .nav-list > li > a {
        display: block;
        width: 100%;
        text-align: left;
        white-space: normal;
        word-break: break-word;
        background: #f0f9ff;
        padding: 0.75rem 1rem;
        box-sizing: border-box;
        font-size: 1rem;
    }
    
    /* Dropdown toggle button (parent) */
    .dropbtn {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        background: #f0f9ff;
    }
    .dropbtn i {
        transition: transform 0.2s;
        flex-shrink: 0;
        margin-left: 0.5rem;
    }
    .dropdown.active .dropbtn i {
        transform: rotate(180deg);
    }
    
    /* Dropdown content - full width, scrollable, no right overflow */
    .dropdown-content {
        position: relative;
        display: none;
        width: 100%;
        left: 0;
        right: auto;
        background: #ffffff;
        border-radius: 16px;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        max-height: 250px;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0.5rem 0;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content li {
        width: 100%;
        overflow-x: hidden;
    }
    
    .dropdown-content a {
        padding: 0.75rem 1rem;
        white-space: normal;
        word-break: break-word;
        font-size: 0.95rem;
        border-left: 3px solid transparent;
        width: 100%;
        display: block;
        text-align: left;
        box-sizing: border-box;
        background: #fff;
    }
    
    .dropdown-content a:hover {
        background: #fcd5dd;
        border-left-color: #e6739f;
    }
    
    /* Disable hover-based dropdown on mobile (use click) */
    .dropdown:hover .dropdown-content { display: none; }
    .dropdown.active .dropdown-content { display: block; }
    
    /* Ensure the entire navbar container never overflows horizontally */
    .navbar, .navbar.active, .nav-list, .nav-list li, .dropdown, .dropdown-content {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Additional safety for any long text */
    .nav-list a, .dropdown-content a {
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }
}

/* HERO SLIDER */
.hero-slider {
    position: relative;
    max-width: 1400px;
    margin: 1rem auto;
    height: 420px;
    overflow: hidden;
    border-radius: 40px;
    box-shadow: 0 20px 30px -10px #b3d9e8;
}
.slide {
    display: none;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #103545;
    padding: 2rem;
}
.slide-text h1 { font-size: 3rem; line-height: 1.2; }
.slide-text h2 { font-size: 2.4rem; font-weight: 400; }
.slide-text p { font-size: 1.4rem; background: rgba(255,255,240,0.5); backdrop-filter: blur(3px); padding: 0.4rem 2rem; border-radius: 60px; margin-top: 1rem; display: inline-block; }
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    font-weight: bold;
    font-size: 2rem;
    color: #e6739f;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.next { right: 20px; }
.prev { left: 20px; }

/* choose us cards */
.choose-us .container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 3rem 2rem;
    justify-content: center;
}
.card {
    background: white;
    border-radius: 40px;
    padding: 2rem 2rem;
    flex: 1 1 280px;
    box-shadow: 0 30px 40px -20px #b3dff0;
    border: 1px solid #e2f0f9;
    transition: transform 0.2s;
}
.card:hover { transform: translateY(-10px); background: #fef7f9; }
.card i { font-size: 2.8rem; margin-bottom: 1rem; }
.card h3 { color: #3f9fd9; margin-bottom: 0.8rem; }

/* facts */
.facts-effects {
    background: #edf7fd;
    border-radius: 60px 60px 0 0;
    padding: 3rem 2rem;
    margin-top: 2rem;
}
.fact-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.fact-item { text-align: center; min-width: 150px; }
.fact-number { font-size: 3.2rem; font-weight: 800; color: #e6739f; display: block; line-height: 1.2; }
.fact-item h4 { color: #1e4b63; font-size: 1.4rem; }
.effect-description { max-width: 800px; margin: 2rem auto 0; font-size: 1.3rem; background: #fff0f3; padding: 1.5rem; border-radius: 60px; }

/* footer */
.site-footer {
    background: #b3dff0;
    text-align: center;
    padding: 2rem;
    color: #1a3846;
    font-weight: 500;
    border-radius: 40px 40px 0 0;
    margin-top: 3rem;
}

/* BACK TO TOP BUTTON */
#backToTop {
    position: fixed;
    bottom: 90px;
    right: 25px;
    background: #e6739f;
    color: white;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 30px;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 8px 20px #d9a7b5;
    z-index: 999;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
#backToTop:hover { background: #c95b86; transform: scale(1.1); }

/* SOCIAL DRAWER - now LEFT side */
.social-drawer {
    position: fixed;
    bottom: 25px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}
.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 40px;
    background: white;
    box-shadow: 0 10px 25px rgba(0,100,150,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    text-decoration: none;
    transition: 0.2s;
}
.social-btn.wa { background: #25D366; color: white; }
.social-btn.call { background: #3f9fd9; color: white; }
.social-btn:hover { transform: scale(1.15); }

/* sample subpage styling */
.subpage-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    align-items: center;
}
.subpage-img { flex: 1 1 300px; background: #ffe6ed; border-radius: 50px; padding: 1rem; text-align: center; }
.subpage-img img { max-width: 100%; border-radius: 40px; }
.price-card { flex: 1 1 300px; background: #dff2fc; border-radius: 50px; padding: 2rem; }
.price-card ul { list-style: none; }
.price-card li { padding: 0.5rem; border-bottom: 2px dashed #f9b8c4; font-size: 1.2rem; }

/* responsiveness */
@media (max-width: 600px) {
    .hero-slider { height: 320px; }
    .slide-text h1 { font-size: 2.2rem; }
    .prev, .next { width: 40px; height: 40px; font-size: 1.4rem; }
}