/* 
   THEME: Classic Wedding Invitation (Two-Part)
   Based on 'Parte Superior' and 'Parte Inferior' references.
*/

:root {
    /* Color Palette extracted from reference */
    --color-bg: #F4F1EA;
    /* Light Beige / Paper */
    --color-text-dark: #333333;
    --color-text-muted: #666666;
    --color-gold: #C5A059;
    /* Gold/Bronze for Monogram */
    --color-link: #888888;

    /* Typography */
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lato', sans-serif;

    /* Layout */
    --container-max-width: 1000px;
}

/* RESET */
*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    background-image: url('../assets/images/fundo com qualidade.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    color: var(--color-text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--color-link);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    border-bottom: 1px solid transparent;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

a:hover {
    color: var(--color-text-dark);
    border-bottom-color: var(--color-text-dark);
}

/* MAIN CONTAINER */
.main-wrapper {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    background-image: url('../assets/images/bg_texture_paper.png');
    /* Optional texture placeholder */
}

/* =========================================
   PART 1: UPPER PART (HEADER)
   ========================================= */
.upper-part {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    text-align: center;
    background-image: repeating-linear-gradient(90deg,
            #f4f1ea,
            #f4f1ea 40px,
            #e3e0d9 40px,
            #e3e0d9 80px);
    border-bottom: 2px solid #ccc;
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.upper-part.scrolled {
    padding: 5px 0;
    background-image: repeating-linear-gradient(90deg,
            #f5f5f5,
            #f5f5f5 40px,
            #eaeaea 40px,
            #eaeaea 80px);
    /* Slightly simpler bg on scroll if desired, or keep same */
}

/* Shrink Branding Box */
.upper-part.scrolled .branding-box {
    padding: 10px 20px;
    margin-bottom: 5px;
    border-width: 0.5px;
    border-top-width: 2px;
    border-bottom-width: 2px;
}

/* Shrink Header Typography */
.upper-part.scrolled .header-names {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.upper-part.scrolled .header-date,
.upper-part.scrolled .header-location {
    font-size: 0;
    /* Hide smaller details on scroll */
    margin: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

/* Adjust Nav on scroll */
.upper-part.scrolled .main-nav {
    margin-top: 5px;
}

.upper-part.scrolled .main-nav a {
    font-size: 0.7rem;
}

/* Box wrapper for branding (Intro + Monogram) */
.branding-box {
    background-color: var(--color-bg);
    /* #F4F1EA or white? Let's match bg or use white */
    background-color: #ffffff;
    border: 1px solid #d4d1ca;
    border-top: 4px solid var(--color-text-dark);
    border-bottom: 4px solid var(--color-text-dark);
    padding: 20px 30px;
    margin: 0 auto 15px auto;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    max-width: 90%;
}

/* Header Branding Typography */
.header-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-text-dark);
    margin-bottom: 5px;
    line-height: 1.2;
}

.header-date,
.header-location {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 5px;
}

/* Container for content moved out of header */
.content-start {
    margin-top: 260px;
    /* Adjust based on actual header height */
    padding-bottom: 40px;
    text-align: center;
}

/* Reset lower-part margin as it no longer needs to clear the header directly */
.lower-part {
    margin-top: 0;
}

/* Mobile adjustments handled in media queries */

/* Monogram */
/* Monogram */
.monogram-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: block;
    border-radius: 50%;
    -o-object-fit: contain;
    object-fit: contain;
    border: none;
}

.intro-text p {
    font-family: var(--font-heading);
    font-size: 12pt;
    line-height: 14.4pt;
    font-weight: 300;
    max-width: 650px;
    margin: 0 auto 20px;
    color: var(--color-text-dark);
}

.signature {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Navigation */
.main-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 12px; /* Ajustado para dar respiro com as bolinhas */
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 35px; /* Um pouco mais de espaço em relação ao topo */
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.main-nav a {
    /* Fonte e Estilo Sugerido */
    font-family: 'Montserrat', sans-serif;
    font-size: 10pt;
    letter-spacing: 2px; /* Aumentado para o visual "boutique" */
    font-weight: 400;
    color: #555;
    text-transform: uppercase; /* Garante que o menu fique em maiúsculas */
    text-decoration: none;     /* Remove o sublinhado original */
    
    display: -webkit-box;
    
    display: -ms-flexbox;
    
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    
    -webkit-transition: color 0.3s, opacity 0.3s;
    transition: color 0.3s, opacity 0.3s;
}

/* Efeito ao passar o mouse */
.main-nav a:hover {
    color: #bfa87c; /* Um tom fendi/dourado para elegância */
    opacity: 0.8;
}

/* Adicionando as Bolinhas Separadoras */
.main-nav a:not(:last-child)::after {
    content: "•";
    margin-left: 12px;  /* Espaço entre o texto e a bolinha */
    margin-right: 2px;  /* Espaço entre a bolinha e o próximo item */
    color: #ccc;        /* Cor da bolinha mais suave que o texto */
    font-size: 12pt;
    pointer-events: none; /* A bolinha não é clicável */
}


/* =========================================
   PART 2: LOWER PART (BODY GRID)
   ========================================= */
.lower-part {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: start;
}

/* Column Styling */
.info-col {
    text-align: center;
}

.col-title {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--color-text-dark);
}

.col-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.col-details {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--color-text-muted);
}

.col-link {
    display: inline-block;
    margin-bottom: 25px;
    font-size: 0.7rem;
    color: #999;
}

/* Images/Sketches */
.sketch-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    display: block;
    mix-blend-mode: multiply;
    /* Blends sketch with beige bg */
    opacity: 0.85;
}

/* Countdown in Right Column */
.countdown-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.cd-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.cd-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1;
    color: var(--color-text-dark);
}

.cd-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-top: 4px;
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .lower-part {
        grid-template-columns: 1fr;
        /* Stack visually */
        gap: 80px;
    }

    .upper-part {
        margin-bottom: 40px;
    }
}