:root {
    --bg: #0e0e0e;
    --bg-soft: #161616;
    --card: #1f1f1f;
    --gold: #caa269;
    --gold-strong: #d8b37a;
    --text: #f4efe8;
    --muted: #c8b8a4;
    --line: rgba(255, 255, 255, 0.08);
    --max-width: 1140px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Barlow", "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top right, #262018, var(--bg) 45%);
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Bebas Neue", "Impact", sans-serif;
    letter-spacing: 0.03em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.2rem, 8vw, 4.8rem);
}

h2 {
    font-size: clamp(1.7rem, 5vw, 2.8rem);
}

.container {
    width: min(92%, var(--max-width));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    padding: 10px 0;
    z-index: 20;
    background: rgba(11, 11, 11, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    min-height: 88px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
}

.brand img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(202, 162, 105, 0.3);
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
    font-weight: 600;
}

.site-nav a {
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--muted);
    transition: color 0.2s ease;
}

.site-nav a.is-active,
.site-nav a:hover {
    color: var(--gold-strong);
}

.menu-toggle {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 0 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--gold);
    color: #17120c;
}

.btn-primary:hover {
    background: var(--gold-strong);
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: #17120c;
}

.btn-ghost {
    border: 1px solid var(--line);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold-strong);
}

.hero {
    padding: 8rem 0 6rem;
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 620px;
}

.hero-badge {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.28rem 0.65rem;
    border: 1px solid rgba(202, 162, 105, 0.7);
    color: var(--gold-strong);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-subtitle {
    margin: 1rem 0 0;
    font-size: 1.05rem;
    color: #e8ddd0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.65rem;
}

.hero-meta {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
}

.section {
    padding: 5.25rem 0;
}

.page-banner {
    padding: 7rem 0 2.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
    border-bottom: 1px solid var(--line);
}

.page-banner p {
    color: var(--muted);
    max-width: 620px;
}

.section-kicker {
    margin: 0;
    color: var(--gold-strong);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.72rem;
    font-weight: 700;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: center;
}

.about p {
    color: var(--muted);
}

.about-image img {
    min-height: 360px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
}

.branch-grid {
    margin-top: 1.6rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.branch-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem;
}

.branch-name {
    margin: 0;
    font-family: "Bebas Neue", "Impact", sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
}

.branch-address {
    color: var(--muted);
}

.branch-neighborhood {
    margin: 0.2rem 0 0;
    color: var(--gold-strong);
    font-size: 0.9rem;
}

.branch-status {
    display: inline-flex;
    margin-top: 0.45rem;
    padding: 0.18rem 0.55rem;
    border: 1px solid rgba(202, 162, 105, 0.6);
    border-radius: 999px;
    color: var(--gold-strong);
    font-size: 0.78rem;
}

.branch-whatsapp {
    margin: 0.5rem 0 0;
    color: var(--muted);
}

.branch-whatsapp a {
    color: var(--gold-strong);
}

.branch-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.branch-whatsapp-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #25d366;
}

.branch-whatsapp-icon svg {
    width: 16px;
    height: 16px;
}

.branch-map-link {
    display: inline-flex;
    margin-top: 0.65rem;
    color: var(--gold-strong);
    font-size: 0.9rem;
}

.branch-map-link:hover {
    color: var(--text);
}

.branch-map {
    margin-top: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.branch-map iframe {
    display: block;
    width: 100%;
    min-height: 220px;
    border: 0;
}

.services {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.04));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.cards {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.2rem;
}

.card-time {
    margin: 0;
    font-size: 0.8rem;
    color: var(--gold-strong);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card p {
    color: var(--muted);
}

.card-price {
    margin: 0.9rem 0 0;
    color: var(--gold-strong);
    font-weight: 700;
    font-size: 1.2rem;
}

.section-link {
    margin-top: 1.4rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.metric-card {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.9), rgba(20, 20, 20, 0.7));
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem;
}

.metric-value {
    margin: 0;
    font-family: "Bebas Neue", "Impact", sans-serif;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    line-height: 1;
    color: var(--gold-strong);
}

.metric-label {
    margin: 0.2rem 0 0;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.service-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.2rem;
}

.service-card p {
    color: var(--muted);
}

.service-category {
    margin: 0;
    color: var(--gold-strong);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.74rem;
}

.service-meta {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
}

.service-meta strong {
    color: var(--gold-strong);
}

.unit-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.9rem;
}

.unit-badge {
    border: 1px solid rgba(202, 162, 105, 0.6);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.74rem;
    color: var(--gold-strong);
}

.filter-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.filter-btn {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    border-radius: 999px;
    min-height: 38px;
    padding: 0 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.is-active {
    border-color: var(--gold);
    color: var(--gold-strong);
}

.team-featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.team-card {
    --team-photo-y: 31%;
    background: linear-gradient(180deg, rgba(28, 28, 28, 0.95), rgba(20, 20, 20, 0.92));
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    border-color: rgba(202, 162, 105, 0.5);
}

.team-card.is-hidden {
    display: none;
}

.team-photo-wrap {
    padding: 0.75rem 0.75rem 0;
}

.team-photo-wrap img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center var(--team-photo-y);
    border-radius: 12px;
}

