/*
Theme Name: Wedding Invitation
Theme URI: http://localhost/wed
Author: Antigravity
Description: A beautiful one-page wedding invitation theme.
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@1,500;1,600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Lato:wght@300;400;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --bg-color: #e4e6d9; /* Base fallback page background */
    --card-bg: #eaecd7; /* The inner card color */
    --text-color: #4c5d41; /* Dark olive text */
    --accent-color: #d1b88e; /* Gold/beige for buttons */
    --input-bg: #dde0d3; /* Greyish green for inputs */
    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Lora', serif;
    --font-sans: 'Montserrat', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #eff0e6 0%, #cbd1b6 100%);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-serif);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background-image: 
        url('./images/strelitzia_leaves.png'), 
        url('./images/strelitzia_single.png');
    background-position: left bottom, right bottom;
    background-repeat: no-repeat;
    background-size: 350px auto, 350px auto;
    opacity: 0.15; /* Subtle */
    pointer-events: none;
}

/* Background image container */
.site-background {
    position: fixed;
    z-index: -1;
    background-repeat: no-repeat;
    pointer-events: none;
}

.chapel-header-img {
    width: 100%;
    max-width: 800px;
    height: 450px;
    margin: -100px auto 10px; /* Pull it high above the card */
    background-image: url('./images/chapel_bg.jpg');
    background-size: cover;
    background-position: center;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 70%);
}
@media (max-width: 768px) {
    .chapel-header-img {
        height: 250px; 
        margin: -40px auto 10px; 
        background-position: 20% center; 
    }
}

.flower-left {
    position: fixed;
    bottom: -20px;
    left: -20px;
    width: 250px;
    height: 250px;
    background-size: cover;
    background-position: top center; /* Show only the flower head */
    opacity: 0.6;
    z-index: 0;
}

.flower-right {
    position: fixed;
    bottom: -20px;
    right: -20px;
    width: 250px;
    height: 250px;
    background-size: cover;
    background-position: top center;
    transform: scaleX(-1);
    opacity: 0.6;
    z-index: 0;
}

.invitation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 300px 20px 80px; /* Space for the chapel image above */
    position: relative;
}

/* Main Card */
.main-card {
    width: 100%;
    max-width: 950px;
    background-color: #eaecd7;
    border-radius: 30px;
    padding: 60px 70px;
    margin: 0 auto; /* Centers the card horizontally */
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2; /* Sit above the top-bg */
}

/* Header / Names */
h1.names {
    margin: 0 0 20px 0;
    text-align: center;
}

h1.names img {
    max-width: 100%;
    height: auto;
    max-height: 120px; /* Limits the height so it doesn't get too large */
}

.names .amp {
    font-size: 4rem;
}

/* Intro Text */
.intro {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.countdown-item {
    background-color: var(--accent-color);
    color: var(--text-color);
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.countdown-item span {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1;
    font-family: var(--font-sans);
}

.cd-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    font-family: var(--font-sans);
}

/* Two Column Layouts */
.middle-section {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 40px 0;
    text-align: left;
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin: 20px auto 40px auto;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: rgba(115, 132, 91, 0.4); /* subtle olive line */
}

.divider-icon {
    margin: 0 20px;
    color: #73845b; /* olive color for rings */
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-icon svg {
    width: 36px;
    height: 36px;
}

.families-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 60px;
    text-align: center;
    gap: 40px;
}

.details-col {
    flex: 1;
}

.family-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.map-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.bestman-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Detail Labels and Text */
.detail-label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: #73845b; /* Lighter olive for headers */
    text-transform: uppercase;
    margin: 20px 0 5px 0;
    letter-spacing: 1px;
}

.detail-value, .family-name {
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.detail-italic {
    font-size: 1rem;
    font-style: italic;
    color: #73845b;
}

/* Map Button */
.map-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    margin-top: 10px;
    transition: transform 0.3s;
}

.map-button:hover {
    transform: translateY(-5px);
}

.map-btn-wrapper {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-btn-wrapper:hover .map-pin-shape {
    transform: rotate(-45deg) scale(1.05);
}

.map-pin-container {
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.1));
}

.map-pin-shape {
    width: 110px;
    height: 110px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    overflow: hidden;
    position: relative;
    border: 3px solid #fdfdf9; /* White-ish border */
    transition: transform 0.3s ease;
    background-color: #fff;
}

.map-pin-image {
    width: 150%;
    height: 150%;
    position: absolute;
    top: -25%;
    left: -25%;
    background-size: cover;
    background-position: 20% center; /* Center on the chapel */
    transform: rotate(45deg); /* Counter-rotate so the image is straight! */
}

.map-text {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
}

/* RSVP Section Layout */
.rsvp-section-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}
    padding-top: 30px;
    border-top: 1px solid rgba(76, 93, 65, 0.2);
}

.rsvp-image-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rsvp-flower-img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.rsvp-form-col {
    flex: 1;
    text-align: center;
    padding-left: 0px;
}

.rsvp-title {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.rsvp-subtitle {
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 5px;
}

.rsvp-phones {
    font-size: 0.85rem;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.form-group label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: #73845b;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.rsvp-form input[type="text"]:focus,
.rsvp-form input[type="number"]:focus,
.rsvp-form textarea:focus {
    outline: 2px solid var(--text-color);
}

.rsvp-form input[type="text"],
.rsvp-form input[type="number"],
.rsvp-form textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: var(--input-bg);
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-color);
    box-sizing: border-box;
}

