/* ================================================
   OFFERO GUITARS — STYLESHEET
   Tema: preto, branco, premium artesanal
   ================================================ */

/* ===== VARIÁVEIS ===== */
:root {
    --bg-primary:      #000000;
    --bg-secondary:    #080808;
    --bg-card:         #0f0f0f;
    --bg-card-hover:   #161616;
    --bg-section-alt:  #090909;

    --text-primary:    #ffffff;
    --text-secondary:  rgba(255, 255, 255, 0.52);
    --text-muted:      rgba(255, 255, 255, 0.28);

    --border:          rgba(255, 255, 255, 0.07);
    --border-strong:   rgba(255, 255, 255, 0.14);

    --font-heading:    'Cormorant Garamond', Georgia, serif;
    --font-body:       'Inter', -apple-system, sans-serif;

    --header-h:        80px;
    --pad-section:     120px;
    --pad-container:   40px;
    --max-w:           1280px;

    --ease:            cubic-bezier(0.4, 0, 0.2, 1);
    --tr:              0.3s;
    --tr-slow:         0.6s;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-container);
}

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.12;
}

em {
    font-style: italic;
    font-weight: 300;
}

/* ===== BOTÕES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--tr) var(--ease),
                color var(--tr) var(--ease),
                border-color var(--tr) var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}
.btn-primary:hover {
    background: transparent;
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.22);
    transition: background var(--tr) var(--ease), border-color var(--tr) var(--ease);
}
.btn-whatsapp:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.45);
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.73rem;
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}
.btn-sm:hover {
    background: transparent;
    color: #ffffff;
}

.btn-large {
    padding: 18px 44px;
    font-size: 0.85rem;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-label {
    display: inline-block;
    position: relative;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
    padding: 0 36px;
}
.section-label::before,
.section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 1px;
    background: var(--text-muted);
}
.section-label::before { right: 0; }
.section-label::after  { left: 0; }

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.15;
}

/* ===== ANIMAÇÕES DE ENTRADA — removidas para compatibilidade com servidor ===== */

/* ===== OVERLAY MENU MOBILE ===== */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== HEADER ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background 0.45s var(--ease),
                backdrop-filter 0.45s var(--ease),
                border-color 0.45s var(--ease);
    border-bottom: 1px solid transparent;
}
#header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo */
.logo-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo {
    height: 56px;
    width: auto;
    object-fit: contain;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: #fff;
}

/* Nav */
#nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: 16px;
}
.nav-links a {
    padding: 8px 13px;
    font-size: 0.74rem;
    font-weight: 400;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    transition: color var(--tr);
}
.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

/* Hamburguer */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 23px;
    height: 1.5px;
    background: #fff;
    transition: transform var(--tr) var(--ease), opacity var(--tr);
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay escuro sobre vídeo — facilita leitura do texto */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        160deg,
        rgba(0,0,0,0.72) 0%,
        rgba(0,0,0,0.42) 50%,
        rgba(0,0,0,0.78) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--header-h) + 20px);
    padding-bottom: 60px;
    padding-left: clamp(var(--pad-container), calc((100vw - var(--max-w)) / 2 + var(--pad-container)), 50vw);
    padding-right: var(--pad-container);
}

.hero-text {
    max-width: 540px;
}

.hero-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.42);
    margin-bottom: 14px;
}

.hero-title {
    font-size: clamp(2.6rem, 4.2vw, 4.2rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #fff;
}
.hero-title em {
    font-style: italic;
    font-weight: 300;
    color: rgba(255,255,255,0.82);
}

.hero-sub {
    font-size: 1.08rem;
    font-weight: 300;
    color: rgba(255,255,255,0.58);
    margin-bottom: 32px;
    max-width: 460px;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.hero-scroll span {
    display: block;
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.45), transparent);
    animation: scrollPulse 2.2s ease infinite;
}
@keyframes scrollPulse {
    0%   { transform: scaleY(0); transform-origin: top;    opacity: 1; }
    48%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
    52%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ===== SOBRE ===== */
.sobre {
    padding: var(--pad-section) 0;
    background: var(--bg-secondary);
}

.sobre-text-wrap {
    text-align: center;
    margin-bottom: 72px;
}
.sobre-intro {
    font-size: 1.12rem;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 660px;
    margin: 0 auto;
    line-height: 1.85;
}

/* Grid de cards com separadores hairline */
.sobre-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.sobre-card {
    padding: 52px 36px;
    background: var(--bg-card);
    transition: background var(--tr) var(--ease);
}
.sobre-card:hover {
    background: var(--bg-card-hover);
}

.card-icon {
    font-size: 1rem;
    color: rgba(255,255,255,0.22);
    margin-bottom: 22px;
    display: block;
}
.sobre-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.sobre-card p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ===== MODELOS ===== */
.modelos {
    padding: var(--pad-section) 0;
    background: var(--bg-primary);
}

.modelos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.modelo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--tr) var(--ease);
}
.modelo-card:hover {
    border-color: var(--border-strong);
}

.modelo-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #181818 0%, #0c0c0c 100%);
}

/* Padrão de grade sutil para placeholder */
.modelo-img::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

.modelo-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: transform var(--tr-slow) var(--ease), opacity 0.4s;
    z-index: 2;
}
.modelo-img img.loaded { opacity: 1; }
.modelo-card:hover .modelo-img img { transform: scale(1.04); }

