/* ===== Custom Properties ===== */
:root {
    --green: #3d6b4f;
    --green-dark: #2a4d38;
    --green-light: #e8f0eb;
    --amber: #c8922a;
    --amber-light: #f5e8d0;
    --bg: #f7f4ef;
    --bg-alt: #eeeae3;
    --text: #2c2c2c;
    --text-light: #666;
    --white: #ffffff;
    --nav-height: 64px;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
}

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

a {
    color: var(--green);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

address {
    font-style: normal;
}

/* ===== Typography ===== */
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--green-dark); margin-bottom: 0.5rem; }
h3 { font-size: 1.2rem; color: var(--green-dark); margin-bottom: 0.4rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.15rem; color: #444; }
.small { font-size: 0.875rem; color: var(--text-light); }

/* ===== Layout ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

.section-header a { color: var(--green); }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: var(--green);
    border-color: var(--green);
}

.btn-secondary:hover {
    background: var(--green-light);
    text-decoration: none;
}

.btn-amber {
    background: var(--amber);
    color: var(--white);
    border-color: var(--amber);
}

.btn-amber:hover {
    background: #a87420;
    border-color: #a87420;
    text-decoration: none;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ===== Navigation ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--white);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 1000;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--green-dark);
    text-decoration: none;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.nav-links a {
    display: block;
    padding: 0.4rem 0.65rem;
    color: var(--text);
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}

.nav-links a:hover {
    background: var(--green-light);
    color: var(--green-dark);
}

.nav-cta {
    background: var(--green) !important;
    color: var(--white) !important;
    font-weight: bold;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background: var(--green-dark) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    background: url('images/susaahuset.jpg') center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: var(--nav-height);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.hero-content h1 {
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ===== About ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

.about-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--green);
}

.info-card h3 { margin-bottom: 0.75rem; }
.info-card address { margin-bottom: 0.5rem; line-height: 1.6; }
.info-card a { color: var(--green); word-break: break-all; }
.info-card .small { margin-top: 0.75rem; }

/* ===== Activities ===== */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.activity-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
}

.activity-img {
    height: 180px;
    background: var(--green) center / cover no-repeat;
    flex-shrink: 0;
}

.activity-img-plain {
    background: var(--card-color, var(--green)) !important;
}

.activity-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.activity-schedule {
    font-size: 0.8rem;
    color: var(--amber);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.activity-contact {
    font-size: 0.875rem;
    color: var(--text-light);
    border-top: 1px solid var(--bg-alt);
    padding-top: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.activity-contact a { color: var(--green); }

/* ===== Løvfaldsdag ===== */
.section-leaves {
    background: url('images/fallleaves.jpg') center / cover no-repeat;
    position: relative;
    color: var(--white);
}

.section-leaves::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(25, 45, 15, 0.78);
}

.section-leaves .container { position: relative; }
.section-leaves h2 { color: var(--white); }
.section-leaves h3 { color: var(--white); font-size: 1.05rem; }
.section-leaves .section-header p { color: rgba(255, 255, 255, 0.85); }
.section-leaves .lead { color: rgba(255, 255, 255, 0.9); }

.lovfald-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.lovfald-activity {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    padding: 1.25rem;
    backdrop-filter: blur(4px);
}

.lovfald-activity p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

/* ===== Membership ===== */
.membership-content {
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}

.membership-content .btn { margin-top: 1rem; }

/* ===== Sponsors ===== */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.sponsor-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sponsor-card img {
    max-height: 80px;
    max-width: 160px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.sponsor-card.no-logo {
    justify-content: center;
    border: 2px dashed var(--bg-alt);
}

.sponsor-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.sponsor-card p { font-size: 0.875rem; color: var(--text-light); margin: 0; }
.sponsor-card a { color: var(--green); }

/* ===== Contact ===== */
.contact-cta {
    text-align: center;
    margin-bottom: 3.5rem;
}

.contact-cta .small { margin-top: 0.75rem; }

.board-section h3 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
}

.board-member {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 3px solid var(--green);
}

.board-member h4 { color: var(--green-dark); margin-bottom: 0.2rem; }
.board-member p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem; }
.board-member a { font-size: 0.9rem; color: var(--green); }

/* ===== Footer ===== */
.footer {
    background: var(--green-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer a { color: rgba(255, 255, 255, 0.65); }
.footer a:hover { color: var(--white); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        gap: 0.1rem;
    }

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

    .nav-links a { padding: 0.6rem 0.75rem; }
    .nav-cta { margin-left: 0; margin-top: 0.25rem; }

    .hero { min-height: 80vh; }

    .about-links { flex-direction: column; }

    .footer-content { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .section { padding: 3rem 0; }

    .activities-grid,
    .sponsors-grid { grid-template-columns: 1fr; }

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

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