/* Sam & Jade Wedding — Navy & Cream Theme */

:root {
    --navy: #2C3E6B;
    --navy-light: #3D5289;
    --navy-dark: #1E2D4D;
    --cream: #FAF8F5;
    --cream-dark: #F0EBE3;
    --white: #FFFFFF;
    --text: #3A3A3A;
    --text-muted: #6B6B6B;
    --gold-accent: #B8956A;
}

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

body {
    font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--cream);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', 'Times New Roman', Times, serif;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--navy-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

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

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

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

main {
    min-height: 70vh;
    padding: 40px 0;
}

/* Header */
header {
    width: 100%;
}

.header-gradient {
    background: var(--navy);
    padding: 24px 0;
    box-shadow: 0 2px 12px rgba(30, 45, 77, 0.15);
}

.couple-names {
    font-family: 'Cormorant Garamond', 'Times New Roman', Times, serif;
    font-style: italic;
    font-weight: 400;
    color: var(--cream);
    text-align: center;
    margin: 16px 0;
    font-size: 3.2rem;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 16px;
}

nav li {
    margin: 0 20px;
}

nav a {
    color: var(--cream);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 0;
    position: relative;
}

nav a:hover, nav li.active a {
    color: var(--white);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--gold-accent);
    transition: width 0.3s ease;
}

nav a:hover::after, nav li.active a::after {
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--navy-dark);
    padding: 40px 0 20px;
    color: var(--cream);
}

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

.footer-info {
    flex: 0 0 60%;
}

.footer-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--cream);
    margin-bottom: 10px;
}

.footer-info .wedding-date,
.footer-info .wedding-location {
    color: rgba(250, 248, 245, 0.85);
}

.footer-links {
    flex: 0 0 30%;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--cream);
}

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

.copyright {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(250, 248, 245, 0.6);
    padding-top: 20px;
    border-top: 1px solid rgba(250, 248, 245, 0.15);
}

/* Home intro */
.home-intro {
    text-align: center;
    padding: 20px 0 10px;
}

.home-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--navy-dark);
    letter-spacing: 3px;
}

.home-date {
    text-align: center;
    margin-bottom: 40px;
}

.wedding-date-display {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--navy);
    letter-spacing: 1px;
}

/* Hero */
.hero {
    background-color: var(--white);
    text-align: center;
    padding: 50px 36px;
    margin-bottom: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(30, 45, 77, 0.05);
    border: 1px solid rgba(44, 62, 107, 0.06);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.hero:hover {
    box-shadow: 0 12px 40px rgba(30, 45, 77, 0.18);
    transform: translateY(-3px);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.wedding-date {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.wedding-location {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Countdown */
.countdown {
    text-align: center;
    margin: 30px 0 40px;
}

#countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-unit .number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--navy);
    background-color: var(--white);
    border-radius: 4px;
    min-width: 75px;
    padding: 12px;
    box-shadow: 0 3px 12px rgba(30, 45, 77, 0.08);
    border: 1px solid var(--cream-dark);
}

.countdown-unit .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-top: 8px;
}

#countdown-message {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--gold-accent);
    font-style: italic;
}

/* Sections */
.section {
    margin-bottom: 50px;
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    font-size: 2.2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold-accent);
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(30, 45, 77, 0.05);
    padding: 32px 36px;
    margin-bottom: 24px;
    border: 1px solid rgba(44, 62, 107, 0.06);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.card-centered {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.card:hover {
    box-shadow: 0 14px 44px rgba(30, 45, 77, 0.22);
    transform: translateY(-4px);
}

.card h3 {
    color: var(--navy);
}

/* Schedule */
.schedule {
    max-width: 700px;
    margin: 0 auto;
}

.schedule-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--gold-accent);
    margin-bottom: 8px;
}

.schedule-time {
    font-weight: 600;
    color: var(--navy);
}

