:root {
    --primary-color: #3c4e33;
    --secondary-color: #293622;
    --white: #fefefe;
    --font-heading: 'Anton', 'Oswald', 'Bebas Neue', sans-serif;
    --font-body: 'Lato', sans-serif
}

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

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--font-body);
    color: #293622;
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    padding: 15px 0;
    contain: layout style
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center
}

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

.logo a {
    display: flex;
    align-items: center
}

.logo-img {
    height: 50px;
    width: auto;
    display: block
}

.nav-menu ul {
    display: flex;
    gap: 30px;
    align-items: center
}

.nav-menu a {
    font-size: .9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    text-decoration: none
}

.btn-cta-nav {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    min-height: 44px;
    background-color: var(--secondary-color);
    color: var(--white) !important;
    border-radius: 50px;
    text-decoration: none
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 5px;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    background: none;
    border: none
}

.bar {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--secondary-color);
    transition: transform .3s ease, opacity .3s ease
}

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

/* Page Hero */
.page-hero {
    position: relative;
    height: 75vh;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    padding-top: 80px
}

.page-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1
}

.page-hero .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.page-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .68))
}

.page-hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px clamp(70px, 8vw, 90px);
    max-width: 900px;
    width: 100%
}

.hero-label {
    font-size: .75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 14px
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.1;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 16px
}

.hero-subtitle {
    font-size: clamp(.95rem, 2.5vw, 1.15rem);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, .9)
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    min-height: 48px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .9rem;
    cursor: pointer;
    text-decoration: none
}

/* Galeria de fotos */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(8px, 1.5vw, 14px)
}

.photo-item {
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4/3
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease, opacity .3s ease
}

.photo-item:hover img {
    transform: scale(1.08)
}

/* Ambientes cards */
.espacos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 3vw, 32px)
}

.espaco-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
    transition: transform .35s ease
}

.espaco-card:hover {
    transform: translateY(-6px)
}

.espaco-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.espaco-icon svg {
    width: 22px;
    height: 22px;
    fill: white
}

.espaco-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-bottom: 8px
}

.espaco-card p {
    font-size: .9rem;
    color: #485742;
    line-height: 1.5
}

/* CTA */
.cta-block {
    text-align: center;
    padding: clamp(112px, 17vw, 168px) 0 clamp(70px, 11vw, 112px) 0;
    background-color: #f5f5f5;
}

.cta-block h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 16px
}

.cta-block p {
    max-width: 560px;
    margin: 0 auto 32px;
    font-size: 1rem;
    line-height: 1.6;
    color: #485742
}

section:not(.page-hero),
footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px
}

@media(max-width:1024px) {
    .espacos-grid {
        grid-template-columns: 1fr
    }

    .page-hero .hero-bg picture {
        display: none
    }

    .page-hero .hero-bg {
        background-image: url('../image/barbearia-6.webp');
        background-size: cover;
        background-position: center
    }
}

@media(max-width:768px) {
    .hamburger {
        display: flex
    }

    .logo-img {
        height: 45px
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        display: flex;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: 100dvh;
        text-align: center;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        transition: left .3s ease
    }

    .nav-menu.active {
        left: 0
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg)
    }

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

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg)
    }

    .page-hero {
        height: 55vh;
        min-height: 360px
    }

    .page-title {
        font-size: clamp(2rem, 11vw, 3rem)
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .espacos-grid {
        grid-template-columns: 1fr
    }

    .espaco-card {
        flex-direction: column;
        gap: 14px
    }
}

@media(max-width:480px) {
    .photo-grid {
        grid-template-columns: 1fr
    }
}