/*
 * Main stylesheet for Rosanna & Matteo wedding website
 */

/* Global styles */
body {
    background-color: #e9e4df;
    margin: 0;
    padding: 0;
    font-family: "Bodoni Moda", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: #95765e;
    letter-spacing: 0.12em;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    text-align: center;
    margin: 0;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 0.2em;
}

h2 {
    font-size: 2rem;
}

h3 {
    margin-bottom: 1rem;
}

p {
    margin: 0;
}

.bold {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

/* Layout */
.section {
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    text-align: center;
}

.section-logo {
    max-width: 250px;
    margin-bottom: 1rem;
}

.section-content {
    width: 100%;
    max-width: 800px;
}

.subsection {
    text-align: center;
}

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

/* Hero Section */
.hero {
    min-height: 50dvh;
    max-width: 1200px;
    margin: 0 auto;
}

.fullscreen-hero {
    position: relative;
    min-height: 100dvh;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/couple-photo.webp?v=c63bd965');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #95765e;
    overflow: hidden;
}

.hero-content {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e9e4df;
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mobile-layout {
    display: none;
}

.mobile-only {
    display: none;
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.couple-photo {
    width: 100%;
    text-align: center;
}

.couple-image {
    max-width: 450px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#wedding-countdown {
    margin-top: 1.5rem;
}

/* Links */
.link {
    display: inline-block;
    color: #95765e;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.link:hover {
    color: #7a5f4c;
}

/* Address styling */
address {
    font-style: normal;
    text-align: center;
    line-height: 1.6;
    margin: 1.5em 0;
    letter-spacing: 0.12em;
    color: #95765e;
    display: inline-block;
}

.address-section {
    text-align: center;
}

/* Payment details */
.payment-details {
    margin: 2rem 0;
    font-style: normal;
}

.payment-details p {
    margin: 0.5rem 0;
}

/* Contact information */
.contact-info {
    margin: 1em 0;
    font-style: normal;
}

.contact-info p {
    margin: 0.5rem 0;
}

/* Message form */
.message-form {
    margin-top: 1rem;
    width: 100%;
}

.message-form form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group textarea, .form-group input[type="text"] {
    width: 100%;
    padding: 1rem;
    border: 1px dashed #8a7a66;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    color: #95765e;
    font-family: "Bodoni Moda", serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    line-height: 1.6;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea {
    resize: vertical;
}

.form-group input[type="text"] {
    resize: none;
    margin-bottom: 1rem;
    height: 3.6rem; /* Match the height of a single line in the textarea */
}

.form-group textarea:focus, .form-group input[type="text"]:focus {
    outline: none;
    border-color: #7a5f4c;
    box-shadow: 0 0 5px rgba(122, 95, 76, 0.3);
}

.form-group textarea::placeholder, .form-group input[type="text"]::placeholder {
    color: #b5a696;
    font-style: italic;
}

.send-button {
    background-color: transparent;
    color: #95765e;
    border: 1px dashed #8a7a66;
    border-radius: 5px;
    padding: 0.8rem 2rem;
    font-family: "Bodoni Moda", serif;
    font-size: 1rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-button:hover {
    background-color: rgba(149, 118, 94, 0.1);
    color: #7a5f4c;
    border-color: #7a5f4c;
    transform: translateY(-2px);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.send-button:disabled:hover {
    background-color: transparent;
    transform: none;
}

/* Calendar styles */
.calendar {
    gap: 2rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 0 0 1.5rem 0;
}

.day {
    font-style: italic;
    text-align: center;
    padding: 0.5rem;
    position: relative;
}

.weekday {
    font-weight: 400;
    color: #9b8c7a;
    margin-bottom: 1em;
}

.date {
    font-size: 1.2rem;
    color: #8a7a66;
}

.heart-day {
    position: relative;
}

.heart-shape {
    position: absolute;
    top: 34px;
    left: 48%;
    width: 60px;
    height: 80px;
    transform: translateX(-50%);
    overflow: visible;
    z-index: -1;
}

/* Media queries - Mobile */
@media (max-width: 767px) {
    /* Typography adjustments */
    body {
        letter-spacing: 0.1em;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    /* Layout adjustments */
    .section {
        padding: 2rem;
    }

    .fullscreen-hero {
        background-image: url('images/couple-photo-mobile.webp?v=c231f836');
        width: 100%;
        overflow-x: hidden;
        height: 100dvh;
    }

    /* Hide desktop layout, show mobile layout */
    .desktop-layout {
        display: none;
    }

    .mobile-layout {
        display: block;
        bottom: 0;
        width: 100%;
        padding: 0;
        border-radius: 0;
        background: linear-gradient(to top,
                  #e9e4df 0%,
                  #e9e4df 60%,
                  transparent 100%);
        box-shadow: none;
        left: 0;
        transform: none;
        max-width: 100%;
        height: 40dvh;
    }

    .mobile-titles {
        position: absolute;
        bottom: 110px;
        width: 100%;
        text-align: center;
    }

    .scroll-arrow {
        position: absolute;
        bottom: 15px;
        left: 45%;
    }

    /* Show mobile-only section */
    .mobile-only {
        display: block;
        background-color: #e9e4df;
    }

    #mobile-below-fold {
        min-height: auto;
    }

    .section-logo {
        max-width: 200px;
    }

    /* Component adjustments */
    .couple-image {
        max-width: 100%;
    }

    .calendar {
        gap: 0.8rem;
    }

    .day {
        padding: 0.3rem;
    }

    .date {
        font-size: 1rem;
    }

    .heart-shape {
        width: 50px;
        height: 70px;
        top: 34px;
    }

    /* Form adjustments for mobile */
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .send-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}
