/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #c9a84c;
    --gold-light: #e2c97e;
    --gold-dark: #a07828;
    --black: #080808;
    --dark: #111111;
    --dark2: #181818;
    --dark3: #222222;
    --white: #f5f0e8;
    --gray: #888;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--white);
    font-family: 'Lato', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

/* ===== TYPOGRAPHY ===== */
h1, h2 {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
    line-height: 1;
}

h4 {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--delay, 0s);
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ===== HEADER ===== */
#header-principal {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding: 0 5%;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}

#header-principal.scrolled {
    background: rgba(8, 8, 8, 0.97);
    box-shadow: 0 2px 24px rgba(0,0,0,0.6);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    width: 100%;
}

.logo-box img {
    width: 64px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    display: block;
    transition: transform var(--transition);
}
.logo-box img:hover { transform: rotate(8deg) scale(1.05); }

/* Desktop nav */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    transition: color var(--transition);
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.agendar-topo {
    border: 1px solid var(--gold) !important;
    padding: 9px 20px !important;
    color: var(--gold) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    transition: background var(--transition), color var(--transition) !important;
}
.agendar-topo::after { display: none !important; }
.agendar-topo:hover {
    background: var(--gold) !important;
    color: var(--black) !important;
}
.btn-icon { font-size: 10px; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 201;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 8, 8, 0.98);
    z-index: 199;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
}
.nav-drawer.open { transform: translateX(0); }

.nav-drawer li {
    list-style: none;
    text-align: center;
    width: 100%;
}
.nav-drawer a {
    display: block;
    padding: 18px 40px;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition);
    border-bottom: 1px solid #1a1a1a;
}
.nav-drawer a:hover { color: var(--gold); }
.nav-drawer .agendar-topo {
    margin-top: 16px;
    border: 1px solid var(--gold) !important;
    padding: 14px 40px !important;
    color: var(--gold) !important;
    display: inline-flex !important;
    font-size: 18px;
    border-bottom: 1px solid var(--gold) !important;
}

/* ===== HERO ===== */
.banner-principal {
    position: relative;
    min-height: 100svh;
    background-image: url('fundobarber.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

/* parallax only on desktop */
@media (min-width: 769px) {
    .banner-principal { background-attachment: fixed; }
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0,0,0,0.90) 0%,
        rgba(0,0,0,0.62) 55%,
        rgba(0,0,0,0.32) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 100px 8% 60px;
    max-width: 750px;
    animation: heroIn 1.2s ease both;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: none; }
}

.hero-tag {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    letter-spacing: 0.28em;
    color: var(--gold);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: clamp(52px, 10vw, 120px);
    font-weight: 900;
    color: var(--white);
    line-height: 0.95;
    margin-bottom: 24px;
}

.hero-content h1 span {
    color: var(--gold);
    display: block;
}

.hero-content > p {
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(245,240,232,0.75);
    font-weight: 300;
    line-height: 1.6;
    max-width: 420px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-venda {
    background: var(--gold);
    color: var(--black);
    padding: 15px 32px;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.14em;
    display: inline-block;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}
.btn-venda::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold-light);
    transform: translateX(-101%);
    transition: transform var(--transition);
}
.btn-venda:hover::before { transform: translateX(0); }
.btn-venda:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,0.35); }

.btn-ghost {
    color: var(--white);
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 2px;
    transition: color var(--transition), border-color var(--transition);
}
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }

.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    right: 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
}
.hero-scroll-hint span {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--gold);
    writing-mode: vertical-rl;
}
.scroll-line {
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; transform: scaleY(0.7); }
}

/* ===== FAIXA TICKER — fixed infinite loop ===== */
.faixa-dourada {
    background: var(--gold);
    padding: 13px 0;
    overflow: hidden;
    width: 100%;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 22s linear infinite;
}

.ticker-track span {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    letter-spacing: 0.22em;
    color: var(--black);
    font-weight: 700;
    padding: 0 32px;
    white-space: nowrap;
    flex-shrink: 0;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-sub {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 0.28em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: clamp(32px, 5vw, 56px);
    color: var(--white);
}
.section-header h2 span { color: var(--gold); }
.divider-line {
    width: 56px;
    height: 2px;
    background: var(--gold);
    margin: 18px auto 0;
}

/* ===== SERVIÇOS ===== */
.nossos-servicos {
    padding: 90px 5%;
    background: var(--dark);
}

.container-fotos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.item-foto {
    background: var(--dark2);
    border: 1px solid #1e1e1e;
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
}
.item-foto:hover {
    border-color: var(--gold);
    transform: translateY(-6px);
}

.foto-wrap {
    position: relative;
    overflow: hidden;
}
.foto-wrap img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.item-foto:hover .foto-wrap img { transform: scale(1.06); }

.foto-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.52);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}
.item-foto:hover .foto-overlay { opacity: 1; }

