/* ===== CSS RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary-color: #3a0a0a;        /* Mørk rød-brun, for bakgrunn */
    --secondary-color: #7b1e1e;      /* Dyp rød, for sekundære elementer */
    --accent-color: #e63946;         /* Klar rød aksent, for knapper og highlights */
    --text-color: #2c3e50;
    --text-light: #6c757d;
    --white-color: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--warning-color) 100%);

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Font Sizes */
    --h1-font-size: 3.5rem;
    --h2-font-size: 2.5rem;
    --h3-font-size: 1.75rem;
    --h4-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.75rem;

    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

    /* Spacing */
    --header-height: 4.5rem;
    --section-padding: 6rem 0;
    --container-margin: 0 1.5rem;
    --mb-0-25: 0.25rem;
    --mb-0-5: 0.5rem;
    --mb-0-75: 0.75rem;
    --mb-1: 1rem;
    --mb-1-25: 1.25rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;

    /* Border Radius */
    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem;

    /* Shadows */
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.7s ease;

    /* Z-index */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media screen and (max-width: 992px) {
    :root {
        --h1-font-size: 2.75rem;
        --h2-font-size: 2rem;
        --h3-font-size: 1.5rem;
        --h4-font-size: 1.125rem;
        --normal-font-size: 0.938rem;
        --small-font-size: 0.813rem;
        --smaller-font-size: 0.75rem;
    }
}

/* ===== BASE STYLES ===== */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: var(--normal-font-size);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white-color);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: var(--font-semi-bold);
    line-height: 1.2;
}

ul { list-style: none; }

a { text-decoration: none; color: inherit; }

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

button { border: none; outline: none; cursor: pointer; font-family: inherit; }

input, textarea, select { border: none; outline: none; font-family: inherit; }

/* Focus styles (tilgjengelighet) */
:where(a, button, input, textarea, select, summary):focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Skip link */
.skip-to-content:focus {
    position: fixed !important;
    left: 1rem !important;
    top: 1rem !important;
    width: auto !important;
    height: auto !important;
    padding: 0.5rem 0.75rem;
    background: var(--primary-color);
    color: var(--white-color);
    z-index: calc(var(--z-modal) + 1);
    box-shadow: var(--shadow-medium);
    border-radius: 0.5rem;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
    max-width: 1200px;
    margin: var(--container-margin);
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: var(--section-padding);
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.section__header { text-align: center; margin-bottom: var(--mb-3); }

.section__subtitle {
    display: inline-block;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--mb-0-5);
}

.section__title {
    font-size: var(--h2-font-size);
    color: var(--primary-color);
    margin-bottom: var(--mb-1);
}

.section__title-accent { color: var(--secondary-color); }

.section__description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--mb-0-5);
    padding: 0.875rem 1.5rem;
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    min-height: 44px; /* mobile touch target */
}

.btn--small { padding: 0.5rem 0.875rem; font-size: var(--small-font-size); min-height: 36px; }

.btn--primary { background: var(--gradient-primary); color: var(--white-color); box-shadow: var(--shadow-light); }

.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-medium); }

.btn--secondary { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }

.btn--secondary:hover { background: var(--primary-color); color: var(--white-color); }

.btn--large { padding: 1rem 2rem; font-size: var(--h4-font-size); }

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    z-index: var(--z-fixed);
    transition: var(--transition-fast);
}
.header.scroll-header {
    box-shadow: var(--shadow-medium);
    background: rgba(255, 255, 255, 0.98);
}

.nav {
    height: var(--header-height);
    display: flex; justify-content: space-between; align-items: center;
}

.nav__logo {
    display: flex; align-items: center; gap: var(--mb-0-5);
    font-family: var(--font-heading);
    font-size: var(--h4-font-size);
    font-weight: var(--font-bold);
    color: var(--primary-color);
}
.nav__logo i { font-size: 1.5rem; color: var(--secondary-color); }

/* Sørg for at menyen alltid ligger øverst når den er åpen */
.nav__menu { display: flex; align-items: center; z-index: var(--z-modal); }
.nav__list { display: flex; gap: 2rem; }

.nav__link {
    font-weight: var(--font-medium);
    color: var(--text-color);
    transition: var(--transition-fast);
    position: relative;
}
.nav__link:hover,
.nav__link.active-link { color: var(--secondary-color); }
.nav__link::after {
    content: ''; position: absolute; bottom: -0.5rem; left: 0;
    width: 0; height: 2px; background: var(--secondary-color);
    transition: var(--transition-fast);
}
.nav__link:hover::after,
.nav__link.active-link::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: var(--mb-1); }
.nav__toggle, .nav__close { display: none; font-size: 1.25rem; color: var(--primary-color); cursor: pointer; }

