/* ============================================================================
   Pãozitto — Landing Page
   ============================================================================ */

:root {
    --brand-red: #FF1620;
    --white: #ffffff;
    --footer-opacity: 0.6;
}

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

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

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

body {
    min-height: 100dvh;
    background-color: var(--brand-red);
    color: var(--white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* ----------------------------------------------------------------------------
   Canvas de bolhas (fundo animado)
   ---------------------------------------------------------------------------- */
#bubbles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ----------------------------------------------------------------------------
   Main / Logo
   ---------------------------------------------------------------------------- */
main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
    padding: 32px 24px;
}

.logo-wrap {
    display: inline-block;
    line-height: 0;
    animation: logoGlitch 22s steps(1) 3s infinite;
    will-change: transform;
}

.logo {
    width: min(260px, 60vw);
    height: auto;
    display: block;
    opacity: 0;
    transform: translateY(10px);
    animation:
        fadeInLogo 1.2s ease-out forwards,
        glowPulse 4s ease-in-out 1.2s infinite;
    will-change: opacity, transform, filter;
}

@keyframes fadeInLogo {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0%,
    100% {
        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }
    50% {
        filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.18));
    }
}

/* Glitch / "curto-circuito" — burst curto (~0.9s) a cada 22s */
@keyframes logoGlitch {
    0%, 94%, 100%  { transform: translate3d(0, 0, 0); }
    94.3%          { transform: translate3d(-1.5px, 0.5px, 0); }
    94.6%          { transform: translate3d(1.5px, -0.5px, 0); }
    95.1%          { transform: translate3d(-1px, 1px, 0); }
    95.6%          { transform: translate3d(1px, -1px, 0); }
    96.0%          { transform: translate3d(-1.5px, 0, 0); }
    96.4%          { transform: translate3d(0.5px, 0.5px, 0); }
    96.9%          { transform: translate3d(-0.5px, -0.5px, 0); }
    97.3%          { transform: translate3d(1px, 0, 0); }
    97.7%          { transform: translate3d(-0.5px, 0.5px, 0); }
}

/* ----------------------------------------------------------------------------
   Hero info (home) — bloco abaixo do logotipo
   ---------------------------------------------------------------------------- */
.hero-info {
    margin-top: 80px;
    width: 100%;
    max-width: 520px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    color: var(--white);
    opacity: 0;
    animation: fadeInLogo 1.2s ease-out 0.4s forwards;
}

.hero-info__highlight {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--white);
}

.hero-info__list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.hero-info__list li + li {
    margin-top: 6px;
}

.hero-info__social {
    display: flex;
    gap: 14px;
    margin-top: 4px;
}

.hero-info__social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-info__social a:hover,
.hero-info__social a:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    outline: none;
}

.hero-info__social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.hero-info__whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    padding: 14px 26px;
    background: #25D366;
    color: var(--white);
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.hero-info__whatsapp:hover,
.hero-info__whatsapp:focus-visible {
    background: #1ebe5d;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
    outline: none;
}

.hero-info__whatsapp:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.hero-info__whatsapp-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

@media (max-width: 480px) {
    .hero-info {
        margin-top: 48px;
        gap: 14px;
        max-width: 92vw;
    }
    .hero-info__highlight { font-size: 16px; }
    .hero-info__list      { font-size: 14px; }
    .hero-info__whatsapp {
        font-size: 15px;
        padding: 12px 22px;
    }
}

/* ----------------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------------- */
footer {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    padding: 20px 16px;
}

footer small {
    display: block;
    color: rgba(255, 255, 255, var(--footer-opacity));
    font-size: 12px;
    letter-spacing: 0.02em;
}

footer small.legal-entity {
    font-size: 11px;
    opacity: 0.85;
    margin-top: 4px;
}

/* ----------------------------------------------------------------------------
   Utilitários
   ---------------------------------------------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ----------------------------------------------------------------------------
   Responsividade fina
   ---------------------------------------------------------------------------- */
@media (max-width: 480px) {
    footer small {
        font-size: 11px;
    }
}

/* ----------------------------------------------------------------------------
   Acessibilidade — reduz movimento
   ---------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .logo-wrap {
        animation: none;
    }
    .logo {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .hero-info {
        opacity: 1;
        animation: none;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ============================================================================
   Footer nav — home (branco translúcido sobre vermelho)
   ============================================================================ */
body:not(.legal-page) .footer-nav {
    margin-bottom: 6px;
}

body:not(.legal-page) .footer-nav a,
body:not(.legal-page) .footer-nav a:visited {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

body:not(.legal-page) .footer-nav a:hover,
body:not(.legal-page) .footer-nav a:focus-visible {
    color: var(--white);
}

body:not(.legal-page) .footer-nav span {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 8px;
    font-size: 12px;
}

/* ============================================================================
   Páginas legais (Termos de Serviço, Política de Privacidade)
   ============================================================================ */
:root {
    --legal-bg: #FFE7E8;              /* vermelho Pãozitto ~15% sobre branco */
    --legal-text: #2B1416;            /* marrom-preto (não #000) */
    --legal-text-muted: #6B4A4C;
    --legal-border: rgba(255, 22, 32, 0.15);
}

body.legal-page {
    background: var(--legal-bg);
    color: var(--legal-text);
    overflow: auto;
    min-height: 100dvh;
    display: block;
    justify-content: initial;
    align-items: initial;
}

.page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: transparent;
    color: var(--legal-text);
}

.page-header {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px;
    border-bottom: 1px solid var(--legal-border);
}

.page-header a {
    display: inline-block;
    line-height: 0;
}

.page-logo {
    width: 200px;
    height: auto;
    display: block;
}

.page-content {
    flex: 1;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.page-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 32px;
    line-height: 1.3;
    color: var(--brand-red);
}

.page-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 40px 0 16px;
    line-height: 1.3;
    color: var(--legal-text);
}

.page-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 28px 0 12px;
    color: var(--legal-text);
}

.page-content p {
    margin: 0 0 16px;
    line-height: 1.8;
    color: var(--legal-text);
}

.page-content strong {
    font-weight: 600;
    color: var(--legal-text);
}

.page-content ul,
.page-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.page-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.page-content a {
    color: var(--brand-red);
    text-decoration: underline;
}

.page-content a:hover,
.page-content a:focus-visible {
    text-decoration: none;
}

.page-content hr {
    border: none;
    border-top: 1px solid var(--legal-border);
    margin: 40px 0;
}

.legal-page .footer {
    position: static;
    text-align: center;
    padding: 24px 16px;
    font-size: 13px;
    color: var(--legal-text-muted);
    border-top: 1px solid var(--legal-border);
    margin-top: auto;
}

.legal-page .footer-nav {
    margin-bottom: 8px;
}

.legal-page .footer-nav a,
.legal-page .footer-nav a:visited {
    color: var(--legal-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-page .footer-nav a:hover,
.legal-page .footer-nav a:focus-visible {
    color: var(--brand-red);
}

.legal-page .footer-nav span {
    margin: 0 8px;
    color: var(--legal-text-muted);
}

.legal-page .footer small {
    color: var(--legal-text-muted);
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .page-content h1 { font-size: 26px; }
    .page-content h2 { font-size: 20px; }
    .page-content { padding: 32px 20px 48px; }
    .page-header { padding: 24px 20px; }
}
