/* ============================================
   Joe & Sophia Wedding Website - Stylesheet
   NEW Color Palette: Lavender & Sage Green + Blue & Yellow
   - Light Lavender: #C9C2DB
   - Dusty Lilac: #B4A7C8
   - Soft Sage Green: #A7B5A2
   - Muted Eucalyptus: #7E9187
   - Butter Yellow: #F3E4A2
   - Dusty Blue: #9FB4C8
   - Background: #F5F0F7 (soft lavender tint)
   - Dark: #333333
   - White: ONLY for the bride
   ============================================ */

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Montserrat:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --bg-main: #F5F0F7;
    --lavender: #C9C2DB;
    --lilac: #B4A7C8;
    --sage: #A7B5A2;
    --eucalyptus: #7E9187;
    --yellow: #F3E4A2;
    --blue: #9FB4C8;
    --dark: #333333;
    --darker: #2C2C2C;
    --darkest: #1a1a1a;
    --white: #FFFFFF;
    --muted: #777777;
    --card-bg: #FDFBFF;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    /* Primary accent = Dusty Lilac, secondary = Eucalyptus */
    --accent: #B4A7C8;
    --accent-light: #C9C2DB;
    --accent-secondary: #7E9187;
    --accent-secondary-light: #A7B5A2;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

ul, ol {
    list-style: none;
}

/* ---------- Utility Classes ---------- */
.section-padding {
    padding: 100px 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

.section-title {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 400;
    text-align: center;
}

.section-subtitle {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 50px auto;
    text-align: center;
    font-style: italic;
    line-height: 1.8;
}

.section-star {
    text-align: center;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.gold-divider {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 15px auto 25px auto;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(245, 240, 247, 0.97);
    padding: 12px 5%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar-logo {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--accent);
    transition: color 0.3s ease;
}

.navbar.scrolled .navbar-logo {
    color: var(--lilac);
}

.navbar-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar-links a {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    transition: color 0.3s ease;
    position: relative;
}

.navbar.scrolled .navbar-links a {
    color: var(--dark);
}

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

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.navbar-links a:hover::after {
    width: 100%;
}

.navbar-rsvp-btn {
    background: var(--lilac) !important;
    color: var(--white) !important;
    padding: 8px 22px !important;
    border-radius: 3px;
    font-size: 0.7rem !important;
    letter-spacing: 2px !important;
    transition: background 0.3s ease !important;
}

.navbar-rsvp-btn:hover {
    background: var(--accent-light) !important;
}

.navbar-rsvp-btn::after {
    display: none !important;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.navbar.scrolled .menu-toggle span {
    background: var(--dark);
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.25) 50%,
        rgba(0, 0, 0, 0.45) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero-names {
    font-family: var(--font-script);
    font-size: 5.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-ampersand {
    font-size: 4rem;
    display: block;
    margin: 5px 0;
    opacity: 0.85;
}

.hero-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0.9;
}

.hero-details .separator {
    width: 4px;
    height: 4px;
    background: var(--accent-light);
    border-radius: 50%;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
    opacity: 0.7;
}

.scroll-indicator .arrow {
    width: 20px;
    height: 20px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.7);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
}

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

/* ---------- Countdown Section ---------- */
.countdown-section {
    background: var(--darker);
    padding: 40px 5%;
    text-align: center;
}

.countdown-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 25px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 50px;
}

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

.countdown-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    color: var(--white);
    line-height: 1;
    min-width: 60px;
}

.countdown-separator {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    color: var(--accent-light);
    line-height: 1;
    align-self: flex-start;
}

.countdown-unit {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 8px;
}

/* ---------- Our Story Section ---------- */
.story-section {
    padding: 100px 5%;
    background: var(--bg-main);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.story-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.story-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 4px;
    transition: transform 0.6s ease;
}

.story-image:hover img {
    transform: scale(1.03);
}

.story-content {
    padding: 20px 0;
}

.story-content .section-label {
    text-align: left;
}

.story-content .section-title {
    text-align: left;
}

.story-content .gold-divider {
    margin: 15px 0 25px 0;
}

.story-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: #555;
    line-height: 1.9;
    margin-bottom: 30px;
}

.story-quote {
    border-left: 3px solid var(--accent);
    padding-left: 25px;
    margin-top: 20px;
}