/* ===== HERO SECTION ===== */
.hero {
    padding-top: calc(var(--header-height) + 2rem);
    min-height: 100vh;
    display: flex; align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.hero__container {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3rem; align-items: center;
}
.hero__title { font-size: var(--h1-font-size); color: var(--primary-color); margin-bottom: var(--mb-1); line-height: 1.1; }
.hero__title-accent { color: var(--secondary-color); }
.hero__description { font-size: var(--h4-font-size); color: var(--text-light); margin-bottom: var(--mb-2); line-height: 1.6; }
.hero__actions { display: flex; gap: var(--mb-1); margin-bottom: var(--mb-3); flex-wrap: wrap; }
.hero__stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: var(--mb-1-5); font-variant-numeric: tabular-nums;
}
.hero__stat { text-align: center; }
.hero__stat-number { display: block; font-size: var(--h3-font-size); font-weight: var(--font-bold); color: var(--secondary-color); }
.hero__stat-text { font-size: var(--small-font-size); color: var(--text-light); }
.hero__image { position: relative; border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow-heavy); }
.hero__img { width: 100%; height: 500px; object-fit: cover; }
.hero__image-overlay {
    position: absolute; inset: 0 0 0 0;
    background: linear-gradient(45deg, rgba(44, 62, 80, 0.3) 0%, transparent 50%);
    display: flex; align-items: flex-end; padding: 2rem;
}
.hero__badge {
    display: flex; align-items: center; gap: var(--mb-0-5);
    background: rgba(255, 255, 255, 0.9); padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm); font-weight: var(--font-medium);
    color: var(--primary-color); backdrop-filter: blur(10px);
}
.hero__badge i { color: var(--secondary-color); }

/* ===== ABOUT SECTION ===== */
.about__container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about__description { margin-bottom: var(--mb-1-5); color: var(--text-light); line-height: 1.8; }
.about__features { display: flex; flex-direction: column; gap: var(--mb-1-5); }
.about__feature { display: flex; gap: var(--mb-1); align-items: flex-start; }
.about__feature-icon {
    flex-shrink: 0; width: 3rem; height: 3rem;
    background: var(--gradient-secondary); border-radius: var(--border-radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--white-color); font-size: 1.25rem;
}
.about__feature-title { font-size: var(--h4-font-size); color: var(--primary-color); margin-bottom: var(--mb-0-25); }
.about__feature-description { color: var(--text-light); line-height: 1.6; }
.about__image { position: relative; border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow-medium); }
.about__img { width: 100%; height: 400px; object-fit: cover; }
.about__experience {
    position: absolute; top: 2rem; left: 2rem;
    background: var(--gradient-primary); color: var(--white-color);
    padding: 1.5rem; border-radius: var(--border-radius-md);
    text-align: center; box-shadow: var(--shadow-medium);
}
.about__experience-number { display: block; font-size: var(--h2-font-size); font-weight: var(--font-bold); }
.about__experience-text { font-size: var(--small-font-size); font-weight: var(--font-medium); }

/* ===== SERVICES SECTION ===== */
.services { background: var(--light-gray); }

.services__container {
    display: grid; grid-template-columns: repeat(2, minmax(350px, 1fr));
    gap: 2rem; margin-top: var(--mb-3);
}
.service__card {
    background: var(--white-color); padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg); box-shadow: var(--shadow-light);
    transition: var(--transition-medium); position: relative; overflow: hidden;
}
.service__card:hover { transform: translateY(-10px); box-shadow: var(--shadow-heavy); }
.service__card--featured { background: var(--gradient-primary); color: var(--white-color); }
.service__card--featured .service__title,
.service__card--featured .service__description { color: var(--white-color); }
.service__badge {
    position: absolute; top: 1rem; right: 1rem;
    background: var(--secondary-color); color: var(--white-color);
    padding: 0.5rem 1rem; border-radius: var(--border-radius-sm);
    font-size: var(--small-font-size); font-weight: var(--font-medium);
}
.service__icon {
    width: 4rem; height: 4rem; background: var(--gradient-secondary);
    border-radius: var(--border-radius-md); display: flex; align-items: center; justify-content: center;
    color: var(--white-color); font-size: 2rem; margin-bottom: var(--mb-1-5);
}
.service__card--featured .service__icon { background: rgba(255, 255, 255, 0.2); }
.service__title { font-size: var(--h3-font-size); color: var(--primary-color); margin-bottom: var(--mb-1); }
.service__description { color: var(--text-light); margin-bottom: var(--mb-1-5); line-height: 1.6; }
.service__features { display: flex; flex-direction: column; gap: var(--mb-0-75); }
.service__features li { display: flex; align-items: center; gap: var(--mb-0-5); font-size: var(--small-font-size); }
.service__features i { color: var(--success-color); font-size: 0.875rem; }
.service__card--featured .service__features i { color: var(--white-color); }

/* ===== PROJECTS SECTION ===== */
/* Ny, robust filterbar */
.projects__filter {
    position: sticky;
    top: calc(var(--header-height) + 8px);
    z-index: 10;                         /* under nav__menu (1000) */
    background: var(--white-color);
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: var(--mb-1); margin-bottom: var(--mb-3);
    padding: .5rem; border-radius: .75rem; box-shadow: var(--shadow-light);
}
.projects__filter > * { flex: 0 0 auto; }

/* Når menyen er åpen: ikke sticky/overlegger ingenting */
body.nav-open .projects__filter { position: static; z-index: 0; box-shadow: none; }

