/* ========================================
   ROMANTIC FLORAL IVORY BURGUNDY - HIGH
   ======================================== */

/* CSS Variables */
:root {
    /* Colors - Ivory, Burgundy, Soft Gold */
    --color-ivory: #FFF8F0;
    --color-ivory-dark: #F5EFE7;
    --color-burgundy: #8B2635;
    --color-burgundy-dark: #6B1E28;
    --color-burgundy-light: #A63446;
    --color-gold: #D4AF37;
    --color-gold-light: #E8C968;
    --color-gold-dark: #B8941F;
    --color-white: #FFFFFF;
    --color-black: #1A1A1A;
    --color-text: #3D3D3D;
    --color-text-light: #6D6D6D;
    
    /* Typography */
    --font-decorative: 'Cormorant Garamond', serif;
    --font-body: 'Lato', sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --section-padding-mobile: 60px;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-ivory);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/textures/texture-paper.png');
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 30px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(139, 38, 53, 0.1);
}

.header.scrolled {
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(139, 38, 53, 0.1);
}

.header__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    width: 60px;
    height: 60px;
    transition: var(--transition-smooth);
}

.header.scrolled .header__logo {
    width: 50px;
    height: 50px;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header__nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav__link {
    font-family: var(--font-decorative);
    font-size: 16px;
    color: var(--color-burgundy);
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: var(--transition-smooth);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.header__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.header__toggle span {
    width: 30px;
    height: 3px;
    background: var(--color-burgundy);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    background: linear-gradient(
        to bottom,
        rgba(255, 248, 240, 0) 0%,
        rgba(255, 248, 240, 0.30) 40%,
        rgba(255, 248, 240, 0.70) 60%,
        rgba(255, 248, 240, 0.92) 100%
    );
}

.floral-corner {
    position: absolute;
    width: 120px;
    height: 120px;
    z-index: 2;
    opacity: 0.7;
}

.floral-corner--tl {
    top: 80px;
    left: 20px;
}

.floral-corner--tr {
    top: 80px;
    right: 20px;
}

.floral-corner--bl {
    bottom: 20px;
    left: 20px;
}

.floral-corner--br {
    bottom: 20px;
    right: 20px;
}

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 30px;
}

.hero__save-badge {
    display: inline-block;
    font-family: var(--font-decorative);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gold);
    background: var(--color-white);
    padding: 8px 24px;
    border: 1px solid var(--color-gold);
    border-radius: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.hero__names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero__name {
    font-family: var(--font-decorative);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 400;
    font-style: italic;
    color: var(--color-burgundy);
    line-height: 1;
}

.hero__ampersand {
    font-family: var(--font-decorative);
    font-size: clamp(36px, 6vw, 56px);
    color: var(--color-gold);
    font-weight: 300;
}

.hero__divider {
    width: 400px;
    max-width: 100%;
    margin: 0 auto 20px;
    opacity: 0.8;
}

.hero__title {
    font-family: var(--font-decorative);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 300;
    color: var(--color-burgundy);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.hero__details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero__detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
}

.hero__icon {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 5vw, 50px);
    margin-bottom: 50px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown__value {
    font-family: var(--font-decorative);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 600;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 2px 2px 8px rgba(139, 38, 53, 0.6);
}

.countdown__label {
    font-family: var(--font-body);
    font-size: clamp(12px, 2vw, 14px);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    text-shadow: 1px 1px 4px rgba(139, 38, 53, 0.5);
}

/* Godparents */
.hero__godparents {
    margin-top: 40px;
}

.godparents {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-gold);
    border-radius: 10px;
    padding: 25px 40px;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(139, 38, 53, 0.1);
}

.godparents__icon {
    width: 30px;
    height: 30px;
    margin: 0 auto 10px;
}

.godparents__text {
    font-family: var(--font-decorative);
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.godparents__names {
    font-family: var(--font-decorative);
    font-size: 22px;
    font-weight: 500;
    color: var(--color-burgundy);
}

/* Section */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-family: var(--font-decorative);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 400;
    font-style: italic;
    color: var(--color-burgundy);
    margin-bottom: 25px;
}

