/* ==========================================
   ASSOCIATION ALDV
   STYLE.CSS
   PART 1
========================================== */

/* ==========================
   RESET
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:
    Arial,
    Helvetica,
    sans-serif;
    background:#f8fafc;
    color:#0f172a;
    line-height:1.8;
    overflow-x:hidden;
}

/* ==========================
   VARIABLES
========================== */

:root{

    --primary:#2563eb;
    --primary-dark:#1d4ed8;
    --secondary:#f1f5f9;

    --success:#16a34a;
    --warning:#ea580c;
    --danger:#dc2626;

    --dark:#0f172a;
    --gray:#475569;
    --light:#ffffff;

    --border:#dbe2ea;

    --shadow:
    0 15px 40px rgba(
        15,23,42,.08
    );

    --radius:24px;

}

/* ==========================
   GLOBAL TYPOGRAPHY
========================== */

h1,
h2,
h3,
h4,
h5,
h6{
    line-height:1.25;
    color:var(--dark);
    font-weight:800;
}

h1{
    font-size:58px;
    margin-bottom:20px;
}

h2{
    font-size:42px;
    margin-bottom:18px;
}

h3{
    font-size:26px;
    margin-bottom:15px;
}

p{
    color:var(--gray);
    margin-bottom:16px;
    font-size:17px;
}

a{
    text-decoration:none;
    transition:.3s ease;
}

ul{
    list-style:none;
}

/* ==========================
   CONTAINER
========================== */

.container{
    width:90%;
    max-width:1250px;
    margin:auto;
}

/* ==========================
   HEADER
========================== */

.header{
    position:sticky;
    top:0;
    z-index:999;
    background:#ffffff;
    border-bottom:
    1px solid rgba(
        0,0,0,.05
    );
    box-shadow:
    0 2px 20px rgba(
        0,0,0,.04
    );
}

.navbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:20px 0;
}

.logo-container{
    display:flex;
    align-items:center;
    gap:16px;
}

.logo{
    width:58px;
    height:58px;
    border-radius:16px;
    object-fit:cover;
}

.logo-text h2{
    font-size:24px;
    margin-bottom:2px;
}

.logo-text span{
    color:var(--gray);
    font-size:14px;
}

/* ==========================
   NAV MENU
========================== */

.nav-menu ul{
    display:flex;
    align-items:center;
    gap:26px;
}

.nav-menu a{
    color:var(--dark);
    font-weight:600;
    font-size:15px;
}

.nav-menu a:hover{
    color:var(--primary);
}

/* ==========================
   BUTTONS
========================== */

.btn-primary,
.btn-secondary{
    border:none;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:18px;
    padding:
    18px 34px;
    font-size:16px;
    font-weight:700;
    transition:.3s ease;
}

.btn-primary{
    background:
    var(--primary);
    color:#ffffff;
}

.btn-primary:hover{
    background:
    var(--primary-dark);
    transform:
    translateY(-2px);
}

.btn-secondary{
    background:
    var(--secondary);
    color:var(--dark);
}

.btn-secondary:hover{
    transform:
    translateY(-2px);
}

/* ==========================
   HERO SECTION
========================== */

.hero{
    padding:
    90px 0 80px;
}

.hero-grid{
    display:grid;
    grid-template-columns:
    1.2fr 1fr;
    gap:35px;
    align-items:start;
}

.hero-content p{
    max-width:760px;
}

.hero-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-top:30px;
}

/* ==========================
   BADGES
========================== */

.badge,
.small-badge{
    display:inline-block;
    background:
    rgba(37,99,235,.10);
    color:
    var(--primary);
    padding:
    10px 18px;
    border-radius:999px;
    font-size:14px;
    font-weight:700;
    margin-bottom:20px;
}
/* ==========================
   SECTION TITLE
========================== */

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title span{
    display:inline-block;
    background:
    rgba(37,99,235,.08);
    color:
    var(--primary);
    padding:
    10px 18px;
    border-radius:999px;
    font-size:14px;
    font-weight:700;
    margin-bottom:20px;
}

.section-title h2{
    margin-bottom:15px;
}

.section-title p{
    max-width:760px;
    margin:auto;
}

/* ==========================
   CARDS
========================== */

.hero-card,
.awareness-card,
.content-box,
.donation-card{
    background:#ffffff;
    border-radius:
    var(--radius);
    padding:35px;
    box-shadow:
    var(--shadow);
    border:
    1px solid rgba(
        0,0,0,.04
    );
}

.hero-card{
    height:fit-content;
}

.hero-card ul{
    margin-top:15px;
}

.hero-card ul li{
    position:relative;
    padding-left:28px;
    margin-bottom:14px;
    color:var(--gray);
}

.hero-card ul li::before{
    content:"✓";
    position:absolute;
    left:0;
    color:
    var(--success);
    font-weight:700;
}

