:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #141414;
    --text-primary: #ffffff;
    --text-secondary: #c0c0c0;

    /* Copper/Brown Palette */
    --accent: #8b5a2b;
    --accent-hover: #a67c52;
    --accent-light: #d6b493;

    --spacing-xs: 0.25rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3.5rem;
    /* Significantly reduced from 6rem */

    --container-max: 1300px;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    font-size: 16px;
}

/* Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

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

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    /* Boxy style */
}

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

/* Header */
header {
    background-color: rgba(0, 0, 0, 0.9);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid #222;
    position: relative;
    /* Changed from sticky to relative */
    /* top: 0; */
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* For absolute positioning of logo */
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
    text-transform: uppercase;

    /* Center the logo */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Sections */
section {
    padding: 2rem 0;
    /* Standardized 2rem spacing for balanced, tight layout */
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 2rem;
    /* Matches section padding for 1:1 balance */
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    display: block;
}

/* Hero */
.hero {
    height: 70vh;
    /* Reduced from 90vh */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    /* Fallback */
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero-content {
    z-index: 2;
    padding: var(--spacing-md);
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    /* REQUIRED for z-index to work. Fixes unclickable button issue. */
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    margin-bottom: 2rem;
    /* Standardized 2rem */
    line-height: 1.1;
}

/* Socials */
.hero-socials {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.hero-socials a {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s, transform 0.3s;
}

.hero-socials a svg {
    width: 24px;
    height: 24px;
    /* Ensure icon size is explicit */
}

.hero-socials a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.hero-subtitle {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.9;
}

/* Placeholders */
.placeholder-img {
    background-color: #1a1a1a;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.5rem;
    border: 1px solid #333;
    letter-spacing: 2px;
}

/* Meet the Crew */
.crew-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.crew-card {
    background-color: var(--bg-card);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease;
}

.crew-card:hover {
    transform: translateY(-10px);
}

.crew-img {
    height: 380px;
    width: 100%;
    border-bottom: 2px solid var(--accent);
}

.crew-info {
    padding: var(--spacing-md) var(--spacing-sm);
    text-align: center;
}

.crew-name {
    font-family: var(--font-heading);
    color: white;
    font-size: 1.8rem;
    margin-bottom: var(--spacing-xs);
}

.crew-bio {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
    font-family: var(--font-heading);
}

/* About Section (New Hero Style) */
.about-hero {
    position: relative;
    height: 60vh;
    /* Enforce 60vh */
    /* Large height like a hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0;
}

.about-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about-content-hero {
    position: relative;
    z-index: 5;
    padding: var(--spacing-md);
}

/* Booking Page */
.booking-header {
    padding: 3rem 0;
    text-align: center;
}

.barber-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.barber-row {
    background-color: var(--bg-card);
    border: 1px solid #333;
    display: flex;
    align-items: center;
    padding: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.barber-row:hover {
    transform: translateX(5px);
    border-color: var(--accent);
}

.barber-thumb {
    width: 80px;
    height: 80px;
    background-color: #222;
    flex-shrink: 0;
    margin-right: 1.5rem;
    border: 1px solid #444;
}

.barber-info {
    flex-grow: 1;
}

.barber-name-row {
    font-family: var(--font-heading);
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.barber-role {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.select-btn {
    font-size: 0.85rem;
    padding: 0.75rem 2rem;
    background-color: var(--accent);
    color: white;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.3s;
}

.select-btn:hover {
    background-color: var(--accent-hover);
}

@media (max-width: 600px) {
    .barber-row {
        padding: 0.75rem;
    }

    .barber-thumb {
        width: 60px;
        height: 60px;
        margin-right: 1rem;
    }

    .barber-name-row {
        font-size: 1.25rem;
    }

    .select-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Services */
.services-list {
    display: grid;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #333;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid #333;
    transition: background 0.3s;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item:hover {
    background-color: #1a1a1a;
}

.service-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.service-price {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 1.5rem;
}

/* Location */
.location-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--bg-card);
}

.location-info {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-block {
    margin-bottom: var(--spacing-md);
}

.info-label {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
    font-weight: 700;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* Footer */
footer {
    background-color: black;
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-top: 1px solid #222;
    color: var(--text-secondary);
}


/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 101;
    position: relative;
    /* Ensure clicking context */
    margin-left: auto;
    /* Push to right on mobile if we want right-side burger */
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transition: right 0.4s ease;
        z-index: 99;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
    }

    .about-section,
    .location-wrapper {
        grid-template-columns: 1fr;
    }

    .about-img,
    .map-placeholder {
        min-height: 300px;
        order: -1;
        /* Image first on mobile */
    }

    .services-list {
        max-width: 100%;
    }

    .service-item {
        padding: 1rem 0;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .crew-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 0;
        /* REMOVED extra 2rem padding that caused huge gap */
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE 10+ */
    }

    .crew-grid::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari/Webkit */
    }

    .crew-card {
        min-width: 85%;
        /* Show part of next card */
        scroll-snap-align: center;
        margin-right: 0;
    }
}