/* Horisontal scroll på små skjermer hvis det blir trangt */
@media (max-width: 640px) {
  .projects__filter { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .projects__filter::-webkit-scrollbar { display: none; }
}

/* Valgfri “actions”-container helt til høyre (hvis du har den) */
.projects__filter .filter__actions { margin-left: auto; display: flex; gap: .5rem; }

.filter__btn {
    padding: 0.75rem 1.5rem; background: transparent; color: var(--text-color);
    border: 2px solid var(--light-gray); border-radius: var(--border-radius-sm);
    font-weight: var(--font-medium); transition: var(--transition-fast); cursor: pointer; min-height: 40px;
}
.filter__btn:hover,
.filter__btn--active { background: var(--secondary-color); color: var(--white-color); border-color: var(--secondary-color); }

.projects__container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem;
}
.project__card {
    background: var(--white-color); border-radius: var(--border-radius-lg); overflow: hidden;
    box-shadow: var(--shadow-light); transition: var(--transition-medium);
}
.project__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); }
.project__image { position: relative; overflow: hidden; }
.project__img { width: 100%; height: 250px; object-fit: cover; transition: var(--transition-medium); }
.project__card:hover .project__img { transform: scale(1.1); }
.project__overlay {
    position: absolute; inset: 0;
    background: rgba(44, 62, 80, 0.8);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition-fast);
}
.project__card:hover .project__overlay { opacity: 1; }
.project__actions { display: flex; gap: var(--mb-1); }
.project__btn {
    width: 3rem; height: 3rem; background: var(--white-color); color: var(--primary-color);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: var(--transition-fast); cursor: pointer;
}
.project__btn:hover { background: var(--secondary-color); color: var(--white-color); transform: scale(1.1); }
.project__content { padding: 1.5rem; }
.project__category {
    display: inline-block; background: var(--light-gray); color: var(--text-color);
    padding: 0.25rem 0.75rem; border-radius: var(--border-radius-sm);
    font-size: var(--small-font-size); font-weight: var(--font-medium); margin-bottom: var(--mb-0-75);
}
.project__title { font-size: var(--h4-font-size); color: var(--primary-color); margin-bottom: var(--mb-0-5); }
.project__description { color: var(--text-light); margin-bottom: var(--mb-1); line-height: 1.6; }
.project__details { display: flex; flex-wrap: wrap; gap: var(--mb-0-75); margin-bottom: var(--mb-1); }
.project__detail { display: flex; align-items: center; gap: var(--mb-0-25); font-size: var(--small-font-size); color: var(--text-light); }
.project__detail i { color: var(--secondary-color); }
.project__price { margin: var(--mb-1) 0; padding: var(--mb-0-75) 0; border-top: 1px solid var(--light-gray); }
.project__price-amount { font-size: var(--h3-font-size); font-weight: var(--font-bold); color: var(--secondary-color); }
.project__contact-btn { margin-top: var(--mb-0-75); width: 100%; justify-content: center; gap: var(--mb-0-5); }

/* Skjuling for filtrering (tilgjengelig) */
.is-hidden { display: none !important; visibility: hidden !important; pointer-events: none !important; }

/* ===== TESTIMONIALS SECTION ===== */
.testimonials { background: var(--light-gray); }
.testimonials__container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem; margin-top: var(--mb-3);
}
.testimonial__card {
    background: var(--white-color); padding: 2rem; border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light); transition: var(--transition-medium); position: relative;
}
.testimonial__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); }
.testimonial__card--featured { background: var(--gradient-primary); color: var(--white-color); }
.testimonial__rating { display: flex; gap: var(--mb-0-25); margin-bottom: var(--mb-1); }
.testimonial__rating i { color: var(--warning-color); font-size: 1.125rem; }
.testimonial__card--featured .testimonial__rating i { color: var(--white-color); }
.testimonial__text {
    font-style: italic; line-height: 1.8; margin-bottom: var(--mb-1-5); position: relative;
}
.testimonial__text::before {
    content: '"'; position: absolute; top: -1rem; left: -0.5rem;
    font-size: 4rem; color: var(--light-gray); font-family: serif;
}
.testimonial__card--featured .testimonial__text::before { color: rgba(255, 255, 255, 0.2); }
.testimonial__author-name { font-size: var(--h4-font-size); color: var(--primary-color); margin-bottom: var(--mb-0-25); }
.testimonial__card--featured .testimonial__author-name { color: var(--white-color); }
.testimonial__author-title { font-size: var(--small-font-size); color: var(--text-light); }
.testimonial__card--featured .testimonial__author-title { color: rgba(255, 255, 255, 0.8); }

