/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Red Hat Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #E5E2E2;
    /* Light Gray */
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    /* Bolder headings */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #0f392b;
    /* Dark Green from reference */
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.8rem;
}

h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    color: #2d3748;
    line-height: 1.7;
}

p.normal-weight {
    font-weight: 400;
}

.subtitle {
    color: #718096;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.centered-heading {
    text-align: center;
}

/* ===== Navigation Bar - Updated Layout ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(229, 226, 226, 0.95);
    /* #E5E2E2 with transparency */
    backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    flex-shrink: 0;
}

.nav-links {
    display: none;
    /* Hidden on mobile by default */
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 1100px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #0f392b;
}

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

.btn-c2a {
    background: #0f392b;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(15, 57, 43, 0.2);
    white-space: nowrap;
    /* Prevent wrapping on desktop */
}

.btn-c2a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 57, 43, 0.3);
    background: #0a261d;
}

/* Mobile adjustments for the long button */
@media (max-width: 768px) {
    .btn-c2a {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        white-space: normal;
        /* Allow wrapping on mobile */
        text-align: center;
        max-width: 200px;
        /* Limit width to force wrapping if needed */
    }
}

.btn-contact-inline {
    display: inline-block;
    background: #0f392b;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(15, 57, 43, 0.2);
    margin-top: 1rem;
}

.btn-contact-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 57, 43, 0.3);
    background: #0a261d;
}

/* ===== Main Layout ===== */
main {
    padding-top: 80px;
    width: 100%;
    overflow-x: hidden;
}

/* Mobile: Stack vertically */
.content-section {
    padding: 60px 5%;
    /* 5% padding on mobile */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Ensure image is always first on mobile */
.content-section .image-block {
    order: -1;
}

/* Desktop: 2-column layout with 80% content width, 10% margins */
@media (min-width: 768px) {
    .content-section {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 5vh 10%;
        /* Reduced spacing - about the width of one margin */
        gap: 10%;
        /* 10% gap between columns */
        box-sizing: border-box;
    }

    /* Reset order on desktop to respect HTML structure and row-reverse */
    .content-section .image-block {
        order: 0;
    }
}

.text-block {
    width: 100%;
    /* Full width on mobile */
}

@media (min-width: 768px) {
    .text-block {
        width: 25%;
        /* 25% of the 80% content area */
        flex-shrink: 0;
    }
}

.image-block {
    width: 100%;
    /* Full width on mobile */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .image-block {
        width: 75%;
        /* 75% of the 80% content area */
        flex-shrink: 0;
    }
}

.image-block img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.image-block img:hover {
    transform: scale(1.02);
}

/* Section 3: Single-column image with margins, no height limit */
.section-3-single-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-3-single-image .image-block {
    width: 100%;
    max-width: none;
}

.section-3-single-image .image-block img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Section 6: Reversed columns (Image Left, Text Right) */
@media (min-width: 768px) {
    .section-6-reversed {
        flex-direction: row-reverse;
    }
}

/* Section 2: Flip columns (Image Left, Text Right) and reduce image width */
@media (min-width: 768px) {
    .content-section:nth-child(2) {
        flex-direction: row-reverse;
    }
}

/* Section 5 (About Luke): Flip columns and increase image height */
@media (min-width: 768px) {
    .content-section:nth-child(5) {
        flex-direction: row-reverse;
    }

    .content-section:nth-child(5) .image-block img {
        max-height: none;
        /* Remove height restriction */
    }
}

/* Section 8 (Family Time): Flip columns */
@media (min-width: 768px) {
    .content-section:nth-child(8) {
        flex-direction: row-reverse;
    }
}

/* Full Width Collage Section */
.content-section:has(.full-width) {
    max-width: 100%;
    padding: 0;
    display: block;
}

.image-block.full-width {
    width: 100%;
    height: 60vh;
    max-height: 800px;
    overflow: hidden;
    border-radius: 0;
}

.image-block.full-width img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    max-height: none;
}

/* Section 2: Facts Grid with Large Emoji Icons */
.facts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .facts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.facts-grid p {
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    /* Center all text */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center content */
    gap: 0.75rem;
}

.emoji-icon {
    font-size: 2.5rem;
    /* Decreased from 4rem */
    display: block;
    line-height: 1;
}

/* Favorites List */
.favorites-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .favorites-list {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 2rem;
    }
}

.favorites-list li {
    margin-bottom: 0;
    color: #4a5568;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.favorites-list strong {
    color: #2d3748;
    font-weight: 700;
    margin-right: 0.5rem;
}

/* ===== Contact Section ===== */
.contact-section {
    background: #f8f9fa;
    padding: 6rem 1.5rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

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

.contact-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #0f392b;
}

.contact-container>p {
    text-align: center;
    margin-bottom: 3rem;
    color: #718096;
    font-size: 1.1rem;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #4a5568;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #2d3748;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0f392b;
    box-shadow: 0 0 0 3px rgba(15, 57, 43, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: #0f392b;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 57, 43, 0.2);
    background: #0a261d;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 2rem;
    color: #718096;
    font-size: 0.9rem;
    background-color: #e6e3e3;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .navbar {
        position: relative;
        /* Scroll with page */
        padding: 1rem;
    }

    .nav-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .content-section {
        flex-direction: column !important;
        /* Stack everything */
        gap: 2rem;
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .text-block {
        text-align: center;
        padding: 0;
    }

    .contact-section {
        padding: 3rem 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* ===== Animations ===== */
/* Animation removed for stability */