/* ==================================================
   BJØRNSHOLM HÅNDVÆRK
   style.css

   Version: 5.1

   Indhold:

   1. Variabler
   2. Global styling
   3. Layout
   4. Knapper
   5. Header
   6. Navigation
   7. Hero
   8. Ydelser
   9. Arbejdsproces
   10. Om
   11. Kontakt
   12. Footer
   13. Animationer
   14. Mobilvisning

================================================== */


/* ==================================================
   1. VARIABLER

   Farver baseret på virksomhedens logo.
================================================== */

:root {

    --primary: #0a2f73;

    --primary-dark: #061d4a;

    --primary-light: #1e4ca1;

    --accent: #f4b400;

    --white: #ffffff;

    --background: #f3f6fb;

    --text: #1f2937;

    --text-light: #6b7280;

    --border: #e5e7eb;

    --shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);

    --shadow-hover:
        0 20px 40px rgba(0, 0, 0, 0.12);

    --radius: 16px;

    --transition: 0.3s ease;

}


/* ==================================================
   2. RESET
================================================== */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}

html {

    scroll-behavior: smooth;

}

body {

    font-family: 'Inter', sans-serif;

    background: var(--background);

    color: var(--text);

    line-height: 1.7;

    overflow-x: hidden;

}

img {

    max-width: 100%;

    display: block;

}

a {

    text-decoration: none;

}

ul {

    list-style: none;

}


/* ==================================================
   3. GLOBAL STYLING
================================================== */

.container {

    width: min(90%, 1200px);

    margin: 0 auto;

}

.section {

    padding: 100px 0;

}

.section-light {

    background: var(--white);

}

.section-header {

    text-align: center;

    max-width: 800px;

    margin: 0 auto 60px;

}

.section-tag {

    display: inline-block;

    padding: 8px 16px;

    background: rgba(10, 47, 115, 0.1);

    color: var(--primary);

    border-radius: 999px;

    font-size: 0.9rem;

    font-weight: 600;

    margin-bottom: 15px;

}

.section-header h2 {

    font-size: clamp(2rem, 4vw, 3rem);

    margin-bottom: 20px;

    color: var(--primary-dark);

}

.section-header p {

    color: var(--text-light);

    font-size: 1.05rem;

}


/* ==================================================
   4. KNAPPER
================================================== */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 15px 28px;

    border-radius: 12px;

    font-weight: 600;

    transition: var(--transition);

    cursor: pointer;

}

.btn:hover {

    transform: translateY(-3px);

}

.btn-primary {

    background: var(--primary);

    color: var(--white);

}

.btn-primary:hover {

    background: var(--primary-dark);

}

.btn-secondary {

    background: transparent;

    color: var(--white);

    border: 2px solid var(--white);

}

.btn-secondary:hover {

    background: rgba(255,255,255,0.1);

}


/* ==================================================
   5. HEADER
================================================== */

.header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(255,255,255,0.96);

    backdrop-filter: blur(10px);

    box-shadow: 0 2px 12px rgba(0,0,0,0.06);

}

.nav-container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 14px 0;

}

.logo img {

    width: 90px;

    height: auto;

}

.header-phone {

    background: var(--primary);

    color: var(--white);

    padding: 12px 18px;

    border-radius: 10px;

    font-weight: 600;

}


/* ==================================================
   6. NAVIGATION
================================================== */

.nav-links {

    display: flex;

    gap: 30px;

}

.nav-links a {

    color: var(--text);

    font-weight: 600;

    position: relative;

    transition: var(--transition);

}

.nav-links a:hover {

    color: var(--primary);

}

.nav-links a.active {

    color: var(--primary);

}

.nav-links a.active::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -6px;

    width: 100%;

    height: 2px;

    background: var(--primary);

}

.menu-toggle {

    display: none;

    background: none;

    border: none;

    font-size: 2rem;

    cursor: pointer;

}


/* ==================================================
   7. HERO
================================================== */

.hero {

    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );

    color: var(--white);

    text-align: center;

    padding: 140px 20px;

}

.hero-content {

    max-width: 900px;

    margin: 0 auto;

}

.hero-badge {

    display: inline-block;

    background: rgba(255,255,255,0.15);

    padding: 10px 18px;

    border-radius: 999px;

    margin-bottom: 25px;

    font-size: 0.95rem;

}

.hero h1 {

    font-size: clamp(3rem, 7vw, 5rem);

    line-height: 1.1;

    margin-bottom: 20px;

}

.hero-subtitle {

    font-size: 1.2rem;

    max-width: 700px;

    margin: 0 auto 30px;

    opacity: 0.95;

}