/* ===== CONTACT SECTION ===== */
.contact__container {
    display: grid; grid-template-columns: 1fr 2fr;
    gap: 3rem; margin-bottom: var(--mb-3);
}
.contact__info { display: flex; flex-direction: column; gap: var(--mb-1-5); }
.contact__card {
    display: flex; gap: var(--mb-1);
    padding: 1.5rem; background: var(--white-color);
    border-radius: var(--border-radius-lg); box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
}
.contact__card:hover { box-shadow: var(--shadow-medium); }
.contact__card-icon {
    flex-shrink: 0; width: 3rem; height: 3rem; background: var(--gradient-secondary);
    border-radius: var(--border-radius-sm); display: flex; align-items: center; justify-content: center;
    color: var(--white-color); font-size: 1.25rem;
}
.contact__card-title { font-size: var(--h4-font-size); color: var(--primary-color); margin-bottom: var(--mb-0-25); }
.contact__card-text { color: var(--text-color); font-weight: var(--font-medium); margin-bottom: var(--mb-0-25); word-break: break-word; }
.contact__card-note { font-size: var(--small-font-size); color: var(--text-light); }
.contact__form {
    background: var(--white-color); padding: 2rem; border-radius: var(--border-radius-lg); box-shadow: var(--shadow-light);
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--mb-1-5);
}
.form__group { display: flex; flex-direction: column; }
.form__group--full { grid-column: 1 / -1; }
.form__label { font-weight: var(--font-medium); color: var(--primary-color); margin-bottom: var(--mb-0-5); }
.form__input, .form__select, .form__textarea {
    padding: 0.875rem 1rem; background: var(--light-gray);
    border-radius: var(--border-radius-sm); color: var(--text-color); transition: var(--transition-fast);
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
    background: var(--white-color); box-shadow: 0 0 0 2px var(--secondary-color);
}
.form__textarea { resize: vertical; min-height: 120px; }
.form__submit { grid-column: 1 / -1; justify-self: start; margin-top: var(--mb-1); }
.contact__map { margin-top: var(--mb-3); border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow-medium); }
.contact__map-iframe { width: 100%; height: 400px; border: none; }

/* ===== FOOTER ===== */
.footer { background: var(--primary-color); color: var(--white-color); padding: 3rem 0 1rem; }
.footer__container { display: grid; gap: 2rem; }
.footer__content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer__logo {
    display: flex; align-items: center; gap: var(--mb-0-5);
    font-family: var(--font-heading); font-size: var(--h4-font-size);
    font-weight: var(--font-bold); margin-bottom: var(--mb-1);
}
.footer__logo i { font-size: 1.5rem; color: var(--secondary-color); }
.footer__description { color: rgba(255, 255, 255, 0.8); line-height: 1.6; margin-bottom: var(--mb-1-5); }
.footer__social { display: flex; gap: var(--mb-1); }
.footer__social-link {
    width: 2.5rem; height: 2.5rem; background: rgba(255, 255, 255, 0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--white-color); transition: var(--transition-fast);
}
.footer__social-link:hover { background: var(--secondary-color); transform: translateY(-2px); }
.footer__title { font-size: var(--h4-font-size); margin-bottom: var(--mb-1); }
.footer__list { display: flex; flex-direction: column; gap: var(--mb-0-5); }
.footer__link { color: rgba(255, 255, 255, 0.8); transition: var(--transition-fast); }
.footer__link:hover { color: var(--secondary-color); }
.footer__contact {
    display: flex; align-items: center; gap: var(--mb-0-5);
    color: rgba(255, 255, 255, 0.8); margin-bottom: var(--mb-0-5); word-break: break-word;
}
.footer__contact i { color: var(--secondary-color); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1rem; margin-top: 2rem; }
.footer__bottom-content {
    display: flex; justify-content: space-between; align-items: center; gap: var(--mb-1); flex-wrap: wrap;
}
.footer__copyright { color: rgba(255, 255, 255, 0.6); font-size: var(--small-font-size); }
.footer__legal { display: flex; gap: var(--mb-1); }
.footer__legal-link { color: rgba(255, 255, 255, 0.6); font-size: var(--small-font-size); transition: var(--transition-fast); }
.footer__legal-link:hover { color: var(--secondary-color); }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed; bottom: 5.5rem; right: 1rem;
    width: 3rem; height: 3rem; background: var(--gradient-primary);
    color: var(--white-color); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-medium); transition: var(--transition-fast);
    opacity: 0; visibility: hidden; z-index: var(--z-tooltip);
}
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-2px); box-shadow: var(--shadow-heavy); }

/* ===== MOBILE CTA (sticky nederst på mobil) ===== */
.mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(8px);
    box-shadow: 0 -8px 20px rgba(0,0,0,0.08);
    display: flex; justify-content: space-around; gap: 0.5rem; z-index: var(--z-fixed);
}
.mobile-cta__btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem; border-radius: 999px; border: 1px solid #eaeaea;
    box-shadow: var(--shadow-light); min-height: 44px; font-weight: var(--font-medium);
}
.mobile-cta__btn i { font-size: 1rem; }
.mobile-cta__btn:hover { box-shadow: var(--shadow-medium); transform: translateY(-1px); }

/* ====== OM-OSS SPESIFIKKE ELEMENTER ====== */

/* Brødsmuler */
.breadcrumbs {
  background: var(--light-gray);
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: .95rem;
}
.breadcrumbs ol {
  display: flex; gap: .5rem; padding: .75rem 0; margin: 0; list-style: none;
}
.breadcrumbs a { color: var(--text-light); text-decoration: none; }
.breadcrumbs li:not(:last-child)::after {
  content: "›"; color: var(--dark-gray); margin: 0 .25rem 0 .5rem;
}
.breadcrumbs [aria-current="page"] { color: var(--text-color); font-weight: 600; }

