/* ==========================
   PRINTTURA V2
   ========================== */
:root {
    --primary: #22C7E8;
    --primary-dark: #1798B5;

    --dark: #1C2430;
    --dark-light: #2D3748;

    --light: #F7FAFC;
    --white: #FFFFFF;

    --border: #E2E8F0;

    --radius: 18px;

    --shadow:
        0 10px 25px rgba(0,0,0,.08);

    --transition: .25s ease;
}

/* ==========================
   RESET
   ========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* ==========================
   CONTAINER
   ========================== */
.container {
    width: min(1200px, 92%);
    margin: auto;
}

/* ==========================
   HEADER
   ========================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: .8rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo img {
    height: 42px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-dark);
}

/* ==========================
   HERO
   ========================== */

.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #eefcff 100%
        );
}

.hero-content {
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    max-width: 700px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 650px;
    color: var(--dark-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================
   BOTÕES
   ========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

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

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary-dark);
    background: transparent;
}

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

/* ==========================
   SECTIONS
   ========================== */
.section {
    padding: 6rem 0;
}

.section-alt {
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: .8rem;
}

.section-header p {
    color: var(--dark-light);
    max-width: 700px;
    margin: auto;
}

/* ==========================
   COLEÇÕES
   ========================== */
.collections-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px, 1fr)
        );
    gap: 2rem;
}

.collection-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.collection-card:hover {
    transform: translateY(-8px);
}

.collection-image {
    width: 100%;
    height: 320px;
    object-fit: contain;
    background: #000;
    padding: 1rem;
}

.collection-content {
    padding: 1.4rem;
}

.collection-content h3 {
    margin-bottom: .5rem;
}

.collection-count {
    color: var(--primary-dark);
    font-weight: 600;
    margin-top: .8rem;
}

/* ==========================
   FEATURES
   ========================== */

.features {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );
    gap: 1rem;
}

.feature {
    background: var(--light);
    padding: 1.2rem;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 600;
}

/* ==========================
   CONTATO
   ========================== */
.contact-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================
   FOOTER
   ========================== */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    opacity: .9;
}

/* ==========================
   MODAL
   (Sprint 2)
   ========================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal {
    width: min(900px, 90vw);
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 24px;
    padding: 2rem;
}

/* ==========================
   RESPONSIVO
   ========================== */

@media (max-width: 900px) {
    nav ul {
        gap: 1rem;
    }

    .hero {
        min-height: auto;
        padding: 5rem 0;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 700px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section {
        padding: 4rem 0;
    }
}
/* =====================================
   MODAL
===================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    width: min(1100px, 95vw);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px;
    padding: 2rem;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: transparent;
    font-size: 2rem;
    cursor: pointer;
}

.products-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(220px,1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #000;
}

.product-info {
    padding: 1rem;
}

.product-info h4 {
    margin-bottom: .5rem;
}

/* =====================================
   GALERIA
===================================== */

.product-gallery {
    display: grid;
    grid-template-columns:
        120px 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.thumb-image {
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: .2s;
}

.thumb-image:hover {
    border-color: var(--primary);
}

.gallery-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.gallery-main img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 768px) {

    .product-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-thumbs {
        flex-direction: row;
        overflow-x: auto;
    }

    .thumb-image {
        width: 80px;
        flex-shrink: 0;
    }
}