/* ==========================
   FORM UI
========================== */

.form-group{
    display:flex;
    flex-direction:column;
    margin-bottom:22px;
}

.form-group label{
    margin-bottom:10px;
    color:
    var(--dark);
    font-size:15px;
    font-weight:700;
}

.form-group input,
.form-group select{
    width:100%;
    background:#ffffff;
    border:
    1px solid
    var(--border);
    border-radius:18px;
    padding:
    18px 20px;
    font-size:16px;
    transition:.3s ease;
}

.form-group input:focus,
.form-group select:focus{
    outline:none;
    border-color:
    var(--primary);
    box-shadow:
    0 0 0 5px
    rgba(37,99,235,.10);
}

.form-group input::placeholder{
    color:#94a3b8;
}

/* ==========================
   RESULT UI
========================== */

.result-number{
    font-size:72px;
    font-weight:900;
    color:
    var(--primary);
    margin:
    20px 0 10px;
    line-height:1;
}

.result-category{
    font-size:18px;
    font-weight:700;
    color:
    var(--gray);
    margin-bottom:25px;
}

.result-box{
    background:
    #eff6ff;
    border:
    1px solid
    #dbeafe;
    border-radius:
    24px;
    padding:25px;
}

.result-row{
    display:flex;
    justify-content:
    space-between;
    align-items:center;
    gap:20px;
    padding:15px 0;
    border-bottom:
    1px solid
    rgba(37,99,235,.12);
}

.result-row:last-child{
    border-bottom:none;
}

.result-row strong{
    color:
    var(--dark);
}

.result-row span{
    color:
    var(--gray);
    text-align:right;
}

/* ==========================
   AWARENESS SECTION
========================== */

.awareness-section{
    padding:90px 0;
}

.awareness-grid{
    display:grid;
    grid-template-columns:
    repeat(3,1fr);
    gap:28px;
}

.awareness-card h3{
    margin-bottom:16px;
}

/* ==========================
   CONTENT BOX
========================== */

.content-box{
    margin-top:20px;
}

.content-box h3{
    margin-top:30px;
    margin-bottom:12px;
}

.content-box p:last-child{
    margin-bottom:0;
}

/* ==========================
   DONATION
========================== */

.donation-card{
    text-align:center;
    margin:90px auto;
}

.donation-card p{
    max-width:850px;
    margin-left:auto;
    margin-right:auto;
}

/* ==========================
   FOOTER
========================== */

.footer{
    background:#0f172a;
    color:#ffffff;
    padding-top:70px;
}

.footer-grid{
    display:grid;
    grid-template-columns:
    repeat(4,1fr);
    gap:35px;
}

.footer-column h3{
    color:#ffffff;
    margin-bottom:18px;
}

.footer-column p{
    color:
    rgba(255,255,255,.75);
}

.footer-column ul li{
    margin-bottom:12px;
}

.footer-column a{
    color:
    rgba(255,255,255,.75);
}

.footer-column a:hover{
    color:#ffffff;
}

.footer-bottom{
    text-align:center;
    border-top:
    1px solid rgba(
        255,255,255,.08
    );
    margin-top:55px;
    padding:
    28px 0;
}

.footer-bottom p{
    color:
    rgba(255,255,255,.70);
}
/* ==========================
   SECTIONS SPACING
========================== */

section{
    padding:90px 0;
}

/* ==========================
   LINKS
========================== */

a{
    transition:
    color .3s ease,
    transform .3s ease;
}

a:hover{
    transform:
    translateY(-1px);
}

/* ==========================
   BUTTON GROUP FIX
========================== */

.hero-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary{
    min-width:180px;
}

/* ==========================
   HERO CONTENT
========================== */

.hero-content h1{
    max-width:800px;
}

.hero-content p{
    max-width:760px;
}

/* ==========================
   FORM BUTTONS
========================== */

.hero-card button{
    margin-top:10px;
}

.hero-card .btn-primary,
.hero-card .btn-secondary{
    width:100%;
}

.hero-card .btn-secondary{
    margin-top:14px;
}

/* ==========================
   RESULT STATES
========================== */

.success-text{
    color:
    var(--success);
}

.warning-text{
    color:
    var(--warning);
}

.danger-text{
    color:
    var(--danger);
}

/* ==========================
   TABLE STYLE
========================== */

.table-wrapper{
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
}

table th{
    background:
    var(--primary);
    color:#ffffff;
    padding:18px;
    text-align:left;
}

table td{
    padding:18px;
    border:
    1px solid
    rgba(0,0,0,.08);
    color:
    var(--gray);
}

/* ==========================
   ANIMATIONS
========================== */

.hero-card,
.awareness-card,
.content-box,
.donation-card{
    transition:
    transform .35s ease,
    box-shadow .35s ease;
}

