/* Shared Variables from _shared/variables.css are available */
@import '../_shared/variables.css';

:root {
    /* Define Template Specific Variables */
    --ivory: #fcfaf7;
    --soft-white: #fffefc;
    --gold: #d4af95;
    --dark-gold: #b89476;
    --charcoal: #3a3a3a;
    --light-charcoal: #5a5a5a;
    --rose: #f8e9e9;

    /* Override Shared Variables */
    --color-primary: var(--gold);
    --color-accent: var(--dark-gold);
    --color-background: var(--ivory);
    --color-text: var(--charcoal);
    --color-text-muted: var(--light-charcoal);

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Raleway', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header */
header {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1465495976277-4387d4b0e4a6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center 30%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    position: relative;
}

.header-content {
    animation: fadeIn 1.5s ease-out;
}

.names {
    font-size: 5.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.and {
    font-size: 3rem;
    margin: 0 15px;
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--gold);
}

.date {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    letter-spacing: 4px;
    font-weight: 300;
}

.location {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-style: italic;
    font-family: var(--font-accent);
}

.divider {
    width: 120px;
    height: 2px;
    background-color: var(--gold);
    margin: 25px auto;
    position: relative;
}

.divider:before,
.divider:after {
    content: '❦';
    position: absolute;
    top: -12px;
    color: var(--gold);
    font-size: 1.2rem;
}

.divider:before {
    left: -25px;
}

.divider:after {
    right: -25px;
}

/* Section Styling */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 70px;
    position: relative;
    color: var(--color-text);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: var(--gold);
}

/* Our Story */
.our-story {
    background-color: var(--soft-white);
    position: relative;
}

.our-story:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 2.24 5 5 2.24 5 5 2.24 5 5 2.24 5 5 2.24 5 5 2.24 5 5 2.24 5 5 2.24 5 5 2.24 5 5 2.24 5 5 2.24 5 5 2.24 5 5 2.24 5 5zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23f8e9e9' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
}

.story-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.9;
    position: relative;
    z-index: 1;
}

.story-content p {
    margin-bottom: 30px;
}

.romantic-quote {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--color-text-muted);
    margin: 40px 0;
    padding: 0 20px;
    position: relative;
}

.romantic-quote:before,
.romantic-quote:after {
    content: '"';
    font-size: 3rem;
    color: var(--gold);
    position: absolute;
    opacity: 0.6;
}

.romantic-quote:before {
    top: -15px;
    left: 0;
}

.romantic-quote:after {
    bottom: -35px;
    right: 0;
}

/* Gallery */
.gallery {
    background-color: var(--ivory);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.gallery-item {
    height: 420px;
    overflow: hidden;
    position: relative;
    border-radius: 3px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Wedding Details */
.wedding-details {
    background-color: var(--soft-white);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.detail-card {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--soft-white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border-radius: 5px;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--gold), var(--dark-gold));
}

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

.detail-card i {
    font-size: 2.8rem;
    color: var(--gold);
    margin-bottom: 25px;
}

.detail-card h3 {
    font-size: 1.7rem;
    margin-bottom: 20px;
    color: var(--color-text);
}

.detail-card p {
    margin-bottom: 8px;
    color: var(--color-text-muted);
}

/* RSVP */
.rsvp {
    background: linear-gradient(rgba(252, 250, 247, 0.9), rgba(252, 250, 247, 0.9)), url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.rsvp-form {
    max-width: 650px;
    margin: 0 auto;
    background-color: var(--soft-white);
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    position: relative;
}

.rsvp-form:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--gold), var(--dark-gold));
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    background-color: #fefefe;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 149, 0.2);
}

.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option input {
    margin-right: 8px;
}

.btn {
    display: block;
    width: 100%;
    background: linear-gradient(to right, var(--gold), var(--dark-gold));
    color: white;
    padding: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    margin-top: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 149, 0.4);
}

/* Map */
.map {
    height: 450px;
    background-color: #eee;
    position: relative;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
    height: 50px;
}

/* Footer */
footer {
    background-color: var(--charcoal);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.footer-text {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.footer-link {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.heart {
    color: var(--gold);
    margin: 0 5px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .names {
        font-size: 3.5rem;
    }

    .and {
        font-size: 2rem;
        margin: 0 10px;
    }

    section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2.3rem;
        margin-bottom: 50px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .rsvp-form {
        padding: 30px;
    }

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