/* Main stylesheet for Ben & Tanya's Wedding Website */

:root {
    --light-blue: #A5D8FF;
    --medium-blue: #74C0FC;
    --pastel-grey: #E9ECEF;
    --dark-grey: #ADB5BD;
    --light-grey: #F8F9FA;
    --white: #FFFFFF;
    --primary-text: #495057;
    --secondary-text: #6C757D;
    --heading-text: #343A40;
}

/* Base styles */
body {
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--primary-text);
    background-color: var(--white);
    line-height: 1.6;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 300;
    color: var(--heading-text);
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--medium-blue);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--light-blue);
}

/* Header */
header {
    background-color: var(--light-blue);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    background-image: url('images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(165, 216, 255, 0.7);
    z-index: 1;
}

header .container {
    position: relative;
    z-index: 2;
}

.date {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Navigation */
nav {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

nav li {
    padding: 1rem;
}

nav a {
    text-decoration: none;
    color: var(--primary-text);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--medium-blue);
}

/* Sections */
section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--medium-blue);
    margin: 0.5rem auto;
}

/* Buttons */
.button {
    display: inline-block;
    background-color: var(--medium-blue);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: var(--light-blue);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--pastel-grey);
    border-radius: 4px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    color: var(--primary-text);
    background-color: var(--white);
    margin-bottom: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--medium-blue);
    box-shadow: 0 0 0 2px rgba(116, 192, 252, 0.2);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

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

/* Footer */
footer {
    background-color: var(--dark-grey);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

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

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

/* Travel icons */
.travel-icon {
    font-size: 1.5rem;
    color: var(--medium-blue);
    margin-right: 0.5rem;
}

/* Timeline styles */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 120px;
    width: 2px;
    background-color: var(--medium-blue);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-time {
    width: 100px;
    padding-right: 20px;
    text-align: right;
    font-weight: bold;
    color: var(--medium-blue);
}

.timeline-content {
    flex: 1;
    background-color: var(--light-grey);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-left: 40px;
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--medium-blue);
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--medium-blue);
    left: 113px;
    top: 15px;
}

/* Our Story styles */
.story-section {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.story-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.story-content h3 {
    color: var(--medium-blue);
}

/* Location styles */
.venue-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.venue-card {
    width: 350px;
    background-color: var(--light-grey);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.venue-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.venue-details {
    padding: 1.5rem;
}

.venue-details h3 {
    margin-top: 0;
    color: var(--medium-blue);
}

.venue-address {
    font-style: italic;
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

.map-container {
    height: 400px;
    background-color: var(--pastel-grey);
    margin-top: 3rem;
    border-radius: 8px;
    overflow: hidden;
}

/* RSVP styles */
.rsvp-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--light-grey);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-group input {
    margin-right: 0.5rem;
}

.additional-guest {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.additional-guest h4 {
    margin-top: 0;
    color: var(--medium-blue);
}

/* Registry styles */
.registry-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.registry-intro {
    margin-bottom: 3rem;
}

.registry-option {
    background-color: var(--light-grey);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.registry-option h3 {
    color: var(--medium-blue);
}

.iban-container {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 4px;
    display: inline-block;
    margin: 1rem 0;
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Accommodation styles */
.accommodation-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.hotels-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.hotel-card {
    width: 350px;
    background-color: var(--light-grey);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hotel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hotel-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.hotel-details {
    padding: 1.5rem;
}

.hotel-details h3 {
    margin-top: 0;
    color: var(--medium-blue);
}

.hotel-address {
    font-style: italic;
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

.hotel-features {
    margin-bottom: 1.5rem;
}

.hotel-feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.feature-icon {
    margin-right: 0.5rem;
    color: var(--medium-blue);
}

.travel-info {
    max-width: 800px;
    margin: 3rem auto;
    background-color: var(--light-grey);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.travel-info h3 {
    color: var(--medium-blue);
    text-align: center;
    margin-top: 0;
}

.travel-option {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--pastel-grey);
}

.travel-option:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.travel-option h4 {
    color: var(--medium-blue);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.option-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.shuttle-service {
    max-width: 800px;
    margin: 3rem auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--medium-blue);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.shuttle-service h3 {
    color: var(--medium-blue);
    margin-top: 0;
    display: flex;
    align-items: center;
}

.shuttle-service h3 .option-icon {
    font-size: 1.5rem;
}

.shuttle-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--pastel-grey);
}

/* Gallery styles */
.gallery-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.gallery-filter button {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem 0.5rem;
    cursor: pointer;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    color: var(--primary-text);
    transition: color 0.3s;
}

.gallery-filter button:hover,
.gallery-filter button.active {
    color: var(--medium-blue);
}

.gallery-filter button.active {
    border-bottom: 2px solid var(--medium-blue);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .image-overlay {
    transform: translateY(0);
}

.image-caption {
    margin: 0;
    font-size: 0.9rem;
}

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 2rem;
    box-sizing: border-box;
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.modal-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
}

.modal-caption {
    color: white;
    margin-top: 1rem;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Guestbook styles */
.guestbook-container {
    max-width: 800px;
    margin: 0 auto;
}

.guestbook-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.guestbook-form {
    background-color: var(--light-grey);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.messages-container {
    margin-top: 4rem;
}

.message-card {
    background-color: var(--light-grey);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.message-content {
    margin-bottom: 1rem;
}

.message-author {
    font-weight: bold;
    color: var(--medium-blue);
}

.message-date {
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.no-messages {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-grey);
    border-radius: 8px;
}

/* Thank you pages */
.thank-you-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--light-grey);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.thank-you-icon {
    font-size: 4rem;
    color: var(--medium-blue);
    margin-bottom: 1.5rem;
}

.thank-you-message {
    margin-bottom: 2rem;
}

/* Media queries for responsiveness */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .timeline-container::before {
        left: 80px;
    }
    
    .timeline-time {
        width: 60px;
    }
    
    .timeline-content {
        margin-left: 40px;
    }
    
    .timeline-item::before {
        left: 73px;
    }
}

@media screen and (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        padding: 0.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .timeline-container {
        padding-left: 0;
    }
    
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-time {
        width: auto;
        text-align: left;
        padding-left: 40px;
        margin-bottom: 0.5rem;
    }
    
    .timeline-content {
        margin-left: 40px;
    }
    
    .timeline-item::before {
        left: 13px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hotel-card {
        width: 100%;
        max-width: 350px;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .date {
        font-size: 1.2rem;
    }
    
    .button {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .gallery-item {
        height: 150px;
    }
}