.modelo-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: rgba(0, 0, 0, 0.52);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--tr) var(--ease);
}
.modelo-card:hover .modelo-overlay { opacity: 1; }

.modelo-info {
    padding: 28px 32px 32px;
}
.modelo-info h3 {
    font-size: 1.45rem;
    font-weight: 400;
    margin-bottom: 10px;
}
.modelo-info p {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.72;
}

/* ===== PROCESSO ===== */
.processo {
    padding: var(--pad-section) 0;
    background: var(--bg-section-alt);
}

.processo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.processo-step {
    padding: 52px 42px;
    background: var(--bg-card);
    transition: background var(--tr) var(--ease);
}
.processo-step:hover { background: var(--bg-card-hover); }

.step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 300;
    color: rgba(255,255,255,0.05);
    line-height: 1;
    margin-bottom: 24px;
    user-select: none;
}
.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.step-content p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ===== GALERIA ===== */
.galeria {
    padding: var(--pad-section) 0 0;
    background: var(--bg-primary);
}

.galeria-grid {
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    grid-auto-flow: row;
    gap: 3px;
    padding: 0 var(--pad-container);
    max-width: var(--max-w);
    margin: 0 auto;
    padding-bottom: var(--pad-section);
}

.galeria-item {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #181818 0%, #0d0d0d 100%);
}

/* Padrão placeholder */
.galeria-item::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 40px 40px;
}

.galeria-item.galeria-tall  { grid-row: span 2; }
.galeria-item.galeria-wide  { grid-column: span 2; }

.galeria-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: transform var(--tr-slow) var(--ease), opacity 0.4s;
    z-index: 1;
}
.galeria-item img.loaded { opacity: 1; }
.galeria-item:hover img  { transform: scale(1.05); }

/* Véu hover */
.galeria-item::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0,0,0,0.18);
    transition: background var(--tr) var(--ease);
    pointer-events: none;
}
.galeria-item:hover::after { background: rgba(0,0,0,0.04); }

/* ===== CTA ===== */
.cta-section {
    padding: var(--pad-section) 0;
    background: var(--bg-section-alt);
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cta-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 300;
    margin-bottom: 24px;
    line-height: 1.18;
}
.cta-text {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 52px;
    line-height: 1.82;
    font-weight: 300;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    padding-top: 88px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 72px;
    padding-bottom: 72px;
    border-bottom: 1px solid var(--border);
}

.footer-logo {
    height: 38px;
    width: auto;
    margin-bottom: 20px;
}
.footer-logo-text {
    display: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.14em;
    color: #fff;
    margin-bottom: 20px;
}
.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 300px;
}

.footer-info h4,
.footer-social h4 {
    font-family: var(--font-body);
    font-size: 0.63rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 22px;
}
.footer-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
}
.footer-info a {
    color: var(--text-secondary);
    transition: color var(--tr);
}
.footer-info a:hover { color: #fff; }

.social-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color var(--tr);
}
.social-links a:hover { color: #fff; }

.footer-bottom {
    padding: 28px 0;
}
.footer-bottom p {
    text-align: center;
    font-size: 0.73rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* ================================================
   RESPONSIVO
   ================================================ */

@media (max-width: 1100px) {
    :root {
        --pad-section:   88px;
        --pad-container: 28px;
    }
    .sobre-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .processo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    :root {
        --pad-section:   68px;
        --pad-container: 20px;
        --header-h:      64px;
    }

    /* Header / nav mobile */
    .hamburger { display: flex; }

    #nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        background: #0a0a0a;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 88px 36px 48px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
        border-left: 1px solid var(--border);
        z-index: 999;
        gap: 0;
    }
    #nav.open { transform: translateX(0); }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-right: 0;
        margin-bottom: 36px;
        width: 100%;
    }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        font-family: var(--font-heading);
        font-size: 1.6rem;
        font-weight: 300;
        letter-spacing: 0.02em;
        text-transform: none;
        padding: 13px 0;
        color: rgba(255,255,255,0.75);
        border-bottom: 1px solid var(--border);
    }
    .nav-links a:hover { color: #fff; }
    .btn-whatsapp { width: 100%; justify-content: center; }

    /* Hero */
    .hero-title {
        font-size: clamp(2.1rem, 8vw, 3rem);
    }
    .hero-sub { font-size: 0.95rem; }
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .hero-buttons .btn {
        justify-content: center;
        width: 100%;
        max-width: 340px;
    }

    /* Sobre */
    .sobre-cards { grid-template-columns: 1fr; }
    .sobre-card  { padding: 36px 28px; }

    /* Modelos */
    .modelos-grid { grid-template-columns: 1fr; }

    /* Processo */
    .processo-grid  { grid-template-columns: 1fr; }
    .processo-step  { padding: 40px 32px; }

    /* Galeria */
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .galeria-item.galeria-tall  { grid-row: span 1; }
    .galeria-item.galeria-wide  { grid-column: span 2; }

    /* Section header */
    .section-header { margin-bottom: 48px; }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-brand { grid-column: auto; }
}

@media (max-width: 480px) {
    :root {
        --pad-section: 52px;
    }
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.9rem; }
    .galeria-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }
    .galeria-item.galeria-wide  { grid-column: span 1; }
    .galeria-item.galeria-tall  { grid-row: span 1; }
    .footer-inner { padding-bottom: 48px; }
}
