:root {
    /* Color Palette */
    --clr-bg-light: #FDFBF7;
    --clr-bg-sand: #F2EBE1;
    --clr-green-light: #8A9A86;
    --clr-green-dark: #4A5D4E;
    --clr-ocean: #7B9E9E;
    --clr-text-dark: #2C3531;
    --clr-text-light: #FAF9F6;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Spacing */
    --section-padding: 6rem 2rem;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-dark);
    background-color: var(--clr-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--clr-bg-light); }
.bg-sand { background-color: var(--clr-bg-sand); }
.bg-dark { background-color: var(--clr-green-dark); }
.text-light { color: var(--clr-text-light); }
.text-light h2 { color: var(--clr-bg-sand); }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 3rem;
}

.navbar.scrolled .nav-brand,
.navbar.scrolled .nav-links a,
.navbar.scrolled .mobile-menu-btn {
    color: var(--clr-text-dark);
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--clr-text-light);
    transition: var(--transition-smooth);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--clr-text-light);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: currentColor;
    transition: var(--transition-smooth);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--clr-text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--clr-text-light);
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(44, 53, 49, 0.4), rgba(44, 53, 49, 0.6));
}

.hero-content {
    z-index: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 2s ease-out;
}

.hero-rings {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.rings-img {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-title .ampersand {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.8em;
    color: var(--clr-bg-sand);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    letter-spacing: 2px;
    font-family: var(--font-heading);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.hero-date, .hero-location {
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.btn-scroll {
    margin-top: 3rem;
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--clr-text-light);
    color: var(--clr-text-light);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    border-radius: 30px;
    transition: var(--transition-smooth);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.btn-scroll:hover {
    background: var(--clr-text-light);
    color: var(--clr-text-dark);
}

/* General Sections */
.section {
    padding: var(--section-padding);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--clr-green-dark);
}

.bg-dark .section-title {
    color: var(--clr-bg-sand);
}

.subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: var(--clr-text-dark);
    opacity: 0.8;
}

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

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

/* Our Story Layout */
.content-wrapper {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.text-content {
    flex: 1;
    font-size: 1.1rem;
}

.text-content p {
    margin-bottom: 1.5rem;
}

.image-content {
    flex: 1;
}

.rounded-image {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.shadow-elegant {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
}

.shadow-elegant:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Timeline */
.timeline {
    max-width: 600px;
    margin: 3rem auto;
    text-align: left;
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid var(--clr-green-light);
}

.timeline-item {
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--clr-green-dark);
    border: 3px solid var(--clr-bg-sand);
}

.timeline-item h3 {
    font-size: 1.4rem;
    color: var(--clr-green-dark);
    margin-bottom: 0.5rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.02);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--clr-green-dark);
}

/* Hotels */
.hotels-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 3rem auto 0 auto;
}

.hotel-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--clr-ocean);
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.hotel-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.hotel-item h3 {
    color: var(--clr-green-dark);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.info-box {
    padding: 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.info-box h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--clr-bg-sand);
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background: #1A211D;
    color: var(--clr-text-light);
    text-align: center;
    padding: 4rem 2rem;
}

.footer h2 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: var(--clr-bg-sand);
}

.footer-date {
    letter-spacing: 2px;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--clr-bg-light);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        color: var(--clr-text-dark);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar.scrolled .mobile-menu-btn {
        color: var(--clr-text-dark);
    }
    
    .nav-actions {
        gap: 1rem;
    }
}

/* Language Toggle */
body[data-lang="no"] .lang-en {
    display: none !important;
}

body[data-lang="en"] .lang-no {
    display: none !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--clr-text-light);
    color: var(--clr-text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-btn:hover {
    background: var(--clr-text-light);
    color: var(--clr-text-dark);
}

.navbar.scrolled .lang-btn {
    border-color: var(--clr-text-dark);
    color: var(--clr-text-dark);
}

.navbar.scrolled .lang-btn:hover {
    background: var(--clr-text-dark);
    color: var(--clr-text-light);
}

/* RSVP Form */
.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: left;
    border: 1px solid rgba(0,0,0,0.02);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--clr-green-dark);
}

.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
    outline: none;
    border-color: var(--clr-ocean);
    box-shadow: 0 0 0 3px rgba(123, 158, 158, 0.2);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal !important;
    cursor: pointer;
}

.btn-submit {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    background: var(--clr-green-dark);
    color: var(--clr-text-light);
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--clr-green-light);
}

/* Guest Search & RSVP Modals */
.rsvp-search-container {
    max-width: 600px;
    margin: 2rem auto;
    position: relative;
}

.guest-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--clr-green-light);
    border-radius: 30px;
    outline: none;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.guest-search-input:focus {
    border-color: var(--clr-green-dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.guest-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 0.5rem;
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.guest-list.active {
    display: block;
}

.guest-list li {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.guest-list li:last-child {
    border-bottom: none;
}

.guest-list li:hover {
    background: var(--clr-bg-sand);
    color: var(--clr-green-dark);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 53, 49, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--clr-text-dark);
    transition: var(--transition-smooth);
}

.close-modal:hover {
    color: var(--clr-green-dark);
    transform: scale(1.1);
}

.household-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.household-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--clr-bg-sand);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    background: var(--clr-green-dark);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.btn-small:hover {
    background: var(--clr-green-light);
}

.btn-small.answered {
    background: var(--clr-ocean);
}

/* Countdown Clock */
.time-box {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.time-number {
    font-family: var(--ff-primary);
    font-size: 3rem;
    color: var(--clr-green-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.time-label {
    font-family: var(--ff-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-green-dark);
    font-weight: 600;
}
@media (max-width: 600px) {
    #clock-container {
        gap: 1rem !important;
    }
    .time-box {
        min-width: 80px;
        padding: 1rem;
    }
    .time-number {
        font-size: 2rem;
    }
    .time-label {
        font-size: 0.8rem;
    }
}

/* Bildekarusell */
.carousel-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 1rem;
}
.carousel-track {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
}
.carousel-img {
    flex: 0 0 auto;
    width: 85vw;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    scroll-snap-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.carousel-container::-webkit-scrollbar {
    display: none;
}
.carousel-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
@media (min-width: 768px) {
    .carousel-img {
        width: 60vw;
        height: 500px;
    }
}

/* Carousel Arrows */
.carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0 1rem;
}

.carousel-btn {
    flex-shrink: 0;
    background: transparent;
    color: var(--clr-green-dark);
    border: none;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.carousel-btn svg {
    width: 50px;
    height: 50px;
}
.carousel-btn:hover {
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .carousel-btn { width: 40px; height: 40px; }
    .carousel-btn svg { width: 30px; height: 30px; }
    .carousel-wrapper { padding: 0 0.5rem; gap: 0.2rem; }
}
