/* reset basico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --header-height: 88px; /* ajuste se precisar */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: #F8F3EE;
    color: #333;
    overflow: hidden;
    height: 100vh;
}

img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* scrollbar customizada */
::-webkit-scrollbar {
    width: 16px;
}
::-webkit-scrollbar-track {
    background: #F7EDDB;
}
::-webkit-scrollbar-thumb {
    background: #B22865;
    transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: #D9861A;
}

/* cabecalho */
header {
    background: #B22865;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transform: translateY(0);
    transition: transform 0.3s ease;
    pointer-events: none;
}

header.hide {
    transform: translateY(-100%);
}

header .logo {
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
}

header .logo img {
    height: 64px;
    width: auto;
}

nav {
    display: flex;
    gap: 18px;
    align-items: center;
    pointer-events: auto;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    padding: 6px 8px;
    border-radius: 6px;
}

nav a:hover {
    color: #F7EDDB;
}

/* icones de redes sociais */
.social-icons {
    position: absolute;
    right: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    pointer-events: auto;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.social-icons svg {
    width: 26px;
    height: 26px;
}

/* conteudo principal */
main {
    padding-top: var(--header-height);
    padding-bottom: 200px;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* banner */
#home {
    padding: 0;
}

.banner {
    position: relative;
    width: 100%;
    height: 80vh;
    background-image: url('assets/carrossel/carrossel 01.jpg');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.banner-logo {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 300px;
    max-width: 80%;
}

.banner-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.9));
}

#home h2 {
    color: #B22865;
    margin-bottom: 15px;
}

#home button {
    background: #B22865;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 15px;
}

#home button:hover {
    background: #981347;
}

/* portfolio */
#portfolio {
    padding: 40px 80px;
}

#portfolio h2 {
    text-align: center;
    color: #B22865;
    margin-bottom: 30px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* card produto */
.card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #F2D3B5;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card img {
    border-radius: 8px;
    margin-bottom: 10px;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.card h3 {
    color: #B22865;
    margin-bottom: 8px;
}

.card p {
    font-size: 14px;
    margin-bottom: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    pointer-events: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    position: relative;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    color: #B22865;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #981347;
}

.modal-content h3 {
    color: #B22865;
    margin-bottom: 12px;
    font-size: 20px;
}

.modal-gallery {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-gallery img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #F2D3B5;
}

.gallery-btn {
    position: absolute;
    background: rgba(178, 40, 101, 0.8);
    color: white;
    border: none;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.gallery-btn:hover {
    background: rgba(152, 19, 71, 0.9);
}

.gallery-btn.prev {
    left: 10px;
}

.gallery-btn.next {
    right: 10px;
}

.gallery-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D9D9D9;
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: #B22865;
}

.indicator:hover {
    background: #D9861A;
}

.modal-content p {
    margin-bottom: 12px;
    color: #333;
    line-height: 1.4;
    font-size: 14px;
    flex-shrink: 0;
}

.btn-interesse {
    background: #25D366;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.btn-interesse:hover {
    background: #1fb854;
}

.btn-interesse svg {
    flex-shrink: 0;
}

/* sobre */
#sobre {
    padding: 40px;
    background: #F7EDDB;
    margin: 40px 20px;
    border-radius: 10px;
}

#sobre h2 {
    color: #B22865;
    margin-bottom: 20px;
    text-align: left;
}

.sobre-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.sobre-text {
    flex: 1;
}

.sobre-text p {
    margin: 0 0 15px;
    text-align: left;
}

.sobre-video {
    flex: 1;
}

.sobre-video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
}

/* rodape */
footer {
    background: #B22865;
    color: white;
    padding: 20px 20px;
    text-align: center;
    margin: 0;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

footer.show {
    transform: translateY(0);
}

footer h3 {
    font-size: 16px;
    margin: 0;
}

footer p {
    margin: 0;
    font-size: 13px;
}

/* responsivo */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}
