/* Font Face */
@font-face {
    font-family: 'Engravers Gothic';
    src: url('../fonte/engravers-gothic-bt.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #8B9A7A;
    --color-primary-light: #A8B896;
    --color-primary-dark: #6B7A5A;
    --color-gold: #D4AF37;
    --color-gold-light: #E5C158;
    --color-text: #2C2C2C;
    --color-text-light: #666666;
    --color-bg: #FAFAF8;
    --color-white: #FFFFFF;
    --color-border: #E0E0E0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* Offset for header when scrolling to sections */
}

body {
    font-family: 'Engravers Gothic', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    background-image: 
        url('../images/color_underlay.png'),
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.02) 1px, transparent 0);
    background-size: 
        100% 70vh,
        20px 20px;
    background-position: 
        top center,
        0 0;
    background-attachment: 
        fixed,
        scroll;
    background-repeat: 
        no-repeat,
        repeat;
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    padding: 40px 20px 20px;
    text-align: center;
    background-color: var(--color-white);
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    display: inline-block;
    width: 5%;
    height: auto;
    object-fit: contain;
    border: none;
    padding: 0;
}

.nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-light);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-divider {
    height: 1px;
    background-color: var(--color-border);
    margin: 20px auto;
    max-width: 1200px;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
}

.hero-illustration {
    margin-bottom: 40px;
}

.villa-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero-text {
    margin-top: 30px;
}

.couple-names {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 42px;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 15px;
    font-style: italic;
}

.event-date {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 24px;
    color: var(--color-text);
    margin-bottom: 10px;
}

.event-location {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 24px;
    color: var(--color-text);
}

/* Invitation Section */
.invitation-section {
    margin: 60px 0;
    text-align: center;
}

.invitation-frame {
    background: var(--color-white);
    position: relative;
    padding: 50px 50px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Moldura: Parte Superior */
.frame-top-left {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.frame-top-left img {
    display: block;
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 80px;
    transform: rotate(90deg);
    transform-origin: center;
}

.frame-top-right {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}

.frame-top-right img {
    display: block;
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 80px;
    transform: rotate(90deg);
    transform-origin: center;
}

/* Moldura: Parte Direita */
.frame-right-top {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}

.frame-right-top img {
    display: block;
    width: auto;
    height: auto;
    max-width: 60px;
    max-height: 200px;
    object-fit: contain;
}

.frame-right-bottom {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
}

.frame-right-bottom img {
    display: block;
    width: auto;
    height: auto;
    max-width: 60px;
    max-height: 200px;
    object-fit: contain;
}

/* Moldura: Parte Inferior */
.frame-bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.frame-bottom-left img {
    display: block;
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 80px;
    transform: rotate(90deg);
    transform-origin: center;
}

.frame-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
}

.frame-bottom-right img {
    display: block;
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 80px;
    transform: rotate(90deg);
    transform-origin: center;
}

/* Moldura: Parte Esquerda */
.frame-left-top {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.frame-left-top img {
    display: block;
    width: auto;
    height: auto;
    max-width: 60px;
    max-height: 200px;
    object-fit: contain;
}

.frame-left-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.frame-left-bottom img {
    display: block;
    width: auto;
    height: auto;
    max-width: 60px;
    max-height: 200px;
    object-fit: contain;
}

.invitation-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-text);
    position: relative;
    z-index: 3;
}

.invitation-content p {
    text-align: center;
    margin: 8px 0;
}

.invitation-content br {
    line-height: 0.5;
    display: block;
    margin: -5px 0;
}

.greeting {
    font-style: italic;
    margin-bottom: 20px;
}

.italian-text {
    font-style: italic;
    font-size: 20px;
    margin: 20px 0;
    text-align: center;
}

.signature {
    margin-top: 30px;
    text-align: right;
    font-style: italic;
}

/* Script Title */
.script-title {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 36px;
    font-weight: 400;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 30px;
    font-style: italic;
}

/* Countdown Section */
.countdown-section {
    text-align: center;
    margin-bottom: 60px;
}

.bridge-illustration {
    margin: 30px 0;
}

.bridge-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.countdown-container {
    margin-top: 40px;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 48px;
    font-weight: 300;
    color: var(--color-text);
    letter-spacing: 2px;
}