.section__divider {
    width: 400px;
    max-width: 100%;
    margin: 0 auto 20px;
    opacity: 0.8;
}

.section__subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Story Section */
.story__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story__image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(139, 38, 53, 0.2);
}

.story__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.story__image-frame {
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--color-gold);
    border-radius: 10px;
    pointer-events: none;
}

.story__text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

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

/* Couple Section */
.couple__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.couple__card {
    background: transparent;
    text-align: center;
    transition: var(--transition-smooth);
}

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

.couple__image {
    position: relative;
    width: 280px;
    height: 350px; /* Taller for portrait photos */
    margin: 0 auto 30px;
}

.couple__image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-white);
    box-shadow: 
        0 0 0 1px var(--color-gold),
        0 15px 50px rgba(139, 38, 53, 0.25),
        inset 0 0 30px rgba(139, 38, 53, 0.05);
    transition: var(--transition-smooth);
}

.couple__card:hover .couple__image-wrapper {
    box-shadow: 
        0 0 0 2px var(--color-gold),
        0 20px 70px rgba(139, 38, 53, 0.35),
        inset 0 0 30px rgba(139, 38, 53, 0.08);
    transform: scale(1.03);
}

.couple__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-slow);
}

.couple__card:hover .couple__image img {
    transform: scale(1.08);
}

.couple__image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        transparent 40%,
        rgba(139, 38, 53, 0.15) 100%
    );
    pointer-events: none;
}

.couple__info {
    padding: 0 20px;
    text-align: center;
    background: var(--color-white);
    border-radius: 15px;
    padding: 35px 30px;
    box-shadow: 0 8px 30px rgba(139, 38, 53, 0.12);
    transition: var(--transition-smooth);
}

.couple__card:hover .couple__info {
    box-shadow: 0 12px 40px rgba(139, 38, 53, 0.18);
}

.couple__name {
    font-family: var(--font-decorative);
    font-size: 36px;
    font-weight: 500;
    font-style: italic;
    color: var(--color-burgundy);
    margin-bottom: 15px;
}

.couple__divider-small {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    opacity: 0.6;
}

.couple__divider-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.couple__description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text);
}

/* Events Section */
.events__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.event__card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(139, 38, 53, 0.15);
    transition: var(--transition-smooth);
}

.event__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(139, 38, 53, 0.25);
}

.event__image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.event__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.event__image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(139, 38, 53, 0.6) 100%);
}

.event__icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--color-white);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.event__content {
    padding: 30px 25px;
}

.event__title {
    font-family: var(--font-decorative);
    font-size: 26px;
    font-weight: 500;
    font-style: italic;
    color: var(--color-burgundy);
    margin-bottom: 20px;
    text-align: center;
}

.event__details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.event__detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--color-text);
}

.event__detail-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    flex-shrink: 0;
}

.event__address {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 20px;
    padding-left: 32px;
}

.event__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-burgundy);
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-smooth);
    border: 2px solid var(--color-burgundy);
    width: 100%;
    justify-content: center;
}

.event__button:hover {
    background: var(--color-burgundy-dark);
    border-color: var(--color-burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 38, 53, 0.3);
}

.event__button img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* RSVP Section */
.rsvp {
    background: var(--color-ivory-dark);
}

.rsvp__content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.rsvp__text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 30px;
}

.rsvp__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rsvp__info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--color-white);
    border-radius: 8px;
    border-left: 3px solid var(--color-gold);
}

.rsvp__info-item img {
    width: 30px;
    height: 30px;
    opacity: 0.7;
    flex-shrink: 0;
}

.rsvp__info-item p {
    font-size: 15px;
    margin: 0;
}

.rsvp__info-item a {
    color: var(--color-burgundy);
    font-weight: 500;
}

.rsvp__info-item a:hover {
    color: var(--color-burgundy-dark);
}

