/* ============================================
   GOMELAR - ESTILO COMPARTILHADO
   Variáveis, reset, tipografia, header e footer
============================================ */

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

:root {
    --azul-marinho: #1F2D4A;
    --azul-escuro: #15203A;
    --bege-areia: #9C8B7A;
    --bege-claro: #C4B5A0;
    --dourado: #C9A961;
    --dourado-claro: #E0C892;
    --off-white: #FAF8F5;
    --cream: #F2EDE4;
    --cinza-claro: #E8E4DD;
    --cinza-medio: #6B6B6B;
    --cinza-grafite: #2C2C2C;
    --branco: #FFFFFF;
    --sombra-suave: 0 4px 20px rgba(31, 45, 74, 0.08);
    --sombra-media: 0 10px 30px rgba(31, 45, 74, 0.12);
    --sombra-forte: 0 20px 50px rgba(31, 45, 74, 0.18);
    --transicao: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1280px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--cinza-grafite);
    background: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    color: var(--azul-marinho);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ============================================
   HEADER / NAV
============================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(250, 248, 245, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: var(--transicao);
    border-bottom: 1px solid transparent;
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--sombra-suave);
    border-bottom-color: var(--cinza-claro);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    max-width: var(--container);
    margin: 0 auto;
}
.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1002;
}
.nav__logo img {
    height: 50px;
    width: auto;
    transition: var(--transicao);
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}
.nav__menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--azul-marinho);
    position: relative;
    transition: var(--transicao);
    padding: 0.5rem 0;
}
.nav__menu a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--dourado);
    transition: var(--transicao);
}
.nav__menu a:hover { color: var(--dourado); }
.nav__menu a:hover::after, .nav__menu a.active::after { width: 100%; }
.nav__menu a.active { color: var(--dourado); }

.nav__cta {
    background: var(--azul-marinho);
    color: var(--branco) !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transicao);
}
.nav__cta:hover {
    background: var(--dourado);
    transform: translateY(-2px);
    box-shadow: var(--sombra-media);
}
.nav__cta::after { display: none !important; }
.nav__cta.active { background: var(--dourado); color: var(--azul-marinho) !important; }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 30px;
    justify-content: center;
    z-index: 1002;
}
.nav__toggle span {
    display: block;
    height: 2px;
    background: var(--azul-marinho);
    transition: var(--transicao);
    border-radius: 2px;
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   BOTÕES GLOBAIS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transicao);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    justify-content: center;
}
.btn--primary {
    background: var(--dourado);
    color: var(--azul-marinho);
}
.btn--primary:hover {
    background: var(--dourado-claro);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(201, 169, 97, 0.4);
}
.btn--outline {
    background: transparent;
    color: var(--branco);
    border-color: var(--branco);
}
.btn--outline:hover {
    background: var(--branco);
    color: var(--azul-marinho);
}
.btn--dark {
    background: var(--azul-marinho);
    color: var(--branco);
}
.btn--dark:hover {
    background: var(--dourado);
    color: var(--azul-marinho);
    transform: translateY(-3px);
    box-shadow: var(--sombra-media);
}
.btn--whatsapp {
    background: #25D366;
    color: white;
}
.btn--whatsapp:hover {
    background: #1da851;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

/* ============================================
   SEÇÃO TÍTULOS
============================================ */
.section {
    padding: 6rem 0;
    position: relative;
}
.section__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4rem;
}
.section__tag {
    display: inline-block;
    color: var(--dourado);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    padding: 0 2rem;
}
.section__tag::before, .section__tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 1.5rem;
    height: 1px;
    background: var(--dourado);
}
.section__tag::before { left: 0; }
.section__tag::after { right: 0; }

.section__title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1rem;
}
.section__subtitle {
    color: var(--cinza-medio);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ============================================
   PAGE HEADER (cabeçalho de páginas internas)
============================================ */
.page-hero {
    background:
        linear-gradient(135deg, rgba(31, 45, 74, 0.92) 0%, rgba(31, 45, 74, 0.85) 100%),
        var(--azul-escuro);
    color: var(--branco);
    padding: 9rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--dourado) 1px, transparent 1px),
        linear-gradient(90deg, var(--dourado) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.06;
}
.page-hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.page-hero__breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.page-hero__breadcrumb a {
    color: var(--dourado-claro);
    transition: var(--transicao);
}
.page-hero__breadcrumb a:hover { color: var(--branco); }
.page-hero__tag {
    display: inline-block;
    padding: 0.4rem 1.25rem;
    background: rgba(201, 169, 97, 0.15);
    border: 1px solid var(--dourado);
    border-radius: 50px;
    color: var(--dourado-claro);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.page-hero h1 {
    color: var(--branco);
    font-size: clamp(2rem, 5vw, 3.8rem);
    margin-bottom: 1rem;
}
.page-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   FOOTER GLOBAL
============================================ */
.footer {
    background: var(--azul-escuro);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 2rem;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--dourado), var(--bege-areia), var(--dourado));
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer__brand img {
    height: 80px;
    margin-bottom: 1rem;
    border-radius: 8px;
}
.footer__brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 350px;
}
.footer__col h4 {
    color: var(--dourado-claro);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.footer__col ul {
    list-style: none;
}
.footer__col li {
    margin-bottom: 0.7rem;
}
.footer__col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transicao);
}
.footer__col a:hover { color: var(--dourado); padding-left: 5px; }
.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}
.footer__contact-item svg { flex-shrink: 0; margin-top: 3px; color: var(--dourado); }
.footer__social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.footer__social a {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--branco);
    transition: var(--transicao);
}
.footer__social a:hover {
    background: var(--dourado);
    color: var(--azul-marinho);
    transform: translateY(-3px);
}

.footer__legal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.footer__legal a {
    color: var(--dourado-claro);
    transition: var(--transicao);
}
.footer__legal a:hover { color: var(--dourado); text-decoration: underline; }
.footer__legal span[aria-hidden] { opacity: 0.4; }

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ============================================
   WHATSAPP FLUTUANTE
============================================ */
.wpp-float {
    position: fixed;
    bottom: 25px; right: 25px;
    width: 60px; height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    color: white;
    z-index: 999;
    transition: var(--transicao);
    animation: pulse 2s infinite;
}
.wpp-float:hover {
    transform: scale(1.1);
    background: #1da851;
}
@keyframes pulse {
    0% { box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================
   ANIMAÇÕES SCROLL
============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SCROLLBAR
============================================ */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--bege-areia); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--azul-marinho); }

/* ============================================
   RESPONSIVO GLOBAL
============================================ */
@media (max-width: 992px) {
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .section__header { margin-bottom: 3rem; }
    .page-hero { padding: 7rem 0 3.5rem; }

    .nav__menu {
        position: fixed;
        top: 0; right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--azul-marinho);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right 0.4s ease;
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.3);
        gap: 1.5rem;
        align-items: flex-start;
    }
    .nav__menu.active { right: 0; }
    .nav__menu a { color: var(--branco); font-size: 1.1rem; }
    .nav__menu a:hover { color: var(--dourado-claro); }
    .nav__cta {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
    .nav__toggle { display: flex; }
    .nav__logo img { height: 42px; }

    .footer__grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer__brand p { margin: 0 auto; }
    .footer__contact-item { justify-content: center; }
    .footer__social { justify-content: center; }
    .footer__bottom { flex-direction: column; text-align: center; }

    .wpp-float { width: 55px; height: 55px; bottom: 20px; right: 20px; }

    body.menu-open { overflow: hidden; }

    .btn { width: 100%; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
}