.story-quote p {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--dark);
    line-height: 1.8;
    margin-bottom: 8px;
}

.story-quote .quote-author {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    font-style: normal;
}

.story-closing {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: #555;
    line-height: 1.9;
    margin-top: 20px;
}

/* ---------- Wedding Details Section ---------- */
.details-section {
    padding: 100px 5%;
    background: var(--bg-main);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.detail-card {
    background: var(--card-bg);
    border-radius: 6px;
    padding: 40px 30px;
    text-align: center;
    border-top: 3px solid var(--accent);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Alternate card top border colors */
.detail-card:nth-child(1) { border-top-color: var(--lilac); }
.detail-card:nth-child(2) { border-top-color: var(--sage); }
.detail-card:nth-child(3) { border-top-color: var(--blue); }
.detail-card:nth-child(4) { border-top-color: var(--yellow); }
.detail-card:nth-child(5) { border-top-color: var(--eucalyptus); }
.detail-card:nth-child(6) { border-top-color: var(--lilac); }

.detail-card-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.detail-card-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 600;
}

.detail-card-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
}

.detail-card-text {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
}

.detail-card-text strong {
    display: block;
    color: var(--dark);
    font-weight: 600;
    margin-top: 10px;
}

.detail-card-text em {
    font-style: italic;
}

.detail-card-text a {
    color: var(--accent);
    font-weight: 500;
    transition: color 0.3s;
}

.detail-card-text a:hover {
    color: var(--eucalyptus);
}

/* Dress code highlight box */
.dress-code-highlight {
    background: var(--yellow);
    color: var(--dark);
    padding: 6px 14px;
    border-radius: 4px;
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 12px;
}

/* Map direction buttons */
.map-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 10px;
    transition: background 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.map-btn:hover {
    background: var(--eucalyptus);
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* Color palette circles for dress code */
.color-palette-circles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin: 10px 0;
}

.color-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 65px;
}

.color-circle {
    display: inline-block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.color-circle:hover {
    transform: scale(1.15);
}

.color-name {
    font-family: var(--font-sans);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

/* ---------- Timeline Section ---------- */
.timeline-section {
    padding: 100px 5%;
    background: var(--bg-main);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--lavender), var(--sage), var(--blue));
    opacity: 0.5;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: calc(50% - 40px);
    background: var(--card-bg);
    border-radius: 6px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--bg-main);
    z-index: 2;
    top: 30px;
}

/* Alternate dot colors */
.timeline-item:nth-child(1) .timeline-dot { background: var(--lilac); }
.timeline-item:nth-child(2) .timeline-dot { background: var(--sage); }
.timeline-item:nth-child(3) .timeline-dot { background: var(--blue); }
.timeline-item:nth-child(4) .timeline-dot { background: var(--yellow); }
.timeline-item:nth-child(5) .timeline-dot { background: var(--eucalyptus); }
.timeline-item:nth-child(6) .timeline-dot { background: var(--lilac); }
.timeline-item:nth-child(7) .timeline-dot { background: var(--sage); }

.timeline-time {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 600;
}

.timeline-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.timeline-desc {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

.timeline-icon {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* ---------- Travel & Stay Section ---------- */
.travel-section {
    padding: 100px 5%;
    background: var(--bg-main);
}

.travel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto 50px auto;
}

.travel-card {
    background: var(--card-bg);
    border-radius: 6px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

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

.travel-card:nth-child(1) { border-top: 3px solid var(--blue); }
.travel-card:nth-child(2) { border-top: 3px solid var(--sage); }
.travel-card:nth-child(3) { border-top: 3px solid var(--yellow); }

.travel-card-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.travel-card-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
}

.travel-card-text {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    text-align: left;
}

.travel-card-text strong {
    display: block;
    color: var(--dark);
    font-weight: 600;
    margin-top: 8px;
}

.travel-card-text a {
    color: var(--accent);
    font-weight: 500;
}

.travel-card-text a:hover {
    color: var(--eucalyptus);
}

.airport-code {
    display: inline-block;
    background: var(--blue);
    color: var(--dark);
    padding: 2px 10px;
    border-radius: 3px;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.hotel-item {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.hotel-item:last-child {
    border-bottom: none;
}

.map-container {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* ---------- Gifts & Board Games Section ---------- */
.gifts-section {
    padding: 100px 5%;
    background: var(--bg-main);
    text-align: center;
}

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

.gifts-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.gifts-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: #555;
    line-height: 1.9;
    margin-bottom: 30px;
}

.gifts-highlight {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--lavender) 100%);
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 30px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--dark);
    line-height: 1.8;
    font-weight: 500;
}

