/* --- 1. RESET & VARIABLES --- */
:root {
    --bg-dark: #000000;
    --bg-card: #0f0f0f;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent: #d4af37; /* Gold Color */
    --border: #333333;
    --danger: #d9534f;
}

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

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

/* TYPOGRAPHY */
h1, h2, h3, h4, .btn, .nav-links a, .menu-price, .btn-full-width { 
    font-family: 'Oswald', sans-serif; 
    text-transform: uppercase; 
    letter-spacing: 2px;
}

/* --- 2. UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.section-padding { padding: 100px 0; }
.divider { width: 60px; height: 3px; background: #fff; margin: 20px auto; }

/* --- 3. NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

/* Desktop Menu */
@media (min-width: 901px) {
    .nav-links {
        display: flex;
        align-items: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
    }

    .nav-links a {
        color: #fff;
        text-decoration: none;
        margin: 0 20px;
        font-size: 0.85rem;
        font-weight: 400;
        opacity: 0.7;
        transition: 0.3s;
    }
    
    .nav-links a:hover { opacity: 1; color: var(--accent); }
    
    .nav-links .btn {
        margin-left: 20px;
        padding: 10px 25px;
        font-size: 0.8rem;
    }
}

/* Mobile Hamburger & Close Buttons */
.hamburger { display: none; color: #fff; font-size: 2rem; cursor: pointer; }
.close-menu-btn { display: none; }

/* --- 4. HERO SECTION --- */
.hero {
    min-height: 90vh;
    /* Generic Barbershop Background Image */
    background-image: url('https://images.unsplash.com/photo-1621605815971-fbc98d665033?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-color: #000;
    background-blend-mode: saturation;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); }
.hero-content { position: relative; z-index: 2; padding: 20px; width: 100%; }
.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 10px; color: #fff; }
.hero p { font-size: 1rem; color: #ccc; letter-spacing: 4px; margin-bottom: 40px; }

/* --- 5. BUTTONS --- */
.btn {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 15px 40px;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid #fff;
    transition: 0.3s;
    cursor: pointer;
}
.btn:hover { background: var(--accent); color: #000; border-color: var(--accent); }

.btn-outline { 
    background: transparent; 
    color: #fff; 
    border: 1px solid #fff; 
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    transition: 0.3s;
}
.btn-outline:hover { background: #fff; color: #000; }

/* --- 6. ABOUT SECTION --- */
.about-section { background: var(--bg-dark); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 20px; font-weight: 300; }
.about-img { width: 100%; height: 400px; object-fit: cover; filter: grayscale(100%); border: 1px solid #333; }

/* --- 7. TEAM GRID (Fixes the "Messed Up" Team Layout) --- */
.team-grid { 
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; 
    margin-top: 40px; 
}
.team-card { position: relative; overflow: hidden; border: 1px solid #222; }
.team-card img { width: 100%; height: 350px; object-fit: cover; filter: grayscale(100%); transition: 0.3s; }
.team-card:hover img { filter: grayscale(0%); transform: scale(1.03); }
.team-info { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0,0,0,0.8); padding: 15px; text-align: center; }
.team-info h4 { margin: 0; color: #fff; font-size: 1rem; }

/* Desktop Team Grid */
@media (min-width: 1024px) {
    .team-grid { grid-template-columns: repeat(6, 1fr); }
}

/* --- 8. SERVICES LIST --- */
.menu-list { max-width: 800px; margin: 0 auto; margin-top: 40px; }
.menu-item { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #222; padding: 20px 0; transition: 0.2s; }
.menu-item:hover { border-color: #555; padding-left: 10px; padding-right: 10px; }
.menu-title h3 { font-size: 1.3rem; font-weight: 400; }
.menu-title span { display: block; font-size: 0.8rem; color: #666; font-family: 'Manrope'; text-transform: none; letter-spacing: 0; margin-top: 5px; }
.menu-price { font-size: 1.3rem; min-width: 70px; text-align: right; color: var(--accent); }

/* --- 9. PORTFOLIO GRID --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.portfolio-item { height: 350px; overflow: hidden; border: 1px solid #222; position: relative; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.5s ease; }
.portfolio-item:hover img { filter: grayscale(0%); transform: scale(1.1); }

/* --- 10. LOCATIONS / MAPS GRID (Fixes Maps) --- */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.loc-item { padding: 40px 20px; text-align: center; border-right: 1px solid var(--border); transition: 0.3s; }
.loc-item:last-child { border-right: none; }
.loc-item:hover { background: #111; }
.loc-item h3 { font-size: 1.8rem; margin: 15px 0; }
.loc-item p { color: #888; margin-bottom: 25px; font-size: 0.9rem; }

/* Map Container */
.map-container { width: 100%; height: 250px; margin-bottom: 20px; background: #222; }
iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.map-container:hover iframe { pointer-events: auto; }

/* --- 11. CONTACT SECTION --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); }
.contact-box { padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.contact-dark { background: #050505; text-align: right; border-right: 1px solid var(--border); }
.contact-light { background: #111; text-align: left; }
.contact-label { color: #555; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.contact-value { font-size: 1.2rem; margin-bottom: 30px; font-family: 'Oswald'; }
.hours-list p { display: flex; justify-content: space-between; margin-bottom: 10px; border-bottom: 1px solid #222; padding-bottom: 5px; font-size: 0.9rem; color: #ccc; }
.hours-list span { color: #fff; font-weight: 700; }

/* --- 12. FOOTER & AGENCY --- */
footer { padding: 60px 0; text-align: center; font-size: 0.8rem; color: #444; border-top: 1px solid #111; }

.agency-credit {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #222;
    display: inline-block;
}

.agency-credit a {
    text-decoration: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.agency-credit:hover a { opacity: 0.8; }

.agency-name {
    font-family: 'Oswald', sans-serif;
    color: var(--accent); 
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* --- 13. MODAL & BOOKING SYSTEM --- */
.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.95); 
    display: flex; justify-content: center; align-items: center; 
    z-index: 3000; 
    opacity: 0; pointer-events: none; transition: 0.3s; 
    backdrop-filter: blur(5px); 
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-box { 
    background: #000; border: 1px solid #333; padding: 40px; 
    width: 90%; max-width: 500px; text-align: center; position: relative; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.close-btn { 
    position: absolute; top: 15px; right: 20px; font-size: 2rem; 
    color: #fff; cursor: pointer; line-height: 0.5; transition: 0.2s;
}
.close-btn:hover { color: var(--accent); }

/* Inputs */
select, input[type="date"], input[type="text"], input[type="email"], input[type="tel"] {
    outline: none; transition: 0.3s;
}
select:focus, input:focus { border-color: var(--accent) !important; }

/* Time Slots */
.slot-btn { 
    background: #111; color: #fff; border: 1px solid #333; 
    padding: 10px 15px; cursor: pointer; font-family: 'Oswald', sans-serif; 
    min-width: 70px; transition: 0.2s; margin-bottom: 5px; 
}
.slot-btn:hover { background: #333; border-color: #555; }
.slot-btn.taken { 
    background: #000; color: #333; border-color: #222; 
    text-decoration: line-through; cursor: not-allowed; 
}
.slot-btn.selected { 
    background: var(--accent); color: #000; border-color: var(--accent); 
    transform: scale(1.05); font-weight: bold;
}

/* --- 14. MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
    .section-padding { padding: 60px 0; }
    
    /* Mobile Menu */
    .nav-links { 
        position: fixed; top: 0; right: 0; height: 100vh; width: 100%; background-color: #000;
        flex-direction: column; justify-content: center; align-items: center;
        transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000; border-left: 1px solid #333;
        display: flex; 
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links a { margin: 15px 0; font-size: 1.5rem; color: #fff; text-decoration: none; }
    .nav-links .btn { margin: 20px 0 0 0; }
    
    .hamburger { display: block; z-index: 2001; }
    .close-menu-btn { display: block; position: absolute; top: 25px; right: 30px; font-size: 3rem; color: #fff; cursor: pointer; transition: 0.3s; }
    .close-menu-btn:hover { color: var(--accent); }

    .hero h1 { font-size: 2.8rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .contact-dark { text-align: center; border-right: none; border-bottom: 1px solid var(--border); }
    .contact-light { padding: 40px 20px; }
    .menu-item { flex-wrap: wrap; } 
    .menu-price { margin-left: auto; }
    
    /* Mobile Maps & Team */
    .loc-grid { grid-template-columns: 1fr; }
    .loc-item { border-right: none; border-bottom: 1px solid var(--border); }
    .team-grid { grid-template-columns: 1fr 1fr; } /* 2 columns on mobile */
}

@media (max-width: 480px) { 
    .hero h1 { font-size: 2.2rem; } 
    .btn { padding: 12px 30px; } 
    .container { padding: 0 15px; } 
    .modal-box { padding: 25px; }
    .team-grid { grid-template-columns: 1fr; } /* 1 column on small phones */
}