@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-charcoal: #0e1115;
    --bg-darker: #080a0c;
    --bg-card: rgba(22, 28, 36, 0.75);
    --gold: #d4af37;
    --gold-hover: #f3cf58;
    --gold-light: rgba(212, 175, 55, 0.12);
    --gold-glow: rgba(212, 175, 55, 0.3);
    --terracotta: #d9534f;
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.07);
    --border-gold: rgba(212, 175, 55, 0.35);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --transition: all 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    --glow: 0 0 20px rgba(212, 175, 55, 0.28);
    --glow-strong: 0 0 35px rgba(212, 175, 55, 0.45);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-charcoal);
    color: var(--text-light);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =============================================
   LOADING SCREEN
   ============================================= */
#page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-darker);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-bar {
    width: 180px;
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-hover));
    border-radius: 99px;
    animation: loaderFill 1.2s ease-out forwards;
}

@keyframes loaderPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(212,175,55,0.3); }
    50%       { box-shadow: 0 0 50px rgba(212,175,55,0.7); }
}

@keyframes loaderFill {
    0%   { width: 0%; }
    100% { width: 100%; }
}

/* =============================================
   HEADER
   ============================================= */
header {
    background: rgba(8, 10, 12, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(8, 10, 12, 0.97);
    border-bottom-color: var(--border-gold);
    box-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.7rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    transition: var(--transition);
}

.brand:hover img {
    box-shadow: var(--glow-strong);
    transform: scale(1.05);
}

.brand-info h1 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.brand-info p {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

nav {
    display: none;
}

@media (min-width: 768px) {
    nav {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
}

nav a:not(.btn-order-nav):hover {
    color: var(--text-light);
    background: rgba(255,255,255,0.05);
}

nav a.active-nav {
    color: var(--gold) !important;
}

nav a.active-nav::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 2px;
    background: var(--gold);
    border-radius: 99px;
}

.btn-order-nav {
    background: linear-gradient(135deg, var(--gold), #b3912b);
    color: var(--bg-charcoal) !important;
    font-weight: 700 !important;
    padding: 0.48rem 1.2rem !important;
    border-radius: 50px !important;
    box-shadow: var(--glow);
    margin-left: 0.5rem;
    font-size: 0.85rem !important;
    letter-spacing: 0.3px;
}

.btn-order-nav:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
    box-shadow: var(--glow-strong);
    background: rgba(0,0,0,0) !important;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('assets/pizza_wood_oven.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.22) saturate(0.7);
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.hero-bg.loaded {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(212,175,55,0.07) 0%, transparent 60%),
        linear-gradient(to bottom, rgba(14,17,21,0.5) 0%, rgba(14,17,21,0.92) 100%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particles span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle var(--dur, 6s) var(--delay, 0s) ease-in-out infinite;
}

@keyframes floatParticle {
    0%   { opacity: 0; transform: translateY(0) scale(0); }
    20%  { opacity: 0.6; }
    80%  { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-120px) scale(1.5); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

/* Hero content staggered animation */
.hero-content > * {
    opacity: 0;
    transform: translateY(28px);
    animation: heroReveal 0.8s ease-out forwards;
}

.hero-badge         { animation-delay: 0.15s !important; }
.hero-title         { animation-delay: 0.35s !important; }
.hero-description   { animation-delay: 0.5s !important; }
.hero-stats         { animation-delay: 0.65s !important; }

@keyframes heroReveal {
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    background: var(--gold-light);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.hero-title span {
    color: var(--gold);
    display: block;
    font-style: italic;
    font-size: 0.72em;
    margin-top: 0.25rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 560px;
    line-height: 1.7;
}

/* Stats row */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero image */
.hero-featured-image {
    position: relative;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateX(30px) rotate(1deg);
    animation: heroImageReveal 1s ease-out 0.5s forwards;
}

@keyframes heroImageReveal {
    to { opacity: 1; transform: translateX(0) rotate(0deg); }
}

.hero-featured-image .main-img {
    max-width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow), 0 0 60px rgba(212,175,55,0.1);
    transition: var(--transition);
}

.hero-featured-image .main-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow), 0 0 80px rgba(212,175,55,0.18);
}

.selo-qualidade {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 110px;
    height: 110px;
    object-fit: contain;
    animation: spinSlow 20s linear infinite;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6));
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
    z-index: 1;
}

.scroll-indicator span {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-mouse {
    width: 22px;
    height: 36px;
    border: 2px solid var(--border-gold);
    border-radius: 12px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 7px;
    background: var(--gold);
    border-radius: 99px;
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
    0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* =============================================
   SCROLL REVEAL (JS adds .revealed)
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-35px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(35px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =============================================
   DIFERENCIAIS
   ============================================= */
#diferenciais {
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

#diferenciais::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.diferenciais {
    padding: 0 1.5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.diferencial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.diferencial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--gold-light), transparent 60%);
    opacity: 0;
    transition: var(--transition);
}

.diferencial-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow), var(--glow);
}

