@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Playfair+Display:wght@400;700&display=swap');

:root {
    --primary-color: #c5a059; /* Muted Gold */
    --primary-hover: #e6c67e;
    --bg-color: #0f0f0f; /* Deep Black */
    --secondary-bg: #161616; /* Dark Gray */
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.7;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; color: var(--primary-color); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* --- Header & Nav --- */
header {
    background-color: rgba(10, 10, 10, 0.95);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo img {
    height: 80px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 10px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* --- Mobile Menu --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 30px;
    height: 2px;
    background-color: white;
    margin: 4px 0;
    transition: 0.4s;
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s;
    }
    nav ul.active { left: 0; }
}

/* --- Layout --- */
main { flex: 1; width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 5rem 0; }

/* --- Hero --- */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1585747860715-2ba37e788b70?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 0 20px;
}

.hero-content { max-width: 800px; }
.hero h1 { font-size: 4rem; text-transform: uppercase; letter-spacing: 2px; }
.hero p { font-size: 1.2rem; color: #f0f0f0; margin-bottom: 2.5rem; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #000;
    padding: 15px 35px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
}

.btn:hover { background-color: transparent; color: var(--primary-color); }

.btn-outline { background-color: transparent; color: white; border: 2px solid white; }
.btn-outline:hover { background-color: white; color: #000; }

.btn-danger { border-color: #ff4444; background: transparent; color: #ff4444; }
.btn-danger:hover { background: #ff4444; color: white; }

.btn-sm { padding: 5px 15px; font-size: 0.8rem; }

/* --- Cards --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--secondary-bg);
    padding: 3rem 2rem;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    transition: var(--transition);
}

.card:hover { transform: translateY(-10px); border-color: var(--primary-color); }
.card h3 { color: var(--primary-color); margin-bottom: 1rem; }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-control {
    width: 100%;
    padding: 12px;
    background: #0a0a0a;
    border: 1px solid #333;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
}
.form-control:focus { outline: none; border-color: var(--primary-color); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* --- Footer --- */
footer {
    background-color: #050505;
    padding: 4rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h4 { color: var(--primary-color); margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.copyright { text-align: center; padding-top: 3rem; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; color: #666; }

/* --- Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--secondary-bg);
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.team-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary-color); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.team-img-container { 
    width: 100%; 
    height: 400px; 
    overflow: hidden; 
    position: relative;
}

.team-img-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    opacity: 0.7;
    transition: var(--transition);
}

.team-card:hover .team-img-container::after {
    opacity: 0.4;
}

.team-img-container img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

.team-card:hover .team-img-container img { 
    transform: scale(1.08); 
}

.team-info { 
    padding: 2rem 1.5rem; 
    text-align: center; 
    position: relative;
    z-index: 1;
}

.team-name { 
    color: var(--primary-color); 
    font-size: 1.8rem; 
    margin-bottom: 0.5rem; 
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.team-role { 
    color: white; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 1.5rem; 
    display: block; 
    opacity: 0.9;
}

.team-desc { 
    font-size: 0.95rem; 
    color: var(--text-muted); 
    line-height: 1.6;
}

/* --- Dynamic Pricing --- */
.pricing-selector { text-align: center; margin-bottom: 3rem; }
.pricing-select {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: var(--secondary-bg);
    color: white;
    border: 1px solid var(--primary-color);
    border-radius: 0;
    min-width: 250px;
    cursor: pointer;
}
.pricing-select:focus { outline: none; box-shadow: 0 0 10px rgba(197, 160, 89, 0.3); }

/* Pricing Table */
.pricing-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: var(--secondary-bg); }
.pricing-table th, .pricing-table td { padding: 20px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05); }
.pricing-table th { color: var(--primary-color); font-family: var(--font-heading); font-size: 1.2rem; text-transform: uppercase; }
.pricing-price { font-weight: bold; color: white; text-align: right !important; }

/* --- Gallery & Lightbox --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-item { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 1 / 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoom 0.3s;
}

@keyframes zoom { from {transform:scale(0)} to {transform:scale(1)} }

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}
.close-lightbox:hover { color: var(--primary-color); }

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 2001;
}
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev { left: 0; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover { background-color: rgba(197, 160, 89, 0.8); }

/* --- Contact Section Styles --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-form {
    background: var(--secondary-bg);
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.contact-info p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}
.contact-info strong {
    color: var(--primary-color);
}

/* --- Pricing Thumbnails & Preview --- */
.barber-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.barber-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.6;
}

.barber-thumbnail.active, .barber-thumbnail:hover {
    border-color: var(--primary-color);
    opacity: 1;
    transform: scale(1.1);
}

.barber-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.barber-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: var(--secondary-bg);
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.05);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.barber-preview img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.barber-preview-info h3 { margin-bottom: 0.5rem; color: var(--primary-color); }
.barber-preview-info span { color: white; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }
.barber-preview-info p { margin-top: 1rem; font-size: 0.9rem; margin-bottom: 0; color: var(--text-muted); }

@media (max-width: 600px) {
    .barber-preview { flex-direction: column; text-align: center; }
}
