/* ========== RESET & BASE ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    line-height: 1.6;
    color: #555;
    font-size: 15px;
    overflow-x: hidden;
}

main {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 6rem 3rem 4rem;
}

section {
    padding: 3rem 0;
    text-align: center;
}

section:first-child {
    padding-top: 0;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
    color: #2c5f8d;
    font-weight: 400;
    margin-bottom: 1.6rem;
    position: relative;
    padding-bottom: 0.6rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: rgba(44, 95, 141, 0.4);
}

.note {
    font-size: 0.9rem;
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.link-elegant {
    font-family: 'Cormorant Garamond', serif;
    font-variant: small-caps;
    letter-spacing: 0.05em;
    font-size: 1.05rem;
    color: #2c5f8d;
    text-decoration: none;
    border-bottom: 1px solid rgba(44, 95, 141, 0.35);
    padding-bottom: 2px;
    transition: all 0.25s ease;
}

.link-elegant:hover {
    color: #5b9bd5;
    border-bottom-color: #5b9bd5;
}

.btn {
    font-family: 'Cormorant Garamond', serif;
    font-variant: small-caps;
    letter-spacing: 0.02em;
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #2c5f8d;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s;
    font-size: 1.25rem;
    font-weight: 400;
    border: none;
    cursor: pointer;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.1),
                0 4px 12px rgba(44, 95, 141, 0.25);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.btn:hover {
    background: #5b9bd5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 95, 141, 0.25);
}

footer {
    background: rgba(44, 95, 141, 0.95);
    color: white;
    text-align: center;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.7rem;
    letter-spacing: 0.15em;
}

/* ========== BACKGROUND ========== */

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('lighthouse-bg-blue.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: -1;
}

/* ========== NAVIGATION ========== */

nav {
    background: rgba(255, 255, 255, 0.98);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-area {
    display: flex;
    align-items: center;
}

.nav-countdown {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 3.8rem;
}

.countdown-heart {
    height: 60px;
    width: auto;
    opacity: 0.5;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
}

.countdown-text {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2c5f8d;
    position: relative;
    z-index: 1;
}

.countdown-number {
    font-weight: 600;
    margin-right: 0.35rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #2c5f8d;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    transition: all 0.3s;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #5b9bd5;
    background: rgba(91, 155, 213, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2c5f8d;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ========== HOME ========== */

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 4vw, 3.3rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    color: #2c5f8d;
    font-weight: 400;
    margin-bottom: 0.35rem;
}

.subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    color: #777;
    margin-bottom: 2.2rem;
}

.couple-photo {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    margin: 0 auto;
    display: block;
    box-shadow: 0 15px 40px rgba(44, 95, 141, 0.18);
    transition: transform 0.3s;
}

.couple-photo:hover {
    transform: scale(1.02);
}

/* ========== REGISTRY ========== */

.registry-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.registry-card {
    background: rgba(248, 249, 250, 0.75);
    padding: 1.75rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid rgba(91, 155, 213, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex: 0 1 220px;
}

.registry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.registry-logo {
    max-width: 160px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* ========== HOTEL / SCHEDULE ========== */

.title {
    font-family: 'Great Vibes', 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 400;
    color: #2c5f8d;
    margin-top: 2rem;
}

.day {
    font-family: 'Source Serif 4', serif;
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 0.3rem;
}

.venue {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #2c5f8d;
    margin-top: 0.15rem;
}

#hotel .venue {
    margin-top: 1.2rem;
}

.address {
    font-size: 0.95rem;
    color: #555;
}

.phone {
    font-size: 0.95rem;
    color: #555;
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
}

.phone a {
    color: #555;
    text-decoration: none;
}

.phone a:hover {
    color: #2c5f8d;
}

.important {
    display: block;
    font-size: 0.85rem;
    color: #4a6072;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
}

/* ========== CONTACT ========== */

.contact-form {
    margin-top: 1.6rem;
}

.form-group {
    margin-bottom: 0.9rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-group.textarea-group {
    align-items: flex-start;
}

.form-group label {
    color: #2c5f8d;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    min-width: 120px;
    margin-bottom: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 2px solid rgba(91, 155, 213, 0.3);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s;
    background: rgba(255, 255, 255, 0.95);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5b9bd5;
    background: white;
}

.required {
    color: #d9534f;
}

.btn-container {
    text-align: center;
    margin-top: 1rem;
}

/* ========== MODAL ========== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    margin: 15% auto;
    padding: 2.5rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s;
}

.modal-content h3 {
    color: #2c5f8d;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
}

.modal-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-btn {
    background: #2c5f8d;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
}

.modal-btn:hover {
    background: #5b9bd5;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ========== MOBILE/TABLET (<= 1024px) ========== */

@media (max-width: 1024px) {

    .nav-container {
        padding: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        right: 1rem;
        top: 70px;
        left: auto;
        width: auto;
        min-width: 180px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        text-align: center;
        padding: 1rem 0;
        gap: 0;
        border-radius: 10px;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(10px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu li {
        padding: 1rem 0;
    }

    main {
        width: 100%;
        padding: 6rem 1.5rem 3rem;
    }
}

/* ========== MOBILE BACKGROUND (portrait only) ========== */

@media (max-width: 1024px) and (orientation: portrait) {
    body::before {
        background-image: url('mobile-blue-bg.png');
        background-size: cover;
        background-position: center;
    }
}

/* ========== SMALL PHONES (<= 480px) ========== */

@media (max-width: 480px) {
    .countdown-heart {
        height: 50px;
    }

    .nav-countdown {
        padding-left: 3.2rem;
    }

    main {
        padding: 6rem 1rem 2rem;
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-group label {
        min-width: 0;
        margin-bottom: 0.25rem;
    }
}