/* ==========================================================================
   Finnerup & Pedersen Tømrerforretning – site styles
   Farver fra logoet: navy #263f68, rød #a31d21
   ========================================================================== */

@font-face {
    font-family: "Barlow";
    src: url("/fonts/barlow-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Barlow";
    src: url("/fonts/barlow-500.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "Barlow";
    src: url("/fonts/barlow-600.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "Barlow";
    src: url("/fonts/barlow-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "Barlow";
    src: url("/fonts/barlow-800.woff2") format("woff2");
    font-weight: 800;
    font-display: swap;
}

:root {
    --navy: #263f68;
    --navy-dark: #1c3052;
    --navy-deep: #16263f;
    --red: #a31d21;
    --red-dark: #86171b;
    --gold: #d9a441;
    --ink: #232a35;
    --muted: #5b6472;
    --line: #e3e6ec;
    --bg-alt: #f4f6f9;
    --white: #fff;
    --radius: 6px;
    --shadow: 0 2px 12px rgba(22, 38, 63, 0.08);
    --shadow-lg: 0 8px 30px rgba(22, 38, 63, 0.14);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Barlow", "Segoe UI", system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--navy);
}

h1, h2, h3 {
    line-height: 1.15;
    color: var(--navy);
    font-weight: 700;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.icon {
    width: 1.15em;
    height: 1.15em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--navy);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 100;
}
.skip-link:focus {
    left: 0;
}

/* --------------------------------------------------------------------------
   Knapper
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active {
    transform: translateY(1px);
}
.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1.0625rem;
}
.btn-red {
    background: var(--red);
    color: #fff;
}
.btn-red:hover {
    background: var(--red-dark);
}
.btn-navy {
    background: var(--navy);
    color: #fff;
}
.btn-navy:hover {
    background: var(--navy-dark);
}
.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

/* --------------------------------------------------------------------------
   Topbar + header
   -------------------------------------------------------------------------- */

.topbar {
    background: var(--navy-deep);
    color: #c4cede;
    font-size: 0.875rem;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}
.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: inherit;
    text-decoration: none;
}
a.topbar-item:hover {
    color: #fff;
}
.topbar-right {
    display: flex;
    gap: 1.5rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.site-header.scrolled {
    box-shadow: var(--shadow);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.brand-mark {
    width: 66px;
    height: auto;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.brand-name {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    color: var(--navy);
    text-transform: uppercase;
}
.brand-sub {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.2rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.site-nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}
.site-nav ul a {
    text-decoration: none;
    font-weight: 600;
    color: var(--ink);
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
}
.site-nav ul a:hover {
    color: var(--red);
    border-bottom-color: var(--red);
}
.nav-cta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
    text-decoration: none;
    white-space: nowrap;
}
.phone-link:hover {
    color: var(--red);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 0.5rem;
    cursor: pointer;
}
.nav-toggle-bar {
    width: 26px;
    height: 3px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    color: #fff;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(22, 38, 63, 0.92) 0%, rgba(22, 38, 63, 0.75) 45%, rgba(22, 38, 63, 0.35) 100%);
}
.hero-content {
    position: relative;
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
    max-width: 1160px;
}
.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    font-weight: 600;
    color: #b9c6dc;
    margin-bottom: 0.75rem;
}
.hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 800;
    max-width: 15em;
}
.hero-lead {
    margin-top: 1.1rem;
    max-width: 34em;
    font-size: 1.15rem;
    color: #e4e9f2;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.75rem;
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
    list-style: none;
    margin-top: 1.9rem;
    font-weight: 500;
    color: #dfe5ef;
}
.hero-trust li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hero-trust li::before {
    content: "";
    width: 0.55em;
    height: 0.9em;
    border: solid var(--gold);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) translateY(-2px);
    flex: none;
}

/* --------------------------------------------------------------------------
   USP-bånd
   -------------------------------------------------------------------------- */

.usp-band {
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
}
.usp-icon {
    width: 2.1rem;
    height: 2.1rem;
    color: var(--red);
    margin-bottom: 0.7rem;
}
.usp h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}
.usp p {
    color: var(--muted);
    font-size: 0.97rem;
}

/* --------------------------------------------------------------------------
   Sektioner
   -------------------------------------------------------------------------- */

.section {
    padding: 4.5rem 0;
}
.section-alt {
    background: var(--bg-alt);
}
.section-head {
    max-width: 44em;
    margin-bottom: 2.5rem;
}
.section-head h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    margin-bottom: 0.6rem;
}
.section-head p {
    color: var(--muted);
    font-size: 1.1rem;
}

/* Ydelseskort */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.service-card img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    width: 100%;
}
.service-card-body {
    padding: 1.35rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.service-card h3 {
    font-size: 1.25rem;
}
.service-card p {
    color: var(--muted);
    flex: 1;
}
.service-more {
    color: var(--red);
    font-weight: 700;
}
.service-card:hover .service-more {
    text-decoration: underline;
}

/* Proces */

.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    list-style: none;
    counter-reset: step;
}
.process li {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    position: relative;
}
.process-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 0.9rem;
}
.process h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}
.process p {
    color: var(--muted);
    font-size: 0.97rem;
}

/* Om os-split */

.about-split {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 3.5rem;
    align-items: center;
}
.about-media img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}
.about-text h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
}
.about-text p {
    margin-bottom: 1rem;
    color: #3c4453;
}
.about-text .btn {
    margin-top: 0.5rem;
}

