
/* ===== Eagle River Log Cabin — Global Styles ===== */

/* --- Base / Theme --- */
:root {
    --bg: #081116;
    --card: #0e1822;
    --text: #cccccc;
    --text-dim: #9aa3ad;
    --text-faint: #777;
    --border: #222;
    --white: #fff;
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Layout Wrappers --- */
.wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1em 1.5em;
    text-align: center;
}

/* Header & Footer */
.header, header {
    text-align: center;
    padding: 1em 0;
}

    .header img, header img {
        max-width: 520px;
        width: 92%;
        height: auto;
    }

footer {
    margin: 4em 0 2em;
    color: var(--text-faint);
    text-align: center;
}

/* --- Headings / Copy --- */
h1 {
    color: var(--white);
    margin: .5em 0
}

h2 {
    color: var(--white)
}

.intro {
    max-width: 760px;
    margin: 0 auto 2em;
    opacity: .9;
}

/* --- Links / Buttons --- */
a {
    color: inherit
}

.btn, .map-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s ease, opacity .2s ease, text-decoration-color .2s ease;
}

    .btn:hover, .map-link:hover {
        color: var(--white);
        text-decoration: underline;
    }

/* --- Homepage Grid Cards --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2em;
    margin: 2em 0 2.5em;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2em;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 16px rgba(0,0,0,.25);
    }

/* --- Address line under/over ALASKA --- */
.address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4em;
    color: var(--text);
    font-size: 1rem;
    letter-spacing: 1px;
    margin: -.5em 0 1.5em;
}

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

        .address a:hover {
            color: var(--white);
            text-decoration: underline;
        }

    .address svg {
        width: 16px;
        height: 16px;
        fill: var(--text);
        transition: fill .2s ease;
    }

    .address:hover svg {
        fill: var(--white);
    }

/* --- Adventures Grid (Half-Day / Day Trips / Overnights) --- */
.adventure-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8em;
    justify-content: center;
    padding-bottom: 3em;
}

.adventure {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1em;
    text-align: left;
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex; /* equal-height cards */
    flex-direction: column;
    justify-content: space-between;
}

    .adventure:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 12px rgba(255,255,255,.08);
    }

    .adventure img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: .8em;
    }

    .adventure h2 {
        font-size: 1.25rem;
        margin: .3em 0;
        color: var(--white)
    }

    .adventure p {
        margin: .5em 0;
        line-height: 1.5em
    }

/* --- Utilities --- */
.center {
    text-align: center
}

.muted {
    color: var(--text-dim)
}

.hidden {
    display: none !important
}

/* --- Responsive Breakpoints --- */
@media (max-width: 992px) {
    .wrapper {
        padding: 1em
    }

    .adventure-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5em;
    }

    .adventure img {
        height: 180px
    }
}

@media (max-width: 600px) {
    .wrapper {
        padding: .5em
    }

    h1 {
        font-size: 1.6rem
    }

    .adventure-list {
        grid-template-columns: 1fr;
        gap: 1.2em
    }

    .adventure img {
        height: 170px
    }

    .adventure h2 {
        font-size: 1.1rem
    }
}