/* Page hero */
.page-hero {
  background: linear-gradient(0deg, rgba(0,0,0,.0), rgba(0,0,0,.0));
  padding: clamp(2.5rem, 4vw, 4rem) 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  margin-top: var(--header-height);
}
.page-hero__container {
  display: grid; grid-template-columns: 1.1fr .9fr;
  align-items: center; gap: clamp(1.5rem, 3vw, 3rem);
}
.page-hero__title {
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 1.15; margin: 0 0 .75rem;
}
.page-hero__description { color: var(--text-light); max-width: 60ch; margin: 0 0 1.25rem; }
.page-hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.page-hero__img {
  width: 100%; height: auto; border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08); object-fit: cover;
}

/* Verdier/USP – gjenbruker .about__features, legger kun små tweaks */
.about__stats { margin-top: .75rem; }
.hero__stat-number { font-variant-numeric: tabular-nums; }

/* Tidslinje */
/* ===== TIMELINE (Om oss) ===== */
.timeline { background: var(--light-gray); }

/* Wrapper med vertikal linje */
.timeline__list {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 0;
  display: grid;
  gap: 2rem;
}
.timeline__list::before {
  content: "";
  position: absolute;
  left: 22px;               /* justert for dot */
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--secondary-color), var(--accent-color));
  opacity: .25;
}

/* Item */
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr; /* plass til dot + innhold */
  gap: 1rem;
  align-items: start;
}

/* Dot */
.timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 3px solid var(--white-color);
  box-shadow: 0 0 0 4px rgba(123,30,30,0.12); /* subtil glød (match sekundær) */
  position: relative;
  top: 0.15rem;
  z-index: 1;
}

/* Innholdskort */
.timeline__content {
  background: var(--white-color);
  border: 1px solid #eee;
  border-radius: var(--border-radius-lg);
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.timeline__content:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(0,0,0,0.06);
}

/* Tittel + tekst */
.timeline__title {
  font-size: var(--h4-font-size);
  color: var(--primary-color);
  margin-bottom: .35rem;
}
.timeline__content p {
  color: var(--text-light);
  line-height: 1.75;
}

/* --- Alternating layout på større skjermer --- */
@media (min-width: 900px) {
  .timeline__list {
    max-width: 1100px;
    gap: 2.5rem;
  }
  .timeline__list::before {
    left: 50%;
    transform: translateX(-1px); /* midtlinje */
  }
  .timeline__item {
    grid-template-columns: 1fr 44px 1fr; /* venstre-kort | dot | høyre-kort */
    gap: 1.25rem;
  }
  .timeline__item .timeline__dot {
    grid-column: 2;
    justify-self: center;
  }
  /* partalls- og oddetallsitems alternerer side */
  .timeline__item:nth-child(odd) .timeline__content {
    grid-column: 1; /* venstre */
    justify-self: end;
    max-width: 500px;
  }
  .timeline__item:nth-child(even) .timeline__content {
    grid-column: 3; /* høyre */
    justify-self: start;
    max-width: 500px;
  }

  /* små “piler” inn mot midtlinja */
  .timeline__item:nth-child(odd) .timeline__content {
    position: relative;
  }
  .timeline__item:nth-child(odd) .timeline__content::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 18px;
    width: 0; height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--white-color);
    filter: drop-shadow(0 0 0 rgba(0,0,0,0.08));
  }
  .timeline__item:nth-child(even) .timeline__content {
    position: relative;
  }
  .timeline__item:nth-child(even) .timeline__content::after {
    content: "";
    position: absolute;
    left: -10px;
    top: 18px;
    width: 0; height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--white-color);
    filter: drop-shadow(0 0 0 rgba(0,0,0,0.08));
  }
}

/* Mikrointeraksjoner på dot ved hover over kort */
.timeline__content:hover ~ .timeline__dot,
.timeline__item:hover .timeline__dot {
  background: var(--accent-color);
  box-shadow: 0 0 0 6px rgba(230,57,70,0.14);
}

/* Respekter redusert bevegelse */
@media (prefers-reduced-motion: reduce) {
  .timeline__content { transition: none !important; }
}

/* Små skjermer finpuss */
@media (max-width: 480px) {
  .timeline__content { padding: 1rem; }
  .timeline__title { font-size: 1.05rem; }
}


/* Team */
.team__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}
.team__card {
  background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.05); padding: 1rem; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.team__card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.08); }
.team__photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; margin-bottom: .75rem; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team__name { margin: .25rem 0 .15rem; font-weight: 600; }
.team__role { margin: 0; color: var(--text-light); }

/* Badges */
.badges__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 2vw, 1.25rem);
}
.badge__item {
  display: flex; align-items: center; gap: .6rem;
  background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 12px;
  padding: .85rem 1rem; box-shadow: 0 6px 16px rgba(0,0,0,.05);
}
.badge__item i { color: var(--accent-color); }

