/* -----------------------------------
   GLOBAL STYLES
----------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --primary: #d4a373;
    --primary-light: #e9c496;
    --secondary: #536b78;
    --dark: #343a40;
    --light: #f8f9fa;
    --text: #333333;
    --light-bg: #faf6f1;
    --accent: #bc6c25;
    --success: #7fb685;
    --border: #e0e0e0;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #fff;
    padding-top: 100px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--dark);
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary);
}

ul {
    list-style-type: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 60px 0 30px;
}

/* For sections with gray background that follow .page-banner, reduce top padding */
.page-banner + section {
    padding-top: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    background-color: var(--primary);
    color: white;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

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

.hidden {
    display: none !important;
}

/* -----------------------------------
   HEADER & NAVIGATION
----------------------------------- */
header {
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    text-align: center;
    padding: 10px 0;
}

.header-content h1 {
    color: white;
    margin-bottom: 0.2rem;
    font-size: 2.5rem;
}

.header-content .date {
    color: white;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 0;
}

nav {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-top: 10px;
}

nav ul {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 10px;
}

nav a {
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 80%;
    left: 10%;
}

nav a.active {
    color: var(--primary-light);
}

/* -----------------------------------
   HOME PAGE
----------------------------------- */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/CoverEpicView.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0;
    padding-top: 80px;
    margin-top: -100px;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.couple {
    background-color: var(--light-bg);
    text-align: center;
}

.story-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.story-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.story-image img {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.story-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.countdown {
    background-color: white;
    text-align: center;
}

#countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.time-block span:first-child {
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary);
}

.time-block .label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    color: var(--dark);
}

/* -----------------------------------
   DETAILS PAGE
----------------------------------- */
.page-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/Bermagui.jpg');
    background-size: cover;
    background-position: center;
    height: 40vh;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 0;
    padding-top: 60px;
}

.banner-content {
    margin-top: 30px;
    width: 90%;
    max-width: 1200px;
    padding: 0 15px;
}

.banner-content h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 0;
}

.details .container {
    max-width: 1000px;
}

.event-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.event-card h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.event-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.info-block h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.event-details {
    margin: 1.5rem 0;
    text-align: center;
}

.map {
    text-align: center;
    margin-top: 1.5rem;
}

.map img {
    border-radius: 10px;
    margin-bottom: 1rem;
    max-height: 300px;
    object-fit: cover;
}

