/* ===== MIOLLI — GLOBAL STYLES ===== */

:root {
    --preto: #0A0A0A;
    --branco: #F8F6F2;
    --ouro: #C5A059;
    --ouro-claro: #D4B878;
    --ouro-escuro: #A8833A;
    --cinza: #8A8680;
    --cinza-claro: #E8E4DE;
    --cinza-escuro: #2A2825;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Montserrat', sans-serif;
    background: var(--branco);
    color: var(--preto);
    overflow-x: hidden;
}

/* ——— HEADER ——— */
.main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 80px;
    background: rgba(248, 246, 242, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
    transition: all 0.4s ease;
}
.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo { display: flex; flex-direction: column; text-decoration: none; gap: 2px; }
.logo-wordmark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; font-weight: 600; letter-spacing: 6px;
    color: var(--preto); line-height: 1;
}
.logo-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.52rem; font-weight: 400; letter-spacing: 4px;
    color: var(--ouro); text-transform: uppercase;
}
.nav-links { display: none; gap: 48px; list-style: none; }
.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem; font-weight: 500; letter-spacing: 2.5px;
    text-transform: uppercase; color: var(--cinza-escuro);
    text-decoration: none; position: relative; transition: color 0.3s;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px; background: var(--ouro); transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ouro); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.icon-btn {
    background: none; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; padding: 4px;
    transition: transform 0.2s;
}
.icon-btn svg {
    width: 19px; height: 19px; stroke: var(--preto);
    stroke-width: 1.4; fill: none; transition: stroke 0.2s;
}
.icon-btn:hover svg { stroke: var(--ouro); }

/* ——— HAMBURGER ——— */
.hamburger {
    display: flex; flex-direction: column; justify-content: center;
    align-items: flex-end; gap: 6px; background: none; border: none;
    cursor: pointer; padding: 6px; z-index: 300; position: relative;
}
.hamburger span {
    display: block; height: 1px; background: var(--preto);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: right center;
}
.hamburger span:nth-child(1) { width: 28px; }
.hamburger span:nth-child(2) { width: 20px; }
.hamburger span:nth-child(3) { width: 24px; }
.hamburger.open span { background: var(--branco); }
.hamburger.open span:nth-child(1) { width: 28px; transform: translateY(7px) rotate(-45deg); }
.hamburger.open span:nth-child(2) { width: 0; opacity: 0; }
.hamburger.open span:nth-child(3) { width: 28px; transform: translateY(-7px) rotate(45deg); }

/* ——— FULLSCREEN MENU ——— */
.fullscreen-menu {
    position: fixed; inset: 0; z-index: 250;
    background: var(--preto);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    clip-path: circle(0% at calc(100% - 52px) 40px);
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none;
}
.fullscreen-menu.open {
    clip-path: circle(150% at calc(100% - 52px) 40px);
    pointer-events: all;
}
.fullscreen-menu::before {
    content: 'MIOLLI'; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cormorant Garamond', serif; font-size: 18vw; font-weight: 700;
    color: rgba(197, 160, 89, 0.04); letter-spacing: 12px; white-space: nowrap;
    pointer-events: none; user-select: none;
}
.fullscreen-menu::after {
    content: ''; position: absolute; top: 10%; bottom: 10%; left: 50%; width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(197,160,89,0.15) 30%, rgba(197,160,89,0.15) 70%, transparent);
    pointer-events: none;
}
.menu-nav { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0; }
.menu-nav a {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 300; letter-spacing: 4px;
    color: rgba(248, 246, 242, 0.35); text-decoration: none; padding: 14px 48px;
    opacity: 0; transform: translateY(24px);
    transition: color 0.3s, letter-spacing 0.3s,
                opacity 0.5s cubic-bezier(0.23,1,0.32,1),
                transform 0.5s cubic-bezier(0.23,1,0.32,1);
    cursor: pointer; display: flex; align-items: center; gap: 20px;
}
.fullscreen-menu.open .menu-nav a { opacity: 1; transform: translateY(0); }
.fullscreen-menu.open .menu-nav a:nth-child(1) { transition-delay: 0.15s; }
.fullscreen-menu.open .menu-nav a:nth-child(2) { transition-delay: 0.22s; }
.fullscreen-menu.open .menu-nav a:nth-child(3) { transition-delay: 0.29s; }
.fullscreen-menu.open .menu-nav a:nth-child(4) { transition-delay: 0.36s; }
.fullscreen-menu.open .menu-nav a:nth-child(5) { transition-delay: 0.43s; }
.fullscreen-menu.open .menu-nav a:nth-child(6) { transition-delay: 0.50s; }
.menu-nav a::before { content: ''; width: 0; height: 1px; background: var(--ouro); transition: width 0.4s ease; display: inline-block; }
.menu-nav a:hover { color: var(--branco); letter-spacing: 6px; }
.menu-nav a:hover::before { width: 32px; }
.menu-nav a.active-link { color: var(--ouro); }
.menu-footer {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 40px; opacity: 0; transition: opacity 0.5s ease 0.6s; white-space: nowrap;
}
.fullscreen-menu.open .menu-footer { opacity: 1; }
.menu-footer span { font-size: 0.55rem; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: rgba(248, 246, 242, 0.2); }
.menu-footer a { color: rgba(248, 246, 242, 0.2); text-decoration: none; font-family: 'Montserrat', sans-serif; font-size: 0.55rem; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; transition: color 0.2s; }
.menu-footer a:hover { color: var(--ouro); }