/* CTA */
.cta__container {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--accent-color) 12%, white),
    color-mix(in srgb, var(--accent-color) 4%, white)
  );
  border: 1px solid rgba(0,0,0,.06); border-radius: 16px;
  padding: clamp(1rem, 3vw, 1.5rem);
}
.cta__title { margin: 0 0 .25rem; }
.cta__text { margin: 0; color: var(--text-light); }
.cta__actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* FAQ */
.faq__list {
  display: grid; gap: .75rem; max-width: 900px; margin-inline: auto;
}
.faq__item {
  background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 12px;
  padding: .25rem .75rem; box-shadow: 0 6px 14px rgba(0,0,0,.04);
}
.faq__item[open] {
  border-color: color-mix(in srgb, var(--accent-color) 35%, rgba(0,0,0,.08));
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}
.faq__question {
  cursor: pointer; list-style: none; font-weight: 600;
  padding: .75rem; position: relative;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "+"; position: absolute; right: .75rem; top: 50%;
  transform: translateY(-50%); font-weight: 700; color: var(--accent-color);
}
.faq__item[open] .faq__question::after { content: "–"; }
.faq__answer { padding: 0 .75rem .75rem; color: var(--text-light); }

/* ===== ACCESSIBILITY & MICRO-UX ===== */
a:focus-visible, button:focus-visible, .summary:focus-visible, details[open] > summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-color) 60%, #0000);
  outline-offset: 2px; border-radius: 6px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1024px) {
    .container { margin-left: var(--mb-1-5); margin-right: var(--mb-1-5); }
    .hero__container, .about__container { grid-template-columns: 1fr; gap: 2rem; }
    .hero__image { order: -1; }
    .hero__stats { grid-template-columns: repeat(3, 1fr); gap: var(--mb-1); }
    .contact__container { grid-template-columns: 1fr; gap: 2rem; }
    .footer__content { grid-template-columns: repeat(2, 1fr); gap: 2rem; }

    /* Om-oss */
    .page-hero__container { grid-template-columns: 1fr; }
    .page-hero__image { order: -1; }
}

@media screen and (max-width: 768px) {
    /* Off-canvas meny */
    .nav__menu {
        position: fixed; top: 0; right: -100%; width: min(100%, 420px); height: 100vh;
        background: var(--white-color); padding: 6rem 2rem 2rem; transition: var(--transition-medium);
        z-index: var(--z-modal); box-shadow: -8px 0 24px rgba(0,0,0,0.12);
    }
    .nav__menu.show-menu { right: 0; }
    .nav__list { flex-direction: column; gap: 1.5rem; }
    .nav__link { font-size: var(--h4-font-size); }
    .nav__close, .nav__toggle { display: block; }
    .nav__close {
        position: absolute; top: 1rem; right: 1.5rem;
        font-size: 2rem; background: transparent;
    }

    .hero__actions { flex-direction: column; gap: var(--mb-1); }
    .hero__stats { grid-template-columns: 1fr; gap: var(--mb-1); text-align: left; }

    .services__container, .projects__container, .testimonials__container { grid-template-columns: 1fr; }

    /* (Beholdes – gap justeres på mobil) */
    .projects__filter { gap: var(--mb-0-5); }

    .contact__form { grid-template-columns: 1fr; padding: 1.5rem; }

    .footer__content { grid-template-columns: 1fr; text-align: center; }
    .footer__bottom-content { flex-direction: column; gap: var(--mb-1); text-align: center; }

    /* Om-oss */
    .team__grid { grid-template-columns: 1fr 1fr; }
    .badges__grid { grid-template-columns: 1fr 1fr; }
    .cta__container { grid-template-columns: 1fr; text-align: center; }
    .cta__actions { justify-content: center; }
}

@media screen and (max-width: 480px) {
    .container { margin-left: var(--mb-1); margin-right: var(--mb-1); }
    .section { padding: 4rem 0; }
    .hero { padding-top: calc(var(--header-height) + 1rem); }
    .btn { padding: 0.75rem 1.25rem; }
    .btn--large { padding: 0.875rem 1.5rem; font-size: var(--normal-font-size); }
    .service__card, .testimonial__card { padding: 1.5rem; }
    .contact__form { padding: 1rem; }

    /* Om-oss */
    .team__grid, .badges__grid { grid-template-columns: 1fr; }
    .page-hero__actions { flex-direction: column; align-items: stretch; }
}