.hero-services {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 40px;

    font-weight: 600;

}

.hero-buttons {

    display: flex;

    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;

}
/* ==================================================
   8. YDELSER
================================================== */

.service-grid {

    display: grid;

    grid-template-columns: repeat(
        auto-fit,
        minmax(280px, 1fr)
    );

    gap: 30px;

}

.service-card {

    background: var(--white);

    padding: 35px;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    transition: var(--transition);

    border: 1px solid var(--border);

}

.service-card:hover {

    transform: translateY(-8px);

    box-shadow: var(--shadow-hover);

}

.service-icon {

    font-size: 2.5rem;

    margin-bottom: 20px;

}

.service-card h3 {

    color: var(--primary-dark);

    margin-bottom: 15px;

    font-size: 1.3rem;

}

.service-card p {

    color: var(--text-light);

}


/* ==================================================
   9. ARBEJDSPROCES
================================================== */

.timeline {

    max-width: 900px;

    margin: 0 auto;

    position: relative;

}

.timeline::before {

    content: "";

    position: absolute;

    left: 30px;

    top: 0;

    bottom: 0;

    width: 4px;

    background: var(--primary);

    border-radius: 999px;

}

.timeline-item {

    position: relative;

    padding-left: 90px;

    margin-bottom: 50px;

}

.timeline-item:last-child {

    margin-bottom: 0;

}

.timeline-number {

    position: absolute;

    left: 0;

    top: 0;

    width: 60px;

    height: 60px;

    background: var(--primary);

    color: var(--white);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    font-size: 1.2rem;

    box-shadow: var(--shadow);

}

.timeline-content {

    background: var(--white);

    padding: 25px 30px;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

}

.timeline-content h3 {

    margin-bottom: 10px;

    color: var(--primary-dark);

}

.timeline-content p {

    color: var(--text-light);

}


/* ==================================================
   10. OM-SEKTION
================================================== */

.about-grid {

    display: grid;

    grid-template-columns: 1.2fr 1fr;

    gap: 50px;

    align-items: center;

}

.about-content h2 {

    font-size: clamp(2rem, 4vw, 3rem);

    color: var(--primary-dark);

    margin-bottom: 25px;

}

.about-content p {

    margin-bottom: 20px;

    color: var(--text-light);

}

.about-highlights {

    display: grid;

    gap: 20px;

}

.highlight-card {

    background: var(--white);

    padding: 25px;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

}

.highlight-icon {

    display: block;

    font-size: 2rem;

    margin-bottom: 15px;

}

.highlight-card h3 {

    color: var(--primary-dark);

    margin-bottom: 10px;

}

.highlight-card p {

    color: var(--text-light);

}


/* ==================================================
   11. KONTAKTOPLYSNINGER
================================================== */

.contact-info-grid {

    display: grid;

    grid-template-columns: repeat(
        auto-fit,
        minmax(250px, 1fr)
    );

    gap: 25px;

    margin-bottom: 60px;

}

.contact-card {

    background: var(--white);

    padding: 30px;

    text-align: center;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

}

.contact-icon {

    font-size: 2rem;

    margin-bottom: 15px;

}

.contact-card h3 {

    margin-bottom: 10px;

    color: var(--primary-dark);

}

.contact-card a {

    color: var(--primary);

    font-weight: 600;

}

.contact-card p {

    color: var(--text);

    font-weight: 600;

}


/* ==================================================
   12. KONTAKTFORMULAR
================================================== */

.contact-form-wrapper {

    max-width: 850px;

    margin: 0 auto;

}

.contact-form {

    background: var(--white);

    padding: 40px;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

}

.form-group {

    margin-bottom: 25px;

}

.form-group label {

    display: block;

    margin-bottom: 8px;

    font-weight: 600;

    color: var(--primary-dark);

}

.form-group input,
.form-group textarea {

    width: 100%;

    padding: 15px;

    border: 1px solid var(--border);

    border-radius: 12px;

    font-size: 1rem;

    font-family: inherit;

    transition: var(--transition);

}

.form-group input:focus,
.form-group textarea:focus {

    outline: none;

    border-color: var(--primary);

    box-shadow:
        0 0 0 4px
        rgba(10, 47, 115, 0.1);

}

.form-group textarea {

    resize: vertical;

    min-height: 180px;

}

.form-button {

    width: 100%;

    border: none;

    font-size: 1rem;

}
/* ==================================================
   13. FOOTER
================================================== */

/* ==================================================
   13. FOOTER
================================================== */

