/*
Theme Name: Dagalifjellets Vel
Template: astra
Version: 1.0.0
Description: Moderne fjellportal for Dagalifjellets Vel
*/

/* Fargepalett */
:root {
    --dv-green: #173b35;
    --dv-light: #f6f4ee;
    --dv-sand: #e9e2d2;
    --dv-text: #253c36;
}

body {
    background: var(--dv-light);
    color: var(--dv-text);
}

h1, h2, h3 {
    color: var(--dv-green);
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }

/* Navigasjon */
.main-header-bar {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,.06);
}

.main-header-menu .menu-link {
    font-weight: 600;
}

/* Forsiden */
.home .entry-title {
    display: none;
}

.home .entry-content > .wp-block-group:first-child {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 60px;
    background-color: var(--dv-green);
}

.home .entry-content > .wp-block-group:first-child h1 {
    color: #fff;
}

/* Innholdskort */
.home .wp-block-columns {
    gap: 24px;
    margin-top: 35px;
    margin-bottom: 65px;
}

.home .wp-block-columns > .wp-block-column {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,.055);
    transition: transform .2s, box-shadow .2s;
}

.home .wp-block-columns > .wp-block-column:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,.10);
}

/* Knapper */
.wp-block-button__link {
    border-radius: 8px;
    padding: 14px 28px;
    font-weight: 600;
}

/* Nyheter */
.wp-block-latest-posts li {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
}

/* Mobil */
@media (max-width: 768px) {
    .home .wp-block-columns {
        gap: 15px;
    }

    .home .wp-block-columns > .wp-block-column {
        padding: 20px;
    }
}

/* Dagalifjellets Vel – Hero med fjellbilde */
.home .entry-content > .wp-block-group:first-child {
    position: relative;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;

    background-image:
        linear-gradient(
            90deg,
            rgba(12, 38, 35, 0.84) 0%,
            rgba(12, 38, 35, 0.52) 55%,
            rgba(12, 38, 35, 0.18) 100%
        ),
        url('https://wp.fellestrust.org/wp-content/uploads/2026/10/20210129_161928-scaled-1.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home .entry-content > .wp-block-group:first-child h1,
.home .entry-content > .wp-block-group:first-child p {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .home .entry-content > .wp-block-group:first-child {
        min-height: 430px;
        border-radius: 8px;
        background-position: center;
    }
}

/* Dagalifjellets Vel – Forside v2 */

/* Begrens innholdets bredde */
.home .entry-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Aktivitetskort */
.home .wp-block-columns > .wp-block-column {
    border: 1px solid #e5e9e4;
    transition: transform .25s ease, box-shadow .25s ease;
}

.home .wp-block-columns > .wp-block-column:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(20,50,40,.13);
}

.home .wp-block-column h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.home .wp-block-column a {
    color: #176b52;
    font-weight: 600;
    text-decoration: none;
}

/* Nyheter i rutenett */
.home .wp-block-latest-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    padding: 0;
    margin: 35px 0 45px;
}

.home .wp-block-latest-posts li {
    margin: 0;
    padding: 0 0 20px;
    overflow: hidden;
    border-radius: 14px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
}

.home .wp-block-latest-posts__featured-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.home .wp-block-latest-posts__post-title,
.home .wp-block-latest-posts__post-date {
    display: block;
    margin: 12px 20px;
}

.home .wp-block-latest-posts__post-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #173b35;
    text-decoration: none;
}

.home .wp-block-latest-posts__post-date {
    color: #718078;
    font-size: .85rem;
}

/* Responsivt */
@media (max-width: 900px) {
    .home .wp-block-latest-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .home .wp-block-latest-posts {
        grid-template-columns: 1fr;
    }
}

/* Dagalifjellets Vel – Nyhetsarkiv */
.blog .site-content .ast-container {
    max-width: 1250px;
}

.blog .site-main {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.blog .site-main > .ast-row {
    display: contents;
}

.blog .site-main article {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    transition: transform .2s ease;
}

.blog .site-main article:hover {
    transform: translateY(-5px);
}

.blog .site-main article .post-thumb img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.blog .site-main article .entry-title {
    font-size: 1.3rem;
    line-height: 1.4;
}

.blog .site-main article .entry-title a {
    color: #173b35;
}

.blog .site-main > .ast-pagination,
.blog .site-main > .navigation {
    grid-column: 1 / -1;
}

@media (max-width: 1000px) {
    .blog .site-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .blog .site-main {
        grid-template-columns: 1fr;
    }
}

/* Dagalifjellets Vel – Dokumentarkiv */

.dfv-archive {
    max-width: 1100px;
    margin: 40px auto;
}

.dfv-archive-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.dfv-search {
    flex: 1;
    min-width: 0;
}

.dfv-year {
    width: 180px;
}

.dfv-search,
.dfv-year {
    padding: 14px 18px;
    border: 1px solid #d9e1dc;
    border-radius: 10px;
    background: #fff;
}

.dfv-doc-list {
    display: grid;
    gap: 12px;
}

.dfv-doc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 22px 26px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,.045);
}

.dfv-doc[hidden],
.dfv-no-results[hidden] {
    display: none !important;
}

.dfv-doc-year {
    color: #687b72;
    font-size: .85rem;
}

.dfv-doc h3 {
    margin: 5px 0 0;
    font-size: 1.1rem;
}

.dfv-doc h3 a,
.dfv-doc-link {
    color: #173b35;
    text-decoration: none;
}

.dfv-doc-link {
    white-space: nowrap;
    font-weight: 600;
}

@media (max-width: 650px) {
    .dfv-archive-filters {
        flex-direction: column;
    }

    .dfv-year {
        width: 100%;
    }

    .dfv-doc {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }
}

.dfv-login-box {
    background: #e9e2d2;
    padding: 35px;
    border-radius: 16px;
    margin: 35px 0;
}

.dfv-login-box h2 {
    margin-top: 0;
}

.dfv-login-box .wp-block-button__link {
    background: #173b35;
    color: white;
}

/* Rubic medlemsknapper */
.dfv-rubic-actions {
    background: #e9e2d2;
    padding: 40px 25px;
    border-radius: 16px;
    margin: 35px 0;
}

.dfv-rubic-actions h2 {
    margin-top: 0;
}

.dfv-register-button .wp-block-button__link {
    background: #173b35;
    color: #fff;
}

.dfv-login-button .wp-block-button__link {
    background: #fff;
    color: #173b35;
    border: 2px solid #173b35;
}

/* Dagalifjellets Vel - Footer */
.dfv-footer {
    background: #173b35;
    color: #f7f2e6;
    margin-top: 60px;
    padding: 55px 25px 0;
}

.dfv-footer-inner {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 45px;
}

.dfv-footer h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.dfv-footer p {
    color: #e2e7df;
}

.dfv-footer a {
    display: block;
    color: #e2e7df;
    text-decoration: none;
    margin-bottom: 10px;
}

.dfv-footer a:hover {
    color: #f0df74;
}

.dfv-footer-bottom {
    max-width: 1200px;
    margin: 35px auto 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.2);
    font-size: .9rem;
}

@media (max-width: 700px) {
    .dfv-footer-inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}