/* Form */
.rsvp__form {
    background: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(139, 38, 53, 0.15);
}

.form__group {
    margin-bottom: 25px;
}

.form__group label {
    display: block;
    font-family: var(--font-decorative);
    font-size: 16px;
    color: var(--color-burgundy);
    margin-bottom: 8px;
    font-weight: 500;
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(139, 38, 53, 0.2);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    transition: var(--transition-smooth);
    background: var(--color-ivory);
}

.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--color-burgundy);
    background: var(--color-white);
}

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

.form__radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    background: var(--color-ivory);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.form__radio:hover {
    border-color: var(--color-gold);
}

.form__radio input[type="radio"] {
    width: auto;
    accent-color: var(--color-burgundy);
}

.form__radio input[type="radio"]:checked + span {
    font-weight: 500;
    color: var(--color-burgundy);
}

.form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--color-burgundy);
    color: var(--color-white);
    padding: 16px 32px;
    border: none;
    border-radius: 30px;
    font-family: var(--font-decorative);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.form__submit:hover {
    background: var(--color-burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 38, 53, 0.3);
}

.form__submit img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.form__message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    display: none;
}

.form__message.success {
    display: block;
    background: rgba(76, 175, 80, 0.1);
    color: #2E7D32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form__message.error {
    display: block;
    background: rgba(244, 67, 54, 0.1);
    color: #C62828;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Footer */
.footer {
    background: var(--color-burgundy);
    color: var(--color-ivory);
    padding: 60px 0 30px;
    position: relative;
}

.footer__garland {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.3;
}

.footer__content {
    text-align: center;
}

.footer__logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer__names {
    font-family: var(--font-decorative);
    font-size: 32px;
    font-weight: 500;
    font-style: italic;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.footer__date {
    font-size: 16px;
    color: var(--color-ivory);
    margin-bottom: 30px;
    opacity: 0.9;
}

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

.footer__link {
    font-family: var(--font-decorative);
    font-size: 16px;
    color: var(--color-ivory);
    transition: var(--transition-smooth);
}

.footer__link:hover {
    color: var(--color-gold);
}

.footer__bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 248, 240, 0.2);
}

.footer__bottom p {
    font-size: 14px;
    color: var(--color-ivory);
    opacity: 0.7;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .events__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .event__card:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }
    
    /* Header Mobile */
    .header__toggle {
        display: flex;
    }
    
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-ivory);
        padding: 100px 30px 30px;
        transition: var(--transition-smooth);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    .header__nav.active {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 25px;
        align-items: flex-start;
    }
    
    .nav__link {
        font-size: 18px;
    }
    
    /* Hero Mobile */
    .floral-corner {
        width: 80px;
        height: 80px;
    }
    
    .hero__details {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .countdown {
        gap: 15px;
    }
    
    .countdown__item {
        min-width: 60px;
    }
    
    .countdown__value {
        font-size: 32px;
    }
    
    .countdown__label {
        font-size: 11px;
    }
    
    /* Story Mobile */
    .story__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Couple Mobile */
    .couple__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .couple__image {
        width: 240px;
        height: 300px; /* Taller for portrait photos on mobile */
    }
    
    /* Events Mobile */
    .events__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .event__card:last-child {
        grid-column: auto;
        max-width: 100%;
    }
    
    /* RSVP Mobile */
    .rsvp__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .rsvp__form {
        padding: 30px 25px;
    }
    
    /* Footer Mobile */
    .footer__nav {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .header__container {
        padding: 0 20px;
    }
    
    .hero__content {
        padding: 0 20px;
    }
    
    .hero__names {
        gap: 15px;
    }
    
    .floral-corner {
        width: 60px;
        height: 60px;
    }
    
    .floral-corner--tl,
    .floral-corner--tr {
        top: 70px;
    }
    
    .godparents {
        padding: 20px 25px;
    }
    
    .rsvp__form {
        padding: 25px 20px;
    }
}

