/* ========================================
   FP Imagem Masculina - Stylesheet
   Design Clássico e Elegante
   ======================================== */

/* === CSS Variables === */
:root {
    /* Colors */
    --color-primary: #d4af37;
    --color-primary-dark: #b8941f;
    --color-secondary: #1a1a1a;
    --color-bg: #0f0f0f;
    --color-text: #e5e5e5;
    --color-text-light: #b3b3b3;
    --color-accent: #8b7355;
    --color-border: #2d2d2d;
    
    /* Brand Colors from Interior */
    --color-green: #7DB88E;
    --color-green-dark: #6A9F7A;
    --color-brown: #8B5A3C;
    --color-brown-light: #A0725F;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 75px; /* Somente o header fixo */
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: var(--spacing-sm);
}

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

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    margin: var(--spacing-md) auto 0;
}

/* === Container & Layout === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-wide {
    max-width: 1400px;
}

section {
    padding: var(--spacing-xl) 0;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-secondary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-secondary);
    transform: translateY(-2px);
}

/* === Top Bar === */
.top-bar {
    background: var(--color-secondary);
    border-bottom: 1px solid var(--color-border);
    padding: 0.375rem 0;
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.social-links-top {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-links-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(125, 184, 142, 0.15);
    color: var(--color-green);
    transition: var(--transition);
}

.social-links-top a:hover {
    background: var(--color-green);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(125, 184, 142, 0.4);
}

.social-links-top svg {
    width: 16px;
    height: 16px;
}

.btn-schedule {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-secondary);
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4), 0 0 20px rgba(212, 175, 55, 0.2);
}

.btn-schedule:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6), 0 0 30px rgba(212, 175, 55, 0.3);
}

.btn-schedule svg {
    width: 15px;
    height: 15px;
}

/* === Header === */
.header {
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0;
}

.logo img {
    height: 48px;
    width: auto;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-list a {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--color-primary);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 80px; /* Apenas altura do header */
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        padding: var(--spacing-lg);
        transition: left 0.3s ease;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .nav-list a {
        font-size: 1.2rem;
    }
    
    .btn-primary {
        width: 100%;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 75px; /* Somente o header fixo */
    }
    
    .top-bar {
        padding: 0.5rem 0;
    }
    
    .top-bar-content {
        gap: 1rem;
        justify-content: flex-end;
    }
    
    .social-links-top {
        gap: 0.5rem;
    }
    
    .social-links-top a {
        width: 32px;
        height: 32px;
    }
    
    .btn-schedule {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .btn-schedule svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .btn-schedule span {
        display: none;
    }
    
    .btn-schedule {
        padding: 0.5rem 0.75rem;
        min-width: auto;
    }
}

/* === Footer === */
.footer {
    background: linear-gradient(180deg, var(--color-secondary) 0%, #151515 100%);
    border-top: 2px solid var(--color-primary);
    padding: 3.5rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 0.5fr 1.3fr;    
    gap: 3rem;
    margin-bottom: 1.5rem;
}

.footer-col {
    padding: 0 1rem;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.15));
}

.footer-tagline {
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

.footer h3 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links-two-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1.5rem;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: var(--color-text-light);
    transition: var(--transition);
    display: inline-block;
    font-size: 0.95rem;
    position: relative;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: var(--transition);
    color: var(--color-primary);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-contact li {
    color: var(--color-text-light);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--color-primary);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-primary);
    color: var(--color-secondary);
    transform: translateY(-3px);
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.footer .btn {
    max-width: 100%;
    box-sizing: border-box;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* === Contact Section === */
.contact-section {
    background: var(--color-secondary);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.contact-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

.contact-card .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
    color: var(--color-primary);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.contact-card p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
}

.contact-card .contact-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-green);
    margin: var(--spacing-sm) 0;
}

.contact-card .hours-list {
    list-style: none;
    text-align: left;
    max-width: 280px;
    margin: var(--spacing-md);
    flex: 1;
}

.contact-card .hours-list li {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-light);
}

.contact-card .hours-list li:last-child {
    border-bottom: none;
}

.contact-card .hours-list li strong {
    color: var(--color-green);
}

.contact-card .btn {
    margin-top: auto;
    align-self: center;
    width: fit-content;
}

.contact-card .btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Map Container */
.map-container {
    margin-top: var(--spacing-xl);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* Responsive Contact Cards */
@media (max-width: 992px) {
    .contact-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-card {
        min-height: auto;
    }
    
    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .contact-card .hours-list {
        font-size: 0.9rem;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

.footer-dev {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.65;
    font-style: italic;
}

/* === Footer Responsive === */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-col {
        text-align: center;
        padding: 0;
    }
    
    .footer h3 {
        font-size: 1.1rem;
    }
    
    .footer-contact li {
        justify-content: center;
        text-align: left;
    }
    
    .footer-links {
        display: inline-block;
        text-align: left;
    }
    
    .footer-links-two-cols {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 1rem;
        max-width: 300px;
        margin: 0 auto;
        text-align: center;
    }
    
    .social-links {
        justify-content: center !important;
    }
    
    .footer .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* === WhatsApp Float Button === */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    z-index: 999;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    animation: none;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* === Utility Classes === */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

/* === Loading Animation for Lazy Images === */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* === Loading Animation for Lazy Videos === */
video.lazy-video {
    opacity: 0;
    transition: opacity 0.3s ease;
}

video.lazy-video.loaded {
    opacity: 1;
}

/* === Videos Section === */
.videos-section {
    background: var(--color-secondary);
    padding: var(--spacing-xl) 0;
}

.videos-section .section-subtitle {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xl);
    font-size: 1.1rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.video-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    transition: var(--transition);
    aspect-ratio: 9 / 16;
}

.video-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: var(--transition);
    pointer-events: none;
}

.video-item:hover .video-overlay {
    opacity: 0;
}

.video-item video::-webkit-media-controls-panel {
    display: none;
}

.video-item:hover video::-webkit-media-controls-panel {
    display: flex;
}

.play-button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.9);
    border: 3px solid rgba(255, 255, 255, 0.8);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--color-primary);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
}

.play-button svg {
    margin-left: 4px;
}

/* Video Controls Styling */
video::-webkit-media-controls {
    filter: brightness(0.8);
}

video::-webkit-media-controls-panel {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

/* Responsive Videos Grid */
@media (max-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .video-item {
        aspect-ratio: 9 / 14;
    }
}

@media (max-width: 768px) {
    .videos-section {
        padding: var(--spacing-lg) 0;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .video-item {
        aspect-ratio: 9 / 16;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button svg {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .videos-section .section-subtitle {
        font-size: 1rem;
    }
    
    .video-item {
        border-radius: 8px;
    }
}

/* === Responsive === */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2.5rem;
        --spacing-lg: 1.5rem;
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}