.form-row-radio {
    display: flex;
    justify-content: space-between;
    margin: 10px 0 20px 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--input-bg);
    border: 2px solid transparent;
    transition: 0.2s;
}

.radio-label input[type="radio"]:checked {
    background-color: var(--text-color);
    border: 3px solid var(--input-bg);
    box-shadow: 0 0 0 1px var(--text-color);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--text-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    opacity: 0.9;
}

.rsvp-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.rsvp-message.success {
    background-color: #d1b88e;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .chapel-header-img {
        height: 250px; /* Πιο κοντό στο κινητό για να μη γεμίζει όλη την οθόνη */
        margin: -40px auto 10px; /* Κατεβαίνει πιο κάτω (λιγότερο αρνητικό margin) */
        background-position: 20% center; /* Φέρνει την εικόνα πιο δεξιά ώστε να φαίνεται το εκκλησάκι που είναι αριστερά! */
    }
    
    .main-card {
        padding: 40px 30px;
        background-color: rgba(234, 236, 215, 0.60);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
    h1.names {
        font-size: 4rem;
    }
    .middle-section, .families-section, .rsvp-section-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    .rsvp-form-col {
        padding-left: 0;
        width: 100%;
    }
    .map-col, .bestman-col {
        align-items: center;
        text-align: center;
    }
    .form-row-radio {
        flex-direction: column;
        gap: 15px;
    }
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-serif);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

/* Background image container */
.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: -1;
}

/* Header and Navigation */
.site-header {
    text-align: center;
    padding: 30px 20px 20px;
    background-color: rgba(253, 251, 247, 0.90);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(26, 67, 40, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-logo {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 15px;
}

.site-logo a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: opacity 0.3s ease;
}

.site-logo a:hover {
    opacity: 0.8;
}

.ring-icon {
    width: 35px;
    height: 35px;
    stroke: var(--accent-color);
    transition: transform 0.3s ease;
}

.site-logo a:hover .ring-icon {
    transform: scale(1.1);
}

.site-logo .amp {
    color: var(--accent-color);
    font-size: 2rem;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    font-style: italic;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
}

.main-nav a:hover {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

.invitation-container {
    display: block;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Right side: Content */
.content-side {
    max-width: 950px;
    margin: 0 auto;
    padding: 50px 40px;
    background-color: rgba(253, 251, 247, 0.92); /* Restore cream card transparency for readability */
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero-section {
    width: calc(100% + 80px); /* 40px left and right padding of content-side */
    margin: -50px -40px 20px -40px; /* pull up and stretch left/right */
    padding: 60px 40px 20px 40px;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text-box {
    background-color: rgba(253, 251, 247, 0.85);
    padding: 30px 50px 10px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-top: 250px; /* Pushes text down so faces are visible above */
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.intro {
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 30px;
    font-style: italic;
}

h1.names {
    font-family: var(--font-script);
    font-size: 5rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
    font-weight: 400;
}

.divider {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin: 15px 0;
}

.details-date {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 20px 0;
}

.details-date strong {
    font-size: 1.8rem;
    display: block;
    margin: 10px 0;
    color: var(--text-color);
}

.location {
    font-size: 1.1rem;
    margin: 20px 0;
}

.reception {
    font-style: italic;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.families-section {
    margin: 30px 0;
}

.families-section h3 {
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.families-section p {
    font-size: 1.1rem;
    margin: 5px 0;
}

.map-container {
    width: 100%;
    margin: 40px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* RSVP Form */
.rsvp-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(26, 67, 40, 0.2);
    width: 100%;
}

.rsvp-section h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.rsvp-contact {
    font-size: 1rem;
    margin-bottom: 20px;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(26, 67, 40, 0.3);
    border-radius: 4px;
    font-family: var(--font-serif);
    font-size: 1rem;
    background: transparent;
}

.rsvp-form button {
    background-color: var(--text-color);
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-family: var(--font-serif);
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.rsvp-form button:hover {
    background-color: var(--accent-color);
}

.rsvp-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}
.rsvp-message.success {
    display: block;
    background-color: rgba(26, 67, 40, 0.1);
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 10px 0 30px;
}

.countdown-item {
    background-color: var(--text-color);
    color: var(--bg-color);
    width: 65px;
    height: 65px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(26, 67, 40, 0.2);
}

.countdown-item span {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.1;
    font-family: var(--font-serif);
}

.cd-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Story Timeline */
.story-timeline-wrapper {
    width: 100%;
    margin: 20px 0 40px;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}



.story-title {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 400;
}

.story-timeline {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 10px 0 25px;
    animation: scrollTimeline 20s linear infinite;
}

.story-timeline:hover {
    animation-play-state: paused;
}

.timeline-track {
    display: flex;
    gap: 20px;
}

@keyframes scrollTimeline {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); }
}

.timeline-item {
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(26, 67, 40, 0.05);
}

.timeline-photo {
    width: 210px;
    height: 210px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    margin-bottom: 15px;
    border: 2px solid rgba(26, 67, 40, 0.1);
}

.timeline-date {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.timeline-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-color);
}

@media (max-width: 900px) {
    .invitation-container {
        flex-direction: column;
    }
    .floral-side {
        min-height: 300px;
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
        background-position: top center;
    }
    h1.names {
        font-size: 3.5rem;
		font-family:'Great Vibes', cursive;
    }
}