/* Skjul mobil-CTA på større skjermer */
@media (min-width: 769px) {
    .mobile-cta { display: none; }
    .scroll-top { bottom: 2rem; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

.animate-fade-up { animation: fadeInUp 0.8s ease forwards; }
.animate-fade-left { animation: fadeInLeft 0.8s ease forwards; }
.animate-fade-right { animation: fadeInRight 0.8s ease forwards; }

/* Respekter prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    html:focus-within { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
        scroll-behavior: auto !important;
    }
}

/* --- Små forbedringer (mobil + a11y) --- */

/* Skjul "Skip to content" når den ikke er i fokus */
.skip-to-content {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}

/* Gjør hele nav-lenken klikkbar og øk tappetarget i off-canvas */
.nav__menu .nav__list a.nav__link { display: block; padding: .5rem 0; min-height: 44px; }

/* Scroll-lock når menyen er åpen (JS legger til .nav-open på <body>) */
body.nav-open { overflow: hidden; touch-action: none; }

/* Responsiv høyde på hero-bildet */
@media (max-width: 768px) { .hero__img { height: 360px; } }
@media (max-width: 480px) { .hero__img { height: 280px; } }

/* Filter-knapper: også via aria-pressed */
.filter__btn[aria-pressed="true"] {
  background: var(--secondary-color); color: var(--white-color); border-color: var(--secondary-color);
}

/* Skjul listing-toolbar når hamburger-menyen er åpen (mobil) */
@media (max-width: 768px) { body.nav-open .listing-toolbar { display: none !important; } }

/* Sikkerhet: menyen skal alltid ligge over alt */
@media (max-width: 768px) {
  .nav__menu { z-index: var(--z-modal); }
  .listing-toolbar { z-index: var(--z-fixed); } /* lavere enn menyen */
}

/* Liten “tap-bounce” på CTA-knapper (mobil) */
@media (hover: none) {
  .btn:active, .mobile-cta__btn:active {
    transform: translateY(1px); box-shadow: var(--shadow-light);
  }
}

/* === Fancy gradient-tekst på aksenter === */
.hero__title-accent, .section__title-accent {
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color), var(--secondary-color));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === Shimmer på "Autorisert bilforhandler" === */
.hero__badge { position: relative; overflow: hidden; }
.hero__badge::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.5) 20%, transparent 40%);
  transform: translateX(-130%); animation: badgeShimmer 2.4s ease-in-out infinite;
}
@keyframes badgeShimmer {
  0% { transform: translateX(-130%); }
  60% { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}

/* === Mikrointeraksjon på knapper === */
.btn { transform: translateY(0); will-change: transform, box-shadow; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-light); }

/* === Prosjektkort: depth + soft glow ved hover === */
.project__card { transform: translateZ(0); will-change: transform, box-shadow; }
.project__card:hover { box-shadow: 0 14px 40px rgba(0,0,0,0.18); }

/* === Scroll-top: “bobbe” animasjon når synlig === */
.scroll-top.show { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* === Parallax hint === */
.hero__image, .hero__content { will-change: transform; transform: translateZ(0); }

/* === Service badge: pulser forsiktig === */
.service__badge { animation: softPulse 2.6s ease-in-out infinite; }
@keyframes softPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.9; } }

/* === Tilt-glow når kort vinkles (JS under) === */
.project__card.tilt-active { box-shadow: 0 18px 50px rgba(28,46,141,0.22); }

/* === Respekter redusert bevegelse === */
@media (prefers-reduced-motion: reduce) {
  .hero__title-accent, .section__title-accent, .hero__badge::after, .scroll-top.show, .service__badge, .project__card:hover {
    animation: none !important;
  }
  .btn:hover { transform: none; }
}

/* === NAV: smart hide/show === */
.header { transition: transform 220ms ease, box-shadow 200ms ease, background 200ms ease; will-change: transform; }
.header.header--hide { transform: translateY(-100%); }

/* === NAV: sticky border-linje ved scroll === */
.header.scroll-header { box-shadow: 0 4px 18px rgba(0,0,0,0.08); border-bottom: 1px solid rgba(0,0,0,0.06); }

/* === NAV: underline-indicator (desktop) === */
.nav__list { position: relative; }
.nav__indicator {
  position: absolute; bottom: -0.35rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  width: 0; left: 0; transition: left 220ms ease, width 220ms ease, opacity 200ms ease; opacity: 0; pointer-events: none;
}

/* === Scroll progress bar (øverst) === */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
  z-index: calc(var(--z-fixed) + 2); transform: translateZ(0);
}
@media (prefers-reduced-motion: reduce) {
  .header { transition: none !important; }
  .nav__indicator { transition: none !important; }
}

/* --- Fix: forhindrer horisontal scroll/overflow på mobil --- */
html, body { max-width: 100%; overflow-x: hidden; }

/* Header logo-bilde + interaksjoner */
.nav__logo { display: inline-flex; align-items: center; text-decoration: none; border-radius: 10px; padding: 2px 4px; transition: transform .25s ease, box-shadow .25s ease, filter .25s ease; }
.nav__logo-img { height: 45px; width: auto; display: block; object-fit: contain; transition: transform .25s ease, filter .25s ease; }
.nav__logo:hover, .nav__logo:focus-visible { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(28,46,141,.10); }
.nav__logo:hover .nav__logo-img, .nav__logo:focus-visible .nav__logo-img { transform: scale(1.04); filter: drop-shadow(0 4px 10px rgba(28,46,141,.22)); }
.nav__logo:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.nav__logo:active .nav__logo-img { transform: scale(0.99); filter: none; }
.nav__logo:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 2px; }
@media (max-width: 768px) { .nav__logo-img { height: 30px; } }
@media (prefers-reduced-motion: reduce) { .nav__logo, .nav__logo-img { transition: none !important; } }