.footer {

    background: #081933;

    color: var(--white);

    padding: 90px 0 60px;

    text-align: center;

    border-top: 4px solid var(--accent);

}

.footer-content {

    max-width: 600px;

    margin: 0 auto;

}

.footer h2 {

    font-size: 2rem;

    margin-bottom: 12px;

    letter-spacing: 0.5px;

}

.footer-tagline {

    color: rgba(255,255,255,0.8);

    margin-bottom: 30px;

}

.footer-contact {

    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-top: 30px;

}

.footer-contact p {

    color: rgba(255,255,255,0.9);

    margin-bottom: 10px;

    opacity: 0.9;

}

/* ==================================================
   14. TIL TOPPEN-KNAP
================================================== */

.back-to-top {

    position: fixed;

    right: 25px;

    bottom: 25px;

    width: 55px;

    height: 55px;

    border: none;

    border-radius: 50%;

    background: var(--primary);

    color: var(--white);

    font-size: 1.4rem;

    cursor: pointer;

    box-shadow: var(--shadow);

    opacity: 0;

    visibility: hidden;

    transform: translateY(20px);

    transition: var(--transition);

    z-index: 999;

}

.back-to-top.show {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}

.back-to-top:hover {

    background: var(--primary-dark);

}


/* ==================================================
   15. SCROLL ANIMATIONER
================================================== */

.reveal {

    opacity: 0;

    transform: translateY(40px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;

}

.reveal.active {

    opacity: 1;

    transform: translateY(0);

}


/* ==================================================
   16. FORMULAR FEJLSTATER
================================================== */

.input-error {

    border-color: #dc2626 !important;

}

.error-message {

    display: block;

    margin-top: 8px;

    color: #dc2626;

    font-size: 0.9rem;

}

.success-message {

    background: #ecfdf5;

    border: 1px solid #10b981;

    color: #065f46;

    padding: 15px;

    border-radius: 12px;

    margin-bottom: 20px;

}


/* ==================================================
   17. MOBILMENU
================================================== */

@media (max-width: 900px) {

    .menu-toggle {

        display: block;

        color: var(--primary-dark);

    }

    .header-phone {

        display: none;

    }

    .nav-links {

        position: absolute;

        top: 100%;

        left: 0;

        right: 0;

        background: var(--white);

        flex-direction: column;

        padding: 25px;

        gap: 20px;

        box-shadow: var(--shadow);

        opacity: 0;

        visibility: hidden;

        transform: translateY(-15px);

        transition: var(--transition);

    }

    .nav-links.show {

        opacity: 1;

        visibility: visible;

        transform: translateY(0);

    }

}


/* ==================================================
   18. TABLET VISNING
================================================== */

@media (max-width: 992px) {

    .about-grid {

        grid-template-columns: 1fr;

    }

    .timeline {

        max-width: 100%;

    }

}


/* ==================================================
   19. MOBILVISNING
================================================== */

@media (max-width: 768px) {

    .section {

        padding: 80px 0;

    }

    .hero {

        padding: 100px 20px;

    }

    .hero h1 {

        font-size: 2.7rem;

    }

    .hero-subtitle {

        font-size: 1.05rem;

    }

    .hero-buttons {

        flex-direction: column;

    }

    .btn {

        width: 100%;

    }

    .timeline::before {

        left: 24px;

    }

    .timeline-item {

        padding-left: 75px;

    }

    .timeline-number {

        width: 48px;

        height: 48px;

        font-size: 1rem;

    }

    .contact-form {

        padding: 25px;

    }

    .footer {

        padding: 60px 0 40px;

    }

}


/* ==================================================
   20. SMÅ MOBILER
================================================== */

@media (max-width: 480px) {

    .container {

        width: 92%;

    }

    .hero h1 {

        font-size: 2.2rem;

    }

    .section-header h2 {

        font-size: 1.9rem;

    }

    .service-card {

        padding: 25px;

    }

    .contact-card {

        padding: 25px;

    }

}


/* ==================================================
   21. ACCESSIBILITY

   Gør navigation bedre for tastaturbrugere.
================================================== */

a:focus,
button:focus,
input:focus,
textarea:focus {

    outline: 3px solid rgba(244,180,0,0.5);

    outline-offset: 3px;

}


/* ==================================================
   22. CORE WEB VITALS

   Optimeringer til rendering og scrolling.
================================================== */

.service-card,
.contact-card,
.highlight-card,
.timeline-content {

    contain: layout paint;

}

html {

    text-rendering: optimizeLegibility;

    -webkit-font-smoothing: antialiased;

    -moz-osx-font-smoothing: grayscale;

}

img {

    height: auto;

}