.gifts-quote {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--dark);
    margin-bottom: 40px;
    position: relative;
    padding: 0 30px;
}

.gifts-quote::before {
    content: '"';
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--accent);
    position: absolute;
    top: -15px;
    left: 0;
    opacity: 0.5;
}

.gifts-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.gift-option {
    background: var(--card-bg);
    border-radius: 6px;
    padding: 35px 30px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.gift-option:nth-child(1) { border-top: 3px solid var(--blue); }
.gift-option:nth-child(2) { border-top: 3px solid var(--yellow); }

.gift-option-icon {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.gift-option-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.gift-option-text {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

.gifts-closing {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: #666;
    margin-top: 40px;
    font-style: italic;
}

/* ---------- RSVP Section ---------- */
.rsvp-section {
    position: relative;
    padding: 100px 5%;
    background: var(--darker);
    color: var(--white);
    overflow: hidden;
}

.rsvp-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.rsvp-section .section-label {
    color: var(--accent-light);
}

.rsvp-section .section-title {
    color: var(--white);
}

.rsvp-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: var(--white);
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.5)' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--darker);
    color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.rsvp-btn {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 16px 40px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
    align-self: center;
    width: 100%;
}

.rsvp-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

/* ---------- Gallery Section ---------- */
.gallery-section {
    padding: 100px 5%;
    background: var(--bg-main);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.15);
}

/* Gallery - masonry effect */
.gallery-item:nth-child(1) {
    grid-column: span 2;
}

.gallery-item:nth-child(1) img {
    height: 350px;
}

.gallery-item:nth-child(6) {
    grid-column: span 2;
}

.gallery-item:nth-child(6) img {
    height: 350px;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    color: var(--white);
    padding: 20px 15px 12px;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-style: italic;
    z-index: 1;
}

/* ---------- Lightbox ---------- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    font-weight: 300;
    z-index: 10000;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: var(--white);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    padding: 15px;
    user-select: none;
}

.lightbox-nav:hover {
    opacity: 1;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--darkest);
    padding: 60px 5%;
    text-align: center;
    color: var(--white);
}

.footer-names {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-date {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 5px;
}

.footer-location {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 30px;
}

.footer-love {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

.footer-love .heart {
    color: var(--accent);
}

/* ---------- Weather Widget ---------- */
.weather-section {
    padding: 100px 5%;
    background: var(--bg-main);
}

.weather-widget {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.weather-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 60px 30px;
    color: var(--muted);
    font-family: var(--font-serif);
    font-size: 0.95rem;
}

.weather-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--lavender);
    border-top-color: var(--lilac);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.weather-current {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 35px 40px;
    background: linear-gradient(135deg, var(--lavender) 0%, var(--blue) 100%);
    color: var(--dark);
}

.weather-current-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.weather-icon {
    font-size: 3rem;
    line-height: 1;
}

.weather-temp {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1;
}

.weather-current-details {
    flex: 1;
}

