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

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

html{
    scroll-behavior:smooth;
}

body{
    background:#0f0f0f;
    color:#ffffff;
    font-family:'Montserrat', sans-serif;
    overflow-x:hidden;
    line-height:1.7;
}

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

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

section{
    padding:100px 0;
}

h1,
h2,
h3{
    font-family:'Cinzel', serif;
    letter-spacing:2px;
}

h2{
    text-align:center;
    margin-bottom:40px;
    font-size:2.5rem;
    color:#d4af37;
}

a{
    text-decoration:none;
}

/* ==========================
   NAVIGATION
========================== */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
}

.navbar{
    background:rgba(0,0,0,.92);
    backdrop-filter:blur(8px);
    padding:20px 0;
    display:flex;
    justify-content:center;
    align-items:center;
}

.nav-links{
    list-style:none;
    display:flex;
    gap:60px;
}

.nav-links li{
    position:relative;
}

.nav-links a{
    color:#ffffff;
    font-size:1rem;
    text-transform:uppercase;
    letter-spacing:2px;
    transition:.3s;
    padding-bottom:5px;
}

/* Hover Underline */

.nav-links a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:0%;
    height:2px;
    background:#d4af37;
    transition:.3s;
}

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

.nav-links a:hover{
    color:#d4af37;
}

/* ==========================
   DROPDOWN
========================== */

.dropdown-menu{

    position:absolute;

    top:100%;

    left:50%;
    transform:translateX(-50%);

    min-width:240px;

    padding:12px;

    background:rgba(20,20,20,.92);

    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);

    border:1px solid rgba(255,255,255,.08);

    border-radius:24px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.35);

    display:none;

    list-style:none;

    text-align:center;

    overflow:hidden;

}

.dropdown-menu li{
    width:100%;
    margin:4px 0;
}

.dropdown-menu a{

    display:block;

    padding:14px 20px;

    border-radius:16px;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;

}

.dropdown-menu a:hover{

    background:rgba(212,175,55,.12);

    color:#d4af37;

    transform:translateY(-1px);

}

.dropdown:hover .dropdown-menu{
    display:block;
}

/* ==========================
   MOBILE TOGGLE
========================== */

.mobile-toggle{
    display:none;
    color:#ffffff;
    font-size:2rem;
    cursor:pointer;
}

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

.hero{
    height:100vh;
    position:relative;

    background-image:url("hero-banner.jpg");
    background-position:center;
    background-size:cover;
    background-repeat:no-repeat;

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

.hero-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.55);
}

.hero-content{
    position:relative;
    z-index:2;
    width:90%;
}

.hero-logo{
    width:140px;
    margin-bottom:20px;
}

.hero h1{
    font-size:4rem;
    margin-bottom:15px;
}

.hero p{
    font-size:1.2rem;
    margin-bottom:30px;
}


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

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

.about-section p{
    max-width:900px;
    margin:20px auto;
    font-size:1.05rem;
}

/* ==========================
   LOCATIONS
========================== */

.locations-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:40px;
    margin-top:50px;
}

.location-card{
    border:1px solid #2a2a2a;
    padding:40px;
    text-align:center;
    transition:.3s;

    border-radius: 32px;
}

.location-card:hover{
    transform:translateY(-25px);
    border-color:#d4af37;
}

.location-card h3{
    margin-bottom:20px;
    color:#d4af37;
}

.location-card p{
    margin-bottom:10px;
}

.location-btn{
    display:inline-block;
    margin-top:20px;
    padding:12px 28px;
    border:1px solid #d4af37;
    color:#d4af37;
    transition:.3s;

    border-radius: 999px;
}

.location-btn:hover{
    background:#d4af37;
    color:#000;
}

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

footer{
    text-align:center;
    padding:50px 20px;
    border-top:1px solid #222;
}

footer h3{
    margin-bottom:10px;
    color:#d4af37;
}