.foto-btn {
    background: var(--gold);
    color: var(--black);
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.15em;
    padding: 11px 26px;
    text-transform: uppercase;
    transition: background var(--transition);
}
.foto-btn:hover { background: var(--gold-light); }

.item-texto {
    padding: 22px 22px 26px;
    position: relative;
}
.num {
    font-family: 'Playfair Display', serif;
    font-size: 46px;
    color: rgba(201,168,76,0.1);
    position: absolute;
    top: 6px; right: 18px;
    line-height: 1;
    font-weight: 700;
    pointer-events: none;
}
.item-texto h4 {
    font-size: 17px;
    color: var(--gold);
    margin-bottom: 10px;
}
.item-texto p {
    font-size: 14px;
    color: rgba(245,240,232,0.6);
    line-height: 1.6;
    font-weight: 300;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    background: var(--gold);
    padding: 72px 5%;
    text-align: center;
}
.cta-inner h2 {
    font-size: clamp(28px, 4vw, 50px);
    color: var(--black);
    margin-bottom: 14px;
}
.cta-inner h2 span { color: rgba(0,0,0,0.55); }
.cta-inner p {
    font-size: 16px;
    color: rgba(0,0,0,0.6);
    margin-bottom: 34px;
    font-weight: 300;
}
.cta-banner .btn-venda {
    background: var(--black);
    color: var(--white);
}
.cta-banner .btn-venda::before { background: var(--dark3); }

/* ===== LOCALIZAÇÃO ===== */
.localizacao {
    padding: 90px 5%;
    background: var(--black);
}
.mapa-wrap {
    border: 1px solid #222;
    overflow: hidden;
    max-width: 880px;
    margin: 0 auto;
}
.mapa-wrap iframe { display: block; width: 100%; }

/* ===== CONTATOS ===== */
.contatos {
    padding: 90px 5%;
    background: var(--dark);
}
.contatos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 880px;
    margin: 0 auto;
}
.contato-card {
    background: var(--dark2);
    border: 1px solid #222;
    padding: 36px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: border-color var(--transition), transform var(--transition), background var(--transition);
}
.contato-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    background: #1a1a1a;
}
.contato-icon { font-size: 26px; margin-bottom: 2px; }
.contato-label {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--gold);
    text-transform: uppercase;
}
.contato-card strong {
    font-size: 14px;
    font-weight: 400;
    color: rgba(245,240,232,0.8);
    word-break: break-all;
}

/* ===== FOOTER ===== */
.rodape {
    background: #050505;
    border-top: 1px solid #1a1a1a;
    padding: 28px 5%;
}
.rodape-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.rodape-logo {
    width: 44px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    opacity: 0.65;
}
.rodape-inner p {
    font-size: 12px;
    color: var(--gray);
    font-weight: 300;
}
.rodape-inner strong { color: var(--gold); font-weight: 400; }

/* ===== TABLET (max 900px) ===== */
@media (max-width: 900px) {
    .container-fotos {
        grid-template-columns: 1fr 1fr;
    }
    /* last card full width on tablet */
    .item-foto:last-child {
        grid-column: 1 / -1;
        max-width: 460px;
        margin: 0 auto;
        width: 100%;
    }
    .contatos-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contato-card:last-child {
        grid-column: 1 / -1;
    }
}

/* ===== MOBILE (max 768px) ===== */
@media (max-width: 768px) {
    /* Show hamburger, hide desktop nav */
    .hamburger { display: flex; }
    .nav-links { display: none; }
    .nav-drawer { display: flex; }

    /* Hero */
    .hero-content {
        padding: 110px 6% 60px;
    }
    .hero-scroll-hint { display: none; }

    /* Services — single column */
    .container-fotos {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    .item-foto:last-child {
        grid-column: auto;
        max-width: 100%;
    }
    .foto-wrap img { height: 240px; }

    /* Contacts — single column */
    .contatos-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .contato-card:last-child { grid-column: auto; }

    /* Sections padding */
    .nossos-servicos, .localizacao, .contatos { padding: 64px 5%; }
    .cta-banner { padding: 60px 5%; }

    /* Footer */
    .rodape-inner { flex-direction: column; text-align: center; }
}

/* ===== SMALL MOBILE (max 480px) ===== */
@media (max-width: 480px) {
    .hero-content h1 { font-size: 46px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .btn-venda { width: 100%; text-align: center; }
    .cta-inner h2 { font-size: 26px; }
    .cta-banner .btn-venda { width: auto; }
}