.schedule, .accommodations {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.schedule h3, .accommodations h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.timeline {
    max-width: 600px;
    margin: 0 auto;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: 84px;
    top: 0;
    bottom: -20px;
    width: 1px;
    background-color: var(--border);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item .time {
    min-width: 80px;
    font-weight: 600;
    color: var(--primary);
    margin-right: 1.5rem;
}

.accommodations {
    text-align: center;
}

.accommodations p {
    margin-bottom: 1.5rem;
}

/* -----------------------------------
   TRAVEL & HOTELS PAGE
----------------------------------- */
.travel {
    background-color: var(--light-bg);
}

.travel .intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.travel-section {
    margin-bottom: 3rem;
}

.travel-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
}

.travel-card, .hotel-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.travel-info, .hotel-info {
    display: flex;
    flex-direction: column;
}

.hotel-card .info-block {
    text-align: center;
}

.hotel-card .btn {
    margin-top: 1rem;
}

.travel-tips {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.travel-tips ul, .attractions ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.attractions {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

/* -----------------------------------
   RSVP PAGE
----------------------------------- */
.rsvp {
    background-color: var(--light-bg);
}

.rsvp-info {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.rsvp-form {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    margin: 0 auto;
}

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

label, .label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary);
}

input, select, textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

textarea {
    resize: vertical;
}

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

.radio-options {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.radio-option input {
    width: auto;
    margin-right: 10px;
}

.radio-option label {
    margin-bottom: 0;
}

.guest-details {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.rsvp-confirmation {
    text-align: center;
    background-color: var(--success);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 700px;
    margin: 0 auto;
}

.rsvp-confirmation h3 {
    color: white;
}

/* -----------------------------------
   GALLERY PAGE
----------------------------------- */
.gallery {
    background-color: var(--light-bg);
}

.gallery-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn:hover, .tab-btn.active {
    background-color: var(--primary);
    color: white;
}

.gallery-tab-content {
    display: none;
}

.gallery-tab-content.active {
    display: block;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
}

.coming-soon {
    text-align: center;
    padding: 3rem 0;
}

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

.placeholder-item {
    height: 250px;
    background-color: #e0e0e0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.placeholder-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    100% {
        left: 100%;
    }
}

/* -----------------------------------
   FAQ PAGE
----------------------------------- */
.faq {
    background-color: var(--light-bg);
}

.faq-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.faq-section {
    margin-bottom: 3rem;
}

.faq-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
    display: inline-block;
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background-color: var(--light);
    border-bottom: 1px solid var(--border);
}

.faq-question h4 {
    margin-bottom: 0;
    color: var(--primary);
}

.faq-answer {
    padding: 1.5rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* -----------------------------------
   REGISTRY PAGE
----------------------------------- */
.registry {
    background-color: var(--light-bg);
}

.registry-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.registry-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.registry-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.registry-card:hover {
    transform: translateY(-5px);
}

.registry-logo {
    padding: 2rem;
    text-align: center;
    background-color: var(--light);
}

.registry-logo img {
    max-height: 100px;
}

.registry-info {
    padding: 1.5rem;
    text-align: center;
}

.registry-info h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.registry-info p {
    margin-bottom: 1.5rem;
}

.registry-note {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* -----------------------------------
   RSVP SEARCH
----------------------------------- */
.rsvp-search {
    background-color: var(--light-bg);
    text-align: center;
    padding: 60px 0;
}

.rsvp-search p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.rsvp-search-form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
    flex-wrap: wrap;
}

.rsvp-search-form input {
    flex: 1;
    min-width: 300px;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

/* -----------------------------------
   RSVP MODAL
----------------------------------- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow: auto;
    padding: 20px;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalFadeIn 0.4s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: var(--secondary);
}

.close-btn:hover {
    color: var(--accent);
}

#guest-info {
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#rsvp-confirmation {
    text-align: center;
    padding: 20px 0;
}

/* -----------------------------------
   FOOTER
----------------------------------- */
footer {
    background-color: var(--dark);
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
}

/* -----------------------------------
   RESPONSIVE STYLES
----------------------------------- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    nav {
        padding: 10px 0;
    }
    
    nav ul {
        gap: 0.5rem;
    }
    
    nav a {
        font-size: 0.75rem;
        padding: 5px 8px;
        letter-spacing: 0.5px;
    }
    
    .story-content {
        flex-direction: column;
    }
    
    #countdown-timer {
        gap: 1rem;
    }
    
    .time-block {
        min-width: 80px;
    }
    
    .time-block span:first-child {
        font-size: 2.5rem;
    }
    
    .time-block .label {
        font-size: 0.9rem;
    }
    
    .event-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-item::before {
        left: 5px;
    }
    
    .timeline-item .time {
        margin-bottom: 0.5rem;
    }
    
    .gallery-grid,
    .placeholder-gallery,
    .registry-options {
        grid-template-columns: 1fr;
    }
    
    .faq-section h3,
    .travel-section h3 {
        display: block;
        text-align: center;
        font-size: 1.5rem;
        border-bottom: none;
        margin-bottom: 1rem;
    }
    
    .page-banner {
        height: auto;
        min-height: 200px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .banner-content h2 {
        font-size: 2rem;
    }
    
    body {
        padding-top: 80px;
    }
    
    .hero {
        margin-top: -80px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 0;
    }
    
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    nav {
        padding: 8px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    nav ul {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0 15px;
        width: auto;
        min-width: 100%;
    }
    
    nav a {
        white-space: nowrap;
        font-size: 0.7rem;
        padding: 5px 7px;
    }
    
    .time-block {
        min-width: 60px;
    }
    
    .time-block span:first-child {
        font-size: 2rem;
    }
    
    .rsvp-form {
        padding: 1.5rem;
    }
    
    .radio-options {
        flex-direction: column;
        gap: 1rem;
    }
    
    .travel-card, .hotel-card, .faq-item {
        padding: 1rem;
    }
    
    .faq-question, .faq-answer {
        padding: 1rem;
    }
    
    .page-banner {
        min-height: 180px;
        padding-top: 40px;
        padding-bottom: 30px;
    }
    
    .banner-content h2 {
        font-size: 1.8rem;
    }
    
    .faq-section h3,
    .travel-section h3 {
        font-size: 1.3rem;
        padding: 0 10px;
    }
    
    body {
        padding-top: 70px;
    }
    
    .hero {
        margin-top: -70px;
    }
} 