/* ——— FOOTER ——— */
.main-footer {
    background: #0A0A0A;
    padding: 80px 0 0;
    border-top: 1px solid rgba(197, 160, 89, 0.15);
}
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 0 40px; }
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 64px; padding-bottom: 64px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo-col .footer-logo {
    font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 600;
    letter-spacing: 5px; color: var(--branco); display: block; margin-bottom: 8px;
}
.footer-logo-col .footer-tagline { font-size: 0.55rem; letter-spacing: 3px; color: var(--ouro); text-transform: uppercase; margin-bottom: 24px; }
.footer-logo-col p { font-size: 0.75rem; font-weight: 300; color: rgba(248, 246, 242, 0.35); line-height: 1.9; max-width: 260px; }
.footer-col h5 { font-size: 0.58rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--ouro); margin-bottom: 28px; padding-bottom: 12px; border-bottom: 1px solid rgba(197, 160, 89, 0.15); }
.footer-col p, .footer-col address { font-size: 0.75rem; font-weight: 300; color: rgba(248, 246, 242, 0.4); line-height: 2; font-style: normal; }
.newsletter-col h5 { font-size: 0.58rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--ouro); margin-bottom: 28px; padding-bottom: 12px; border-bottom: 1px solid rgba(197, 160, 89, 0.15); }
.newsletter-col p { font-size: 0.72rem; font-weight: 300; color: rgba(248, 246, 242, 0.35); line-height: 1.8; margin-bottom: 20px; }
.newsletter-row { display: flex; }
.newsletter-input {
    flex: 1; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1); border-right: none;
    padding: 12px 16px; font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem; color: var(--branco); outline: none; transition: border-color 0.3s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.2); }
.newsletter-input:focus { border-color: var(--ouro); }
.newsletter-btn { background: var(--ouro); border: none; padding: 12px 20px; cursor: pointer; transition: background 0.3s; }
.newsletter-btn:hover { background: var(--ouro-claro); }
.newsletter-btn svg { width: 16px; height: 16px; stroke: var(--preto); stroke-width: 2; fill: none; display: block; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; }
.footer-copy { font-size: 0.62rem; color: rgba(248, 246, 242, 0.2); letter-spacing: 0.5px; }
.footer-copy span { color: var(--ouro); }

/* ——— WHATSAPP FLOAT ——— */
.wpp-float {
    position: fixed; bottom: 32px; right: 32px;
    width: 56px; height: 56px;
    background: var(--preto); border: 1px solid rgba(197, 160, 89, 0.3);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s; z-index: 99;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.wpp-float:hover { background: var(--ouro); border-color: var(--ouro); transform: translateY(-3px); }
.wpp-float svg { width: 22px; height: 22px; stroke: var(--branco); stroke-width: 1.5; fill: none; }
.wpp-float:hover svg { stroke: var(--preto); }

/* ——— TOAST ——— */
.toast {
    position: fixed; bottom: 100px; right: 32px;
    background: var(--preto); color: var(--branco);
    padding: 14px 24px 14px 20px;
    font-size: 0.7rem; font-weight: 400; letter-spacing: 0.3px;
    z-index: 1000; pointer-events: none;
    opacity: 0; transform: translateY(8px);
    transition: all 0.25s ease;
    border-left: 2px solid var(--ouro); max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ——— RESPONSIVE ——— */
@media (max-width: 768px) {
    .header-inner { padding: 0 24px; }
    .main-header { height: 68px; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; padding: 0 24px 40px; }
    .footer-inner { padding: 0; }
    .footer-bottom { padding: 24px; flex-direction: column; gap: 12px; text-align: center; }
}