.footer-links{
    margin-top:20px;
    display:flex;
    justify-content:center;
    gap:25px;
    flex-wrap:wrap;
}

.footer-links a{
    color:#ffffff;
    transition:.3s;
}

.footer-links a:hover{
    color:#d4af37;
}

/* ==========================
   LOCATION PAGES
========================== */

.location-header{
    padding-top:160px;
    text-align:center;
}

.location-header h1{
    margin-bottom:20px;
}

.location-header p{
    margin-bottom:10px;
}

/* ==========================
   BARBERS
========================== */

.barbers-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:40px;
    margin-top:40px;
}

.barber-card{
    text-align:center;
    border:1px solid #222;
    padding:30px;
    transition:.3s;
}

.barber-card:hover{
    border-color:#6937d4;
    transform:translateY(-5px);
}

.barber-card img{
    width:100%;
    height:350px;
    object-fit:cover;
    margin-bottom:20px;
}

.barber-card h3{
    color:#d4af37;
    margin-bottom:10px;
}

.barber-card p{
    margin-bottom:10px;
}

.book-btn{
    display:inline-block;
    margin-top:15px;
    padding:12px 28px;
    border:1px solid #d4af37;
    color:#d4af37;
    transition:.3s;
}

.book-btn:hover{
    background:#d4af37;
    color:#000;
}

/* ==========================
   BARBERS
========================== */

.barbers-grid{

    display:flex;
    flex-wrap:wrap;

    justify-content:center;

    gap:40px;

    margin-top:40px;

}

.barber-card{

    width:320px;
    max-width:100%;

    text-align:center;

    background:#121212;

    border:1px solid #2a2a2a;

    border-radius:32px;

    padding:24px;

    overflow:hidden;

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;

}

.barber-card:hover{

    border-color:#6937d4;

    transform:translateY(-6px);

    box-shadow:
        0 20px 40px rgba(0,0,0,.45);

}

.barber-card img{

    width:100%;

    height:320px;

    object-fit:cover;

    border-radius:24px;

    margin-bottom:20px;

}

.barber-card h3{

    color:#d4af37;

    margin-bottom:10px;

}

.barber-card p{

    margin-bottom:10px;

}

.book-btn{

    display:inline-block;

    margin-top:15px;

    padding:12px 28px;

    border:1px solid #d4af37;

    color:#d4af37;

    background:transparent;

    border-radius:999px;

    transition:.3s;

}

.book-btn:hover{

    background:#d4af37;

    color:#000;

}


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

.fade-in{
    opacity:0;
    transform:translateY(30px);
    transition:all .8s ease;
}

.fade-in.show{
    opacity:1;
    transform:translateY(0);
}

/* ==========================
   TABLETS
========================== */

@media(max-width:992px){

    .hero h1{
        font-size:3rem;
    }

    .nav-links{
        gap:35px;
    }

}

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

@media(max-width:768px){

    .mobile-toggle{
        display:block;
        position:absolute;
        right:25px;
    }

    .navbar{
        justify-content:center;
        min-height:70px;
    }

    .nav-links{
        display:none;
        flex-direction:column;
        position:absolute;
        top:70px;
        left:0;
        width:100%;
        background:#000;
        gap:0;
        text-align:center;
    }

    .nav-links.active{
        display:flex;
    }

    .nav-links li{
        padding:20px 0;
    }

    .dropdown-menu{
        position:static;
        transform:none;
        width:100%;
        border:none;
        background:#111;
    }

    .dropdown:hover .dropdown-menu{
        display:none;
    }

    .dropdown.open .dropdown-menu{
        display:block;
    }

    .hero h1{
        font-size:2.2rem;
    }

    .hero-logo{
        width:100px;
    }

    h2{
        font-size:2rem;
    }

    .location-card{
        padding:30px;
    }

    .barber-card{
        width:100%;
        max-width:380px;
    }

    .barber-card img{
        height:300px;
    }

}