/* Wedding Website Styles */

/* Core Styles & Variables */
:root {
    --primary-color: #90a37f;
    --secondary-color: #344e41;
    --accent-color: #e2c595;
    --light-color: #e9e5da;
    --dark-color: #2d2b25;
    --secondary-serif-font: "Pinyon Script";
    --serif-font: "Quattrocento", serif;
    --sans-font: "Roboto Mono", Helvetica, Arial, sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans-font);
    font-weight: 300;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.wrapper {
    max-width: 100%;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--serif-font);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

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

.button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 4px;
    font-family: var(--sans-font);
    font-weight: 400;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.button:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
    transform: translateY(-2px);
}

section {
    padding: 80px 20px;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.hidden {
    display: none;
}

/* Header & Hero Section */
header {
    position: relative;
    background-image: url("../images/colombian_landscape.jpeg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(52, 78, 65, 0.40);
    z-index: 1;
}

.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 1400px;
    position: relative;
    width: 95vw;
    height: 60vh;
    padding: 0 20px;
}

.hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-weight: 400;
    font-size: clamp(2.5rem, 11vw, 7rem);
    font-family: var(--secondary-serif-font);
    white-space: nowrap;
    text-rendering: geometricPrecision;
    letter-spacing: -0.002em;
    line-height: 1;
    margin-bottom: -0.05em;
    -webkit-font-smoothing: antialiased;
    width: max-content;
    max-width: 100%;
    text-align: center;
}

.hero .tagline {
    font-family: var(--serif-font);
    font-weight: 400;
    font-size: clamp(1rem, 4vw, 2.5rem);
    position: relative;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.hero-rsvp-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--light-color);
    border: 2px solid var(--light-color);
    border-radius: 0;
    font-family: var(--sans-font);
    font-weight: 400;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.hero-rsvp-button:hover {
    background-color: var(--light-color);
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero .info {
    font-size: 1.4rem;
    text-transform: uppercase;
}

.hero .date {
    position: absolute;
    left: 0;
    bottom: 0;
    padding-left: 80px;
    padding-bottom: 80px;
    text-align: left;
}

.hero .location {
    position: absolute;
    right: 0;
    bottom: 0;
    padding-right: 80px;
    padding-bottom: 80px;
    text-align: right;
}

.hero a {
    color: var(--light-color);
    transition: var(--transition);
}

.hero a:hover {
    color: var(--accent-color);
}

/* Carousel Styles */
.carousel-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide .hero-title {
    position: static;
    transform: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quote-container {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    color: var(--light-color);
}

.inspiring-quote {
    font-family: var(--serif-font);
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-style: italic;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.quote-author {
    font-family: var(--sans-font);
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-style: normal;
    letter-spacing: 1px;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--light-color);
    background-color: transparent;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.6;
}

.carousel-dot:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.carousel-dot.active {
    background-color: var(--light-color);
    opacity: 1;
}

nav {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

nav li {
    padding: 15px 0;
}

nav a {
    padding: 15px 25px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Story Section */
#story {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 100px 20px;
}

#story h2 {
    display: none;
}

#story .content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 100px;
    padding: 0 40px;
}

.story-image {
    width: 100%;
    max-width: 400px;
    height: 500px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

.story-text {
    flex: 1;
    max-width: 400px;
    padding: 0;
}

.story-text h3 {
    font-family: var(--serif-font);
    font-weight: 200;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.3;
    max-width: 400px;
    text-align: left;
}

.story-text p {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 400px;
    text-align: left;
}

/* Details Section */
.details-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 350px;
    text-align: center;
    transition: var(--transition);
}

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

.detail-card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.detail-card p {
    margin-bottom: 15px;
}

.detail-note {
    font-style: italic;
    color: #777;
    font-size: 0.9rem;
}

/* Schedule Section */
#schedule {
    background-image: url("../images/pink-flower.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    color: var(--dark-color);
}

#schedule::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(233, 229, 218, 0.60);
    z-index: 1;
}

.program-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 100px;
    position: relative;
    z-index: 2;
    color: var(--dark-color);
    align-items: stretch;
}

.program-column,
.info-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.program-column h2,
.info-column h2 {
    font-family: var(--serif-font);
    font-size: 2.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: var(--dark-color);
    text-align: left;
}

.program-timeline {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 20px;
}

.program-item {
    display: flex;
    align-items: center;
    border-bottom: 1px dashed var(--primary-color);
    padding-bottom: 15px;
    flex: 1;
    margin-bottom: 0;
    justify-content: flex-start;
}

.program-time {
    font-family: var(--serif-font);
    font-weight: 500;
    font-size: 1.1rem;
    width: 100px;
    flex-shrink: 0;
}

.program-event {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-left: 20px;
}

.info-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 0;
}

.info-section:not(:last-child) {
    margin-bottom: 35px;
}

.info-section h3 {
    font-family: var(--serif-font);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

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

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 2px;
    background-color: var(--primary-color);
    left: 50px;
    top: 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

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

.timeline-content {
    flex: 1;
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-left: 20px;
}

.timeline-content h3 {
    margin-bottom: 8px;
    color: var(--primary-color);
}

/* RSVP Section */
#rsvp {
    background-image: url("../images/yellow-flower.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--light-color);
    text-align: center;
    padding: 120px 20px;
    position: relative;
}

#rsvp::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(233, 229, 218, 0.60);
    z-index: 1;
}

#rsvp > * {
    position: relative;
    z-index: 2;
}

#rsvp h2 {
    font-family: var(--secondary-serif-font);
    font-weight: 400;
    font-size: clamp(3.5rem, 15vw, 5rem);
    text-align: center;
}