.hero-card:hover,
.awareness-card:hover,
.content-box:hover,
.donation-card:hover{
    transform:
    translateY(-6px);

    box-shadow:
    0 22px 60px rgba(
        15,23,42,.12
    );
}

/* ==========================
   SMALL UTILITIES
========================== */

.text-center{
    text-align:center;
}

.mt-20{
    margin-top:20px;
}

.mt-30{
    margin-top:30px;
}

.mb-20{
    margin-bottom:20px;
}

.mb-30{
    margin-bottom:30px;
}

/* ==========================
   RESPONSIVE TABLET
========================== */

@media(max-width:992px){

    h1{
        font-size:44px;
    }

    h2{
        font-size:34px;
    }

    .hero-grid{
        grid-template-columns:
        1fr;
    }

    .awareness-grid{
        grid-template-columns:
        1fr;
    }

    .footer-grid{
        grid-template-columns:
        repeat(2,1fr);
    }

    .result-number{
        font-size:58px;
    }

    .navbar{
        flex-direction:column;
        gap:20px;
        text-align:center;
    }

    .nav-menu ul{
        flex-wrap:wrap;
        justify-content:center;
    }

}

/* ==========================
   RESPONSIVE MOBILE
========================== */

@media(max-width:768px){

    body{
        font-size:15px;
    }

    h1{
        font-size:36px;
    }

    h2{
        font-size:28px;
    }

    h3{
        font-size:22px;
    }

    .container{
        width:92%;
    }

    .hero{
        padding:
        60px 0;
    }

    .hero-card,
    .awareness-card,
    .content-box,
    .donation-card{
        padding:24px;
    }

    .footer-grid{
        grid-template-columns:
        1fr;
    }

    .result-number{
        font-size:48px;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .hero-buttons a,
    .hero-buttons button{
        width:100%;
    }

    .logo-container{
        flex-direction:column;
        text-align:center;
    }

    .logo{
        width:70px;
        height:70px;
    }

    .result-row{
        flex-direction:column;
        align-items:flex-start;
    }

}

/* ==========================
   SCROLLBAR
========================== */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#e2e8f0;
}

::-webkit-scrollbar-thumb{
    background:
    var(--primary);
    border-radius:999px;
}

::-webkit-scrollbar-thumb:hover{
    background:
    var(--primary-dark);
}
/* ==========================
   BMI TOOL POLISH
========================== */

#bmi-tool{
    padding-top:40px;
}

#bmi-tool .hero-card{
    min-height:100%;
}

#bmi-tool .hero-card h3{
    margin-bottom:14px;
}

#bmi-tool .hero-card p{
    margin-bottom:22px;
}

#bmiDetails{
    margin-top:20px;
}

/* ==========================
   INPUT NUMBER ARROWS
========================== */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button{
    opacity:1;
}

/* ==========================
   BETTER BUTTONS
========================== */

button{
    font-family:inherit;
}

.btn-primary,
.btn-secondary{
    min-height:58px;
}

/* ==========================
   HERO CARD SPACING
========================== */

.hero-card > *:last-child{
    margin-bottom:0;
}

/* ==========================
   RESULT BOX TEXT
========================== */

.result-box p{
    margin-top:18px;
    margin-bottom:0;
}

.result-box strong{
    color:
    var(--dark);
}

/* ==========================
   FORM POLISH
========================== */

.form-group input,
.form-group select{
    min-height:58px;
}

.form-group select{
    cursor:pointer;
}

/* ==========================
   HEADER FIX
========================== */

.header{
    backdrop-filter:
    blur(10px);
}

/* ==========================
   NAV ACTIVE EFFECT
========================== */

.nav-menu a{
    position:relative;
}

.nav-menu a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:0;
    height:2px;
    background:
    var(--primary);
    transition:.3s ease;
}

.nav-menu a:hover::after{
    width:100%;
}

/* ==========================
   SECTION VISUAL SPACING
========================== */

#resources,
#about-bmi{
    padding-top:40px;
}

/* ==========================
   HERO RESPONSIVE FIX
========================== */

@media(max-width:768px){

    .btn-primary,
    .btn-secondary{
        width:100%;
    }

    .hero-card{
        border-radius:20px;
    }

    .result-number{
        text-align:center;
    }

    .result-category{
        text-align:center;
    }

}
/* ==========================
   LOGO SIZE FIX
========================== */

.logo{
    width:42px !important;
    height:42px !important;
    border-radius:12px !important;
    object-fit:contain !important;
    display:block;
    flex-shrink:0;
}

/* MOBILE */
@media(max-width:768px){

    .logo{
        width:50px !important;
        height:50px !important;
        border-radius:12px !important;
        object-fit:contain !important;
    }

}