/*
Theme Name: Hausken Tekniske
Theme URI: https://hauskentekniske.no/
Author: Hausken Tekniske AS
Description: Et ryddig, profesjonelt og responsivt WordPress-tema for Hausken Tekniske AS.
Version: 1.2.1
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: hausken-tekniske
*/

/*
 * Vedlikeholdt CSS-versjon.
 * Duplikate dokumentbibliotek-regler og gamle overstyringer er ryddet bort.
 */

:root {
  --ht-ink: #172033;
  --ht-muted: #5f6b7a;
  --ht-border: #dfe5ec;
  --ht-surface: #ffffff;
  --ht-soft: #f4f7fa;
  --ht-brand: #0d4d78;
  --ht-brand-dark: #083650;
  --ht-accent: #e7a628;
  --ht-radius: 12px;
  --ht-shadow: 0 10px 30px rgba(23, 32, 51, 0.08);
  --ht-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ht-ink);
  background: var(--ht-surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: var(--ht-brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--ht-brand-dark); }
img { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 32px), var(--ht-width)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 9999; background: #fff; color: #000; padding: 10px 14px; }
.skip-link:focus { left: 8px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--ht-border); backdrop-filter: blur(10px); }
.header-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-branding { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 0 1 310px; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { display: block; max-height: 90px; max-width: 520px; width: auto; }
.site-title { margin: 0; font-size: 1.25rem; font-weight: 750; letter-spacing: -.02em; }
.site-title a { color: var(--ht-ink); text-decoration: none; }
.site-description { margin: 0; color: var(--ht-muted); font-size: .85rem; }
.primary-nav { margin-left: auto; }
.primary-nav > ul { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 25px); list-style: none; margin: 0; padding: 0; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; color: var(--ht-ink); font-size: .95rem; font-weight: 650; line-height: 1.25; text-decoration: none; white-space: nowrap; }
.primary-nav .sub-menu { position: absolute; left: -16px; top: calc(100% + 14px); z-index: 120; display: block; min-width: 210px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--ht-border); border-radius: 10px; box-shadow: var(--ht-shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease, visibility .16s ease; }
.primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 15px; }
.primary-nav .sub-menu li + li { border-top: 1px solid var(--ht-border); }
.primary-nav .sub-menu a { padding: 10px 12px; white-space: normal; }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .current-menu-item > a, .primary-nav a:hover { color: var(--ht-brand); }
.menu-toggle { display: none; border: 1px solid var(--ht-border); background: #fff; border-radius: 8px; padding: 9px 12px; font: inherit; font-weight: 700; }

.hero {
    background: linear-gradient(125deg, #0a3f63 0%, #0f5f8d 58%, #176b92 100%);
    color: #fff;
    padding: clamp(48px, 7vw, 90px) 0;
}
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 14px; color: #ffe4a8; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; font-size: .78rem; }
.hero h1 { margin: 0 0 20px; max-width: 780px; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; }
.hero p { max-width: 720px; margin: 0 0 30px; font-size: clamp(1.05rem, 2vw, 1.3rem); color: #e8f3f9; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 8px; border: 1px solid transparent; font-weight: 750; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover, .wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.button-primary { background: var(--ht-accent); color: #1c2835; }
.button-primary:hover { color: #111; background: #f1b941; }
.button-secondary { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.hero-card { background: #fff; color: var(--ht-ink); padding: 28px; border-radius: var(--ht-radius); box-shadow: 0 22px 50px rgba(0,0,0,.18); max-width: 380px;}
.hero-card h2 { margin-top: 0; font-size: 1.25rem; }
.quick-links { list-style: none; margin: 0; padding: 0; }
.quick-links li + li { border-top: 1px solid var(--ht-border); }
.quick-links a { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; text-decoration: none; font-weight: 700; }

.section { padding: clamp(58px, 8vw, 94px) 0; }
.section-soft { background: var(--ht-soft); }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading h2 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--ht-muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--ht-border); border-radius: var(--ht-radius); padding: 26px; box-shadow: var(--ht-shadow); }
.card h3 { margin: 0 0 9px; font-size: 1.25rem; }
.card p { margin: 0 0 18px; color: var(--ht-muted); }
.card a { font-weight: 750; }
.document-strip { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 34px; border-radius: var(--ht-radius); background: var(--ht-brand-dark); color: #fff; }
.document-strip h2 { margin: 0 0 8px; }
.document-strip p { margin: 0; color: #d7e9f2; }

.content-area { padding: 64px 0 90px; }
.entry-header { margin-bottom: 28px; }
.entry-title { margin: 0; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.08; letter-spacing: -.04em; }
.entry-meta { color: var(--ht-muted); font-size: .92rem; margin-top: 8px; }
.entry-content > * { max-width: 820px; }
.entry-content > .alignwide { max-width: var(--ht-width); }
.entry-content > .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.entry-content h2, .entry-content h3 { line-height: 1.2; letter-spacing: -.02em; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid var(--ht-border); padding: 10px 12px; text-align: left; }
.post-card { border-bottom: 1px solid var(--ht-border); padding: 0 0 36px; margin-bottom: 36px; }
.post-card h2 { margin-bottom: 8px; }
.post-card h2 a { color: var(--ht-ink); text-decoration: none; }

.site-footer { background: #111a28; color: #d9e1ea; padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 40px; }
.site-footer h2, .site-footer h3 { color: #fff; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li + li { margin-top: 8px; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); font-size: .9rem; color: #aeb9c5; }

@media (max-width: 900px) {
  .hero-grid, .footer-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: #fff; border-bottom: 1px solid var(--ht-border); padding: 18px 16px 24px; }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav a { display: block; padding: 12px 0; white-space: normal; }
  .primary-nav .sub-menu { position: static; display: block; min-width: 0; margin: 0 0 4px 16px; padding: 0 0 0 14px; border: 0; border-left: 2px solid var(--ht-border); border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .primary-nav .sub-menu li + li { border-top: 0; }
  .primary-nav .sub-menu a { padding: 9px 0; font-size: .94rem; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .document-strip { grid-template-columns: 1fr; }
  .site-description { display: none; }
}

/* Front page content sections — v1.2 */
.section-kicker { display: block; margin-bottom: 9px; color: var(--ht-brand); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.section-kicker-light { color: #ffe4a8; }
.feature-grid { display: grid; gap: 20px; }
.feature-card { position: relative; min-height: 245px; padding: 26px; border: 1px solid var(--ht-border); border-radius: var(--ht-radius); background: #fff; color: var(--ht-ink); text-decoration: none; box-shadow: 0 8px 28px rgba(23,32,51,.06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.feature-card:hover, .feature-card:focus { color: var(--ht-ink); border-color: #b8cad8; transform: translateY(-3px); box-shadow: var(--ht-shadow); }
.feature-number { display: block; margin-bottom: 42px; color: var(--ht-brand); font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.feature-card h3 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.2; }
.feature-card p { margin: 0 0 24px; color: var(--ht-muted); font-size: .98rem; }
.feature-link { position: absolute; left: 26px; bottom: 22px; color: var(--ht-brand); font-weight: 750; }
.suppliers-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 90px); align-items: center; }
.compact-heading { margin-bottom: 0; }
.text-link { display: inline-block; margin-top: 20px; font-weight: 750; }
.supplier-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.supplier-list a { display: flex; align-items: center; justify-content: space-between; min-height: 112px; padding: 22px; border: 1px solid var(--ht-border); border-radius: var(--ht-radius); background: #fff; color: var(--ht-ink); font-size: 1.22rem; font-weight: 800; text-decoration: none; box-shadow: 0 7px 22px rgba(23,32,51,.05); }
.supplier-list a:hover, .supplier-list a:focus { color: var(--ht-brand); border-color: #b8cad8; }
.document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.document-card { position: relative; display: flex; flex-direction: column; min-height: 190px; padding: 27px 58px 27px 27px; border-radius: var(--ht-radius); background: var(--ht-soft); color: var(--ht-ink); text-decoration: none; }
.document-card strong { margin-bottom: 10px; font-size: 1.18rem; line-height: 1.25; }
.document-card span { color: var(--ht-muted); }
.document-card b { position: absolute; right: 26px; top: 26px; color: var(--ht-brand); font-size: 1.25rem; }
.document-card:hover, .document-card:focus { color: var(--ht-ink); box-shadow: var(--ht-shadow); }
.contact-section { background: #0b3d5c; color: #fff; }
.contact-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(44px, 8vw, 100px); align-items: center; }
.contact-panel h2 { max-width: 720px; margin: 0 0 15px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -.035em; }
.contact-panel p { max-width: 680px; margin: 0 0 26px; color: #d7e9f2; }

.contact-details { margin: 0; padding: 26px 30px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--ht-radius); background: rgba(255,255,255,.07); }

.contact-details > div + div { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); }

.contact-details dt { color: #b9d4e3; font-size: .82rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }

.contact-details dd { margin: 2px 0 0; font-size: 1.08rem; font-weight: 700; }

.contact-details a { color: #fff; }

@media (max-width: 1000px) {
  .feature-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .suppliers-layout, .contact-panel { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .supplier-list, .document-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .feature-grid-four { grid-template-columns: 1fr; }
  .feature-card { min-height: 220px; }
}

/* Produktkort på forsiden */
.feature-grid-four {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
    overflow: hidden;
    color: var(--ht-ink);
    background: var(--ht-surface);
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius);
    box-shadow: var(--ht-shadow);
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--ht-brand);
    box-shadow: 0 16px 40px rgba(23, 32, 51, 0.12);
}

.product-card:focus-visible {
    outline: 3px solid var(--ht-accent);
    outline-offset: 3px;
}

/* ===========================
   Produktkort - bildeområde
   =========================== */

.product-card-image {
    position: relative;
    height: 190px;
    background: #ffffff;
    border-bottom: 1px solid var(--ht-border);

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 15px;
}

/* Bildene skaleres pent innenfor feltet */

.product-card-image img {
    display: block;
    max-width: 80%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Nummermerke */

.product-card .feature-number {
    position: absolute;
    top: 16px;
    left: 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    margin: 0;
    z-index: 2;

    color: var(--ht-ink);
    background: var(--ht-accent);
    border-radius: 50%;

    font-size: 0.85rem;
    font-weight: 800;
}

/* Tekstområdet */
.product-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.product-card-content h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
    line-height: 1.25;
}

.product-card-content p {
    margin: 0 0 24px;
    color: var(--ht-muted);
    line-height: 1.6;
}

.product-card-content .feature-link {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    color: var(--ht-brand-dark);
    font-weight: 800;
}

/* Nettbrett */
@media (max-width: 1000px) {
    .feature-grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobil */
@media (max-width: 620px) {
    .feature-grid-four {
        grid-template-columns: 1fr;
    }

    .product-card-image {
        height: 170px;
    }

    .product-card-content {
        padding: 20px;
    }
}
@media (max-width: 620px) {

    .hero {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero .actions {
        gap: 12px;
    }

    .hero-card {
        margin-top: 20px;
    }

    .site-branding img,
    .custom-logo {
        max-height: 70px;
        width: auto;
    }
}

/* Tving alle produktbilder inn i samme bildeområde */
.product-card-image {
    height: 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
    overflow: hidden !important;
}

/* Standard produktbilder */
.product-card-image img {
    width: auto !important;
    height: auto !important;
    max-width: 80% !important;
    max-height: 150px !important;
    object-fit: contain !important;
}

/* Høyt kjemiprodukt */
.product-card-image img.product-tall {
    width: auto !important;
    height: 155px !important;
    max-width: 60% !important;
    max-height: 155px !important;
    object-fit: contain !important;
}

/* Leverandørlogoer */
.suppliers-section {
    border-top: 1px solid var(--ht-border);
}

.supplier-logo-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.supplier-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius);
    box-shadow: 0 7px 22px rgba(23, 32, 51, 0.05);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.supplier-logo-card:hover {
    transform: translateY(-3px);
    border-color: #b8cad8;
    box-shadow: var(--ht-shadow);
}

.supplier-logo-card img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

@media (max-width: 1000px) {
    .supplier-logo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .supplier-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 430px) {
    .supplier-logo-grid {
        grid-template-columns: 1fr;
    }
}.supplier-logo-card:nth-child(3) img {
    max-height: 125px;
    max-width: 90%;
}

/* Dokumentasjon */
.documentation-section {
    background: #fff;
}

.documentation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.documentation-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 300px;
    padding: 30px;
    color: var(--ht-ink);
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius);
    box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.documentation-card:hover {
    transform: translateY(-4px);
    border-color: #b8cad8;
    box-shadow: var(--ht-shadow);
}

.documentation-content {
    flex: 1;
}

.documentation-card h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--ht-ink);
}

.documentation-card p {
    margin: 0;
    color: var(--ht-muted);
    line-height: 1.65;
}

.documentation-link {
    display: inline-block;
    margin-top: 26px;
    font-weight: 700;
    color: var(--ht-brand);
}

.documentation-card:hover .documentation-link {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 900px) {
    .documentation-grid {
        grid-template-columns: 1fr;
    }

    .documentation-card {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .documentation-card {
        padding: 24px;
    }
}.documentation-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 58px !important;
    height: 58px !important;
    margin-bottom: 24px;
    color: #ffffff !important;
    background: #0f4c6e !important;
    border-radius: 16px;
    flex: 0 0 58px;
}

.documentation-icon svg {
    display: block !important;
    width: 28px !important;
    height: 28px !important;
    fill: none !important;
    stroke: currentColor !important;
}

@media (max-width: 768px) {
    .documentation-icon {
        width: 42px !important;
        height: 42px !important;
        flex-basis: 42px;
        margin-bottom: 18px;
        border-radius: 12px;
    }

    .documentation-icon svg {
        width: 20px !important;
        height: 20px !important;
    }
}.contact-details {
    display: grid;
    gap: 0;
    padding: 8px 30px;
}

.contact-details > div {
    position: relative;
    padding: 24px 0 24px 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-details > div:last-child {
    border-bottom: 0;
}

.contact-details > div::before {
    position: absolute;
    top: 25px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 17px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9px;
}

.contact-details > div:nth-child(1)::before {
    content: "☎";
}

.contact-details > div:nth-child(2)::before {
    content: "✉";
}

.contact-details > div:nth-child(3)::before {
    content: "⌖";
}

.contact-details dt {
    margin-bottom: 8px;
}

.contact-details dd {
    margin: 0;
}

@media (max-width: 768px) {
    .contact-panel {
        gap: 36px;
    }

    .contact-details {
        padding: 4px 22px;
    }

    .contact-details > div {
        padding: 20px 0 20px 42px;
    }

    .contact-details > div::before {
        top: 20px;
        width: 28px;
        height: 28px;
        font-size: 15px;
    }
}

/* ==================================================
   Produktside / Produktkatalog
   ================================================== */

.product-catalog-page {
    background: #ffffff;
}

/* Hero */

.product-catalog-hero {
    padding: clamp(60px, 8vw, 100px) 0;
    color: #ffffff;
    background:
        linear-gradient(
            125deg,
            #0a3f63 0%,
            #0f5f8d 58%,
            #176b92 100%
        );
}

.product-catalog-hero-content {
    max-width: 850px;
}

.product-catalog-hero h1 {
    margin: 0 0 22px;
    font-size: clamp(2.7rem, 6vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.product-catalog-hero p {
    max-width: 760px;
    margin: 0;
    color: #e8f3f9;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.65;
}

/* Produktkort */

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

.product-category-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius);
    box-shadow: var(--ht-shadow);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.product-category-card:hover {
    transform: translateY(-4px);
    border-color: #b8cad8;
    box-shadow: 0 18px 44px rgba(23, 32, 51, 0.12);
}

/* Bilde */

.product-category-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 270px;
    padding: 30px;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid var(--ht-border);
}

.product-category-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 82%;
    max-height: 220px;
    object-fit: contain;
}

.product-category-image img.product-category-image-tall {
    max-width: 52%;
    max-height: 220px;
}

/* Tekstinnhold */

.product-category-content {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 34px;
}

.product-category-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    color: var(--ht-ink);
    background: var(--ht-accent);
    border-radius: 50%;
    font-size: 0.84rem;
    font-weight: 800;
}

.product-category-content h2 {
    margin: 0 0 13px;
    color: var(--ht-ink);
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.product-category-content > p {
    margin: 0 0 20px;
    color: var(--ht-muted);
    line-height: 1.65;
}

.product-category-list {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.product-category-list li {
    position: relative;
    padding: 7px 0 7px 25px;
    color: var(--ht-ink);
    border-bottom: 1px solid var(--ht-border);
}

.product-category-list li:last-child {
    border-bottom: 0;
}

.product-category-list li::before {
    position: absolute;
    top: 7px;
    left: 0;
    color: var(--ht-brand);
    content: "✓";
    font-weight: 800;
}

/* Knapper */

.product-category-button {
    align-self: flex-start;
    gap: 10px;
    margin-top: auto;
}

.product-category-button span,
.supplier-product-link span {
    transition: transform 0.18s ease;
}

.product-category-button:hover span,
.supplier-product-link:hover span {
    transform: translate(2px, -2px);
}

/* Leverandørknapper */

.supplier-button-list {
    display: grid;
    gap: 12px;
    margin-top: auto;
    padding-top: 8px;
}

.supplier-product-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 13px 17px;
    color: var(--ht-ink);
    background: var(--ht-soft);
    border: 1px solid var(--ht-border);
    border-radius: 8px;
    font-weight: 750;
    text-decoration: none;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.supplier-product-link:hover,
.supplier-product-link:focus {
    color: var(--ht-brand);
    background: #ffffff;
    border-color: var(--ht-brand);
    transform: translateX(2px);
}

/* Kontaktseksjon */

.product-catalog-contact {
    color: #ffffff;
    background: #0b3d5c;
}

.product-catalog-contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) auto;
    gap: 50px;
    align-items: center;
}

.product-catalog-contact h2 {
    max-width: 750px;
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.product-catalog-contact p {
    max-width: 680px;
    margin: 0;
    color: #d7e9f2;
}

.product-catalog-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

/* Nettbrett */

@media (max-width: 900px) {

    .product-category-grid {
        grid-template-columns: 1fr;
    }

    .product-catalog-contact-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-catalog-contact-actions {
        justify-content: flex-start;
    }
}

/* Mobil */

@media (max-width: 620px) {

    .product-catalog-hero {
        padding: 52px 0;
    }

    .product-catalog-hero h1 {
        font-size: 2.65rem;
    }

    .product-category-grid {
        gap: 20px;
    }

    .product-category-image {
        height: 210px;
        padding: 22px;
    }

    .product-category-image img {
        max-height: 170px;
    }

    .product-category-image img.product-category-image-tall {
        max-height: 175px;
    }

    .product-category-content {
        padding: 25px;
    }

    .product-catalog-contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .product-catalog-contact-actions .button {
        width: 100%;
    }
}

/* ==================================================
   Leverandører
   ================================================== */

.suppliers-page {
    background: #ffffff;
}

/* Hero */

.suppliers-hero {
    padding: clamp(60px, 8vw, 100px) 0;
    color: #ffffff;
    background:
        linear-gradient(
            125deg,
            #0a3f63 0%,
            #0f5f8d 58%,
            #176b92 100%
        );
}

.suppliers-hero-content {
    max-width: 850px;
}

.suppliers-hero h1 {
    margin: 0 0 22px;
    font-size: clamp(2.7rem, 6vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.suppliers-hero p {
    max-width: 760px;
    margin: 0;
    color: #e8f3f9;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.65;
}

/* Leverandørkort */

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

.supplier-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius);
    box-shadow: var(--ht-shadow);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.supplier-card:hover {
    transform: translateY(-2px);
    border-color: #b8cad8;
    box-shadow: 0 16px 38px rgba(23, 32, 51, 0.11);
}

/* Logo */

.supplier-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    padding: 30px;
    background: #ffffff;
    border-bottom: 1px solid var(--ht-border);
}

.supplier-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 50%;
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.supplier-card:hover .supplier-logo img {
    transform: scale(1.03);
}

/* Innhold */

.supplier-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 34px;
}

.supplier-card-content h2 {
    margin: 0 0 13px;
    color: var(--ht-ink);
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.supplier-card-content p {
    margin: 0 0 28px;
    color: var(--ht-muted);
    line-height: 1.65;
}

.supplier-card-button {
    align-self: flex-start;
    gap: 10px;
    margin-top: auto;
}

.supplier-card-button span {
    transition: transform 0.18s ease;
}

.supplier-card-button:hover span {
    transform: translate(2px, -2px);
}

/* Kontaktseksjon */

.suppliers-contact {
    color: #ffffff;
    background: #0b3d5c;
}

.suppliers-contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) auto;
    gap: 50px;
    align-items: center;
}

.suppliers-contact h2 {
    max-width: 750px;
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.suppliers-contact p {
    max-width: 680px;
    margin: 0;
    color: #d7e9f2;
}

.suppliers-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

/* Nettbrett */

@media (max-width: 900px) {

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

    .suppliers-contact-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .suppliers-contact-actions {
        justify-content: flex-start;
    }
}

/* Mobil */

@media (max-width: 620px) {

    .suppliers-hero {
        padding: 52px 0;
    }

    .suppliers-hero h1 {
        font-size: 2.65rem;
    }

    .supplier-grid {
        gap: 20px;
    }

    .supplier-logo {
        height: 180px;
        padding: 25px;
    }

    .supplier-logo img {
        max-width: 78%;
        max-height: 95px;
    }

    .supplier-card-content {
        padding: 25px;
    }

    .suppliers-contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

.suppliers-contact-actions .button {
    width: 100%;
}

}

/* avslutter @media (max-width: 620px) */

/* ==================================================
   FDV hovedside
   ================================================== */

.fdv-page {
    background: #ffffff;
}

.fdv-hero {
    padding: clamp(60px, 8vw, 100px) 0;
    color: #ffffff;
    background:
        linear-gradient(
            125deg,
            #0a3f63 0%,
            #0f5f8d 58%,
            #176b92 100%
        );
}

.fdv-hero-content {
    max-width: 850px;
}

.fdv-hero h1 {
    margin: 0 0 22px;
    font-size: clamp(2.7rem, 6vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.fdv-hero p {
    max-width: 760px;
    margin: 0;
    color: #e8f3f9;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.65;
}

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

.fdv-category-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius);
    box-shadow: var(--ht-shadow);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.fdv-category-card:hover {
    transform: translateY(-2px);
    border-color: #b8cad8;
    box-shadow: 0 16px 38px rgba(23, 32, 51, 0.11);
}

.fdv-category-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    flex: 1;
    padding: 32px;
    background: var(--ht-soft);
    border-bottom: 1px solid var(--ht-border);
}

.fdv-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: var(--ht-ink);
    background: var(--ht-accent);
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 850;
}

.fdv-category-text h2 {
    margin: 0 0 10px;
    color: var(--ht-ink);
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    line-height: 1.2;
}

.fdv-category-text p {
    margin: 0;
    color: var(--ht-muted);
    line-height: 1.6;
}

.fdv-category-footer {
    padding: 25px 32px 32px;
}

.fdv-category-button {
    gap: 10px;
}

.fdv-category-button span {
    transition: transform 0.18s ease;
}

.fdv-category-button:hover span {
    transform: translateX(3px);
}

.fdv-contact {
    color: #ffffff;
    background: #0b3d5c;
}

.fdv-contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) auto;
    gap: 50px;
    align-items: center;
}

.fdv-contact h2 {
    max-width: 750px;
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.fdv-contact p {
    max-width: 680px;
    margin: 0;
    color: #d7e9f2;
}

.fdv-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

@media (max-width: 900px) {

    .fdv-category-grid {
        grid-template-columns: 1fr;
    }

    .fdv-contact-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .fdv-contact-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {

    .fdv-hero {
        padding: 52px 0;
    }

    .fdv-hero h1 {
        font-size: 2.65rem;
    }

    .fdv-category-header {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .fdv-category-footer {
        padding: 22px 25px 25px;
    }

    .fdv-contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

.fdv-contact-actions .button {
    width: 100%;
}

}

/* avslutter @media (max-width: 620px) */

/* ==================================================
   HMS hovedside
   ================================================== */

.hms-page {
    background: #ffffff;
}

/* Hero */

.hms-hero {
    padding: clamp(60px, 8vw, 100px) 0;
    color: #ffffff;
    background:
        linear-gradient(
            125deg,
            #0a3f63 0%,
            #0f5f8d 58%,
            #176b92 100%
        );
}

.hms-hero-content {
    max-width: 850px;
}

.hms-hero h1 {
    margin: 0 0 22px;
    font-size: clamp(2.7rem, 6vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.hms-hero p {
    max-width: 760px;
    margin: 0;
    color: #e8f3f9;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.65;
}

/* HMS-kort */

.hms-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.hms-category-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius);
    box-shadow: var(--ht-shadow);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.hms-category-card:hover {
    transform: translateY(-2px);
    border-color: #b8cad8;
    box-shadow: 0 16px 38px rgba(23, 32, 51, 0.11);
}

.hms-category-header {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    background: var(--ht-soft);
    border-bottom: 1px solid var(--ht-border);
}

.hms-category-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 25px;
    color: var(--ht-ink);
    background: var(--ht-accent);
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 850;
}

.hms-category-content h2 {
    margin: 0 0 13px;
    color: var(--ht-ink);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hms-category-content p {
    margin: 0;
    color: var(--ht-muted);
    line-height: 1.65;
}

.hms-category-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 24px 30px 30px;
}

.hms-category-button {
    gap: 10px;
}

.hms-category-button span {
    transition: transform 0.18s ease;
}

.hms-category-button:hover span {
    transform: translate(2px, -2px);
}

.hms-external-note {
    color: var(--ht-muted);
    font-size: 0.78rem;
}

/* Informasjonspanel */

.hms-info-section {
    background: var(--ht-soft);
}

.hms-info-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 28px;
    align-items: flex-start;
    max-width: 950px;
    padding: clamp(30px, 5vw, 50px);
    background: #ffffff;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius);
    box-shadow: var(--ht-shadow);
}

.hms-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: #ffffff;
    background: var(--ht-brand);
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 850;
}

.hms-info-panel h2 {
    margin: 0 0 13px;
    color: var(--ht-ink);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.2;
}

.hms-info-panel p {
    max-width: 720px;
    margin: 0;
    color: var(--ht-muted);
    line-height: 1.7;
}

/* Kontakt */

.hms-contact {
    color: #ffffff;
    background: #0b3d5c;
}

.hms-contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) auto;
    gap: 50px;
    align-items: center;
}

.hms-contact h2 {
    max-width: 750px;
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.hms-contact p {
    max-width: 680px;
    margin: 0;
    color: #d7e9f2;
}

.hms-contact-actions {
    display: flex;
    justify-content: flex-end;
}

/* Nettbrett */

@media (max-width: 1000px) {

    .hms-category-grid {
        grid-template-columns: 1fr;
    }

    .hms-category-header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 22px;
    }

    .hms-category-number {
        margin-bottom: 0;
    }

    .hms-contact-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hms-contact-actions {
        justify-content: flex-start;
    }
}

/* Mobil */

@media (max-width: 620px) {

    .hms-hero {
        padding: 52px 0;
    }

    .hms-hero h1 {
        font-size: 2.65rem;
    }

    .hms-category-header {
        display: flex;
        padding: 24px;
    }

    .hms-category-number {
        margin-bottom: 20px;
    }

    .hms-category-footer {
        padding: 22px 24px 24px;
    }

    .hms-category-button {
        width: 100%;
    }

    .hms-info-panel {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   Dokumentbibliotek – sideoppsett og søk
   Legg inn nederst i style.css, eller enqueue som egen CSS-fil.
   ================================================== */

.fdv-documents-page {
    background: #ffffff;
}

.fdv-documents-section {
    background: #ffffff;
}

/* Søk */
.document-search {
    max-width: 760px;
    margin: 0 auto 38px;
}

.document-search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.document-search-icon {
    position: absolute;
    left: 18px;
    z-index: 1;
    display: inline-flex;
    width: 22px;
    height: 22px;
    color: var(--ht-muted, #5f6f78);
    pointer-events: none;
}

.document-search-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.document-search-input {
    width: 100%;
    min-height: 58px;
    padding: 14px 58px 14px 54px;
    color: var(--ht-ink, #17313f);
    background: #ffffff;
    border: 1px solid var(--ht-border, #d9e1e5);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(18, 49, 65, 0.08);
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.document-search-input::placeholder {
    color: #7a8991;
    opacity: 1;
}

.document-search-input:focus {
    border-color: var(--ht-brand, #0b5d7a);
    outline: none;
    box-shadow: 0 0 0 4px rgba(11, 93, 122, 0.14), 0 8px 28px rgba(18, 49, 65, 0.08);
}

.document-search-input::-webkit-search-cancel-button {
    display: none;
}

.document-search-clear {
    position: absolute;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--ht-muted, #5f6f78);
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.document-search-clear:hover,
.document-search-clear:focus-visible {
    color: var(--ht-ink, #17313f);
    background: var(--ht-soft, #eef5f8);
    outline: none;
}

.document-search-status {
    min-height: 24px;
    margin: 9px 4px 0;
    color: var(--ht-muted, #5f6f78);
    font-size: 0.9rem;
}

.document-no-results {
    max-width: 760px;
    margin: 0 auto 38px;
    padding: 22px 24px;
    color: var(--ht-ink, #17313f);
    background: var(--ht-soft, #eef5f8);
    border: 1px solid var(--ht-border, #d9e1e5);
    border-radius: 12px;
    text-align: center;
}

.document-no-results strong,
.document-no-results span {
    display: block;
}

.document-no-results span {
    margin-top: 4px;
    color: var(--ht-muted, #5f6f78);
}

/* Grupper */
.fdv-groups {
    display: flex;
    flex-direction: column;
    gap: 46px;
}

.fdv-group {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--ht-border, #d9e1e5);
    border-radius: var(--ht-radius, 14px);
    box-shadow: var(--ht-shadow, 0 12px 36px rgba(18, 49, 65, 0.08));
}

.fdv-group-heading {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 28px 30px;
    background: var(--ht-soft, #eef5f8);
    border-bottom: 1px solid var(--ht-border, #d9e1e5);
}

.fdv-group-heading h2 {
    margin: 0 0 8px;
    color: var(--ht-ink, #17313f);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
}

.fdv-group-heading p {
    max-width: 700px;
    margin: 0;
    color: var(--ht-muted, #5f6f78);
    line-height: 1.6;
}

.fdv-group-count {
    flex: 0 0 auto;
    padding: 8px 13px;
    color: var(--ht-brand, #0b5d7a);
    background: #ffffff;
    border: 1px solid var(--ht-border, #d9e1e5);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 750;
    white-space: nowrap;
}

/* Dokumentkort */
.fdv-document-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 26px;
}

.fdv-document-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
    border: 1px solid var(--ht-border, #d9e1e5);
    border-radius: 12px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.fdv-document-card:hover {
    border-color: rgba(11, 93, 122, 0.38);
    box-shadow: 0 12px 28px rgba(18, 49, 65, 0.09);
    transform: translateY(-2px);
}

.fdv-document-card-top {
    padding: 22px 22px 0;
}

.fdv-document-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 34px;
    padding: 0 10px;
    color: #ffffff;
    background: var(--ht-brand, #0b5d7a);
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.fdv-document-card-content {
    flex: 1;
    padding: 20px 22px;
}

.fdv-document-card-content h3 {
    margin: 0 0 8px;
    color: var(--ht-ink, #17313f);
    font-size: 1.12rem;
    line-height: 1.35;
}

.fdv-document-card-content p {
    margin: 0;
    color: var(--ht-muted, #5f6f78);
    line-height: 1.55;
}

.fdv-document-card-footer {
    padding: 0 22px 22px;
}

.fdv-document-button {
    display: inline-flex;
    gap: 9px;
    align-items: center;
}

.fdv-document-button span {
    transition: transform 0.18s ease;
}

.fdv-document-button:hover span {
    transform: translate(2px, -2px);
}

/* Tom gruppe */
.fdv-empty-state {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 24px;
    background: var(--ht-soft, #eef5f8);
    border: 1px dashed var(--ht-border, #d9e1e5);
    border-radius: 12px;
}

.fdv-empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--ht-brand, #0b5d7a);
    background: #ffffff;
    border: 1px solid var(--ht-border, #d9e1e5);
    border-radius: 50%;
    font-weight: 800;
}

.fdv-empty-state h3 {
    margin: 0 0 5px;
    color: var(--ht-ink, #17313f);
}

.fdv-empty-state p {
    margin: 0;
    color: var(--ht-muted, #5f6f78);
    line-height: 1.55;
}

/* Tilbakelenke */
.fdv-back-link {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    margin-top: 38px;
    color: var(--ht-brand, #0b5d7a);
    font-weight: 750;
    text-decoration: none;
}

.fdv-back-link:hover,
.fdv-back-link:focus-visible {
    text-decoration: underline;
}

/* WordPress-klassen finnes normalt allerede, men beholdes som sikkerhet. */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .fdv-document-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .document-search {
        margin-bottom: 28px;
    }

    .document-search-input {
        min-height: 54px;
        padding-left: 50px;
        font-size: 0.96rem;
    }

    .fdv-groups {
        gap: 30px;
    }

    .fdv-group-heading {
        flex-direction: column;
        gap: 18px;
        padding: 24px;
    }

    .fdv-group-count {
        align-self: flex-start;
    }

    .fdv-document-grid {
        gap: 16px;
        padding: 18px;
    }

    .fdv-document-card-top {
        padding: 18px 18px 0;
    }

    .fdv-document-card-content {
        padding: 18px;
    }

    .fdv-document-card-footer {
        padding: 0 18px 18px;
    }

    .fdv-empty-state {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .document-search-input,
    .document-search-clear,
    .fdv-document-card,
    .fdv-document-button span {
        transition: none;
    }
}
#festemateriell,
#selvborende-skruer,
#verktoy,
#kjemiprodukter {
    scroll-margin-top: 110px;
}
/* ---------------------------------------------------------
   Kontakt
--------------------------------------------------------- */

.contact-hero {
    padding: clamp(72px, 10vw, 140px) 0;
    background:
        linear-gradient(
            135deg,
            var(--primary-color, #0f3b66),
            var(--primary-light, #1f5f99)
        );
    color: #fff;
}

.contact-hero__content {
    max-width: 760px;
}

.contact-hero .section-kicker {
    color: rgba(255, 255, 255, 0.75);
}

.contact-hero h1 {
    max-width: 720px;
    margin: 12px 0 20px;
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4.75rem);
    line-height: 1.05;
}

.contact-hero p {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
}

.contact-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.contact-hero .button-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.contact-hero .button-secondary:hover {
    color: #111827;
    background: #fff;
    border-color: #fff;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.contact-detail-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.contact-detail-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    color: var(--primary-color, #1f4d3a);
    background: rgba(31, 77, 58, 0.1);
    border-radius: 12px;
}

.contact-detail-card h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.contact-detail-card p {
    margin: 0 0 18px;
    color: var(--text-muted, #667085);
    line-height: 1.65;
}

.contact-detail-card a,
.contact-detail-card strong,
.contact-detail-card address {
    margin-top: auto;
    color: var(--heading-color, #111827);
    font-style: normal;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.contact-detail-card a:hover {
    color: var(--primary-color, #1f4d3a);
}

.invoice-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
    padding: clamp(30px, 5vw, 56px);
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.invoice-panel__content h2 {
    margin: 10px 0 20px;
}

.invoice-panel__content p {
    max-width: 680px;
    color: var(--text-muted, #667085);
    line-height: 1.75;
}

.invoice-panel__content p:last-child {
    margin-bottom: 0;
}

.invoice-panel__content a {
    font-weight: 700;
}

.invoice-details {
    margin: 0;
    padding: 0;
}

.invoice-details > div {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.invoice-details > div:first-child {
    padding-top: 0;
}

.invoice-details > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.invoice-details dt {
    margin-bottom: 5px;
    color: var(--text-muted, #667085);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.invoice-details dd {
    margin: 0;
    color: var(--heading-color, #111827);
    font-size: 1.05rem;
    font-weight: 700;
}

.invoice-details a {
    overflow-wrap: anywhere;
}

.contact-editor-content {
    padding-top: 0;
}

.container-narrow {
    max-width: 850px;
}

@media (max-width: 1050px) {
    .contact-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .invoice-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .contact-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-hero__actions .button {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .contact-details-grid {
        grid-template-columns: 1fr;
    }

    .contact-detail-card {
        padding: 24px;
    }

    .invoice-panel {
        padding: 26px 22px;
    }
}
/* ---------------------------------------------------------
   Tilbud
--------------------------------------------------------- */

.offers-hero,
.single-offer-hero {
    padding: clamp(72px, 9vw, 130px) 0;
    background:
        linear-gradient(
            135deg,
            var(--primary-color, #0f3b66),
            var(--primary-light, #1f5f99)
        );
    color: #fff;
}

.offers-hero__content {
    max-width: 760px;
}

.offers-hero .section-kicker,
.single-offer-hero .section-kicker {
    color: rgba(255, 255, 255, 0.76);
}

.offers-hero h1,
.single-offer-hero h1 {
    margin: 12px 0 20px;
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4.6rem);
    line-height: 1.06;
}

.offers-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.offer-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

.offer-card--featured {
    border-color: var(--primary-color, #0f3b66);
}

.offer-card__image {
    position: relative;
    display: block;
    height: 280px;
    overflow: hidden;
    background: #eef2f6;
}

.offer-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 12px;
    transition: transform 250ms ease;
}

.offer-card:hover .offer-card__image img {
    transform: scale(1.025);
}

.offer-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #64748b;
    font-size: 1.5rem;
    font-weight: 700;
}

.offer-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 7px 11px;
    color: #fff;
    background: var(--primary-color, #0f3b66);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.offer-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px;
}

.offer-card__supplier {
    margin-bottom: 8px;
    color: var(--primary-color, #0f3b66);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.offer-card__title {
    margin: 0 0 14px;
    font-size: 1.35rem;
    line-height: 1.25;
}

.offer-card__title a {
    color: var(--heading-color, #111827);
    text-decoration: none;
}

.offer-card__excerpt {
    color: var(--text-muted, #667085);
    line-height: 1.65;
}

.offer-card__excerpt p {
    margin-top: 0;
}

.offer-card__period {
    margin: auto 0 20px;
    padding-top: 16px;
    color: var(--heading-color, #111827);
    font-size: 0.9rem;
    font-weight: 700;
}

.offer-card__button {
    align-self: flex-start;
}

.offers-empty {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(35px, 6vw, 70px);
    text-align: center;
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 20px;
}

.offers-empty h2 {
    margin: 10px 0 16px;
}

.offers-empty p {
    color: var(--text-muted, #667085);
}

.offers-empty__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.offers-cta__panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: clamp(30px, 5vw, 55px);
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 20px;
}

.offers-cta__panel h2 {
    margin: 10px 0 12px;
}

.offers-cta__panel p {
    max-width: 650px;
    margin: 0;
    color: var(--text-muted, #667085);
}

.offers-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Enkelt tilbud */

.single-offer-back {
    display: inline-block;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
    text-decoration: none;
}

.single-offer-back:hover {
    color: #fff;
}

.single-offer-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
    gap: clamp(40px, 7vw, 90px);
    align-items: center;
}
.single-offer-hero h1 {
    max-width: 760px;
    font-size: clamp(2.5rem, 4.5vw, 4.2rem);
    line-height: 1.08;
}

.single-offer-hero__image {
    width: 100%;
    max-width: 520px;
    justify-self: end;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.single-offer-hero__image img {
    display: block;
    width: 100%;
    height: auto;
}

.single-offer-lead {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.15rem;
    line-height: 1.7;
}

.single-offer-lead p {
    margin-top: 0;
}

.single-offer-period {
    display: inline-flex;
    margin-top: 22px;
    padding: 10px 14px;
    color: #0f2942;
    background: #fff;
    border-radius: 999px;
    font-weight: 750;
}

.single-offer-expired {
    margin-top: 16px;
    padding: 12px 16px;
    color: #7f1d1d;
    background: #fee2e2;
    border-radius: 10px;
    font-weight: 700;
}

.single-offer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(40px, 7vw, 90px);
    align-items: start;
}

.single-offer-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.single-offer-content img {
    height: auto;
    border-radius: 12px;
}

.single-offer-sidebar {
    position: sticky;
    top: 110px;
}

.single-offer-contact-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}

.single-offer-contact-card h2 {
    margin: 0;
    font-size: 1.45rem;
}

.single-offer-contact-card p {
    margin: 0 0 8px;
    color: var(--text-muted, #667085);
    line-height: 1.65;
}

.single-offer-contact-card .button {
    justify-content: center;
    width: 100%;
    text-align: center;
}

.single-offer-pdf-link {
    display: block;
    padding-top: 8px;
    text-align: center;
    font-weight: 700;
}

@media (max-width: 1050px) {
    .offers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .single-offer-hero__grid {
        grid-template-columns: 1fr;
    }

    .single-offer-hero__image {
        width: 100%;
        max-width: 720px;
        justify-self: start;
    }

    .single-offer-hero h1 {
        font-size: clamp(2.2rem, 6vw, 3.5rem);
    }
}

@media (max-width: 850px) {
    .offers-cta__panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .single-offer-layout {
        grid-template-columns: 1fr;
    }

    .single-offer-sidebar {
        position: static;
    }
}

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

    .offers-empty__actions,
    .offers-cta__actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .offers-empty__actions .button,
    .offers-cta__actions .button {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .offer-card__content {
        padding: 22px;
    }
}

/* Om oss */

.about-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 9vw, 130px) 0;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            var(--primary-color, #0f3b66),
            var(--primary-light, #1f5f99)
        );
}

.about-hero::after {
    position: absolute;
    right: -130px;
    bottom: -210px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    content: "";
}

.about-hero__content {
    position: relative;
    z-index: 1;
    max-width: 920px;
}

.about-eyebrow,
.section-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: #d6a900;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.about-hero h1 {
    max-width: 850px;
    margin: 12px 0 20px;
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4.6rem);
    line-height: 1.06;
}

.about-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: clamp(1.05rem,2vw,1.25rem);
    line-height: 1.7;
}

.section-spacing {
    padding: clamp(72px, 9vw, 120px) 0;
}

.section-background {
    background: #f5f7f9;
}

.about-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(45px, 8vw, 110px);
    align-items: start;
}

.about-intro__heading h2,
.section-heading h2,
.about-suppliers h2,
.about-cta h2 {
    margin: 0;
    color: #0f2942;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.about-intro__content {
    color: #475467;
    font-size: 1.08rem;
    line-height: 1.85;
}

.about-intro__content p {
    margin-top: 0;
    margin-bottom: 24px;
}

.about-intro__content p:first-child {
    color: #0f2942;
    font-size: 1.24rem;
    font-weight: 700;
}

.section-heading {
    max-width: 760px;
    margin-bottom: clamp(42px, 6vw, 70px);
}

.section-heading--center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading p {
    margin: 22px auto 0;
    color: #667085;
    font-size: 1.08rem;
    line-height: 1.75;
}

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

.about-location-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 24px;
    padding: clamp(28px, 4vw, 44px);
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(15, 41, 66, 0.07);
}

.about-location-card__icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    color: #0f2942;
    background: #f2e5a3;
    border-radius: 16px;
}

.about-location-card__icon svg {
    width: 30px;
    height: 30px;
}

.about-location-card__label {
    display: block;
    margin-bottom: 6px;
    color: #b58900;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.about-location-card h3 {
    margin: 0 0 5px;
    color: #0f2942;
    font-size: 1.65rem;
}

.about-location-card p {
    margin: 0 0 22px;
    color: #667085;
}

.about-location-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-location-card li {
    padding: 7px 12px;
    color: #344054;
    background: #f2f4f7;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.about-benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.about-benefit-card {
    position: relative;
    min-height: 280px;
    padding: 30px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.about-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(15, 41, 66, 0.09);
}

.about-benefit-card__number {
    display: block;
    margin-bottom: 42px;
    color: #d6a900;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.about-benefit-card h3 {
    margin: 0 0 14px;
    color: #0f2942;
    font-size: 1.35rem;
}

.about-benefit-card p {
    margin: 0;
    color: #667085;
    line-height: 1.7;
}

.about-suppliers__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(40px, 8vw, 100px);
    align-items: center;
    padding: clamp(36px, 6vw, 72px);
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 24px;
    box-shadow: 0 20px 55px rgba(15, 41, 66, 0.07);
}

.about-suppliers__panel > div:first-child {
    max-width: 740px;
}

.about-suppliers p {
    margin: 22px 0 0;
    color: #667085;
    font-size: 1.05rem;
    line-height: 1.75;
}

.about-cta {
    background: #fff;
}

.about-cta__panel {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: space-between;
    padding: clamp(38px, 6vw, 70px);
    color: #fff;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255, 255, 255, 0.11),
            transparent 30%
        ),
        #0f2942;
    border-radius: 24px;
}

.about-cta__panel > div:first-child {
    max-width: 700px;
}

.about-cta h2 {
    color: #fff;
}

.about-cta p {
    max-width: 650px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-cta__actions {
    display: flex;
    flex-shrink: 0;
    gap: 12px;
}

.button--light {
    color: #0f2942;
    background: #fff;
}

.button--light:hover {
    color: #0f2942;
    background: #f2e5a3;
}

.button--outline-light {
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.button--outline-light:hover {
    color: #0f2942;
    background: #fff;
    border-color: #fff;
}

@media (max-width: 1050px) {
    .about-benefits__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-suppliers__panel {
        grid-template-columns: 1fr;
    }

    .about-suppliers__action {
        justify-self: start;
    }

    .about-cta__panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 800px) {
    .about-intro__grid,
    .about-locations__grid {
        grid-template-columns: 1fr;
    }

    .about-hero {
        padding: 80px 0;
    }

    .about-hero h1 {
        font-size: clamp(2.4rem, 11vw, 4rem);
    }
}

@media (max-width: 650px) {
    .section-spacing {
        padding: 64px 0;
    }

    .about-benefits__grid {
        grid-template-columns: 1fr;
    }

    .about-benefit-card {
        min-height: auto;
    }

    .about-location-card {
        grid-template-columns: 1fr;
    }

    .about-cta__actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .about-cta__actions .button {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .about-suppliers__action,
    .about-suppliers__action .button {
        width: 100%;
    }

    .about-suppliers__action .button {
        justify-content: center;
        text-align: center;
    }
}
.about-location-card__map {
    margin: 22px 0 18px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.about-location-card__map iframe {
    display: block;
    width: 100%;
    height: 220px;
    border: 0;
}

.about-location-card .button {
    width: 100%;
    justify-content: center;
    margin-bottom: 18px;
}
/* ===== Footer ===== */

.site-footer{
    margin-top:80px;
    background:#141d2b;
    color:#d5dce6;
    border-top:4px solid var(--primary-color);
}

.footer-grid{
    display:grid;
    grid-template-columns:1.4fr 1fr .75fr;
    gap:70px;
    padding:52px 0 48px;
}

.footer-col h3,
.footer-col h4{
    margin:0 0 22px;
    color:#fff;
}

.footer-col p{
    margin:0 0 14px;
    color:#b8c2d0;
    line-height:1.8;
}

.footer-contact,
.footer-menu{
    list-style:none;
    margin:0;
    padding:0;
}

.footer-contact li{
    margin-bottom:14px;
}

.footer-contact a,
.footer-menu a{
    color:#d5dce6;
    text-decoration:none;
    transition:.25s;
}

.footer-menu li{
    margin-bottom:12px;
}

.footer-menu a:hover,
.footer-contact a:hover{
    color:#fff;
    padding-left:6px;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.08);
}

.footer-bottom .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:18px 0;
}

@media (max-width:900px){

    .footer-grid{
        grid-template-columns:1fr;
        gap:40px;
    }

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

}
.footer-contact{
    list-style:none;
    margin:0;
    padding:0;
}

.footer-contact li{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin-bottom:10px;
    line-height:1.5;
}
.footer-menu{
    list-style:none;
    margin:0;
    padding:0;
}

.footer-menu li{
    margin-bottom:9px;
}

.footer-menu a{
    display:inline-block;
    color:#d5dce6;
    text-decoration:none;
    transition:
        color .2s ease,
        transform .2s ease;
}

.footer-menu a:hover{
    color:#fff;
    transform:translateX(5px);
}

/* ==================================================
   LAKKERTE SKRUER
================================================== */

.painted-screws-page {
    overflow: hidden;
}

.painted-screws-page .container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.painted-screws-page .section-spacing {
    padding: 90px 0;
}

.painted-screws-page .section-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--primary-light, #1f5f99);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.painted-screws-page .section-label.light {
    color: rgba(255, 255, 255, 0.75);
}

.painted-screws-page h1,
.painted-screws-page h2,
.painted-screws-page h3 {
    margin-top: 0;
    color: var(--primary-color, #0f3b66);
    line-height: 1.15;
}

.painted-screws-page h2 {
    margin-bottom: 22px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.painted-screws-page h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.painted-screws-page p {
    color: #4d5a67;
    font-size: 1.05rem;
    line-height: 1.75;
}

.painted-screws-hero {
    position: relative;
    padding: 120px 0;
    background:
        linear-gradient(
            135deg,
            rgba(15, 59, 102, 0.98),
            rgba(31, 95, 153, 0.92)
        );
}

.painted-screws-hero::after {
    position: absolute;
    top: -160px;
    right: -120px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
}

.painted-screws-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.painted-screws-hero .section-label {
    color: rgba(255, 255, 255, 0.75);
}

.painted-screws-hero h1 {
    max-width: 850px;
    margin-bottom: 24px;
    color: #fff;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    letter-spacing: -0.04em;
}

.painted-screws-hero .hero-intro {
    max-width: 680px;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.painted-screws-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 26px;
    border: 2px solid transparent;
    border-radius: 5px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.painted-screws-page .btn:hover {
    transform: translateY(-2px);
}

.painted-screws-page .btn-primary {
    background: #fff;
    color: var(--primary-color, #0f3b66);
}

.painted-screws-page .btn-secondary {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.painted-screws-page .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 75px;
}

.two-column-layout.reverse .content-column {
    order: 2;
}

.content-column p:last-child {
    margin-bottom: 0;
}

.painted-screws-image-placeholder {
    display: flex;
    min-height: 470px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 255, 255, 0.9),
            transparent 25%
        ),
        linear-gradient(135deg, #dbe6ef, #9fb7cb);
    box-shadow: 0 25px 60px rgba(15, 59, 102, 0.15);
}

.painted-screws-image-placeholder span {
    padding: 15px 22px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--primary-color, #0f3b66);
    font-weight: 700;
}

.painted-screws-benefits {
    background: #f4f7fa;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 50px;
}

.section-heading.centered {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading p {
    margin-bottom: 0;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.benefit-card {
    padding: 34px 28px;
    border: 1px solid #e0e7ed;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 59, 102, 0.06);
}

.benefit-icon {
    display: flex;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf1f7;
    font-size: 1.35rem;
}

.benefit-card p {
    margin-bottom: 0;
    font-size: 0.98rem;
}

.application-list {
    display: grid;
    margin: 30px 0 0;
    padding: 0;
    gap: 12px;
    list-style: none;
}

.application-list li {
    position: relative;
    padding-left: 30px;
    color: #344250;
    font-weight: 600;
}

.application-list li::before {
    position: absolute;
    top: 1px;
    left: 0;
    color: var(--primary-light, #1f5f99);
    content: "✓";
    font-weight: 800;
}

.color-panel {
    overflow: hidden;
    border-radius: 10px;
    background:
        linear-gradient(
            135deg,
            var(--primary-color, #0f3b66),
            var(--primary-light, #1f5f99)
        );
    box-shadow: 0 25px 60px rgba(15, 59, 102, 0.2);
}

.color-panel-content {
    padding: 60px 50px;
}

.color-panel h2,
.color-panel p {
    color: #fff;
}

.color-panel p {
    color: rgba(255, 255, 255, 0.82);
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    margin-top: 35px;
    gap: 12px;
}

.swatch {
    display: block;
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.swatch-red {
    background: #a9272c;
}

.swatch-blue {
    background: #235d91;
}

.swatch-green {
    background: #42764d;
}

.swatch-yellow {
    background: #e3b12f;
}

.swatch-grey {
    background: #767d82;
}

.swatch-black {
    background: #202326;
}

.swatch-white {
    background: #f1f1ed;
}

.painted-screws-process {
    background: #f4f7fa;
}

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

.process-step {
    position: relative;
    padding: 38px 32px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 59, 102, 0.07);
}

.step-number {
    display: flex;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color, #0f3b66);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
}

.process-step p {
    margin-bottom: 0;
    font-size: 0.98rem;
}

.painted-screws-cta {
    padding: 75px 0;
    background:
        linear-gradient(
            135deg,
            var(--primary-color, #0f3b66),
            var(--primary-light, #1f5f99)
        );
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.cta-content > div:first-child {
    max-width: 700px;
}

.painted-screws-cta h2 {
    margin-bottom: 16px;
    color: #fff;
}

.painted-screws-cta p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
}

.painted-screws-page .btn-light {
    background: #fff;
    color: var(--primary-color, #0f3b66);
}

.painted-screws-page .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.painted-screws-page .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1000px) {
    .benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-column-layout {
        gap: 45px;
    }

    .cta-content {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .painted-screws-page .section-spacing {
        padding: 65px 0;
    }

    .painted-screws-hero {
        padding: 85px 0;
    }

    .two-column-layout,
    .benefit-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .two-column-layout.reverse .content-column {
        order: initial;
    }

    .painted-screws-image-placeholder {
        min-height: 330px;
    }

    .color-panel-content {
        padding: 45px 30px;
    }
}

@media (max-width: 480px) {
    .painted-screws-page .container {
        width: min(100% - 28px, 1180px);
    }

    .hero-actions,
    .cta-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .painted-screws-page .btn {
        width: 100%;
    }

    .benefit-card,
    .process-step {
        padding: 30px 24px;
    }
}
.painted-screws-main-image {
    display: block;
    width: 100%;
    min-height: 470px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 25px 60px rgba(15, 59, 102, 0.15);
}