/* CSS Variables for Wedding Colors */
:root {
    --color-gold: #d4af37;
    --color-green: #7f8f65; /* Thin Matcha */
    --color-lavender: #9597a3; /* Cloudy Sky Lavender */
    --color-dark: #2c2c2c;
    --color-light: #f5f5f5;
    --overlay-dark: rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Cinzel', serif;
    color: var(--color-dark);
    line-height: 1.6;
    background-color: var(--color-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 400;
}

.script-font {
    font-family: 'Beloved Script', cursive;
}

/* Header Styles */
header {
    background-color: var(--color-light);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    color: var(--color-green);
    margin: 0;
}

.site-title a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}

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

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--color-dark);
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.desktop-nav a:hover {
    color: var(--color-green);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s;
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-dark);
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    flex-direction: column;
    background-color: var(--color-light);
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--color-dark);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: var(--color-green);
}

/* Home Page Styles */
.home-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.background-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.background-media video,
.background-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-dark);
    z-index: 2;
}

.home-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 2rem;
}

.couple-names {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.wedding-date {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.countdown {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#days-count {
    font-size: 2.5rem;
}

/* Page Container */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.page-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-green);
}

/* Locations Info Styles */
.locations-info {
    max-width: 600px;
    margin: 0 auto 3rem;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.locations-info h2 {
    font-size: 2rem;
    color: var(--color-green);
    margin-bottom: 1.5rem;
    text-align: center;
}

.location-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-lavender);
}

.location-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.location-item h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.location-item p {
    font-size: 1rem;
    color: var(--color-dark);
    line-height: 1.6;
}

/* Story Page Styles */
.story-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.story-section h2 {
    font-size: 2.5rem;
    color: var(--color-green);
    margin-bottom: 1.5rem;
    text-align: center;
}

.story-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.story-media {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.story-media img,
.story-media video,
.story-media iframe {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.story-media iframe {
    aspect-ratio: 16 / 9;
    min-height: 300px;
}

.story-media img.clickable-image {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.story-media img.clickable-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Lightbox Modal Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 0.7;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-green);
}

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

.form-group.required label::after {
    content: ' *';
    color: #e74c3c;
}

.btn {
    background-color: var(--color-green);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Cinzel', serif;
}

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

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Registry Page */
.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
}

.coming-soon h2 {
    font-size: 2.5rem;
    color: var(--color-green);
    margin-bottom: 1rem;
}

.coming-soon p {
    font-size: 1.2rem;
    color: var(--color-lavender);
}

/* Footer */
footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    margin: 0.5rem 0;
}

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

footer a:hover {
    color: var(--color-light);
    text-decoration: underline;
}

footer a:focus {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
    color: var(--color-light);
}

/* Floral/Leafy Accents */
.floral-accent {
    position: relative;
    display: inline-block;
}

.floral-accent::before,
.floral-accent::after {
    content: '❀';
    color: var(--color-gold);
    font-size: 0.8em;
    margin: 0 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .couple-names {
        font-size: 2.5rem;
    }
    
    .wedding-date {
        font-size: 1.2rem;
    }
    
    .countdown {
        font-size: 1.5rem;
    }
    
    #days-count {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .story-section h2 {
        font-size: 2rem;
    }
    
    .story-section p {
        text-align: left;
    }
    
    .story-media {
        grid-template-columns: 1fr;
    }
}