.countdown-label {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.countdown-separator {
    font-size: 48px;
    color: var(--color-text-light);
    font-weight: 300;
}

/* Program Section */
.program-section {
    margin: 60px 0;
}

.program-frame {
    background: var(--color-white);
    border: 3px solid #A3814F;
    outline: 1px solid #A3814F;
    outline-offset: -8px;
    border-radius: 0;
    padding: 50px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    text-align: center;
}

.program-title {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: #A3814F;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.program-date {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.program-time {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.ceremony-section {
    margin-bottom: 30px;
}

.ceremony-venue {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 5px;
}

.ceremony-address {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: var(--color-text);
    text-align: center;
    text-decoration: underline;
    margin-bottom: 30px;
}

.ceremony-address a {
    color: var(--color-text);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.ceremony-address a:hover {
    opacity: 0.7;
}

.reception-section {
    margin-bottom: 30px;
}

.reception-intro {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 5px;
}

.reception-venue {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 5px;
}

.reception-address {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: var(--color-text);
    text-align: center;
    text-decoration: underline;
    margin-bottom: 30px;
}

.reception-address a {
    color: var(--color-text);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.reception-address a:hover {
    opacity: 0.7;
}

.dress-code-section {
    margin-top: 30px;
}

.dress-code-title {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.dress-code-details {
    text-align: center;
}

.dress-code-details p {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: var(--color-text);
    text-align: center;
    margin: 5px 0;
}

.event-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.event-info {
    flex: 1;
    min-width: 250px;
}

.event-name {
    font-size: 32px;
    margin-bottom: 15px;
    text-align: left;
}

.event-time {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 10px;
}

.event-venue {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 10px;
    text-decoration: underline;
}

.event-dress {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 14px;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 15px;
}

.event-description {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.6;
}

.event-link {
    color: var(--color-primary);
    text-decoration: underline;
    font-size: 14px;
}

.event-illustration {
    flex: 0 0 150px;
}

.event-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Travel Section */
.travel-section {
    margin: 60px 0;
}

.travel-content {
    max-width: 900px;
    margin: 0 auto;
}

.airplane-illustration {
    margin: 30px 0;
    text-align: left;
}

.airplane-image {
    max-width: 200px;
    height: auto;
}

.travel-text {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    margin-top: 30px;
}

.travel-text p {
    margin-bottom: 20px;
}

.text-link {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Accommodation Section */
.accommodation-section {
    margin: 60px 0;
    text-align: center;
}

.accommodation-content {
    max-width: 800px;
    margin: 0 auto;
}

.accommodation-subtitle {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 30px;
    font-style: italic;
}

.accommodation-text {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
}

/* Recommendations Section */
.recommendations-section {
    margin: 60px 0;
}

.recommendations-frame {
    background: var(--color-white);
    border: 2px solid var(--color-primary-light);
    border-radius: 8px;
    padding: 50px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

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

.recommendation-illustration {
    margin-bottom: 20px;
}

.recommendation-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.recommendation-title {
    font-size: 24px;
    margin-top: 15px;
}

/* Contact Section */
.contact-section {
    text-align: center;
    margin: 60px 0;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info strong {
    font-weight: 600;
}

/* RSVP Section */
.rsvp-section {
    margin: 60px 0;
}

.rsvp-frame {
    background: var(--color-white);
    border: 2px solid var(--color-primary-light);
    border-radius: 8px;
    padding: 50px 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.rsvp-frame::before,
.rsvp-frame::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-primary-light);
    opacity: 0.3;
}

.rsvp-frame::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.rsvp-frame::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.rsvp-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-primary-light);
    border-radius: 4px;
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 14px;
    color: var(--color-text);
    background-color: var(--color-white);
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.radio-label {
    margin-bottom: 15px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 14px;
    color: var(--color-text);
}

.radio-option input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--color-primary-light);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

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

/* Gifts Section */
.gifts-section {
    text-align: center;
    margin: 60px 0;
}

.gifts-content {
    max-width: 500px;
    margin: 0 auto;
}

.gifts-illustration {
    margin: 30px 0;
}

.gifts-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.gift-list-btn {
    padding: 15px 40px;
    background-color: var(--color-primary-light);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 20px 0;
}

.gift-list-btn:hover {
    background-color: var(--color-primary);
}

.mbway-info {
    font-family: 'Engravers Gothic', sans-serif;
    font-size: 16px;
    color: var(--color-text);
    margin-top: 20px;
}

/* Messages Section */
.messages-section {
    margin: 60px 0;
    position: relative;
}

.messages-frame {
    background: var(--color-white);
    border: 2px solid var(--color-primary-light);
    border-radius: 8px;
    padding: 50px 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.messages-form {
    margin-top: 30px;
}

/* Footer */
.footer {
    margin-top: 80px;
    padding: 40px 20px;
    position: relative;
}

.footer-pattern {
    height: 60px;
    background-image: 
        repeating-linear-gradient(
            90deg,
            var(--color-primary-light) 0px,
            var(--color-primary-light) 30px,
            var(--color-white) 30px,
            var(--color-white) 60px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 20px,
            var(--color-primary-light) 20px,
            var(--color-primary-light) 40px
        );
    background-size: 60px 40px;
    opacity: 0.3;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 12px;
    }
    
    .couple-names {
        font-size: 32px;
    }
    
    .event-date,
    .event-time {
        font-size: 16px;
    }
    
    .event-name {
        font-size: 28px;
    }
    
    .script-title {
        font-size: 28px;
    }
    
    .countdown-number {
        font-size: 36px;
    }
    
    .countdown-separator {
        font-size: 36px;
    }
    
    .recommendations-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 30px;
    }
    
    .invitation-frame,
    .program-frame,
    .rsvp-frame,
    .messages-frame {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px 10px 15px;
    }
    
    .logo {
        font-size: 36px;
    }
    
    .nav {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 11px;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .couple-names {
        font-size: 24px;
    }
    
    .event-date,
    .event-time {
        font-size: 14px;
    }
    
    .countdown-display {
        gap: 10px;
    }
    
    .countdown-number {
        font-size: 28px;
    }
    
    .countdown-separator {
        font-size: 28px;
    }
}

