/* ==========================================================
   WARKOP D3 COFFEE
   style.css
   ========================================================== */

/* ================= GOOGLE FONT ================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
    scroll-behavior:smooth;
}

:root{

    --primary:#d4a017;
    --secondary:#8b5e3c;
    --dark:#111111;
    --dark2:#1a1a1a;
    --card:#222222;
    --white:#ffffff;
    --cream:#f5f0e8;
    --gray:#bbbbbb;

    --shadow:0 10px 30px rgba(0,0,0,.30);
    --radius:15px;
    --transition:.4s;

}

body{

    background:var(--dark);
    color:var(--white);
    overflow-x:hidden;

}

img{

    width:100%;
    display:block;

}

a{

    text-decoration:none;
    color:var(--white);

}

ul{

    list-style:none;

}

section{

    padding:100px 8%;

}

html{

    scroll-behavior:smooth;

}

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

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#111;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);
    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#f2b705;

}

/* ================= NAVBAR ================= */

nav{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 8%;

    background:rgba(0,0,0,.55);

    backdrop-filter:blur(10px);

    z-index:999;

    transition:.3s;

}

nav.scrolled{

    background:#111;
    box-shadow:var(--shadow);

}

.logo{

    font-size:30px;
    font-weight:700;

}

.logo span{

    color:var(--primary);

}

nav ul{

    display:flex;
    align-items:center;
    gap:35px;

}

nav ul li a{

    font-size:16px;
    font-weight:500;
    transition:var(--transition);

}

nav ul li a:hover{

    color:var(--primary);

}

nav ul li a.active{

    color:var(--primary);

}

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

.hero{

    min-height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;

    text-align:center;

    background:

    linear-gradient(rgba(0,0,0,.65),rgba(0,0,0,.65)),

    url("https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=1900&q=80");

    background-size:cover;
    background-position:center;

}

.hero h1{

    font-size:80px;
    margin-bottom:20px;

}

.hero h1 span{

    color:var(--primary);

}

.hero p{

    width:70%;
    margin:auto;

    line-height:1.8;

    color:var(--gray);

    font-size:18px;

}

.btn{

    display:inline-block;

    margin-top:35px;

    padding:15px 40px;

    border-radius:50px;

    background:var(--primary);

    color:#111;

    font-weight:600;

    transition:var(--transition);

}

.btn:hover{

    background:#fff;

    transform:translateY(-5px);

    box-shadow:0 10px 25px rgba(212,160,23,.4);

}

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

.page-header{

    min-height:45vh;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    background:

    linear-gradient(rgba(0,0,0,.70),rgba(0,0,0,.70)),

    url("https://images.unsplash.com/photo-1445116572660-236099ec97a0?w=1900");

    background-size:cover;
    background-position:center;

    padding-top:120px;

}

.page-content h1{

    font-size:55px;
    margin-bottom:15px;

}

.page-content h1 span{

    color:var(--primary);

}

.page-content p{

    max-width:700px;

    margin:auto;

    color:#ddd;

    line-height:1.8;

}

/* ================= TITLE ================= */

.title{

    text-align:center;

    margin-bottom:60px;

}

.title small{

    color:var(--primary);

    letter-spacing:2px;

    font-weight:600;

}

.title h2{

    font-size:42px;

    margin-top:10px;

}

.title h2 span{

    color:var(--primary);

}

.title p{

    width:70%;

    margin:20px auto;

    color:var(--gray);

    line-height:1.8;

}/* ==========================================================
   ABOUT
========================================================== */

.about{

    background:var(--dark2);

}

.about-box{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}

.card{

    background:var(--card);

    padding:35px 25px;

    border-radius:var(--radius);

    text-align:center;

    border:1px solid #333;

    transition:var(--transition);

    box-shadow:var(--shadow);

}

.card:hover{

    transform:translateY(-10px);

    border-color:var(--primary);

    box-shadow:0 15px 35px rgba(212,160,23,.25);

}

.card i{

    font-size:45px;

    color:var(--primary);

    margin-bottom:20px;

}

.card h3{

    margin-bottom:15px;

    font-size:22px;

}

.card p{

    color:var(--gray);

    line-height:1.8;

}

/* ==========================================================
   HISTORY
========================================================== */

.history{

    background:#111;

}

.history-content{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:50px;

    align-items:center;

}

.history-image img{

    border-radius:20px;

    box-shadow:var(--shadow);

}

.history-text p{

    color:var(--gray);

    line-height:2;

    text-align:justify;

}

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

.menu{

    background:#111;

}

