/* ========================================
   DOM MOURA BARBEARIA - LANDING PAGE
   Design Premium com Conversão Otimizada
======================================== */

/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0d0d0d 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Container Principal */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ========================================
   HEADER STYLES
======================================== */

.header {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 15px;
}

.logo-container {
    position: relative;
    padding: 15px 10px;
    animation: fadeInDown 0.8s ease-out;
}

/* Logo Styles - Design Premium e Cativante */
.logo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    width: 100%;
}

.logo-image {
    width: auto;
    max-width: 180px;
    max-height: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    animation: fadeInScale 1.2s ease-out;
    filter:
        drop-shadow(0 2px 10px rgba(212, 175, 55, 0.2))
        drop-shadow(0 0 20px rgba(0, 0, 0, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.logo-image:hover {
    transform: scale(1.03) translateY(-1px);
    filter:
        drop-shadow(0 4px 20px rgba(212, 175, 55, 0.4))
        drop-shadow(0 0 30px rgba(0, 0, 0, 0.4));
}

/* Hover mais sutil em mobile */
@media (max-width: 768px) {
    .logo-image:hover {
        transform: scale(1.02);
    }
}

/* Efeito Glow Premium */
.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    filter: blur(30px);
    opacity: 0;
    animation: pulseGlow 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Desativar glow em mobile pequeno para performance */
@media (max-width: 480px) {
    .logo-glow {
        display: none;
    }
}

/* ========================================
   SOCIAL MEDIA STYLES
======================================== */

.social-container {
    margin-top: 10px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.2));
    border: 2px solid transparent;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.instagram-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.instagram-link:hover::before {
    left: 100%;
}

.instagram-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    border-color: rgba(212, 175, 55, 0.5);
}

.instagram-icon {
    width: 24px;
    height: 24px;
    color: #D4AF37;
    transition: all 0.3s ease;
}

.instagram-link:hover .instagram-icon {
    transform: scale(1.1);
    color: #FFD700;
}

.instagram-text {
    color: #D4AF37;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.instagram-link:hover .instagram-text {
    color: #FFD700;
}

/* ========================================
   VIDEO SECTION STYLES
======================================== */

.video-container {
    margin: 30px auto;
    animation: fadeInUp 0.8s ease-out 0.5s both;
    max-width: 400px;
    width: 75%;
}

.video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.4),
        0 0 30px rgba(212, 175, 55, 0.1);
    background: #1a1a1a;
    /* PROPORÇÃO 1:1 - CSS Moderno */
    aspect-ratio: 1;
    /* FALLBACK - Navegadores antigos */
    padding-bottom: 100%;
    height: 0;
}

/* Reset height quando aspect-ratio é suportado */
@supports (aspect-ratio: 1) {
    .video-wrapper {
        height: auto;
        padding-bottom: 0;
    }
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    background: #1a1a1a;
}

.video-wrapper:hover .hero-video {
    transform: scale(1.02);
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    transform: translateY(0);
    z-index: 2;
}

.video-content {
    text-align: center;
}

.video-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #D4AF37;
    margin-bottom: 5px;
}

.video-subtitle {
    color: #B8860B;
    font-size: 0.9rem;
    font-weight: 300;
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    z-index: 1;
}

.video-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

.placeholder-content {
    text-align: center;
    padding: 20px;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.6;
}

.placeholder-text {
    color: #B8860B;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.8;
}

/* ========================================
   MAIN CONTENT STYLES
======================================== */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-bottom: 30px;
    max-width: 400px;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: #D4AF37;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.cta-subtitle {
    color: #B8860B;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0.9;
}

/* ========================================
   BUTTONS STYLES - HYBRID IMAGE + OVERLAY DESIGN
======================================== */

.buttons-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

/* Base Button Styles - DESIGN ORIGINAL RESTAURADO */
.action-button {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15);
    border: 2px solid transparent;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

/* Primary CTA Button - DESTAQUE DOURADO ESPECIAL */
.primary-cta {
    box-shadow:
        0 8px 32px rgba(212, 175, 55, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
}

.primary-cta::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #D4AF37, #B8860B, #D4AF37);
    border-radius: 18px;
    z-index: -1;
    opacity: 0.7;
}

.primary-cta:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 48px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
    border-color: rgba(212, 175, 55, 0.5);
}

/* Secondary Buttons */
.secondary {
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.1);
}

.secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Button Image Container - DESIGN ORIGINAL RESTAURADO */
.button-image-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 16px;
}

.button-image {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
    opacity: 1;
    border-radius: 16px;
    /* GARANTIR NITIDEZ TOTAL */
    filter: none;
    backdrop-filter: none;
}

.action-button:hover .button-image {
    opacity: 1;
    transform: scale(1.02);
}

