/* ===================================
   Wedding Website - Main Styles
   Mobile First Approach
   =================================== */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===================================
   Envelope Intro
   =================================== */
.envelope-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.envelope-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.envelope-container {
    text-align: center;
}

.envelope {
    position: relative;
    width: 280px;
    height: 180px;
    margin: 0 auto;
    perspective: 1000px;
}

.envelope-body {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f5f5f0 0%, #ebe9dd 100%);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.envelope-body::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(135deg, transparent 49.5%, var(--color-bg-alt) 50%),
                linear-gradient(-135deg, transparent 49.5%, var(--color-bg-alt) 50%);
    background-size: 51% 100%;
    background-position: left, right;
    background-repeat: no-repeat;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, #d9d1bd 100%);
    transform-origin: top center;
    transition: transform 0.6s ease;
    z-index: 2;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.envelope.opened .envelope-flap {
    transform: rotateX(180deg);
}

.envelope-letter {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80%;
    height: 70%;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(0);
    transition: transform 0.6s ease 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.envelope.opened .envelope-letter {
    transform: translateY(-120%);
}

.letter-text {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-primary);
    text-align: center;
    padding: 0.5rem;
}

.seal {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: var(--color-accent);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(142, 37, 37, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seal::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.seal:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(142, 37, 37, 0.5);
}

.seal-text {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.envelope-hint {
    margin-top: 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-primary);
    opacity: 0.8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ===================================
   Main Content
   =================================== */
.main-content {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.main-content.visible {
    opacity: 1;
}

.main-content.hidden {
    display: none;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    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-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(235, 233, 221, 0.7) 0%,
        rgba(235, 233, 221, 0.5) 50%,
        rgba(235, 233, 221, 0.8) 100%
    );
}

.hero-content {
    text-align: center;
    padding: 2rem;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.hero-names {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.hero-date {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-text);
    letter-spacing: 2px;
}

.scroll-indicator {
    margin-top: 3rem;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 2rem;
    color: var(--color-primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ===================================
   Section Base Styles
   =================================== */
.section {
    padding: 4rem 0;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ===================================
   Countdown Section
   =================================== */
.countdown-section {
    background: var(--color-bg-alt);
    text-align: center;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.countdown-item {
    background: var(--color-bg);
    padding: 1rem;
    border-radius: 10px;
    min-width: 70px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.countdown-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
}

.countdown-subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-text);
}

/* ===================================
   Couple Section
   =================================== */
.couple-section {
    background: var(--color-bg);
}

.couple-photos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.couple-photo {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.couple-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.couple-photo:hover img {
    transform: scale(1.05);
}

.couple-text {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-primary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Timeline Section
   =================================== */
.timeline-section {
    background: var(--color-secondary);
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-secondary) 20%, var(--color-secondary) 80%, var(--color-bg) 100%);
}

.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-primary);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 15px;
    height: 15px;
    background: var(--color-accent);
    border: 3px solid var(--color-bg);
    border-radius: 50%;
    transform: translateX(-6px);
}

.timeline-content {
    background: var(--color-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.timeline-time {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.timeline-location {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.map-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.map-toggle:hover {
    background: var(--color-accent);
}

.map-container {
    display: none;
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.map-container.active {
    display: block;
}

.timeline-note {
    background: rgba(142, 37, 37, 0.1);
    border-left: 3px solid var(--color-accent);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.timeline-note .note-icon {
    margin-right: 0.25rem;
}

/* ===================================
   Image Divider
   =================================== */
.image-divider {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.divider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================
   Accommodation Section
   =================================== */
.accommodation-section {
    background: var(--color-bg);
}

.accommodation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.accommodation-grid.two-cards {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.accommodation-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    position: relative;
}

.accommodation-card.featured {
    border: 2px solid var(--color-primary);
}

.accommodation-card.luxury {
    border: 2px solid var(--color-accent);
}

.accommodation-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.accommodation-badge.luxury-badge {
    background: var(--color-accent);
}

.accommodation-card:hover {
    transform: translateY(-5px);
}

.accommodation-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.accommodation-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.accommodation-card p {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.accommodation-distance {
    font-size: 0.8rem !important;
    color: var(--color-primary) !important;
}

.accommodation-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.accommodation-link:hover {
    color: var(--color-primary);
}

.accommodation-link.booking-link {
    display: block;
    background: var(--color-primary);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    margin: 1rem auto 0.5rem;
    max-width: 200px;
    transition: background 0.3s ease;
}

.accommodation-link.booking-link:hover {
    background: var(--color-accent);
    color: #fff;
}

.accommodation-note {
    text-align: center;
    background: var(--color-bg-alt);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.accommodation-note:last-child {
    margin-bottom: 0;
}

.accommodation-note.transfer-note {
    background: rgba(132, 155, 107, 0.2);
    border: 1px solid var(--color-primary);
}

/* ===================================
   FAQ Section
   =================================== */
.faq-section {
    background: var(--color-bg-alt);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-bg);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-text);
    text-align: left;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(132, 155, 107, 0.1);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===================================
   RSVP Section
   =================================== */
.rsvp-section {
    background: var(--color-bg);
    text-align: center;
}

.rsvp-content {
    max-width: 500px;
    margin: 0 auto;
}

.rsvp-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.rsvp-placeholder {
    background: var(--color-bg-alt);
    padding: 3rem 2rem;
    border-radius: 15px;
    border: 2px dashed var(--color-primary);
}

.rsvp-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.rsvp-placeholder p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.rsvp-contact {
    font-size: 0.9rem !important;
    color: var(--color-primary) !important;
}

.rsvp-contact a {
    color: var(--color-accent);
    text-decoration: none;
}

.rsvp-contact a:hover {
    text-decoration: underline;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    padding: 3rem 0;
}

.footer-names {
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-date {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.footer-heart {
    font-size: 1.5rem;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ===================================
   Tablet Styles (min-width: 600px)
   =================================== */
@media (min-width: 600px) {
    .envelope {
        width: 350px;
        height: 220px;
    }
    
    .seal {
        width: 80px;
        height: 80px;
    }
    
    .seal::before {
        width: 70px;
        height: 70px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-names {
        font-size: 2rem;
    }
    
    .hero-date {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .countdown-item {
        min-width: 100px;
        padding: 1.5rem;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .couple-photos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .couple-photo img {
        height: 350px;
    }
    
    .accommodation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .accommodation-grid.two-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .image-divider {
        height: 350px;
    }
}

/* ===================================
   Desktop Styles (min-width: 900px)
   =================================== */
@media (min-width: 900px) {
    .envelope {
        width: 400px;
        height: 250px;
    }
    
    .seal {
        width: 90px;
        height: 90px;
    }
    
    .letter-text {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-names {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 6rem 0;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .countdown-timer {
        gap: 2rem;
    }
    
    .countdown-item {
        min-width: 120px;
        padding: 2rem;
    }
    
    .countdown-number {
        font-size: 3rem;
    }
    
    .countdown-label {
        font-size: 0.9rem;
    }
    
    .timeline {
        padding-left: 3rem;
    }
    
    .timeline-marker {
        left: -3rem;
        width: 20px;
        height: 20px;
    }
    
    .accommodation-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .accommodation-grid.two-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .image-divider {
        height: 400px;
    }
    
    .faq-question {
        font-size: 1.1rem;
    }
}

/* ===================================
   Large Desktop (min-width: 1200px)
   =================================== */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 6rem;
    }
    
    .container {
        padding: 0 2rem;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