.menu-box{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

.menu-card{

    background:var(--card);

    border-radius:18px;

    overflow:hidden;

    border:1px solid #333;

    transition:var(--transition);

    box-shadow:var(--shadow);

}

.menu-card:hover{

    transform:translateY(-10px);

    border-color:var(--primary);

}

.menu-card img{

    width:100%;

    height:230px;

    object-fit:cover;

    transition:.5s;

}

.menu-card:hover img{

    transform:scale(1.08);

}

.menu-info{

    padding:25px;

}

.menu-info h3{

    font-size:22px;

    margin-bottom:10px;

}

.menu-info p{

    color:var(--gray);

    line-height:1.8;

    margin-bottom:20px;

}

/* ==========================================================
   PRICE
========================================================== */

.price{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.price span{

    color:var(--primary);

    font-size:24px;

    font-weight:700;

}

.price a{

    background:var(--primary);

    color:#111;

    padding:10px 20px;

    border-radius:30px;

    font-weight:600;

    transition:var(--transition);

}

.price a:hover{

    background:#fff;

    transform:scale(1.05);

}

/* ==========================================================
   PROMO
========================================================== */

.promo{

    background:linear-gradient(135deg,#2a2a2a,#181818);

    border-radius:20px;

    padding:60px;

    text-align:center;

    box-shadow:var(--shadow);

}

.promo h2{

    font-size:40px;

    margin-bottom:20px;

}

.promo h2 span{

    color:var(--primary);

}

.promo p{

    color:var(--gray);

    line-height:2;

    font-size:18px;

}

/* ==========================================================
   BUTTON
========================================================== */

button,

input[type=submit]{

    cursor:pointer;

    border:none;

    outline:none;

}

.btn-outline{

    display:inline-block;

    padding:12px 30px;

    border:2px solid var(--primary);

    color:var(--primary);

    border-radius:40px;

    transition:var(--transition);

}

.btn-outline:hover{

    background:var(--primary);

    color:#111;

}

/* ==========================================================
   IMAGE EFFECT
========================================================== */

img{

    transition:.4s;

}

img:hover{

    filter:brightness(105%);

}

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

.about,

.menu,

.history{

    position:relative;

}

.about::after,

.menu::after,

.history::after{

    content:"";

    display:block;

    width:80px;

    height:3px;

    background:var(--primary);

    margin:60px auto 0;

    opacity:.15;

}/* ==========================================================
   GALLERY
========================================================== */

.gallery{

    background:var(--dark2);

}

.gallery-box{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;

}

.gallery-item{

    overflow:hidden;

    border-radius:18px;

    box-shadow:var(--shadow);

    cursor:pointer;

}

.gallery-item img{

    width:100%;

    height:260px;

    object-fit:cover;

    transition:.5s;

}

.gallery-item:hover img{

    transform:scale(1.1);

}

/* ==========================================================
   TIMELINE
========================================================== */

.timeline{

    background:#111;

}

.timeline-box{

    max-width:900px;

    margin:auto;

}

.timeline-item{

    display:flex;

    gap:30px;

    margin-bottom:35px;

    align-items:flex-start;

}

.year{

    min-width:100px;

    text-align:center;

    padding:12px;

    background:var(--primary);

    color:#111;

    font-weight:700;

    border-radius:10px;

}

.timeline-content{

    flex:1;

    background:var(--card);

    padding:25px;

    border-radius:15px;

    border-left:5px solid var(--primary);

    box-shadow:var(--shadow);

}

.timeline-content h3{

    margin-bottom:10px;

}

.timeline-content p{

    color:var(--gray);

    line-height:1.8;

}

/* ==========================================================
   CONTACT
========================================================== */

.contact{

    background:#111;

}

.contact-box{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

.contact-card{

    background:var(--card);

    padding:40px 25px;

    text-align:center;

    border-radius:18px;

    border:1px solid #333;

    transition:var(--transition);

    box-shadow:var(--shadow);

}

.contact-card:hover{

    transform:translateY(-10px);

    border-color:var(--primary);

}

.contact-card i{

    font-size:42px;

    color:var(--primary);

    margin-bottom:20px;

}

.contact-card h3{

    margin-bottom:10px;

}

.contact-card p{

    color:var(--gray);

    line-height:1.8;

}

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

footer{

    background:#0b0b0b;

    text-align:center;

    padding:40px 20px;

}

footer h2{

    color:var(--primary);

    margin-bottom:10px;

}

footer p{

    color:var(--gray);

    font-size:15px;

}

/* ==========================================================
   WHATSAPP BUTTON
========================================================== */

.whatsapp{

    position:fixed;

    right:25px;

    bottom:25px;

    width:60px;

    height:60px;

    border-radius:50%;

    background:#25D366;

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:28px;

    box-shadow:var(--shadow);

    z-index:999;

    transition:var(--transition);

}

.whatsapp:hover{

    transform:scale(1.12);

}

/* ==========================================================
   BACK TO TOP
========================================================== */

.top{

    position:fixed;

    right:25px;

    bottom:100px;

    width:55px;

    height:55px;

    border-radius:50%;

    background:var(--primary);

    color:#111;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:22px;

    cursor:pointer;

    opacity:0;

    visibility:hidden;

    transition:var(--transition);

    z-index:999;

}

.top.show{

    opacity:1;

    visibility:visible;

}

.top:hover{

    transform:translateY(-5px);

}

/* ==========================================================
   ANIMATION
========================================================== */

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.hero h1{

    animation:fadeUp .8s ease;

}

.hero p{

    animation:fadeUp 1s ease;

}

.hero .btn{

    animation:fadeUp 1.2s ease;

}

/* ==========================================================
   HOVER EFFECT
========================================================== */

.card:hover,
.menu-card:hover,
.contact-card:hover,
.timeline-content:hover{

    box-shadow:0 18px 35px rgba(212,160,23,.25);

}

/* ==========================================================
   SELECTION COLOR
========================================================== */

::selection{

    background:var(--primary);

    color:#111;

}

/* ==========================================================
   SMOOTH TRANSITION
========================================================== */

.card,
.menu-card,
.contact-card,
.gallery-item,
.timeline-content,
.btn,
.price a{

    transition:all .35s ease;

}/* ==========================================================
   RESPONSIVE 1200px
========================================================== */

@media (max-width:1200px){

    section{
        padding:90px 6%;
    }

    .hero h1{
        font-size:70px;
    }

    .menu-box{
        grid-template-columns:repeat(3,1fr);
        gap:25px;
    }

    .gallery-box{
        grid-template-columns:repeat(3,1fr);
    }

}

/* ==========================================================
   RESPONSIVE 992px
========================================================== */

@media (max-width:992px){

    nav{

        padding:18px 6%;

        flex-direction:column;

        gap:15px;

    }

    nav ul{

        flex-wrap:wrap;

        justify-content:center;

        gap:20px;

    }

    .hero{

        text-align:center;

    }

    .hero h1{

        font-size:60px;

    }

    .hero p{

        width:90%;

    }

    .history-content{

        grid-template-columns:1fr;

    }

    .about-box{

        grid-template-columns:repeat(2,1fr);

    }

    .menu-box{

        grid-template-columns:repeat(2,1fr);

    }

    .gallery-box{

        grid-template-columns:repeat(2,1fr);

    }

    .contact-box{

        grid-template-columns:repeat(2,1fr);

    }

}

/* ==========================================================
   RESPONSIVE 768px
========================================================== */

@media (max-width:768px){

    nav{

        flex-direction:column;

        text-align:center;

    }

    nav ul{

        flex-direction:column;

        gap:12px;

        margin-top:10px;

    }

    .logo{

        font-size:28px;

    }

    .hero{

        min-height:90vh;

        padding:0 20px;

    }

    .hero h1{

        font-size:46px;

    }

    .hero p{

        width:100%;

        font-size:16px;

    }

    .page-content h1{

        font-size:40px;

    }

    .title h2{

        font-size:34px;

    }

    .title p{

        width:100%;

    }

    .about-box{

        grid-template-columns:1fr;

    }

    .menu-box{

        grid-template-columns:1fr;

    }

    .gallery-box{

        grid-template-columns:1fr;

    }

    .contact-box{

        grid-template-columns:1fr;

    }

    .timeline-item{

        flex-direction:column;

    }

    .year{

        width:120px;

    }

    .history-image{

        order:-1;

    }

}

/* ==========================================================
   RESPONSIVE 576px
========================================================== */

@media (max-width:576px){

    section{

        padding:70px 5%;

    }

    .hero h1{

        font-size:36px;

    }

    .hero p{

        font-size:15px;

    }

    .btn{

        padding:12px 28px;

    }

    .page-header{

        min-height:35vh;

    }

    .page-content h1{

        font-size:32px;

    }

    .title h2{

        font-size:28px;

    }

    .card{

        padding:25px;

    }

    .menu-info{

        padding:18px;

    }

    .menu-card img{

        height:200px;

    }

    .gallery-item img{

        height:220px;

    }

    .contact-card{

        padding:30px 20px;

    }

    .whatsapp{

        width:55px;

        height:55px;

        font-size:24px;

        right:15px;

        bottom:15px;

    }

    .top{

        width:50px;

        height:50px;

        right:15px;

        bottom:85px;

    }

    footer{

        padding:30px 15px;

    }

}

/* ==========================================================
   END OF FILE
========================================================== */