/* Udtalelser */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.testimonial {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.stars {
    color: var(--gold);
    letter-spacing: 0.15em;
    font-size: 1.05rem;
}
.testimonial p {
    color: #3c4453;
    flex: 1;
}
.testimonial footer {
    font-weight: 700;
    color: var(--navy);
}

/* CTA-bånd */

.cta-band {
    background: linear-gradient(100deg, var(--navy-deep), var(--navy));
    color: #fff;
    padding: 3.25rem 0;
}
.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.cta-band h2 {
    color: #fff;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    margin-bottom: 0.35rem;
}
.cta-band p {
    color: #cdd6e4;
}
.cta-band-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */

.contact-split {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 3.5rem;
    align-items: start;
}
.contact-intro h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-bottom: 0.8rem;
}
.contact-intro > p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}
.contact-facts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-weight: 600;
}
.contact-facts li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.contact-facts .icon {
    color: var(--red);
    width: 1.35rem;
    height: 1.35rem;
}
.contact-facts a {
    color: var(--navy);
    text-decoration: none;
}
.contact-facts a:hover {
    text-decoration: underline;
}
.contact-reassure {
    margin-top: 2rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
}
.contact-reassure h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}
.contact-reassure ol {
    padding-left: 1.2rem;
    color: #3c4453;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-form-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.form-field label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy);
}
.form-field input,
.form-field select,
.form-field textarea {
    font: inherit;
    padding: 0.65rem 0.8rem;
    border: 1px solid #c6ccd6;
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
}
.form-field input,
.form-field select {
    /* Native selects don't respect vertical padding consistently – lock the height so inputs and selects match */
    height: calc(1.6em + 1.3rem + 2px);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 2px solid var(--navy);
    outline-offset: 1px;
    border-color: var(--navy);
}
.form-field textarea {
    resize: vertical;
}
.form-note {
    font-size: 0.9rem;
    color: var(--muted);
}
.form-error {
    background: #fdeceb;
    border: 1px solid #eec7c6;
    color: var(--red-dark);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    margin-bottom: 1.1rem;
    font-weight: 600;
}
.hp-field {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Undersider
   -------------------------------------------------------------------------- */

.page-hero {
    background: linear-gradient(100deg, var(--navy-deep), var(--navy));
    color: #fff;
    padding: 3.5rem 0;
}
.page-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.5rem;
}
.page-hero p {
    color: #cdd6e4;
    max-width: 40em;
    font-size: 1.1rem;
}
.page-hero a {
    color: #fff;
}

/* Ydelser-side */

.ydelser-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}
.ydelse {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 3rem;
    align-items: center;
}
.ydelse:nth-child(even) img {
    order: 2;
}
.ydelse img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}
.ydelse h2 {
    font-size: 1.7rem;
    margin-bottom: 0.7rem;
}
.ydelse p {
    color: #3c4453;
    margin-bottom: 0.9rem;
}
.ydelse ul {
    margin: 0 0 1.25rem 1.2rem;
    color: #3c4453;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Om os-side */

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
}
.value {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
}
.value h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.value p {
    color: #3c4453;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}
.info-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.info-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}
.info-card p {
    color: #3c4453;
    font-size: 0.97rem;
}

/* Referencer */

.ref-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.ref-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}
.ref-card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}
.ref-card figcaption {
    padding: 1.15rem 1.35rem 1.35rem;
}
.ref-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}
.ref-card p {
    color: var(--muted);
    font-size: 0.97rem;
}

/* Tak/fejl/prose */

.tak-content {
    max-width: 42em;
}
.tak-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.prose {
    max-width: 46em;
}
.prose h2 {
    font-size: 1.35rem;
    margin: 1.75rem 0 0.5rem;
}
.prose p {
    color: #3c4453;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: var(--navy-deep);
    color: #b9c3d4;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-top: 3.5rem;
    padding-bottom: 3rem;
}
.footer-col h3 {
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.9rem;
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.footer-col a {
    color: #b9c3d4;
    text-decoration: none;
}
.footer-col a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-about img {
    margin-bottom: 1rem;
}
.footer-about p,
.footer-towns {
    font-size: 0.95rem;
    line-height: 1.65;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.875rem;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    flex-wrap: wrap;
}
.footer-bottom a {
    color: #b9c3d4;
}

/* --------------------------------------------------------------------------
   Responsivt
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
    .usp-grid,
    .process {
        grid-template-columns: 1fr 1fr;
    }
    .service-grid,
    .ref-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
    .topbar-item:first-child {
        display: none;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: flex;
    }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem 1.25rem 1.5rem;
    }
    .site-nav.open {
        display: flex;
    }
    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .site-nav ul a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--line);
        font-size: 1.1rem;
    }
    .nav-cta {
        margin-top: 1.25rem;
        justify-content: space-between;
    }
    .about-split,
    .contact-split,
    .ydelse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .ydelse:nth-child(even) img {
        order: 0;
    }
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .hero-content {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (max-width: 560px) {
    .usp-grid,
    .process,
    .service-grid,
    .ref-grid,
    .footer-grid,
    .info-grid,
    .values-grid,
    .form-row {
        grid-template-columns: 1fr;
    }
    .topbar-right {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }
    .brand-mark {
        width: 52px;
    }
    .brand-name {
        font-size: 1.05rem;
    }
    .section {
        padding: 3rem 0;
    }
    .contact-form-wrap {
        padding: 1.4rem;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