.schedule-note {
    font-style: italic;
    color: var(--text-muted);
}

/* Menu */
.menu-section {
    margin-bottom: 20px;
    text-align: center;
}

.menu-section strong {
    display: block;
    margin-bottom: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--navy);
}

.menu-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-section li {
    margin: 6px 0;
    color: var(--text);
}

/* Map */
.map-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(30, 45, 77, 0.05);
    border: 1px solid rgba(44, 62, 107, 0.06);
    padding: 0;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.map-container:hover {
    box-shadow: 0 14px 44px rgba(30, 45, 77, 0.22);
    transform: translateY(-4px);
}

.map-container iframe {
    display: block;
}

.map-directions-link {
    text-align: center;
    margin-top: 24px;
}

/* Accommodations */
@media (min-width: 769px) {
    .accommodations-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }
}

.accommodation-card {
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(30, 45, 77, 0.05);
    border: 1px solid rgba(44, 62, 107, 0.06);
    text-align: center;
    overflow: hidden;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.accommodation-card:hover {
    box-shadow: 0 14px 44px rgba(30, 45, 77, 0.22);
    transform: translateY(-4px);
}

.accommodation-image-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--cream-dark);
}

.accommodation-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.accommodation-body {
    padding: 24px 28px 28px;
}

.accommodation-name {
    color: var(--navy);
    margin-bottom: 8px;
}

.accommodation-distance {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.accommodation-link {
    margin-top: 8px;
    font-size: 0.85rem;
    padding: 10px 20px;
}

@media (max-width: 768px) {
    .accommodations-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .accommodation-card {
        width: 100%;
    }
}

/* Forms */
.form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--navy-dark);
}

.guest-card {
    border: 1px solid rgba(44, 62, 107, 0.08);
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: var(--white);
    transition: box-shadow 0.35s ease;
}

.guest-card:hover {
    box-shadow: 0 8px 28px rgba(30, 45, 77, 0.12);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: 'Source Sans 3', sans-serif;
    border-radius: 12px;
    border: 1px solid rgba(44, 62, 107, 0.12);
    background: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(44, 62, 107, 0.12);
    outline: none;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-check input[type="radio"],
.form-check input[type="checkbox"] {
    margin-right: 10px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Source Sans 3', sans-serif;
    text-align: center;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.btn-primary:hover {
    background-color: var(--navy-light);
    transform: translateY(-1px);
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: left;
}

.alert-danger {
    background-color: #fdf2f2;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Thank You */
.thank-you {
    text-align: center;
    padding: 60px 0;
}

.thank-you h2 {
    color: var(--navy);
}

.thank-you-icon {
    font-size: 60px;
    margin-bottom: 30px;
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 30px auto 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(30, 45, 77, 0.08);
    transition: box-shadow 0.35s ease;
}

.carousel:hover {
    box-shadow: 0 14px 44px rgba(30, 45, 77, 0.22);
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--navy-dark);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.carousel-slide img,
.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44, 62, 107, 0.5);
    border: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(44, 62, 107, 0.75);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn.prev::after,
.carousel-btn.next::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--white);
    border-right: 2px solid var(--white);
    margin: 14px auto;
}

.carousel-btn.prev::after {
    transform: rotate(-135deg);
    margin-left: 18px;
}

.carousel-btn.next::after {
    transform: rotate(45deg);
    margin-right: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .couple-names, .home-names {
        font-size: 2.4rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin: 8px 0;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-info, .footer-links {
        flex: 0 0 100%;
        margin-bottom: 20px;
        text-align: center;
    }

    .countdown-unit .number {
        font-size: 2rem;
        min-width: 55px;
        padding: 8px;
    }

    #countdown-timer {
        gap: 10px;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }

    .countdown-unit .number {
        font-size: 1.5rem;
        min-width: 42px;
        padding: 6px;
    }

    .countdown-unit .label {
        font-size: 0.65rem;
    }
}
