:root {
    --primary-color: #8da399; /* Sage Green */
    --secondary-color: #d4a373; /* Gold/Bronze accent */
    --text-color: #4a4a4a;
    --bg-color: #faf9f6; /* Off-white */
    --card-bg: #ffffff;
}

body {
    font-family: "Lato", sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
    color: var(--text-color);
    margin-top: 0;
}

.script-font {
    /* font-family: "Great Vibes", cursive; */
    font-weight: 400;
}

/* =========================================
   Header & Navigation
   ========================================= */
header {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--bg-color);
}

.home-link {
    text-decoration: none;
}

/* Header/Hero Specifics (Index vs Subpages) */
/* Note: Index page overrides header inside hero-banner */

.couple-names {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
    line-height: 1.2;
    text-decoration: none;
}

/* On index page, the names are white and larger */
.hero-banner .couple-names {
    font-size: 4rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.date {
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: #fff;
    text-transform: uppercase;
    margin-top: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: #eee;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* =========================================
   Hero Section (Index)
   ========================================= */
.hero-banner {
    height: 72vh;
    background-color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 3rem;
    background-image: url("assets/sogt.webp");
    background-size: cover;
    background-position: top center;
    margin-bottom: 3rem;
    text-align: center;
    /* margin-top: 10px; */
}

@media (min-width: 768px) {
    .hero-banner {
        height: 80vh;
    }
}

.hero-content-box {
    padding: 1.5rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    outline: 1px solid rgba(255, 255, 255, 0.4);
    outline-offset: 6px;
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
    max-width: 85%;
}

@media (min-width: 768px) {
    .hero-content-box {
        padding: 2rem 4rem;
        outline-offset: 8px;
        max-width: 90%;
    }
}

/* =========================================
   Layout Containers
   ========================================= */
.container {
    max-width: 1200px; /* Default for index */
    margin: 0 auto;
    padding: 2rem;
}

/* Subpages use a narrower container with background */
body:not(.index-page) .container {
    max-width: 900px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 4rem;
}

/* =========================================
   Sections & Typography
   ========================================= */
.welcome-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.welcome-section p {
    font-size: 1.1rem;
    color: #666;
}

.page-title {
    text-align: center;
    /* margin-bottom: 3rem; */
}

.page-title h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

/* Program page specific header border */
.content-section h2.bordered {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

/* =========================================
   Cards & Grid
   ========================================= */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

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

.card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 200px;
    background-color: #eee;
    background-position: center;
    background-size: cover;
    position: relative;
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-block;
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-weight: 700;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Primary/Filled Button Variant */
.btn.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    font-size: 1rem;
}

.btn.btn-primary:hover {
    background-color: #b88a5c;
    border-color: #b88a5c;
}

/* =========================================
   Components (Banners, Lists, Contact)
   ========================================= */
.banner-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px 8px 0 0;
    margin-bottom: 2rem;
    display: block;
    background-color: #eee;
}

.contact-section {
    background-color: #f4f4f4;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 2rem;
    border-radius: 8px;
}

.contact-section h2 {
    margin-bottom: 2rem;
}

.contact-details {
    max-width: 600px;
    margin: 0 auto;
}

.contact-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* =========================================
   Page Specific: Overnatting
   ========================================= */
.room-list {
    list-style: none;
    padding: 0;
}

.room-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.room-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .room-layout {
        flex-direction: row;
        align-items: flex-start;
    }
    .room-layout .room-list-container {
        flex: 1;
    }
    .room-layout .room-image-container {
        flex: 1;
    }
}

/* =========================================
   Page Specific: Ønskeliste
   ========================================= */
ul.wish-list {
    list-style-type: none;
    padding: 0;
}

ul.wish-list li {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

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

/* =========================================
   Footer
   ========================================= */
footer {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-size: 0.9rem;
    margin-top: 2rem;
    border-top: 1px solid #eaeaea;
}

/* =========================================
   Mobile Optimization
   ========================================= */
@media (max-width: 768px) {
    /* Header/Hero Adjustments */
    .hero-banner .couple-names {
        font-size: 3rem;
    }

    .hero-content-box {
        padding: 1.5rem;
    }

    /* Layout & Containers */
    .container {
        padding: 1rem;
    }

    body:not(.index-page) .container {
        margin-bottom: 2rem;
        /* Reduce shadow/radius on mobile for cleaner look */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    }

    /* Banners */
    .banner-image {
        height: 200px; /* Reduce height on mobile */
    }

    /* Typography Scaling */
    .page-title h1 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .welcome-section h1 {
        font-size: 2rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    /* Spacing Reductions */
    .welcome-section,
    .info-grid,
    .content-section {
        margin-bottom: 2.5rem;
    }

    .contact-section {
        padding: 2rem 1rem;
        margin-top: 1rem;
    }
}

/* =========================================
   Program Timeline
   ========================================= */
.program-timeline {
    max-width: 600px;
    margin: 0 auto;
}

.program-item {
    display: flex;
    margin-bottom: 0;
}

.program-time {
    width: 80px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 15px;
    font-family: "Playfair Display", serif;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 0;
    font-size: 1.1rem;
}

.program-content {
    flex-grow: 1;
    padding-left: 20px;
    padding-bottom: 1.5rem;
    border-left: 1px solid #ccc;
    position: relative;
}

.program-content::before {
    content: "";
    width: 9px;
    height: 9px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    position: absolute;
    left: -7px;
    top: 6px;
    border: 2px solid #fff;
}

.program-item:last-child .program-content {
    border-left: 1px solid transparent;
}

.program-description {
    margin: 0;
    line-height: 1.4;
    font-size: 1.1rem;
}