.weather-location {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.weather-desc {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 12px;
    opacity: 0.85;
}

.weather-stats {
    display: flex;
    gap: 20px;
}

.weather-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.weather-stat-label {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.65;
}

.weather-stat-value {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
}

.weather-forecast {
    display: flex;
    justify-content: space-between;
    padding: 25px 40px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.weather-forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.forecast-day-name {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}

.forecast-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.forecast-temps {
    display: flex;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
}

.forecast-high {
    font-weight: 600;
    color: var(--dark);
}

.forecast-low {
    color: var(--muted);
}

.weather-note {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
    padding: 20px 40px;
    font-style: italic;
    line-height: 1.7;
}

/* Weather responsive */
@media (max-width: 768px) {
    .weather-current {
        flex-direction: column;
        text-align: center;
        padding: 30px 25px;
        gap: 20px;
    }

    .weather-stats {
        justify-content: center;
    }

    .weather-forecast {
        padding: 20px 15px;
        gap: 5px;
    }

    .forecast-icon {
        font-size: 1.2rem;
    }

    .forecast-temps {
        font-size: 0.7rem;
    }

    .weather-note {
        padding: 15px 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .weather-current-main {
        gap: 8px;
    }

    .weather-icon {
        font-size: 2.5rem;
    }

    .weather-temp {
        font-size: 2.8rem;
    }

    .weather-forecast {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .weather-forecast-day {
        flex: 0 0 calc(25% - 10px);
    }

    .forecast-day-name {
        font-size: 0.55rem;
    }
}

/* ---------- Image Loading Optimization ---------- */
.gallery-item img,
.story-image img {
    background: linear-gradient(135deg, var(--lavender) 0%, var(--bg-main) 50%, var(--sage) 100%);
    background-size: 200% 200%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.gallery-item img[src],
.story-image img[src] {
    animation: none;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero background loading */
.hero-bg {
    background-color: var(--darker);
    transition: opacity 0.5s ease;
}

/* ---------- Animations (Scroll Reveal) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive Design ---------- */
@media (max-width: 1024px) {
    .hero-names {
        font-size: 4.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .details-grid,
    .travel-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(245, 240, 247, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-links.open a {
        color: var(--dark) !important;
        font-size: 0.9rem;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-names {
        font-size: 3.5rem;
    }

    .hero-ampersand {
        font-size: 2.5rem;
    }

    .hero-details {
        flex-direction: column;
        gap: 8px;
    }

    .hero-details .separator {
        display: none;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-content .section-label,
    .story-content .section-title {
        text-align: center;
    }

    .story-content .gold-divider {
        margin: 15px auto 25px auto;
    }

    .story-quote {
        text-align: center;
        border-left: none;
        padding-left: 0;
        border-top: 3px solid var(--accent);
        padding-top: 20px;
    }

    .details-grid,
    .travel-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .countdown-timer {
        gap: 25px;
    }

    .countdown-number {
        font-size: 2.2rem;
    }

    .countdown-separator {
        font-size: 2.2rem;
    }

    /* Timeline mobile */
    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 50px;
    }

    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        text-align: left;
    }

    .timeline-dot {
        left: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .gifts-options {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(6) {
        grid-column: span 1;
    }

    .gallery-item img,
    .gallery-item:nth-child(1) img,
    .gallery-item:nth-child(6) img {
        height: 300px;
        object-position: center 15%;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 100vh;
        min-height: 100svh;
    }

    .hero-names {
        font-size: 2.8rem;
    }

    .hero-ampersand {
        font-size: 2rem;
    }

    .hero-label {
        font-size: 0.65rem;
        letter-spacing: 3px;
    }

    .hero-details {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    .section-padding {
        padding: 70px 5%;
    }

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

    .countdown-timer {
        gap: 10px;
    }

    .countdown-number {
        font-size: 1.8rem;
        min-width: 45px;
    }

    .countdown-separator {
        font-size: 1.8rem;
    }

    .countdown-unit {
        font-size: 0.55rem;
        letter-spacing: 1.5px;
    }

    .detail-card {
        padding: 30px 20px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 45px;
    }

    .travel-card {
        padding: 30px 20px;
    }

    .gifts-highlight {
        padding: 20px;
        font-size: 1rem;
    }

    .gift-option {
        padding: 25px 20px;
    }

    .rsvp-section {
        padding: 70px 5%;
    }

    .rsvp-btn {
        padding: 14px 30px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 350px;
        object-position: center 15%;
    }

    .gallery-item:nth-child(1) img,
    .gallery-item:nth-child(6) img {
        height: 350px;
        object-position: center 15%;
    }

    .color-palette-circles {
        gap: 8px;
    }

    .color-circle {
        width: 32px;
        height: 32px;
    }

    .color-name {
        font-size: 0.5rem;
    }

    .map-btn {
        padding: 8px 16px;
        font-size: 0.65rem;
    }

    .lightbox img {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox-nav {
        font-size: 2rem;
        padding: 10px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    .footer {
        padding: 40px 5%;
    }

    .footer-names {
        font-size: 2rem;
    }
}