@import url('https://googleapis.com');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,500&family=Work+Sans:wght@400;500;600;700&display=swap');

*{
    box-sizing: border-box;
}

:root {
    --brand-red: #D32F2F;      
    --brand-blue: #29B6F6;        
    --brand-green: #1B5E20;  
    --brand-gold: #FFCA28;       
    --brand-magenta: #E91E63; 
    --dark-navy: #0B1849;   
    --line: rgba(42,36,28,0.14);
    --gothic:  "Century Gothic", monospace;
    --worksans: 'Work Sans', sans-serif;


}

html{
    scroll-behavior: smooth;
    min-height: 100%;
}


#main, #directory-main, #volunteer-main{
    scroll-margin: 120px;
}
  
body{
    margin: 0;
    background-color: ghostwhite;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header{
    border-top: 6px solid;
    border-image: linear-gradient(to right, var(--brand-red), var(--brand-blue), var(--brand-green), var(--brand-gold), var(--brand-magenta)) 1;
    width: 100%;
    background-color: ghostwhite;
    position: sticky;
    color: #FF8F00;
    padding: 16px 40px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    top: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}

header a{
    text-decoration: none;
}

.logo{
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: center;
    font-family: var(--gothic);
    font-weight: 600;
    color: var(--dark-navy);
}

.logo span{
    font-size: larger;
}

.logo img{
    width: 12rem;
}

nav{
    display: flex;
    gap: 28px;
}

nav a{
    font-family: var(--gothic);
    position: relative;
    font-weight: 550;
    color: #1B5E20;
}



nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: #1B5E20;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

nav a:hover::after {
    transform: scaleX(1);
}


.menu-icon{
    display: none;
    font-size: 32px;
    color: #1B5E20;
    cursor: pointer;
}



main{
    flex: 1;
    display: flex;
    justify-content: center;
    padding-block: clamp(3.8rem, 2.5rem + 2vw, 5rem);
    max-height: max-content;
    align-items: center;
}

main h2, p{
    margin: 0;
    width: 100%;
}

.main-container-left{
    line-height: 1.4;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    height: 100%;
    padding-left: 32px;
}

.main-container-left button{
    padding: 16px;
    border: 1px solid #2a2a2a;
    font-family: var(--worksans);
    font-weight: 600;
    font-size: clamp(0.875rem, 0.8rem + 0.38vw, 1.125rem);
    transition: 0.3s ease;
    border-radius: 999px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.findacenterbtn{  
    transition: 0.3s ease;
    color: ghostwhite;
    background-color: #1B5E20;
}

.findacenterbtn:hover{
    cursor: pointer;
    transition: 0.3s ease;
    background-color: #144618;
}

.volunteerbtn{
    background-color: #FFF;
    color: #0B1849;
}

.volunteerbtn:hover{
    cursor: pointer;
    transition: 0.3s ease;
    background-color: #e4e0e0;
}

.main-btncont{
    display: flex;
    gap: 16px;   
    padding: 0 4px; 
}

.h2cont{
    width: 100%;
}


.main-container-right{
    width: clamp(300px, 80%, 1200px);
    padding: 0 24px 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 64px;
}

.main-container-right img{
        width: 100%;
        min-width: auto;
        object-fit: cover;
        height: 460px;
        min-height: 80%;  
        min-height: auto; 
        max-height: 80%;      
        opacity: 0.8;
        -webkit-mask-image: 
            linear-gradient(to right, transparent 0%, black 20%),
            linear-gradient(to bottom, transparent 0%, black 20%),
            linear-gradient(to top, transparent 0%, black 20%),
            linear-gradient(to left, transparent 0%, black 20%);
        -webkit-mask-composite: destination-in;
        mask-image: 
            linear-gradient(to right, transparent 0%, black 20%),
            linear-gradient(to bottom, transparent 0%, black 20%),
            linear-gradient(to top, transparent 0%, black 20%),
            linear-gradient(to left, transparent 0%, black 20%);
        mask-composite: intersect; 
}

h2{
    letter-spacing: -2px;
    color: #1B5E20;
    font-family: var(--gothic);
    font-weight: bolder;
    font-size: clamp(2rem, 1.5rem + 2.5vw, 4rem);
}

.subheadingdesc{
    font-size: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    color: #0B1849;
    font-weight: 550;
    font-family: var(--worksans);
}

.maindesc{
    font-family: var(--worksans);
    color: #1E2321;
    display: flex;
    font-size: clamp(0.875rem, 0.8rem + 0.38vw, 1.125rem);
    gap: 16px;
    flex-direction: column;
}

.hunger-numbers-infos{
    padding: 0 24px;
}

.info-intro{

    padding: 32px;
    font-family: var(--worksans);
    color: #0B1849;
    font-size: 32px;
    font-weight: bolder;
}

.connector{
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%; 
    padding: 24px 12px;
}

.line {
    height: 2px;
    background-color: var(--line);
    width: 100%;
    flex-grow: 1;
    border: none;
    margin: 10px 0;
}

.hunger-infos{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 24px;
    padding: 40px 24px;
}

.hungerstats{
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--gothic);
    font-weight: bolder;
    font-size: 120px;
    color: #0B1849;
    width: 20rem;
}

.in{
    font-size: 80px;
    font-family: var(--worksans);
}

.hungerdesc{
    font-size: 18px;
    line-height: 1.6;
    width: 60%;
    font-family: var(--worksans);
    color: #1E2321;
}

.foodshare-facts{
    padding: 0 24px 80px 24px;
}

.foodshare-container{
    padding: 32px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}


.foodshare-card{
    border: 1px solid #0B1849;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-radius: 12px;
    color: #0B1849;
    font-family: var(--gothic);
    width: 40%;
    min-width: 300px;
    max-width: 380px;
}

.foodshare-card img{
    width: 100%;
    opacity: 0.9;
    border-radius: 12px 12px 0 0;
}


.foodshare-desc{
    padding: 12px;
    border-top: 1px #0B1849 solid;
}

.foodshare-desc span{
    margin-left: 4px;
    font-size: 48px;
    font-family: var(--gothic);
    color: #1B5E20;
    font-weight: bolder;
}

.foodshare-desc p{
    color: #1E2321;
    line-height: 1.6;
    font-size: 15px;
    margin-block: 16px;
}

footer{
    border-top: 1px solid #0B1849;
    background-color: #0B1849;
    padding: 24px 32px;
    color: #e4e0e0;
}

.footer-cont{
    display: flex;
    justify-content: space-around;
}

.footer-left{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-left p{
    font-size: 18px;
    margin: 0;
    font-weight: bolder;
    font-family: var(--gothic);
    color: #e4e0e0;
}

.footer-left span{
    line-height: 1.6;
    font-family: var(--worksans);
    font-size: smaller;
    color: #c0bebe;
}

.footer-left a{
    font-family: var(--worksans);
    color: #e4e0e0;
    text-decoration: none;
    font-size: small;
    text-decoration: underline 1px;
    text-underline-offset: 6px;
}

.footer-center{
    font-size: small;
    font-family: var(--worksans);
    display: flex;
    gap: 16px;
    flex-direction: column;
}

.footer-center div{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-center p{
    font-weight: bolder;
    margin: 0;
}

.footer-right{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.footer-right a{
    font-family: var(--worksans);
    color: #e4e0e0;
    text-decoration: none;
    font-size: small;
    text-decoration: underline 1px;
    text-underline-offset: 6px;
    line-height: 1.6;
}

.icon-cont{
    display: flex;
    gap: 16px;
}

.icon-cont i{
    font-size: 24px;
}

/***************************** DIRECTORY CSS *************************************/

.directory-intro-desc{
    font-family: var(--gothic);
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.directory-intro-desc h3{
    font-weight: bolder;
    font-size: 14px;
    margin: 0;
}

.directory-intro-desc span{
        font-size: 48px;
        color: #1B5E20;
        font-weight: bolder;
}

.directory-intro-desc p{
    font-family: var(--worksans);
    color: #1E2321 ;
    opacity: 0.8;
    margin: 0;
}

.directory-intro{
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.directory-long-card{
    /* border: 1px solid var(--line);
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    background-color: #FBF7F0;
    border-radius: 8px; */
    border-left: #1B5E20 solid 4px;
    padding-left: 12px;
    padding-right: 12px;
}

.directory-long-card span{
    font-family: var(--gothic);
    font-size: large;
    font-weight: bolder;
    color: #0B1849;
}

.directory-long-card p{
    font-family: var(--worksans);
    color: #1E2321;
    line-height: 1.6;
    margin-top: 16px;
}

.directory-long-card a{
    font-family: var(--worksans);
    color: #1E2321;
    text-underline-offset: 4px;
}

.directory-container{
    padding: 40px 64px 80px 64px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.directory-cards{
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    padding: 12px;
    flex: 1;
    border-top: #0B1849 4px solid;
    font-family: var(--worksans);
    color: #1E2321;
    background-color: #FBF7F0;
    border-radius: 8px;
}

.directory-cards span{
    font-size: small;
    font-weight: bolder;
}

.directory-cards h3{
    color: #0B1849;
    font-family: var(--gothic);
    margin-left: 4px;
    font-weight: bolder;
    font-size: larger;
    font-size: 20px;
}

.directory-cards p{
    font-size: 14px;
    margin-left: 4px;
    margin-top: 16px;
    margin-bottom: 16px;
}



/*********************************** VOLUNTEER CSS *************************************/

.volunteer-cont{
    flex: 1;
    padding: 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.volunteer-left{
    width: 45%;
    padding: 24px 0 24px 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: flex-start;
}

.volunteer-left h3{
    margin: 0;
    color: #1B5E20;
    font-size: 14px;
    font-family: var(--gothic);
}

.volunteer-left p{
    font-family: var(--worksans);
    color: #1E2321 ;
    opacity: 0.8;
    margin: 0;
    line-height: 1.6;
}

.connect-n-serve{
    font-size: 48px;
    color: #1B5E20;
    font-weight: bolder;
    font-family: var(--gothic);
}

.steps-list{
    margin: 40px 0 0 20px;
    font-family: var(--worksans);
    display: flex;
    gap: 32px;
    flex-direction: column;
}

.step-item{
    display: flex;
    gap: 16px;
    flex-direction: column;
}

.step-item div{
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-item p{
    margin-left: 20px;
    opacity: 1;
}

.step-desc{
    color: #0B1849;
    font-weight: 500;
    font-size: 18px;
}

.step-num{
    color: #0B1849;
    font-weight: bold;
    font-size: 22px;
}

form{
    font-family: var(--worksans);
    border-radius: 12px;
    width: 45%;
    height: 100%;
    border: #ccc 1px solid;
    padding: 24px;
    background-color: #FBF7F0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    justify-content: center;
}

form label{
    font-weight: 550;
    color: #1E2321;
    font-size: 14px;
    line-height: 1.6;
}

form input{
    font-family: var(--worksans);
    background-color: #fff;
    border: #ccc 1px solid;
    border-radius: 8px;
    padding: 12px 14px;
    width: 100%;
}

form input::placeholder{
    font-family: var(--worksans);
}

form textarea:focus ,input:focus{
    outline: none;
    border: #2a2a2a solid 1px;
}

form textarea{
    font-family: var(--worksans);
    resize: none;
    height: 80px;
    background-color: #fff;
    border: #ccc 1px solid;
    border-radius: 8px;
    padding: 12px 14px;
    width: 100%;
}

form button{
    font-weight:700;
    color: #fff;
    width: 100%;
    padding:14px 28px;
    font-size: 1rem;
    font-family: var(--worksans);
    border-radius: 12px;
    cursor: pointer;
    border-radius:999px;
    border: #2a2a2a 1px solid;
    background-color: #1B5E20;
}

form button:hover{
    background-color: #144618;
}

.form-name{
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 50%;
}

.forms-cont{
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.forms-cont.name{
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
}


/************************************ MEDIA QUERIESSS ****************************/

@media (max-width: 1000px) {


    main {
        padding: clamp(3.8rem, 5vw, 5rem);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .main-container-left {
        padding: 0;
        width: 100%;
        max-width: 800px;
        display: flex;
        flex-direction: column; 
        align-items: center;
    }

    .main-container-left button{
        font-size: clamp(15px, 2.5vw, 18px);
    }

    .main-container-right {
        display: none;
    }

    h2{ 
        font-size: clamp(28px, 8vw, 58px); 
    } 

    .subheadingdesc { 
        font-size: clamp(18px, 4vw, 24px); 
    } 

    .maindesc { 
        font-size: clamp(15px, 2.5vw, 18px); 
        width: 100%; 
    }
    
    .main-btncont {
        display: flex;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap
    }

    .hunger-infos{
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hungerdesc{
        width: 80%;
        font-size: 16px;
    }

    .hungerstats{
        font-size: clamp(80px, 5.8rem, 120px);
    }

    .in{
        font-size: 64px;
    }

    .info-intro{
        text-align: center;
        font-size: clamp(24px, 3.5vw, 32px);
    }

    .footer-cont{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
        row-gap: 32px;
        flex-direction: column;
    }

    .footer-left, .footer-right{
        gap: 24px;
    }

    .footer-left br{
        display: none;
    }

    .footer-right{
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        justify-content: flex-start;
        flex-direction: row;
        grid-column: span 2 / span 2;
    }

    .directory-intro-desc p{
        font-size: clamp(14px, 1vw + 10px, 16px)
    }

    .directory-intro-desc span{
        font-size: clamp(2rem, 1.33vw + 1.5rem, 3rem);
    }

    .directory-long-card p{
        font-size: 15px;
    }
    

    .directory-container{
        grid-template-columns: repeat(2, 1fr);
    }

    .volunteer-cont{
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .volunteer-left{
        width: 100%;
        padding: 0;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .volunteer-left p{
        font-size: clamp(14px, 1vw + 10px, 16px)
    }

    .connect-n-serve{
        font-size: clamp(2rem, 1.33vw + 1.5rem, 3rem); 
    }


    form{
        width: 100%;
        max-width: 800px;
    }

    form button{
        font-size: clamp(15px, 2.5vw, 18px);
    }

    .steps-list{
        display: none;
    }
}


@media (max-width: 880px) {

    header{
        padding: 16px;
    }

    .menu-icon{
        display: block;
        font-size: clamp(24px, 2.5vw + 18px, 32px);;
    }


    nav{
        display: none;
        position: absolute;
        top: 72px;
        right: 20px;
        flex-direction: column;
        gap: 20px;
        background-color: ghostwhite;
        padding: 20px;
        height: 160px;
        border-radius: 8px;
        border: 1px solid #2a2a2a;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    }

    nav a{
        margin: 0;
    }

    nav.active{
        display: flex;
        justify-content: center;
    }

    .logo{
        gap: 0;
    }

    .logo img{
        width: 10rem;
    }

    .logo p{
        margin: 0;
        margin-left: 6px;
        font-size: 14px;
    }
}

@media (max-width: 720px) {

    .directory-container{
        grid-template-columns: repeat(1, 1fr);
        padding: 32px;
    }

}


@media (max-width: 580px) {
    

    .logo{
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    main{
        padding: 32px 20px;
    }
    

    .footer-cont{
        grid-template-columns: 1fr;
        gap: 32px;
        flex-direction: column;
    }

    .footer-right {
        grid-column: span 1;
    }

    .footer-center{
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .forms-cont.name{
        flex-direction: column;
    }

    .form-name{
        width: 100%;
    }

}

@media (max-width: 480px) {
    .logo{
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
    }

    .logo img{
        width: 9rem;
    }

    .logo p{
        margin: 0;
        margin-left: 6px;
        font-size: 10px;
    }
}



/******************** modal ********************/
.modal-overlay{
  position:fixed; inset:0;
  background: rgba(0, 0, 0, 0.6);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:100;
}

.modal-overlay.show{display:flex;}

.modal-box{
    max-width: 75%;
    min-width: 320px;
    text-align: center;
    line-height: 1.6;
    font-family: var(--worksans);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    gap: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #e4e0e0;
    color: #1E2321;
    /* border-top: #D32F2F 4px solid;
    border-right: #29B6F6 4px solid;
    border-bottom: #FFCA28 4px solid;
    border-left: #E91E63 4px solid; */
    border: 4px solid;
    border-image: linear-gradient(to right, var(--brand-red), var(--brand-blue), var(--brand-green), var(--brand-gold), var(--brand-magenta)) 1;;
}

.modal-box h3{
    margin: 0;
    font-family: var(--gothic);
    font-size: clamp(2.5rem, 3.5vw, 3.875rem);
    color: #1B5E20;
}

.modal-box p{
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    margin: 0;
    max-width: 520px
}

.modal-box h4{
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    max-width: 520px;
    margin: 0;
    color: #0B1849;
}

.modal-box button{
    font-weight:700;
    color: #fff;
    width: 100%;
    padding:12px 24px;
    font-size: 1rem;
    font-family: var(--worksans);
    border-radius: 12px;
    cursor: pointer;
    border-radius:999px;
    border: #2a2a2a 1px solid;
    background-color: #1B5E20;
}

.modal-box button:hover{
    background-color: #144618;
}



/******************************* Extra styles *******************************/

.red {color: #D32F2F; }
.blue {color: #29B6F6; }
.yellow {color: #F2A93B; }
.violet {color: #E91E63; }
.green{color: #1B5E20;}

.red-border{border-top: #D32F2F 4px solid;}
.blue-border{border-top: #29B6F6 4px solid;}
.violet-border{border-top: #E91E63 4px solid;}
.yellow-border{border-top: #F2A93B 4px solid;}
.green-border{border-top: #1B5E20 4px solid;}