/* 
 * File: layout.css
 * Author: BIGSOFT, LDA
 * Description: Defines structural layout styles (Navigation, Hero, Footer, Floating CTA).
 */
/* --- LAYOUT STYLES (NAVIGATION, HERO, FOOTER) --- */

/* TOP NAVIGATION BAR */
.top-nav {
    background-color: var(--color-background-dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Banner fixo e responsivo no topo */
.top-fixed-banner {
    background-color: #000;
    display: flex;
    justify-content: center;
    padding: var(--spacing-md) 0;
}

.top-fixed-banner-inner {
    width: 100%;
    max-width: none; /* Full viewport width */
    border-radius: 0; /* Edge‑to‑edge banner */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.top-fixed-banner-inner img {
    width: 100%;
    height: auto; /* Responsive height */
    object-fit: cover;
    display: block;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Rely on base.css for width/max-width/padding */
}

.logo {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-text);
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--color-secondary);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: -5px;
}


/* 1. HERO SECTION */
.hero {
    padding: var(--spacing-xl) 0 40px;
    text-align: left; /* Default text alignment left */
    /* Updated background to use the new full cover hero image */
    background: url('/new_hero_background_portraits.png') center center/cover no-repeat;
    background-color: var(--color-background-dark); 
    position: relative;
    overflow: hidden;
    min-height: 100vh; /* NEW: make hero full viewport height */
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75); /* Dark overlay - Increased opacity for a 'blacker' look */
    z-index: 1;
}

.hero .container {
    position: relative; /* Ensure content is above the overlay */
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 650px; /* Constrain content width slightly */
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Increased max size slightly for impact */
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    color: var(--color-text); 
    font-weight: 900;
}

.hero h1 span {
    color: var(--color-primary); /* Highlight specific words */
}

.hero h2 {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    color: var(--color-text); /* Use dark text */
    margin-bottom: var(--spacing-md);
    font-weight: 400; /* Subtitle lighter */
}

.hero-subtext {
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    font-style: normal;
    color: var(--color-text);
    font-weight: 300;
}

.btn-cta-main {
    min-width: 320px; /* Make the main CTA stand out more */
}

.hero-mockup-wrapper {
    display: none;
}

.hero-visual {
    margin: var(--spacing-lg) auto 0;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px; 
    /* Adjust styling for the portrait image */
    display: flex;
    justify-content: center;
    align-items: center;
    /* NEW: Setting aspect ratio for gallery area */
    aspect-ratio: 1 / 1.2; /* Slightly taller than square for portrait images */
    max-height: 500px;
}

.hero-gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-mockup {
    width: 100%; /* Use 100% of the container */
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 0 40px rgba(255, 68, 68, 0.3); /* Red glow around the person */
    border-radius: 8px; /* Slight rounding */
    border: 3px solid var(--color-secondary); /* Yellow/Gold frame */
    
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; /* Hide all by default */
    transform: scale(1.1) translateX(-10%); /* Start zoomed and slightly off-screen left */
    /* Modern, smoother transition using cubic-bezier */
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-mockup.active-slide {
    opacity: 1; /* Show active slide */
    transform: scale(1) translateX(0); /* Slide in and return to normal scale */
}

.gallery-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
    /* Move indicators down slightly for testimonial section if needed, but globally centered */
}

.gallery-indicator {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.gallery-indicator.active {
    background-color: var(--color-primary);
    transform: scale(1.3);
}


/* 7. FOOTER */
.footer {
    background-color: #000000; /* Pure black footer */
    color: white;
    padding: var(--spacing-lg) 0; /* Increased padding */
    font-size: 0.9rem;
    text-align: center; /* Ensure full footer centralization */
}

.footer-cta {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary); /* Now Red */
}

.security-text {
    margin-bottom: var(--spacing-md);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 15px; /* New: Spacing between icons */
    margin-left: var(--spacing-md);
}

/* Ensure minimum touch size and better contrast for icons */
.social-icons a {
    display: block;
    width: 44px; 
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-background-light); /* Dark grey background */
    border: 2px solid var(--color-secondary); /* Yellow/Gold frame for visibility */
    transition: background-color 0.3s, border-color 0.3s;
    overflow: hidden; 
}

.social-icons img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 9px; /* White icon inside circle */
    transition: none;
}

.social-icons a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.social-icons span {
    display: none;
    width: 35px;
    height: 35px;
    line-height: 35px;
    border: 2px solid white;
    border-radius: 50%;
    text-align: center;
    margin-left: 8px;
    font-size: 0.8rem;
    font-weight: bold;
}

.copyright {
    margin-top: var(--spacing-sm);
    font-size: 0.8rem;
    opacity: 0.7;
}


/* DESKTOP/TABLET LAYOUT OPTIMIZATION (min-width: 768px) */
@media (min-width: 768px) {
    
    .hero {
        padding: calc(var(--spacing-xl) / 2) 0;
        text-align: left;
    }

    .hero .container {
        display: grid;
        grid-template-columns: 1.2fr 1fr; /* Text left, visual right */
        gap: 80px; /* Increased gap */
        align-items: center;
        text-align: left;
        min-height: 60vh; /* Ensure visual space */
    }
    
    .hero-content {
        max-width: none;
    }

    .hero h1 {
        font-size: clamp(3.5rem, 7vw, 5rem);
        max-width: 100%;
        margin-left: 0;
    }
    
    .hero h2, .hero-subtext, .hero .btn-cta-main {
        text-align: left;
        margin-left: 0;
        margin-right: auto;
    }
    
    .hero-visual {
        margin: 0;
        max-width: 100%;
        display: block; /* Ensure it respects grid layout */
        aspect-ratio: 1 / 1.2; /* Same ratio for desktop */
    }

    .hero-mockup {
        width: 100%;
        max-width: 100%;
        object-fit: cover;
    }
    
    .hero .gallery-indicators {
        bottom: 20px; /* Push indicators slightly higher on desktop if necessary */
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* WhatsApp green */
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    transition: transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 40px;
    height: 40px;
    /* Use the generated icon directly */
}

/* Adjust position for larger screens if necessary, though 20px is generally fine */
@media (min-width: 768px) {
    .whatsapp-float {
        bottom: 30px;
        right: 30px;
        width: 70px;
        height: 70px;
    }
    .whatsapp-float img {
        width: 45px;
        height: 45px;
    }
}

/* Mobile adjustments for banner and hero area */
@media (max-width: 767px) {
    .top-fixed-banner {
        padding: 0;
    }

    .top-fixed-banner-inner img {
        max-height: 220px;
        object-fit: cover;
    }

    .hero {
        padding: var(--spacing-lg) 0 30px;
        min-height: auto;
    }

    .hero-visual {
        max-height: 380px;
        aspect-ratio: 3 / 4;
    }
}