/* Button Overlay - DESIGN ORIGINAL SEM BLUR */
.button-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    transform: translateY(100%);
    transition: transform 0.3s ease;
    /* REMOVIDO: backdrop-filter: blur(5px); */
}

.action-button:hover .button-overlay {
    transform: translateY(0);
}

/* Premium Overlay (CTA Principal) */
.primary-cta .button-overlay {
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

/* Secondary Overlay */
.secondary-overlay {
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

/* Button Content */
.button-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 3;
}

.button-text-content {
    flex: 1;
}

.button-text {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #D4AF37;
    line-height: 1.2;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.button-subtext {
    display: block;
    font-size: 0.8rem;
    color: rgba(212, 175, 55, 0.8);
    font-weight: 400;
    margin-top: 2px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.button-arrow {
    font-size: 1.2rem;
    color: #D4AF37;
    transition: all 0.3s ease;
    margin-left: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.action-button:hover .button-arrow {
    transform: translateX(5px);
}

/* Button Glow Effect */
.button-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
    border-radius: 14px;
}

.action-button:hover .button-glow {
    opacity: 1;
}

/* Image Loading States - SEM BLUR */
.button-image[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: none;
}

.button-image[loading="lazy"].loaded {
    opacity: 1;
    filter: none;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% { transform: scale(1.02); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s infinite ease-in-out;
}

.pulse:hover {
    animation: none;
}

/* ========================================
   TRUST ELEMENTS STYLES
======================================== */

.trust-elements {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    max-width: 400px;
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
}

.trust-icon {
    font-size: 1rem;
    filter: grayscale(0.3);
}

.trust-text {
    font-size: 0.8rem;
    color: #B8860B;
    font-weight: 500;
    white-space: nowrap;
}

/* ========================================
   FOOTER STYLES
======================================== */

.footer {
    text-align: center;
    padding-top: 40px;
    margin-top: auto;
    animation: fadeInUp 0.8s ease-out 1.1s both;
}

.footer-text {
    color: #888;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 4px;
}

.footer-subtitle {
    color: #666;
    font-size: 0.8rem;
    font-weight: 300;
    font-style: italic;
}

/* ========================================
   LOADING STATES & ANIMATIONS
======================================== */

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animações da Logo */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Image Loading States */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Mobile First - Base styles above are for mobile */

/* Landscape orientation para mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .logo-image {
        max-width: 140px;
        max-height: 140px;
    }

    .header {
        margin-bottom: 10px;
        padding-top: 10px;
    }

    .logo-container {
        padding: 10px 5px;
    }

    .logo-wrapper {
        margin-bottom: 10px;
    }

    .video-container {
        max-width: 350px;
    }
}

/* Extra Small Mobile (320px - 375px) */
@media (max-width: 375px) {
    .container {
        padding: 10px;
    }

    .header {
        margin-bottom: 15px;
        padding-top: 10px;
    }

    .logo-container {
        padding: 10px 5px;
    }

    .logo-wrapper {
        margin-bottom: 10px;
    }

    .logo-image {
        max-width: 150px;
        max-height: 150px;
        filter:
            drop-shadow(0 2px 8px rgba(212, 175, 55, 0.15))
            drop-shadow(0 0 15px rgba(0, 0, 0, 0.2));
    }

    .social-container {
        margin-top: 5px;
    }
}

/* Small Mobile (376px - 480px) */
@media (min-width: 376px) and (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .logo-image {
        max-width: 170px;
        max-height: 170px;
    }

    .buttons-container {
        gap: 12px;
    }

    .action-button {
        min-height: 100px;
    }

    .button-overlay {
        padding: 12px 16px;
    }

    .button-text {
        font-size: 0.9rem;
    }

    .primary-cta .button-text {
        font-size: 1rem;
    }

    .button-subtext {
        font-size: 0.75rem;
    }

    .button-arrow {
        font-size: 1.1rem;
        margin-left: 10px;
    }

    .trust-elements {
        gap: 12px;
    }

    .trust-item {
        padding: 8px 12px;
        flex: 1;
        min-width: calc(50% - 6px);
        justify-content: center;
        text-align: center;
    }

    .trust-text {
        font-size: 0.7rem;
    }

    .video-container {
        max-width: 400px;
        width: 70%;
    }

    .placeholder-icon {
        font-size: 2rem;
    }

    .placeholder-text {
        font-size: 1rem;
    }
}

/* Large Mobile / Small Tablet (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 25px;
        max-width: 500px;
    }

    .logo-image {
        max-width: 220px;
        max-height: 220px;
    }

    .logo-wrapper {
        margin-bottom: 20px;
    }

    .buttons-container {
        max-width: 450px;
        gap: 18px;
    }

    .action-button {
        min-height: 130px;
    }

    .button-overlay {
        padding: 18px 20px;
    }

    .video-container {
        max-width: 450px;
        width: 75%;
    }

    .trust-elements {
        gap: 16px;
    }

    .trust-item {
        min-width: auto;
    }
}

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 600px;
        padding: 40px 30px;
    }

    .header {
        margin-bottom: 35px;
    }

    .logo-container {
        padding: 20px;
    }

    .logo-image {
        max-width: 260px;
        max-height: 260px;
        filter:
            drop-shadow(0 4px 20px rgba(212, 175, 55, 0.3))
            drop-shadow(0 0 40px rgba(0, 0, 0, 0.5));
    }

    .logo-wrapper {
        margin-bottom: 25px;
    }

    .buttons-container {
        max-width: 500px;
        gap: 20px;
    }

    .action-button {
        min-height: 140px;
    }

    .button-overlay {
        padding: 22px 24px;
    }

    .button-text {
        font-size: 1.1rem;
    }

    .primary-cta .button-text {
        font-size: 1.2rem;
    }

    .video-container {
        max-width: 500px;
        width: 80%;
    }

    .trust-elements {
        gap: 24px;
    }
}

/* Desktop (1025px+) */
@media (min-width: 1025px) {
    .container {
        max-width: 700px;
        padding: 60px 40px;
    }

    .logo-container {
        padding: 25px;
    }

    .logo-image {
        max-width: 300px;
        max-height: 300px;
        filter:
            drop-shadow(0 4px 25px rgba(212, 175, 55, 0.35))
            drop-shadow(0 0 50px rgba(0, 0, 0, 0.5));
    }

    .logo-wrapper {
        margin-bottom: 30px;
    }

    /* Reativar glow no desktop */
    .logo-glow {
        display: block;
    }

    .header {
        margin-bottom: 50px;
    }


    .video-container {
        margin: 40px auto;
        max-width: 550px;
        width: 80%;
    }

    .buttons-container {
        max-width: 550px;
        gap: 24px;
    }

    .action-button {
        min-height: 150px;
    }

    .button-overlay {
        padding: 24px 28px;
    }

    .button-text {
        font-size: 1.2rem;
    }

    .primary-cta .button-text {
        font-size: 1.3rem;
    }

    .button-subtext {
        font-size: 0.9rem;
    }

    .button-arrow {
        font-size: 1.4rem;
    }

    .cta-title {
        font-size: 2.5rem;
    }

    .cta-subtitle {
        font-size: 1.1rem;
    }
}

/* Landscape Mobile Optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .container {
        padding: 10px 20px;
    }

    .header {
        margin-bottom: 15px;
    }

    .brand-name {
        font-size: 1.8rem;
    }

    .video-container {
        margin: 15px auto;
        max-width: 400px;
        width: 70%;
    }

    .cta-section {
        margin-bottom: 20px;
    }

    .buttons-container {
        gap: 10px;
    }

    .action-button {
        min-height: 80px;
    }

    .button-overlay {
        padding: 12px 16px;
    }

    .button-text {
        font-size: 0.85rem;
    }

    .button-subtext {
        font-size: 0.7rem;
    }

    .button-arrow {
        font-size: 1rem;
        margin-left: 8px;
    }

    .trust-elements {
        margin-top: 15px;
    }

    .footer {
        padding-top: 20px;
    }
}

/* ========================================
   ACCESSIBILITY & USER PREFERENCES
======================================== */

/* Dark Mode Support (Already implemented) */
@media (prefers-color-scheme: dark) {
    body {
        background: radial-gradient(ellipse at center, #1a1a1a 0%, #0d0d0d 100%);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .action-button {
        border: 3px solid #D4AF37;
    }

    .brand-name {
        text-shadow: none;
        color: #FFD700;
    }

    .instagram-link {
        border: 2px solid #D4AF37;
    }

    .trust-item {
        border: 2px solid #D4AF37;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scissors:hover {
        transform: rotate(45deg);
    }

    .pulse {
        animation: none;
    }
}

/* ========================================
   FOCUS STATES & KEYBOARD NAVIGATION
======================================== */

.action-button:focus,
.instagram-link:focus {
    outline: 3px solid #D4AF37;
    outline-offset: 3px;
}

.action-button:focus:not(:focus-visible),
.instagram-link:focus:not(:focus-visible) {
    outline: none;
}

/* ========================================
   PRINT STYLES
======================================== */

@media print {
    body {
        background: white !important;
        color: black !important;
    }

    .action-button {
        border: 2px solid black !important;
        background: white !important;
        color: black !important;
    }

    .brand-name {
        color: black !important;
        text-shadow: none !important;
    }

    .video-container {
        display: none;
    }

    .trust-elements {
        display: none;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
======================================== */

/* GPU Acceleration for animations */
.action-button,
.instagram-link,
.scissors,
.hero-video {
    will-change: transform;
    transform: translateZ(0);
}

/* Optimize repaints */
.button-glow,
.video-overlay {
    contain: layout;
}