/* Fonts */
@font-face {
    font-family: 'Advercase';
    src: url('fonts/AdvercaseDemo-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Montreal';
    src: url('fonts/NeueMontreal-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Montreal';
    src: url('fonts/NeueMontreal-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Montreal';
    src: url('fonts/NeueMontreal-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Montreal';
    src: url('fonts/NeueMontreal-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Reset and basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Neue Montreal', Arial, sans-serif;
    font-weight: 400;
    color: #000000;
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Typography placeholders */
h1, h2 {
    font-family: 'Advercase', "Times New Roman", Times, serif;
    font-weight: normal;
    color: #000;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.logo img {
    height: 70px;
    border-radius: 50%;
}

.nav a {
    text-decoration: none;
    color: #000;
    margin-left: 40px;
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Hero Section */
.hero {
    background-color: #f2f2f2; /* Light grey background fallback */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    margin-bottom: 40px;
}

.hero-container {
    display: flex;
    align-items: center;
    min-height: 70vh;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h1 {
    font-size: 6.5rem;
    line-height: 0.95;
    letter-spacing: -2px;
}



/* Divider */
.divider {
    text-align: center;
    padding: 40px 0 60px 0;
}

.divider p {
    font-size: 1.3rem;
}

/* Sections */
.section {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.section.reverse {
    flex-direction: row-reverse;
}

.section-image {
    flex: 1;
}

.section-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.section-image.image-tall {
    flex: 1.5; /* Makes the image container take up more space horizontally */
}

.section-image.image-tall img {
    min-height: 500px;
    object-fit: cover;
}

.section-image.image-contain img {
    object-fit: contain;
    max-height: 600px;
}

.section-image.hats-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.section-image.hats-stack img {
    width: 80%; /* Adjusted to match reference proportion */
    height: auto;
    object-fit: contain;
}

.section-content {
    flex: 1;
}

.section-content h2 {
    font-size: 4.5rem;
    margin-bottom: 30px;
    line-height: 1;
    letter-spacing: -1px;
}

.section-content p {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #000000;
}

.section-content .underline {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.section-content ul {
    list-style: none;
    margin-bottom: 30px;
    margin-top: 20px;
}

.section-content ul li {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #000000;
}

.section-content .signature {
    font-size: 1.1rem;
    margin-top: 10px;
    color: #000000;
}

/* About Section */
.about-section {
    position: relative;
    width: 100%;
    /* Substituído min-height fixo por uma altura que acompanha a proporção da imagem de fundo */
    height: 52vw; /* Proporção aproximada da imagem de história para manter a escala perfeita */
    background-image: url('images/img-nossa-historia.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 80vh;
    padding-top: 60px;
    padding-bottom: 20px;
}

.about-content {
    max-width: 55%;
}

.about-content h2 {
    font-size: 4.5rem;
    margin-bottom: 30px;
    line-height: 1;
    letter-spacing: -1px;
}

.about-content p {
    margin-bottom: 10px;
    font-size: 1.15rem;
    color: #000000;
}

.about-content .signature {
    font-size: 1.1rem;
    margin-top: 5px;
    font-style: italic;
}

.footer-container {
    background-color: #ffffff;
    width: 100%;
    /* Adicionado position relative e z-index para garantir que fique acima da imagem de fundo se necessário */
    position: relative;
    z-index: 10;
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
    margin-top: 0;
    border-top: none;
    flex-wrap: nowrap; /* Garante que os itens não quebrem linha no desktop */
}

.footer h2 {
    font-size: 4.5rem;
    margin: 0;
    font-weight: 500;
    white-space: nowrap; /* Evita que "Come meet us." quebre em 3 linhas */
}

.footer .footer-links span {
    font-size: 1.2rem;
    color: #000000;
}

/* Pronta Entrega Page */
.hero-pronta-entrega {
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    height: 46.2vw; /* Mantém a proporção da imagem 887/1920 */
    max-height: 800px; /* Limita a altura em telas gigantes */
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 80px;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
}

.hero-pronta-entrega-content {
    width: 100%;
    padding-bottom: 20px;
}

.hero-pronta-entrega-content h1 {
    font-size: clamp(4rem, 12vw, 11.5rem); /* Responsive font size */
    color: #ffffff;
    margin: 0;
    line-height: 0.8;
    letter-spacing: -3px; /* Slightly tighter */
    text-align: center;
    transform: translateY(30px); /* Abaixei 10px */
    white-space: nowrap; /* Prevent line breaks */
}

.products-section {
    padding-bottom: 100px;
    max-width: 1400px; /* Make the container wider for the grid */
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px; /* Increase gap between columns */
    width: 100%;
}

.product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-image {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.product-image img {
    max-height: 100%;
    max-width: 95%;
    object-fit: contain;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-attributes {
    display: flex;
    border: 1px solid #000;
    padding: 12px 5px;
}

.product-attributes .attr {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.product-description {
    padding: 15px 20px;
    font-size: 0.9rem;
    border: 1px solid #000;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #000;
}

.product-description p {
    margin: 0;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    font-size: 0.9rem;
    border: 1px solid #000;
    color: #000;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        padding-top: 60px;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: left;
        width: 100%;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .section, .section.reverse {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        margin-bottom: 80px;
    }
    
    .section-content h2 {
        font-size: 3rem;
    }
    
    .about-container {
        justify-content: center;
    }

    .about-content {
        max-width: 100%;
        background-color: rgba(255, 255, 255, 0.85);
        padding: 40px;
        border-radius: 10px;
    }

    .footer-container {
        margin-top: 0;
        padding-top: 0;
    }

    .footer {
        flex-direction: column;
        gap: 5px; /* Reduzido o gap interno do footer de 10px para 5px */
        padding: 0 20px 20px 20px; /* Zerei totalmente o padding superior do footer */
        margin-top: -15px; /* Margem negativa para engolir qualquer espaço extra deixado pelo browser */
    }

    .footer h2 {
        font-size: 3.5rem;
        text-align: center;
        white-space: normal;
        margin-top: 0; /* Garante que o h2 não tenha margem empurrando para baixo */
        line-height: 1; /* Aperta a caixa do texto */
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-pronta-entrega-content h1 {
        transform: translateY(25px);
        letter-spacing: -2px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .nav a {
        margin-left: 0;
        font-size: 0.9rem;
    }

    .hero {
        background-position: 65% center;
    }

    .hero-content h1 {
        font-size: 3rem;
        text-align: left;
    }

    .hero-container {
        min-height: 50vh;
    }

    .section-content h2 {
        font-size: 2.5rem;
    }

    .section-content p, .section-content ul li {
        font-size: 1.1rem;
    }

    .section-image.image-tall img {
        min-height: auto;
    }

    /* About Section Mobile Fix */
    .about-section {
        background-position: left top; 
        background-size: 200% auto; 
        height: auto;
        padding-top: 75vw; /* Reduzido drasticamente de 100vw para 75vw para matar o espaço acima */
        padding-bottom: 0;
    }

    .about-container {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        margin-top: -5px; /* Tira qualquer resquício de margem invisível */
    }

    .about-content {
        background-color: #ffffff; 
        padding: 0 20px 0px 20px; /* Zerei o padding inferior totalmente */
        margin: 0;
        width: 100%;
        text-align: left;
    }

    .about-content h2 {
        font-size: 2.5rem;
    }

    .about-content p {
        font-size: 1rem;
    }

    .about-content p:last-child {
        margin-bottom: 0; /* Zera completamente a margem do último parágrafo */
    }

    .footer h2 {
        font-size: 2.5rem;
    }

    .footer .footer-links span {
        font-size: 1rem;
    }
    
    .section-image.hats-stack img {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-pronta-entrega-content h1 {
        transform: translateY(20px);
        letter-spacing: -1px;
    }
    
    .hero-pronta-entrega {
        height: 50vh;
        min-height: 300px;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-content h2 {
        font-size: 2rem;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .footer h2 {
        font-size: 2rem;
    }
    
    .hero-pronta-entrega-content h1 {
        font-size: clamp(2rem, 15vw, 4rem);
        transform: translateY(15px);
        letter-spacing: -1px;
    }
}