/* =========================================
   VARIÁVEIS DE CORES & FONTES
   ========================================= */
:root {
    --bg-perola: #F7F3ED;
    --text-marrom: #4B3621;
    --btn-terracota: #C58B6F;
    --btn-terracota-hover: #b0785f;
    --detail-oliva: #9AA07D;
    
    --font-title: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* =========================================
   RESETS BÁSICOS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-perola);
    color: var(--text-marrom);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: var(--font-title);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

.divider {
    width: 60px;
    height: 2px;
    background-color: var(--detail-oliva);
    margin: 20px auto;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--bg-perola);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--detail-oliva);
    border-radius: 40px;
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.embroidery-container {
    position: absolute;
    width: 100%;
    text-align: center;
    animation: fadeOutText 1s ease-in-out forwards;
    animation-delay: 3.5s;
}

.svg-logo {
    width: 100%;
    height: 120px;
}

.svg-text {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 600;
    fill: transparent;
    stroke: var(--text-marrom);
    stroke-width: 1.5px;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawText 2.5s ease-in-out forwards;
}

.tagline {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--detail-oliva);
    opacity: 0;
    animation: fadeInTagline 1s forwards;
    animation-delay: 1.5s;
    margin-top: -10px;
}

.final-logo-container {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    animation: fadeInSeal 1.5s ease-in-out forwards;
    animation-delay: 4.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.seal-logo {
    width: 30vw;
    max-height: 50vh;
    min-width: 250px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-perola);
    box-shadow: 0 10px 40px rgba(75, 54, 33, 0.3);
}

@keyframes drawText {
    0% { stroke-dashoffset: 1000; fill: transparent; }
    70% { stroke-dashoffset: 0; fill: transparent; }
    100% { stroke-dashoffset: 0; fill: var(--text-marrom); }
}

@keyframes fadeInTagline {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOutText {
    from { opacity: 1; visibility: visible; }
    to { opacity: 0; visibility: hidden; }
}

@keyframes fadeInSeal {
    from { opacity: 0; transform: scale(0.9) translateY(20px); visibility: hidden; }
    to { opacity: 1; transform: scale(1) translateY(0); visibility: visible; }
}

/* =========================================
   SCROLL INDICATOR (AFFORDANCE)
   ========================================= */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeInSeal 1s forwards;
    animation-delay: 5s;
}

.needle {
    width: 2px;
    height: 30px;
    background-color: var(--text-marrom);
    position: relative;
    border-radius: 2px;
    animation: bobbing 2s infinite ease-in-out;
}

.needle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -2px;
    width: 6px;
    height: 6px;
    border: 1px solid var(--text-marrom);
    border-radius: 50%;
}

.thread {
    width: 1px;
    height: 40px;
    background: repeating-linear-gradient(to bottom, var(--detail-oliva) 0, var(--detail-oliva) 5px, transparent 5px, transparent 10px);
    opacity: 0.5;
    margin-top: 5px;
}

@keyframes bobbing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* =========================================
   TIMELINE WRAPPER & Z-PATTERN SECTIONS
   ========================================= */
.timeline-wrapper {
    position: relative;
    padding: 60px 0;
    background-color: var(--bg-perola);
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: repeating-linear-gradient(to bottom, var(--detail-oliva) 0, var(--detail-oliva) 10px, transparent 10px, transparent 20px);
    transform: translateX(-50%);
    opacity: 0.3;
    z-index: 1;
}

.timeline-item {
    position: relative;
    padding: 80px 0;
    z-index: 2;
}

.timeline-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: var(--bg-perola);
    border: 3px solid var(--detail-oliva);
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.timeline-node::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: var(--text-marrom);
    border-radius: 50%;
}

.gallery .timeline-node {
    top: 80px; /* Alinhar com o topo da seção gallery */
}

.z-pattern {
    display: flex;
    align-items: center;
    gap: 100px;
}

.z-pattern.left-content {
    flex-direction: row;
}

.z-pattern.right-content {
    flex-direction: row;
}

.timeline-text {
    flex: 1;
    background-color: var(--bg-perola); /* Para sobrepor a linha, se necessário */
    padding: 20px;
    border-radius: 10px;
}

.timeline-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.timeline-text h2 {
    font-size: 2.5rem;
}

.z-pattern.left-content .timeline-text {
    text-align: right;
}

.z-pattern.left-content .timeline-text .divider {
    margin: 20px 0 20px auto;
}

.z-pattern.right-content .timeline-text {
    text-align: left;
}

.z-pattern.right-content .timeline-text .divider {
    margin: 20px 0;
}

.timeline-text p {
    font-family: var(--font-title);
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.8;
}

.timeline-text p:last-child {
    margin-bottom: 0;
}

.highlight-rita {
    color: var(--detail-oliva);
    font-style: italic;
    font-weight: 600;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/5;
    background-color: #E8E2D6;
    border-radius: 200px 200px 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--detail-oliva);
    box-shadow: 0 10px 30px rgba(75, 54, 33, 0.1);
}

.window-frame {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/5;
    border: 8px solid var(--text-marrom);
    border-radius: 200px 200px 10px 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(75, 54, 33, 0.15);
}

.window-frame::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 40px rgba(75, 54, 33, 0.7);
    pointer-events: none;
    border-radius: 192px 192px 2px 2px;
}

.window-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
   VITRINE SECTION
   ========================================= */
.gallery {
    padding: 100px 0;
    text-align: center;
    background-color: transparent;
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.product-card {
    background-color: var(--bg-perola);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.product-image {
    height: 300px;
    background-color: #dfd8cb;
    border-radius: 20px 20px 0 0;
}

.product-info {
    padding: 30px 20px;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.product-info p {
    font-size: 0.95rem;
    margin-bottom: 25px;
    opacity: 0.8;
    height: 45px;
}

/* BOTÕES BORDAS ARREDONDADAS */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--btn-terracota);
    color: #fff;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: var(--btn-terracota-hover);
    transform: scale(1.05);
}

/* =========================================
   FOOTER SECTION
   ========================================= */
footer {
    background-color: var(--bg-perola);
    color: var(--text-marrom);
    padding: 80px 0 20px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h2 {
    font-size: 2rem;
    color: var(--btn-terracota);
    margin-bottom: 10px;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-links h3, .footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--detail-oliva);
}

.footer-links li, .footer-social li {
    margin-bottom: 10px;
}

.footer-links a, .footer-social a {
    color: var(--text-marrom);
    font-family: var(--font-title);
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-social a:hover {
    color: var(--btn-terracota);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(247, 243, 237, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* =========================================
   RESPONSIVIDADE
   ========================================= */
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
        transform: none;
    }

    .timeline-node {
        left: 20px;
        transform: translate(-50%, -50%);
    }

    .gallery .timeline-node {
        left: 20px;
    }

    .z-pattern, .z-pattern.left-content, .z-pattern.right-content {
        flex-direction: column;
        gap: 40px;
        padding-left: 50px;
    }

    .timeline-text, .z-pattern.left-content .timeline-text, .z-pattern.right-content .timeline-text {
        text-align: left;
        padding: 0;
    }

    .timeline-text .divider, .z-pattern.left-content .timeline-text .divider, .z-pattern.right-content .timeline-text .divider {
        margin: 20px 0;
    }

    .timeline-image {
        width: 100%;
    }

    .gallery .container {
        padding-left: 50px;
    }

    .logo {
        font-size: 2.5rem;
    }
    
    .svg-text {
        font-size: 1.5rem;
    }

    .seal-logo {
        width: 70vw;
        max-width: none;
        max-height: none;
        object-fit: contain;
    }

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