.diferencial-card:hover::before {
    opacity: 1;
}

.diferencial-icon {
    font-size: 2.8rem;
    margin-bottom: 1.25rem;
    display: block;
    transition: var(--transition);
}

.diferencial-card:hover .diferencial-icon {
    transform: scale(1.15) rotate(-5deg);
}

.diferencial-card h3 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    margin-bottom: 0.85rem;
    color: var(--text-light);
}

.diferencial-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* =============================================
   SEÇÕES GENÉRICAS
   ============================================= */
section {
    padding: 6rem 1.5rem;
}

.section-title {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 4rem auto;
}

.section-title h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2 span {
    color: var(--gold);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* =============================================
   SOBRE NÓS
   ============================================= */
.about {
    background: var(--bg-darker);
    position: relative;
}

.about::before, .about::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}
.about::before { top: 0; }
.about::after  { bottom: 0; }

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-images img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.about-images img:hover {
    transform: scale(1.03);
    border-color: var(--border-gold);
    box-shadow: var(--glow);
}

.about-images img.large {
    grid-column: 1 / -1;
    height: 300px;
}

.about-content h3 {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.4rem;
    font-size: 0.97rem;
    line-height: 1.75;
}

/* =============================================
   PRODUTOS
   ============================================= */
.products {
    max-width: 1200px;
    margin: 0 auto;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.65rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    border-color: var(--border-gold);
    color: var(--gold);
    background: var(--gold-light);
}

.tab-btn.active {
    background: var(--gold);
    color: var(--bg-charcoal);
    border-color: var(--gold);
    box-shadow: var(--glow);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.menu-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-hover));
    transform: scaleX(0);
    transition: transform 0.35s ease;
    border-radius: 0 0 18px 18px;
}

.menu-item:hover {
    transform: translateY(-7px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow), var(--glow);
}

.menu-item:hover::after {
    transform: scaleX(1);
}

.menu-item-img {
    height: 210px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.menu-item-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14,17,21,0.6) 0%, transparent 50%);
    pointer-events: none;
}

.menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item:hover .menu-item-img img {
    transform: scale(1.1);
}

.menu-item-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.menu-item-header {
    margin-bottom: 0.75rem;
}

.menu-item-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.menu-item:hover .menu-item-title {
    color: var(--gold);
}

.menu-item-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
    flex: 1;
    line-height: 1.6;
}


/* =============================================
   CONTATO / FOOTER
   ============================================= */
#contato {
    background: var(--bg-darker);
    position: relative;
}

#contato::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.footer-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    width: 35px;
    height: 2px;
    left: 0;
    bottom: 0;
    background: var(--gold);
    border-radius: 99px;
}

.footer-col p, .footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.93rem;
    margin-bottom: 0.75rem;
    display: block;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-icon {
    color: var(--gold);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
}

.copyright {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* =============================================
   ANIMAÇÕES GLOBAIS
   ============================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* =============================================
   BTN GERAL
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), #b3912b);
    color: var(--bg-charcoal);
    box-shadow: var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-strong);
    filter: brightness(1.1);
}

/* =============================================
   SCROLLBAR CUSTOM
   ============================================= */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* =============================================
   SELECTION
   ============================================= */
::selection {
    background: rgba(212,175,55,0.3);
    color: var(--text-light);
}
