/*
Theme Name: ByggUp Child
Theme URI: https://www.byggup.no/
Description: Child theme for ByggUp AS, based on Mint theme. Adds dedicated templates for inspiration articles and the article archive.
Author: ByggUp AS
Template: mint
Version: 1.0.0
Text Domain: byggup-child
*/

/* ---------------------------------------------------------
   ByggUp – inspiration / article templates
   --------------------------------------------------------- */

body.single-post #single-wrapper,
body.blog #index-wrapper,
body.blog .wrapper {
    padding-top: 0;
}

.byggup-article {
    background: #fff;
}

.byggup-article-hero {
    padding: 76px 24px 40px;
}

.byggup-article-hero-inner,
.byggup-article-content,
.byggup-article-cta-inner,
.byggup-blog-inner {
    width: min(100%, 920px);
    margin: 0 auto;
}

.byggup-article-kicker {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    opacity: .65;
}

.byggup-article-title {
    margin: 0;
    max-width: 900px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
    font-weight: 600;
}

.byggup-article-meta {
    margin-top: 20px;
    font-size: 15px;
    opacity: .68;
}

.byggup-article-image {
    width: min(calc(100% - 48px), 1180px);
    margin: 0 auto 52px;
}

.byggup-article-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 680px;
    object-fit: cover;
    border-radius: 2px;
}

.byggup-article-content {
    padding: 0 24px 72px;
    font-size: 19px;
    line-height: 1.75;
}

.byggup-article-content > * {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.byggup-article-content h2,
.byggup-article-content h3 {
    line-height: 1.2;
    font-weight: 600;
}

.byggup-article-content h2 {
    margin-top: 52px;
    margin-bottom: 18px;
    font-size: clamp(28px, 3vw, 38px);
}

.byggup-article-content h3 {
    margin-top: 36px;
    margin-bottom: 14px;
    font-size: clamp(23px, 2.4vw, 30px);
}

.byggup-article-content p,
.byggup-article-content ul,
.byggup-article-content ol {
    margin-top: 0;
    margin-bottom: 24px;
}

.byggup-article-content img {
    height: auto;
    max-width: 100%;
}

.byggup-article-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.byggup-article-cta {
    background: #001a2d;
    color: #fff;
    padding: 56px 24px;
}

.byggup-article-cta h2 {
    color: #fff;
    margin: 0 0 12px;
    font-size: clamp(28px, 3vw, 40px);
}

.byggup-article-cta p {
    margin: 0 0 24px;
    max-width: 660px;
    font-size: 18px;
}

.byggup-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    background: #a8bac7;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: opacity .2s ease;
}

.byggup-btn:hover {
    opacity: .88;
}

/* Blog / inspiration archive */
.byggup-blog {
    padding: 76px 24px 88px;
    background: #fff;
}

.byggup-blog-header {
    margin-bottom: 46px;
}

.byggup-blog-title {
    margin: 0 0 12px;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.08;
    font-weight: 600;
}

.byggup-blog-intro {
    margin: 0;
    max-width: 740px;
    font-size: 19px;
    line-height: 1.6;
    opacity: .75;
}

.byggup-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 28px;
}

.byggup-card {
    margin: 0;
}

.byggup-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f3f4;
    margin-bottom: 18px;
}

.byggup-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

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

.byggup-card-meta {
    margin-bottom: 8px;
    font-size: 14px;
    opacity: .62;
}

.byggup-card-title {
    margin: 0 0 12px;
    font-size: 27px;
    line-height: 1.2;
}

.byggup-card-title a {
    color: inherit;
    text-decoration: none;
}

.byggup-card-excerpt {
    margin-bottom: 18px;
    line-height: 1.6;
    opacity: .8;
}

.byggup-card-link {
    font-weight: 600;
    text-decoration: none;
}

.byggup-pagination {
    margin-top: 54px;
}

.byggup-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.byggup-pagination .page-numbers {
    padding: 8px 12px;
    text-decoration: none;
}

@media (max-width: 767px) {
    .byggup-article-hero,
    .byggup-blog {
        padding-top: 48px;
    }

    .byggup-article-image {
        width: calc(100% - 32px);
        margin-bottom: 36px;
    }

    .byggup-article-content {
        padding-left: 20px;
        padding-right: 20px;
        font-size: 18px;
    }

    .byggup-blog-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }
}