.rsvp-couple-image-container {
    margin: 30px auto;
    text-align: center;
    max-width: 500px;
    padding: 0 20px;
}

.rsvp-couple-image {
    width: 100%;
    max-width: 500px;
    height: 250px;
    object-fit: cover;
    object-position: center;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    position: relative;
    z-index: 3;
}

.rsvp-note {
    font-family: var(--serif-font);
    font-size: 1.2rem;
    margin-top: 20px;
}

.rsvp-explain {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-color);
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.rsvp-link {
    margin: 30px 0;
    font-size: 1em;
}

.rsvp-link a {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 4px;
    font-family: var(--sans-font);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.rsvp-link a:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
    transform: translateY(-2px);
}

#invitation-prompt {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border-top: 1px dashed var(--primary-color);
    margin-top: 30px;
    padding-top: 30px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: scale(0.95);
    transition:
        max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#invitation-prompt.show {
    max-height: 200px;
    opacity: 1;
    margin-top: 30px;
    padding-top: 30px;
    transform: scale(1);
}

#invitation-prompt input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: var(--sans-font);
    font-size: 1rem;
    transition:
        box-shadow 0.2s,
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-15px) scale(0.98);
}

#invitation-prompt.show input {
    transform: translateY(0) scale(1);
}

#invitation-prompt input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.1);
}

#invitation-prompt button {
    width: 100%;
    transform: translateY(-15px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#invitation-prompt.show button {
    transform: translateY(0) scale(1);
}

#invitation-prompt.no-border-top {
    border-top: none;
    margin-top: 20px;
    padding-top: 20px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 60px 20px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.monogram {
    width: 100px;
    height: 100px;
    margin-bottom: -25px;
}

.footer-names {
    font-family: var(--secondary-serif-font);
    font-size: 1.8rem;
    margin-bottom: 5px;
    margin-top: 0;
}

.footer-date {
    font-family: var(--sans-font);
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 15px;
    padding: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: white;
}

.footer-credit {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-contact a {
    opacity: 0.7;
    font-size: 0.9rem;
    color: var(--light-color);
    transition: var(--transition);
}

.footer-contact:hover a {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .date,
    .hero .location {
        padding-left: 40px;
        padding-right: 40px;
        padding-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 60vh;
        padding: 40px 0;
    }

    .hero .date,
    .hero .location {
        position: static;
        text-align: right;
        padding: 5px 20px;
        font-size: 1.1rem;
        width: 100%;
        margin: 0;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        width: 100vw;
        padding: 20px 10px;
        height: auto;
        position: static;
    }

    .hero .info {
        order: 3;
        width: 100%;
        display: block;
        position: static;
    }

    .hero .date {
        order: 3;
        margin-bottom: -10px;
        position: static;
        padding: 5px 20px;
    }

    .hero .location {
        order: 4;
        margin-top: -5px;
        position: static;
        padding: 5px 20px;
    }

    /* Mobile carousel styles */
    .carousel-container {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        display: block;
        margin-bottom: 20px;
        order: 1;
    }

    .carousel-slide {
        position: relative;
        height: auto;
        min-height: 250px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1 !important; /* Override opacity for mobile */
    }

    .carousel-slide:not(.active) {
        display: none; /* Hide inactive slides on mobile instead of using opacity */
    }

    .carousel-slide .hero-title {
        position: static;
        transform: none;
        margin-bottom: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .quote-container {
        padding: 20px 10px;
        width: 100%;
    }

    .inspiring-quote {
        font-size: clamp(1.2rem, 4vw, 2rem);
        line-height: 1.3;
    }

    .quote-author {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    }

    .carousel-nav {
        position: static;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 20px;
        margin-bottom: 20px;
        justify-content: center;
        order: 2;
    }

    nav ul {
        flex-wrap: wrap;
    }

    nav li {
        flex: 1 0 50%;
        text-align: center;
        padding: 10px 0;
    }

    nav a {
        padding: 10px;
    }

    #story .content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .story-text {
        padding: 0;
    }

    .story-text h3 {
        font-size: 1.5rem;
    }

    .story-image {
        height: 300px;
    }

    .details-container {
        flex-direction: column;
        align-items: center;
    }

    .program-container {
        flex-direction: column;
        gap: 40px;
    }

    .program-column h2,
    .info-column h2 {
        font-size: 2rem;
        text-align: left;
    }

    section {
        padding: 60px 20px;
    }

    #rsvp {
        padding: 80px 20px;
    }
}

@media (max-width: 480px) {
    .hero .date,
    .hero .location {
        font-size: 1rem;
        padding: 8px 15px;
        text-align: right;
    }

    .hero-rsvp-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* Small screen carousel adjustments */
    .carousel-slide {
        min-height: 200px;
    }

    .inspiring-quote {
        font-size: clamp(1rem, 4vw, 1.8rem);
    }

    .quote-author {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
    }

    nav li {
        flex: 1 0 100%;
    }

    .section h2 {
        font-size: 2rem;
    }

    .program-column h2,
    .info-column h2 {
        font-size: 1.8rem;
    }

    .program-time {
        width: 80px;
        font-size: 1rem;
    }

    .program-event {
        font-size: 1.1rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-time {
        width: 60px;
    }

    .story-image {
        height: 250px;
    }

    .footer-links a {
        margin: 5px 10px;
    }

    /* Mobile-specific invitation prompt animation */
    #invitation-prompt.show {
        max-height: 250px;
    }

    #invitation-prompt input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 2.5rem;
        word-break: break-word;
        hyphens: none;
    }

    .hero .date,
    .hero .location {
        font-size: 0.9rem;
    }

    .hero-rsvp-button {
        padding: 10px 20px;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}