.team-content {
    padding: 1rem;
}

.team-content h2 {
    margin-top: 0.1rem;
}

.team-content p {
    margin: 0.4rem 0 0;
    color: var(--muted);
}

.team-role {
    margin: 0;
    color: var(--gold-strong);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.74rem;
    font-weight: 700;
}

.team-card-featured {
    --team-photo-y: 34%;
    display: grid;
    grid-template-columns: minmax(220px, 34%) 1fr;
    align-items: stretch;
    background: linear-gradient(135deg, rgba(202, 162, 105, 0.16), rgba(28, 28, 28, 0.95));
}

.team-card-featured .team-photo-wrap {
    padding: 0.9rem;
}

.team-card-featured .team-photo-wrap img {
    aspect-ratio: 3 / 4;
    height: 100%;
}

.team-card-featured .team-content {
    display: grid;
    align-content: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.branch-list {
    margin-top: 1rem;
    display: grid;
    gap: 0.8rem;
}

.branch-list-units {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.branch-list-units .branch-map iframe {
    min-height: 170px;
}

.shared-hours {
    margin-top: 1rem;
    margin-bottom: 0.9rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.shared-hours p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.contact-form {
    margin-top: 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.1rem;
}

.contact-form label {
    display: block;
    margin: 0.6rem 0 0.28rem;
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #141414;
    color: var(--text);
    border-radius: 10px;
    padding: 0.6rem 0.7rem;
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    margin-top: 1rem;
}

.form-note {
    margin: 0.65rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.gallery-grid {
    margin-top: 1.6rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.gallery-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-grid img:hover {
    transform: scale(1.06);
}

.cta-box {
    background: linear-gradient(120deg, rgba(31, 31, 31, 0.95), rgba(17, 17, 17, 0.95)),
        url("../img/barber-team.jpg") center/cover;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.cta-box p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2rem 0 2.4rem;
    background: #0c0c0c;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.1rem;
}

.footer-grid h3 {
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
}

.footer-logo {
    width: 74px;
    border-radius: 12px;
}

.footer-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.footer-list a {
    color: var(--gold-strong);
}

.footer-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.footer-whatsapp-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #25d366;
}

.footer-whatsapp-icon svg {
    width: 16px;
    height: 16px;
}

.footer-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-copy {
    margin-top: 1.2rem;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
    display: grid;
    justify-items: center;
}

.footer-copy p {
    margin: 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.app-install-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.app-install-main {
    width: min(94%, 760px);
}

.app-install-card {
    background: linear-gradient(160deg, rgba(25, 25, 25, 0.95), rgba(14, 14, 14, 0.92));
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
}

.app-install-card p {
    color: var(--muted);
}

.app-install-logo {
    width: 88px;
    height: 88px;
    margin: 0 auto 0.9rem;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(202, 162, 105, 0.3);
}

.dev-credit {
    margin-top: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.dev-credit:hover {
    color: var(--gold-strong);
}

.dev-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

@media (max-width: 980px) {
    .branch-grid,
    .metric-grid,
    .service-grid,
    .team-grid,
    .footer-grid,
    .cards,
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .branch-list-units {
        grid-template-columns: 1fr 1fr;
    }

    .team-card-featured {
        grid-template-columns: minmax(180px, 38%) 1fr;
    }
}

@media (max-width: 760px) {
    .nav-wrap {
        grid-template-columns: auto auto;
        grid-template-areas:
            "brand toggle"
            "menu menu";
    }

    .brand {
        grid-area: brand;
    }

    .menu-toggle {
        grid-area: toggle;
        justify-self: end;
        display: inline-flex;
        position: relative;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        width: 44px;
        padding: 0;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: transparent;
        color: var(--text);
        cursor: pointer;
    }

    .menu-toggle-icon,
    .menu-toggle-icon::before,
    .menu-toggle-icon::after {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: var(--text);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .menu-toggle-icon {
        position: relative;
    }

    .menu-toggle-icon::before,
    .menu-toggle-icon::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .menu-toggle-icon::before {
        top: -6px;
    }

    .menu-toggle-icon::after {
        top: 6px;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-icon {
        background: transparent;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
        transform: translateY(-6px) rotate(-45deg);
    }

    .site-nav {
        grid-area: menu;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 0.8rem 0 1.1rem;
    }

    .site-nav.is-open {
        display: flex;
    }

    .btn-outline {
        display: none;
    }

    .hero {
        padding-top: 6rem;
    }

    .branch-grid,
    .metric-grid,
    .service-grid,
    .team-grid,
    .branch-list-units,
    .footer-grid,
    .grid-2,
    .cards,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-card-featured {
        grid-template-columns: 1fr;
    }

    .team-card-featured .team-photo-wrap img {
        aspect-ratio: 4 / 3;
    }
}
