/* ========================================
   GIANINI TRAILERS - ESTILO ORIGINAL
   Réplica fiel do site original
   ======================================== */

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #4a4a4a;
    background-color: #ffffff;
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
}

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #046bd2;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    width: 100%;
}

.hero-image {
    width: 100%;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   INTRO SECTION (Sobre + Formulário)
   ======================================== */
.section-intro {
    padding: 60px 0;
    background: #ffffff;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.intro-title {
    color: #1a5f5f;
    font-size: 1.8rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.3;
    margin-bottom: 30px;
}

.intro-title span {
    display: block;
    font-size: 1.5rem;
}

.intro-content {
    color: #5a7a7a;
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.8;
}

.intro-content p {
    margin-bottom: 20px;
}

/* Formulário */
.intro-form {
    background: #ffffff;
}

.form-title {
    color: #1a5f5f;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 25px;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #046bd2;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox input {
    width: auto;
}

.form-checkbox label {
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 15px 30px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background: #046bd2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #0356a8;
}

/* ========================================
   FEATURE SECTIONS
   ======================================== */
.section-feature {
    padding: 60px 0;
}

.section-gray {
    background: #f5f5f5;
}

.section-white {
    background: #ffffff;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.feature-reverse {
    direction: rtl;
}

.feature-reverse > * {
    direction: ltr;
}

.feature-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.feature-header {
    margin-bottom: 25px;
}

.red-line {
    display: block;
    width: 200px;
    height: 4px;
    background: #c41e3a;
    margin-bottom: 20px;
}

.feature-header h2,
.feature-content h2 {
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.feature-title-center {
    text-align: center;
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.feature-title-dark {
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.feature-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
}

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

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.section-products {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.products-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, #e8f4e8 0%, #f5e6d3 50%, #e8d4c4 100%);
    z-index: 0;
}

.products-bg::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: url('../images/desert-bg.jpg') center bottom/cover no-repeat;
    opacity: 0.3;
}

.section-products .container {
    position: relative;
    z-index: 1;
}

.products-header {
    margin-bottom: 40px;
}

.products-header h2 {
    color: #666;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.2;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ========================================
   ALBUM SECTION (NOVO)
   ======================================== */
.section-album {
    padding: 80px 0;
    background: #f8f9fa;
}

.album-header {
    margin-bottom: 40px;
}

.album-header h2 {
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.album-header p {
    color: #666;
    font-size: 1rem;
    margin-top: 15px;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.album-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.album-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(4, 107, 210, 0);
    transition: background 0.3s;
}

.album-item:hover img {
    transform: scale(1.1);
}

.album-item:hover::after {
    background: rgba(4, 107, 210, 0.3);
}

.album-more {
    text-align: center;
    margin-top: 40px;
}

.btn-album {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background: #046bd2;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-album:hover {
    background: #0356a8;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    color: #fff;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #046bd2;
}

.lightbox-close {
    top: 20px;
    right: 30px;
    font-size: 3rem;
}

.lightbox-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.section-about {
    position: relative;
    padding: 80px 0;
    text-align: center;
}

.about-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.85) 100%),
        url('../images/about-bg.jpg') center/cover no-repeat;
    z-index: 0;
}

.about-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    color: #333;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.about-content p {
    color: #666;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-content .highlight {
    color: #333;
    font-weight: 600;
    font-size: 1.2rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    position: relative;
}

.footer-bg {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.footer-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-content {
    background: #fff;
    padding: 30px 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.social-link:hover {
    color: #046bd2;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.copyright {
    color: #888;
    font-size: 0.85rem;
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    background: #046bd2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.3s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0356a8;
}

/* ========================================
   WHATSAPP FLUTUANTE
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feature-reverse {
        direction: ltr;
    }

    .feature-image {
        order: -1;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .album-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Menu Mobile */
.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.3s ease;
    z-index: 1000;
}

.nav-mobile.active {
    right: 0;
}

.nav-mobile .nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    padding: 10px 20px;
    transition: color 0.3s;
}

.nav-mobile .nav-link:hover {
    color: #046bd2;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

body.menu-open {
    overflow: hidden;
}

/* Overlay quando menu aberto */
body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .logo img {
        height: 60px;
    }

    .intro-title {
        font-size: 1.4rem;
    }

    .intro-title span {
        font-size: 1.2rem;
    }

    .feature-header h2,
    .feature-content h2,
    .feature-title-center,
    .feature-title-dark {
        font-size: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-item img {
        height: 250px;
    }

    .album-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-links {
        flex-direction: column;
        gap: 15px;
    }

    .footer-bg {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .section-intro,
    .section-feature {
        padding: 40px 0;
    }

    .album-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}
