:root {
    --color-primary: #6a6a7c;
    --color-secondary: #e6e6f4;
    --color-background: white;
    --color-text-dark: #333333;
    --color-text-medium: #5c5c5c;
    --color-text-light: #4a4e69;
    --color-highlight: #968ab3;
    --color-border-light: #d3d3d3;
    --font-primary: 'Cormorant Garamond', serif;
    --font-size-base: 16px;
}

/* GENERAL */
html {
    font-size: var(--font-size-base);
}

html, body {
    margin: 0;
    height: 100%;
    background-color: var(--color-background);
    font-family: var(--font-primary);
}

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

/* HEADER */
header {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    background-color: var(--color-secondary);
}

/* NAVBAR */
.couple-name {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1.3rem;
    margin-top: 2px;
    font-family: var(--font-primary);
}

.navbar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.navbar-list li {
    display: inline;
}

.navbar-list a {
    font-weight: 500;
    font-size: 1.1em;
    color: var(--color-primary);
    text-decoration: none;
    text-transform: capitalize;
    position: relative;
    padding-bottom: 5px;
}

.navbar-list a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--color-primary);
    transition: width 0.8s ease-out, left 0.5s ease-out;
}

.navbar-list a:hover:after {
    width: 100%;
    left: 0;
}

.navbar-list a.active:after {
    width: 30px;
    left: calc(50% - 15px);
    background-color: var(--color-primary);
}

/* TOP HERO IMAGE */
.top-hero-image-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1.5s ease-out 0.5s forwards;
}

/* COUNTDOWN */
.countdown-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.countdown-content h1 {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--color-text-medium);
    margin-bottom: 0.5rem;
}

.countdown-content h3 {
    font-weight: 600;
    color: var(--color-text-medium);
    margin-bottom: 1.5rem;
    margin-top: 0;
    font-size: 1em;
}

#countdown {
    text-align: center;
    font-size: 1.1em;
    color: var(--color-primary);
    font-weight: 500;
}

#countdown span {
    font-weight: 600;
    margin-right: 2px;
}

/* BUTTON */
.button {
    text-align: center;
    margin-top: 30px;
}

.btn-confirmar {
    color: var(--color-primary);
    display: inline-block; 
    padding: 10px 20px;
    margin-bottom: 2rem;
    background-color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
    border-radius: 8px;
    text-decoration: none;
    font-size: 1em;
    font-weight: 400;
    transition: background-color 0.8s, color 0.5s, transform 0.3s, box-shadow 0.3s;
}

.btn-confirmar:hover {
    background-color: #ececfc;
    color: #9595c1;
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(106, 106, 124, 0.4);
}

/* HERO IMAGE */
.hero-image {
    text-align: center;
    margin-bottom: 40px;
}

.hero-image h2 {
    font-size: 1.8em;
    color: var(--color-highlight);
    margin-bottom: 25px;
    margin-top: 40px;
    font-weight: 500;
    font-family: var(--font-primary);
}

.hero-image img {
    display: block;
    margin: 0 auto;
}

/* SEALING & DINNER */
.sealing, .dinner {
    display: grid;
    grid-template-columns: 1fr 2fr; 
    gap: 40px;
    width: 80%;
    max-width: 900px;
    margin: 60px auto;
    padding: 20px 0;
}

.left-column {
    text-align: right;
    padding-right: 40px; 
    border-right: 1px solid var(--color-border-light);
}

.left-column h2 {
    font-size: 2.5em; 
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 5px;
}

.met-date {
    font-size: 1.1em;
    font-weight: 400;
    color: var(--color-text-medium);
    margin: 0;
}

.right-column {
    text-align: left;
    padding-left: 20px;
}

.story-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--color-text-medium);
}

/* ESCRITURA */
.escritura {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    width: 80%;
    max-width: 500px;
    margin: 60px auto;
    align-items: center; 
}

.escritura-texto-container {
    text-align: center;
    padding: 6px; 
}

.escritura-texto-container p {
    font-size: 1rem;
    font-style: italic;
    color: var(--color-text-medium);
    margin: 0; 
    line-height: 1.6;
}

.escritura-imagem-container {
    text-align: center;
}

.escritura-imagem-container img {
    display: block; 
    margin: 0 auto;
    max-width: 40%; 
}

/* FOOTER */
footer {
    display: flex;
    justify-content: space-around;
    align-items: center; 
    padding: 50px 80px;
    background-color: #f7f5fa;
    border-top: none;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.03);
    transition: background-color 0.4s ease;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.footer-links a:hover {
    color: #8b809d;
    border-bottom: 1px solid #8b809d;
    text-decoration: none;
}

.copyright-group {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.9em;
    margin: 0; 
    line-height: 1.4;
    transition: color 0.3s ease;
}

.copyright-group p {
    margin: 0;
    padding-bottom: 3px; 
}

.social-media-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
}

.duvidas-texto {
    color: var(--color-text-medium);
    margin: 0;
    font-size: 0.9em;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-links img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.social-links img {
    color: #484848;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.social-links a {
    color: #434343;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.social-links a:hover img {
    filter: grayscale(0%);
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transition: opacity 1s linear, transform 1s linear;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    transform: translateY(30px);
}

/* RESPONSIVE */
@media (min-width: 769px) {
    .escritura {
        grid-template-columns: 1fr 1fr; 
        max-width: 900px;
    }
    
    .escritura-imagem-container img {
        max-width: 60%; 
    }
}

@media (max-width: 768px) {
    /* NAVBAR */
    .couple-name {
        margin-bottom: 1rem;
        font-size: 1.8rem;
    }
    .navbar-list {
        gap: 20px;
        font-size: 0.9em;
    }

    /* COUNTDOWN */
    .countdown-content h1 {
        font-size: 1.8em;
    }
    
    /* SEALING/DINNER */
    .sealing, .dinner {
        grid-template-columns: 1fr;
        width: 90%;
        margin: 40px auto;
        gap: 20px;
    }
    
    .left-column {
        text-align: center;
        padding-right: 0; 
        border-right: none;
        border-bottom: 1px solid var(--color-border-light);
        padding-bottom: 20px;
    }
    
    .right-column {
        text-align: center;
        padding-left: 0;
    }

    /* ESCRITURA */
    .escritura-imagem-container img {
        max-width: 50%; 
    }

    /* FOOTER */
    footer {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        text-align: center;
    }
    
    .links-group {
        order: 2;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .copyright-group {
        order: 3;
    }

    .social-media-group {
        order: 1;
        flex-direction: column;
    }

    .social-links {
        justify-content: center;
    }
}