/* Ytterligere mobiljusteringer for lister/filtre */
@media (max-width: 768px) {
  .nav { padding-inline: .5rem; }
  .nav__logo { min-width: 0; display: flex; align-items: center; gap: .5rem; }
  .nav__logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
  .nav__actions { margin-left: auto; }
  .nav__toggle { width: 44px; height: 44px; display: grid; place-items: center; line-height: 1; }
  .nav__menu { right: -100%; left: auto; width: min(100vw, 420px); padding-left: 2rem; }
  .nav__menu.show-menu { right: 0; }
}

/* iOS safe area */
@supports(padding:max(0px)) {
  @media (max-width: 768px) {
    .nav__menu {
      padding-top: max(6rem, calc(1rem + env(safe-area-inset-top)));
      padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
  }
}

/* ====== Bilutvalg: mobil-optimalisering ====== */
@media (max-width: 768px) {
  .listing-toolbar {
    position: sticky; top: calc(var(--header-height) + 0.5rem); z-index: var(--z-fixed);
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06); border-radius: 12px;
    padding: 0.75rem; margin-bottom: 0.75rem;
  }
  .chips-scroll {
    display: flex; gap: 0.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; padding-bottom: 0.25rem; margin-bottom: 0.5rem;
  }
  .chips-scroll .filter__btn {
    flex: 0 0 auto; scroll-snap-align: start; padding: 0.5rem 0.875rem;
    border-radius: 999px; min-height: 38px;
  }
  .toolbar-row {
    display: grid; grid-template-columns: 1fr auto auto; gap: 0.5rem; align-items: end;
  }
  .toolbar-row .form__input, .toolbar-row .form__select { height: 42px; }
  .btn--filters {
    display: inline-flex; align-items: center; gap: .5rem; padding: 0.5rem 0.875rem;
    border-radius: 999px; border: 1px solid #eaeaea; box-shadow: var(--shadow-light);
    background: #fff; font-weight: var(--font-medium);
  }
  #cars-grid.projects__container { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .pagination-mobile-full { display: flex; gap: 0.75rem; align-items: center; }
  .pagination-mobile-full .btn { flex: 1 1 auto; min-width: 0; }
}
@media (min-width: 769px) {
  .btn--filters { display: none; }
  .filters-drawer, .filters-backdrop { display: none !important; }
  .listing-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; }
}
.filters-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  opacity: 0; visibility: hidden; transition: opacity var(--transition-fast); z-index: var(--z-modal);
}
.filters-backdrop.show { opacity: 1; visibility: visible; }
.filters-drawer {
  position: fixed; left: 0; right: 0; bottom: 0; background: #fff;
  border-top-left-radius: 16px; border-top-right-radius: 16px;
  box-shadow: 0 -12px 30px rgba(0,0,0,.15);
  transform: translateY(100%); transition: transform var(--transition-medium);
  z-index: calc(var(--z-modal) + 1); max-height: 85vh; overflow: auto;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}
.filters-drawer.show { transform: translateY(0); }
.filters-drawer__header {
  position: sticky; top: 0; background: #fff; padding: 0.75rem 1rem; border-bottom: 1px solid #eee;
  display: flex; justify-content: space-between; align-items: center;
}
.filters-drawer__title { font-family: var(--font-heading); font-size: 1.125rem; font-weight: var(--font-semi-bold); }
.filters-drawer__close { background: transparent; font-size: 1.25rem; line-height: 1; padding: 0.25rem 0.5rem; }

/* Kort: litt strammere spacing på små skjermer */
@media (max-width: 480px) {
  .project__card { border-radius: var(--border-radius-md); }
  .project__content { padding: 1rem; }
  .project__img { height: 220px; object-fit: cover; }
  .project__title { font-size: 1.05rem; }
  .project__details { gap: 0.5rem; }
  .project__price-amount { font-size: 1.25rem; }
}

/* Små forbedringer for søk/inputs i verktøylinja */
.listing-toolbar .form__input::placeholder { color: var(--dark-gray); }
.listing-toolbar .form__select { background: var(--light-gray); }

/* Bilutvalg: hindre at "Filtre" havner utenfor */
@media (max-width: 768px) {
  .toolbar-row { grid-template-columns: minmax(0, 1fr) minmax(140px, 33%) auto; gap: 0.5rem; align-items: end; }
  .toolbar-row > * { min-width: 0; }
  .toolbar-row select, .toolbar-row .form__select { width: 100%; }
  .btn--filters { white-space: nowrap; }
}
@media (max-width: 420px) {
  .toolbar-row { grid-template-columns: minmax(0, 1fr) auto; }
  .btn--filters { grid-column: 1 / -1; justify-self: end; }
}
/* Match forsiden sitt hero-utseende på undersider */
.page-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* (valgfritt) Fjern “hard” overgang fra breadcrumbs til hero */
.breadcrumbs {
  background: transparent;
  border-bottom: 1px solid rgba(0,0,0,0.04); /* subtil linje */
}
.footer-credit {
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  margin-top: 1rem;
}

.footer-credit a {
  color: inherit;
  text-decoration: underline;
}
