/* ========================================
   WOODFELLA - DESIGN SYSTEM
======================================== */

:root {
    /* Backgrounds */
    --wf-background: oklch(96.2% 0.018 78);
    --wf-card: oklch(98.5% 0.012 80);
    --wf-secondary: oklch(92.5% 0.026 78);

    /* Text */
    --wf-foreground: oklch(26.8% 0.036 52);
    --wf-muted: oklch(50.5% 0.032 58);
    --wf-muted-foreground: oklch(50.5% 0.032 58);

    /* Brand colors */
    --wf-primary: oklch(32.8% 0.048 50);
    --wf-primary-foreground: oklch(97% 0.016 82);
    --wf-accent: oklch(58.5% 0.092 55);

    /* Borders */
    --wf-border: oklch(86.8% 0.026 74);

    /* Typography */
    --wf-font: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;

    /* Layout */
    --wf-container: 1152px;
    --wf-radius: 14.4px;

    /* Shadows */
    --wf-shadow-soft:
        0 18px 50px -24px oklch(32% 0.05 50 / 0.35);

    /* Gradients */
    --wf-gradient-warm:
        linear-gradient(
            140deg,
            oklch(97% 0.02 82) 0%,
            oklch(93% 0.032 70) 55%,
            oklch(89% 0.038 62) 100%
        );
}

/* ========================================
   GLOBAL RESET
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--wf-background);
    color: var(--wf-foreground);

    font-family: var(--wf-font);
    font-size: 16px;
    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Consistent typography throughout Woodfella */

button,
input,
textarea,
select {
    font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: inherit;
}

button {
    cursor: pointer;
}

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

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

/* ========================================
   HEADER
======================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    background: var(--wf-background);

    border-bottom: 1px solid var(--wf-border);
}

.header-container {
    max-width: var(--wf-container);
    height: 80px;

    margin: 0 auto;
    padding: 0 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo a {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.header-logo a:hover {
    transform: translateY(-2px);
}

.header-logo img {
    display: block;
    width: auto;
    height: 44px;
    object-fit: contain;
}

/* Desktop navigation */

.desktop-navigation ul {
    display: flex;
    align-items: center;
    gap: 4px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-navigation a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;

    font-size: 14px;
    color: var(--wf-muted);

    transition: 0.3s ease;
}

.desktop-navigation a:hover {
    background: var(--wf-secondary);
    color: var(--wf-foreground);
}

/* Header contact button */

.header-call-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 20px;
    border-radius: 999px;

    background: var(--wf-primary);
    color: #fff;

    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;

    transition: 0.3s ease;
}

.header-call-button:hover {
    background: var(--wf-accent);
    color: #fff;
}

.header-call-button svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   TEMPORARY TEST SECTION
======================================== */

.test-section {
    max-width: var(--wf-container);
    margin: 100px auto;
    padding: 20px;
    text-align: center;
}

.test-section h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

/* ========================================
   HERO CONTAINER
======================================== */

.hero-section {
    padding: 16px 20px 40px;
}

.hero-container {
    position: relative;
    isolation: isolate;

    max-width: 1088px;
    min-height: 600px;

    margin: 0 auto;
    overflow: hidden;

    border-radius: 24px;
    background: var(--wf-secondary);
}

/* ========================================
   HERO SLIDESHOW MEDIA
======================================== */

.hero-slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 10;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide video,
.hero-slide .hero-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* ========================================
   HERO GRADIENT
======================================== */

.hero-overlay {
    position: absolute;
    inset: 0;

    z-index: 11;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgba(25, 25, 25, 0.85),
        rgba(25, 25, 25, 0.1)
    );
}

/* ========================================
   HERO CONTENT
======================================== */

.hero-content {
    position: relative;
    z-index: 12;

    max-width: 650px;
    min-height: 600px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 56px;
    color: #fff;
}

.hero-location {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    opacity: 0.8;
}

.hero-heading {
    margin: 12px 0 0;

    font-size: 30px;
    font-weight: 600;
    line-height: 1.05;
}

.hero-subtitle {
    margin-top: 12px;

    font-size: 20px;
    font-weight: 500;
    line-height: 1.375;
}

.hero-highlight {
    color: var(--wf-accent);
}

/* ========================================
   HERO BUTTONS
======================================== */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-button-primary,
.hero-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 14px 24px;
    border-radius: 999px;

    font-size: 16px;
    font-weight: 500;

    transition: 0.3s ease;
}

.hero-button-primary {
    background: var(--wf-primary);
    color: #fff;
}

.hero-button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.hero-button-primary:hover {
    background: var(--wf-accent);
}

.hero-button-secondary:hover {
    border-color: var(--wf-accent);
    color: var(--wf-accent);
}

.hero-button-primary svg,
.hero-button-secondary svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Responsive phone labels */

.hero-phone-desktop {
    display: inline;
}

.hero-phone-mobile {
    display: none;
}

/* ========================================
   SLIDESHOW NAVIGATION ARROWS
======================================== */

.hero-slideshow-controls {
    position: absolute;
    inset: 0;

    z-index: 20;
    pointer-events: none;
}

.hero-slide-prev,
.hero-slide-next {
    position: absolute;
    top: 50%;

    transform: translateY(-50%);

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

    width: 44px;
    height: 44px;

    padding: 12px;
    border: none;
    border-radius: 50%;

    background: color-mix(
        in oklab,
        var(--wf-background) 70%,
        transparent
    );

    color: var(--wf-foreground);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    cursor: pointer;
    pointer-events: auto;

    opacity: 0;

    transition:
        opacity 0.3s ease,
        background-color 0.3s ease;
}

.hero-slide-prev {
    left: 16px;
}

.hero-slide-next {
    right: 16px;
}

.hero-slide-prev svg,
.hero-slide-next svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hero-container:hover .hero-slide-prev,
.hero-container:hover .hero-slide-next,
.hero-slide-prev:focus-visible,
.hero-slide-next:focus-visible {
    opacity: 1;
}

.hero-slide-prev:hover,
.hero-slide-next:hover {
    background: var(--wf-background);
}

/* ========================================
   SLIDESHOW INDICATORS
======================================== */

.hero-slide-indicators {
    position: absolute;
    bottom: 16px;
    left: 0;

    z-index: 25;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    padding: 0 24px;
}

.hero-slide-indicator {
    display: block;
    flex-shrink: 0;

    width: 12px;
    height: 6px;

    padding: 0;
    border: none;
    border-radius: 999px;

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

    cursor: pointer;

    transition:
        width 0.5s ease,
        background-color 0.3s ease;
}

.hero-slide-indicator.is-active {
    width: 40px;
    background: var(--wf-accent);
}

.hero-slide-indicator:hover {
    background: var(--wf-background);
}

.hero-slide-indicator.is-active:hover {
    background: var(--wf-accent);
}

/* ========================================
   TABLET AND DESKTOP
======================================== */

@media (min-width: 640px) {

    .hero-section {
        padding-left: 40px;
        padding-right: 40px;
    }

    .hero-container {
        height: calc(100svh - 9rem);
        min-height: 440px;
        max-height: none;
    }

    .hero-content {
        height: 100%;
        min-height: 0;
    }

    .hero-heading {
        font-size: 48px;
    }

    .hero-slide-indicators {
        justify-content: flex-start;
        padding-left: 40px;
        padding-right: 40px;
    }

}

@media (min-width: 1024px) {

    .hero-heading {
        font-size: 60px;
    }

    .hero-slide-indicators {
        padding-left: 56px;
        padding-right: 56px;
    }

}

/* ========================================
   RESPONSIVE HEADER
======================================== */

@media (max-width: 1023px) {

    .desktop-navigation {
        display: none;
    }

}

/* ========================================
   MOBILE HERO
======================================== */

@media (max-width: 639px) {

    /* Header */

    .header-container {
        height: 56px;
        padding: 0 16px;
    }

    .header-logo img {
        height: 28px;
    }

    .header-call-button {
        display: none;
    }

    /* Hero dimensions */

    .hero-section {
        padding: 0 0 12px;
    }

    .hero-container {
        width: 100%;
        max-width: none;

        height: 58svh;
        min-height: 360px;
        max-height: 520px;

        border-radius: 0 0 16px 16px;
        box-shadow: none;
}

    /* Mobile gradient */

    .hero-overlay {
        background: linear-gradient(
            to top,
            oklch(26.8% 0.036 52 / 0.90),
            oklch(26.8% 0.036 52 / 0.45),
            oklch(26.8% 0.036 52 / 0.15)
        );
    }

    /* Mobile text */

    .hero-content {
        width: 100%;
        max-width: none;

        height: 100%;
        min-height: 0;

        justify-content: flex-end;

        padding: 24px 24px 50px;
    }

    .hero-location {
        margin: 0;

        font-size: 10px;
        font-weight: 500;
        letter-spacing: 1.4px;
    }

    .hero-heading {
        margin-top: 12px;

        font-size: 30px;
        font-weight: 600;
        line-height: 1.05;
    }

    .hero-subtitle {
        margin-top: 12px;
        margin-bottom: 0;

        font-size: 15px;
        line-height: 1.375;
    }

    /* Mobile buttons */

    .hero-buttons {
        flex-direction: row;
        gap: 8px;
        margin-top: 20px;
    }

    .hero-button-primary,
    .hero-button-secondary {
        min-height: 44px;

        padding: 10px 16px;
        border-radius: 12px;

        font-size: 14px;
        font-weight: 500;
    }

    /* Work button first */

    .hero-button-secondary {
        order: 1;

        background: var(--wf-primary);
        color: var(--wf-primary-foreground);

        border: none;
    }

    /* Phone button second */

    .hero-button-primary {
        order: 2;

        background: transparent;
        color: var(--wf-background);

        border: none;
    }

    /* Mobile icons */

    .hero-button-secondary svg {
        display: none;
    }

    .hero-button-primary svg {
        display: block;
        width: 16px;
        height: 16px;
    }

    /* Mobile phone label */

    .hero-phone-desktop {
        display: none;
    }

    .hero-phone-mobile {
        display: inline;
    }

    /* Hide mobile arrows */

    .hero-slideshow-controls {
        display: none;
    }

    /* Mobile slideshow indicators */

    .hero-slide-indicators {
        bottom: 8px;
        padding: 0 8px;
        gap: 0;
        justify-content: center;
    }

    .hero-slide-indicator,
    .hero-slide-indicator.is-active {
        position: relative;

        flex: 0 0 40px;

        width: 40px;
        height: 40px;

        background: transparent;
        box-shadow: none;
    }

    .hero-slide-indicator::after {
        content: "";

        position: absolute;
        top: 50%;
        left: 50%;

        transform: translate(-50%, -50%);

        width: 6px;
        height: 3px;

        border-radius: 3px;
        background: var(--wf-background);

        transition:
            width 0.5s ease,
            background-color 0.3s ease;
    }

    .hero-slide-indicator.is-active::after {
        width: 18px;
        background: var(--wf-accent);
    }

    .hero-slide-indicator:hover::after {
        background: var(--wf-background);
    }

    .hero-slide-indicator.is-active:hover::after {
        background: var(--wf-accent);
    }

}

/* ========================================
   MOBILE BOTTOM NAVIGATION
======================================== */

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 639px) {

    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;

        z-index: 9999;

        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;

        width: 100%;
        max-width: 100vw;

        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));

        background: color-mix(
            in oklab,
            var(--wf-background) 95%,
            transparent
        );

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

        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 4px;

        width: 100%;
        min-width: 0;
        min-height: 48px;

        font-size: 11px;
        font-weight: 500;

        color: var(--wf-muted);
        text-align: center;

        transition: color 0.2s ease;
    }

    .mobile-nav-item svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .mobile-nav-item:hover,
    .mobile-nav-item:focus-visible {
        color: var(--wf-accent);
    }

    .mobile-nav-call {
        max-width: 100%;
        overflow: hidden;

        background: var(--wf-primary);
        color: var(--wf-primary-foreground);

        border-radius: 12px;
    }

    .mobile-nav-call:hover {
        color: var(--wf-primary-foreground);
    }

    .mobile-nav-item:active {
        opacity: 0.6;
    }

    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

}

/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {

    .hero-slide,
    .hero-slide-indicator,
    .hero-slide-indicator::after,
    .hero-slide-prev,
    .hero-slide-next {
        transition: none;
    }

}

/* ========================================
   GALLERY PAGE
======================================== */

.gallery-page {
    min-height: 70vh;
}

.gallery-section {
    max-width: 1152px;
    margin: 0 auto;
    padding: 64px 32px 40px;
}

.gallery-title {
    margin: 0;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
}

.gallery-description {
    max-width: 576px;
    margin: 16px 0 0;
    color: var(--wf-muted-foreground);
    font-size: 16px;
    line-height: 1.6;
}

/* Category filters */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.gallery-filter {
    padding: 8px 16px;
    border: 1px solid var(--wf-border);
    border-radius: 999px;
    background: #fff;
    color: var(--wf-muted-foreground);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.gallery-filter:hover {
    border-color: var(--wf-accent);
}

.gallery-filter.is-active {
    border-color: var(--wf-primary);
    background: var(--wf-primary);
    color: var(--wf-primary-foreground);
}

/* Gallery grid */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.gallery-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--wf-border);
    border-radius: 16px;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.gallery-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.gallery-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--wf-secondary);
}

.gallery-card-image img,
.gallery-card-image video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-card-content {
    padding: 24px;
}

.gallery-card-category {
    margin: 0;
    color: var(--wf-accent);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.gallery-card-title {
    margin: 8px 0 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
}

.gallery-card-count {
    margin: 8px 0 0;
    color: var(--wf-muted-foreground);
    font-size: 14px;
}

.gallery-empty {
    margin-top: 48px;
    color: var(--wf-muted-foreground);
}

/* Contact section */

.gallery-contact {
    max-width: 1152px;
    margin: 96px auto 0;
    padding: 64px 32px;
    border-top: 1px solid var(--wf-border);
}

.gallery-contact h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.3;
}

.gallery-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.gallery-contact-primary,
.gallery-contact-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.gallery-contact-primary {
    background: var(--wf-primary);
    color: var(--wf-primary-foreground);
}

.gallery-contact-primary:hover {
    background: var(--wf-accent);
}

.gallery-contact-secondary {
    border: 1px solid var(--wf-border);
    background: transparent;
    color: var(--wf-foreground);
}

.gallery-contact-secondary:hover {
    background: var(--wf-secondary);
}

/* Tablet */

@media (min-width: 640px) and (max-width: 1023px) {

    .gallery-section {
        padding: 64px 32px 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* ========================================
   MOBILE GALLERY PAGE
======================================== */

@media (max-width: 639px) {

    .gallery-description {
    font-size: 13px;
    }

    .gallery-filter {
        font-size: 12px;
    }

    .gallery-section {
        padding: 64px 12px 40px;
    }

    .gallery-title {
        font-size: 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 8px;
    }

    .gallery-card {
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .gallery-card:hover {
        transform: none;
        box-shadow: none;
    }

    .gallery-card-image {
        aspect-ratio: 4 / 5;
        border-radius: 12px;
        overflow: hidden;
    }

    .gallery-card-image img,
    .gallery-card-image video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gallery-card-content {
        padding: 8px 0 0;
    }

    .gallery-card-category {
        font-size: 10px;
        line-height: 1.4;
    }

    .gallery-card-title {
    margin-top: 4px;
    font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    color: #342115;
    }

    .gallery-card-count {
        display: none;
    }

    .gallery-contact {
        margin-top: 96px;
        padding: 64px 20px;
    }

    .gallery-contact h2 {
        font-size: 24px;
    }

    .gallery-contact-buttons {
        flex-direction: column;
    }

}

@media (prefers-reduced-motion: reduce) {

    .gallery-card,
    .gallery-filter,
    .gallery-contact-primary,
    .gallery-contact-secondary {
        transition: none;
    }

}


/* ========================================
   MAIN WEBSITE FOOTER
======================================== */

.site-footer {
    border-top: 1px solid var(--wf-border);
    background: var(--wf-background);
    font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
}

.site-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    max-width: 1152px;
    margin: 0 auto;
    padding: 64px 32px 96px;
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-footer-logo img {
    display: block;
    width: 176px;
    height: auto;
}

.site-footer-brand p {
    margin: 24px 0 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #736053;
}

.site-footer-brand p + p {
    margin-top: 24px;
}

.site-footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 180px;
}

.site-footer-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--wf-foreground);
    font-size: 14px;
    text-decoration: none;
}

.site-footer-contact svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.site-footer-contact:hover,
.site-footer-navigation a:hover {
    color: var(--wf-accent);
}

.site-footer-navigation {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.site-footer-navigation a {
    color: var(--wf-foreground);
    font-size: 14px;
    text-decoration: none;
}

/* Mobile Footer */
@media (max-width: 639px) {
    .site-footer-inner {
    flex-direction: column;
    gap: 48px;
    padding: 48px 20px 28px;
    }

    .site-footer-logo img {
        width: 100px;
    }

    .site-footer-links {
        min-width: 0;
    }

}

/* ========================================
   SINGLE GALLERY PROJECT
======================================== */

.single-project-page {
    min-height: 70vh;
}

.single-project {
    max-width: 1152px;
    margin: 0 auto;
    padding: 64px 32px 0;
}

/* Back link */

.single-project-back {
    display: inline-flex;
    align-items: center;
    color: var(--wf-accent);
    font-size: 16px;
    text-decoration: none;
}

.single-project-back:hover {
    text-decoration: none;
}

/* Project title */

.single-project-title {
    margin: 24px 0 0;
    color: var(--wf-foreground);
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
}

/* Desktop gallery */

.single-project-desktop-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.single-project-media {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--wf-border);
    border-radius: 16px;
    background: var(--wf-secondary);
}

.single-project-media.is-featured {
    grid-column: 1 / -1;
    max-height: 800px;
}

.single-project-media img,
.single-project-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hide mobile gallery on desktop */

.single-project-mobile-gallery {
    display: none;
}

/* Previous and next project links */

.single-project-navigation {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}

.single-project-navigation a {
    color: var(--wf-accent);
    font-size: 16px;
    text-decoration: none;
}

.single-project-navigation a:hover {
    text-decoration: none;
}

/* Fallback content */

.single-project-content {
    margin-top: 40px;
}

/* ========================================
   MOBILE PROJECT PAGE
======================================== */

@media (max-width: 639px) {

    .single-project {
        padding: 64px 12px 0;
    }

    .single-project-back {
        font-size: 14px;
    }

    /* Mobile swipe gallery */

    .single-project-mobile-gallery {
        position: relative;
        display: block;
        margin: 16px -8px 0;
    }

    .single-project-mobile-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .single-project-mobile-track::-webkit-scrollbar {
        display: none;
    }

    .single-project-mobile-slide {
        flex: 0 0 100%;
        min-width: 0;
        scroll-snap-align: center;
        aspect-ratio: 4 / 5;
        overflow: hidden;
        background: var(--wf-secondary);
    }

    .single-project-mobile-slide img,
    .single-project-mobile-slide video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Image counter */

    .single-project-counter {
        position: absolute;
        right: 16px;
        bottom: 16px;
        padding: 4px 12px;
        border-radius: 999px;
        background: rgba(35, 28, 24, 0.7);
        color: var(--wf-background);
        font-size: 12px;
        font-variant-numeric: tabular-nums;
        pointer-events: none;
    }

    /* Project title */

    .single-project-title {
        margin-top: 24px;
        font-size: 25px;
        font-weight: 600;
        line-height: 1.3;
    }

    /* Hide desktop gallery */

    .single-project-desktop-gallery {
        display: none;
    }

    /* Previous / next buttons */

    .single-project-navigation {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 20px;
    }

    .single-project-navigation a {
        display: flex;
        align-items: center;
        min-height: 36px;
        padding: 8px;
        border: 1px solid var(--wf-border);
        border-radius: 8px;
        color: var(--wf-accent);
        font-size: 12px;
        line-height: 1.3;
    }

    .single-project-navigation > div:last-child a {
        justify-content: flex-end;
        text-align: right;
    }

    /* Contact section */

    .single-project-page .gallery-contact {
        margin-top: 36px;
        padding: 24px 12px 40px;
    }

    .single-project-page .gallery-contact h2 {
        font-size: 23px;
        line-height: 1.3;
    }

    .single-project-page .gallery-contact-buttons {
        gap: 10px;
        margin-top: 20px;
    }

    .single-project-page .gallery-contact-primary,
    .single-project-page .gallery-contact-secondary {
        min-height: 40px;
        padding: 10px 16px;
        border-radius: 10px;
        font-size: 14px;
    }

}

/* ========================================
   PROJECT IMAGE LIGHTBOX
======================================== */

/* Make project images clickable */

.project-image-button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
}

.project-image-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-image-button:hover img {
    opacity: 0.95;
}

/* Fullscreen overlay */

.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;

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

    width: 100%;
    height: 100dvh;

    background: rgba(47, 28, 18, 0.92);
}

/* Keep lightbox hidden until opened */

.project-lightbox[hidden] {
    display: none;
}

/* Centered image */

.project-lightbox-image-container {
    display: flex;
    align-items: center;
    justify-content: center;

    width: calc(100% - 200px);
    height: calc(100% - 48px);

    pointer-events: none;
}

.project-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Image counter */

.project-lightbox-counter {
    position: absolute;
    top: 36px;
    left: 28px;
    z-index: 2;

    color: var(--wf-background);
    font-size: 14px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

/* Close button */

.project-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;

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

    width: 48px;
    height: 48px;

    padding: 0;
    border: none;
    background: transparent;
    color: var(--wf-background);

    cursor: pointer;
}

/* Previous / next arrows */

.project-lightbox-prev,
.project-lightbox-next {
    position: absolute;
    top: 50%;
    z-index: 3;

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

    width: 48px;
    height: 48px;

    padding: 0;
    border: none;
    background: transparent;
    color: var(--wf-background);

    transform: translateY(-50%);
    cursor: pointer;
}

.project-lightbox-prev {
    left: 8%;
}

.project-lightbox-next {
    right: 8%;
}

.project-lightbox-close:hover,
.project-lightbox-prev:hover,
.project-lightbox-next:hover {
    color: #fff;
}

/* Keyboard focus */

.project-lightbox button:focus-visible {
    outline: 2px solid var(--wf-background);
    outline-offset: 4px;
}

/* ========================================
   MOBILE LIGHTBOX
======================================== */

@media (max-width: 639px) {

    .project-lightbox-image-container {
        width: 100%;
        height: calc(100% - 120px);
        padding: 0 12px;
    }

    .project-lightbox-counter {
        top: 24px;
        left: 20px;
    }

    .project-lightbox-close {
        top: 12px;
        right: 12px;
    }

    .project-lightbox-prev {
        left: 4px;
    }

    .project-lightbox-next {
        right: 4px;
    }

    .project-lightbox-prev,
    .project-lightbox-next {
        width: 36px;
        height: 44px;
    }

    .project-lightbox-image {
        max-width: 100%;
        max-height: 100%;
    }

}

/* =========================================
   HOMEPAGE — FEATURED PORTFOLIO
========================================= */

.home-portfolio {
    background: var(--wf-background);
    scroll-margin-top: 96px;
}

.home-portfolio-container {
    width: 100%;
    max-width: 1152px;
    margin: 0 auto;
    padding: 96px 20px;
}

/* Section heading */

.home-section-label {
    margin: 0;
    color: var(--wf-accent);
    font-family: var(--wf-font);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.home-portfolio-title {
    margin: 16px 0 0;
    color: var(--wf-foreground);
    font-family: var(--wf-font);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.home-portfolio-description {
    max-width: 576px;
    margin: 16px 0 0;
    color: var(--wf-muted-foreground);
    font-family: var(--wf-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

/* Featured projects grid */

.home-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 48px;
}

/* Project cards */

.home-portfolio-card {
    min-width: 0;
    overflow: hidden;
    background: var(--wf-card);
    border: 1px solid var(--wf-border);
    border-radius: 16px;
    transition:
        transform 250ms ease,
        box-shadow 250ms ease;
}

.home-portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 50px -24px rgba(52, 33, 21, 0.35);
}

.home-portfolio-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.home-portfolio-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.home-portfolio-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--wf-secondary);
}

.home-portfolio-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.home-portfolio-card:hover .home-portfolio-card-image img {
    transform: scale(1.04);
}

.home-portfolio-card-content {
    padding: 24px;
}

.home-portfolio-card-category {
    margin: 0;
    color: var(--wf-accent);
    font-family: var(--wf-font);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-portfolio-card-title {
    margin: 8px 0 0;
    color: var(--wf-foreground);
    font-family: var(--wf-font);
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
}

/* Gallery button */

.home-portfolio-footer {
    margin-top: 48px;
}

.home-portfolio-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: var(--wf-primary);
    color: var(--wf-primary-foreground);
    border-radius: 9999px;
    font-family: var(--wf-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    transition:
        background-color 200ms ease,
        box-shadow 200ms ease;
}

.home-portfolio-button:hover {
    background: var(--wf-accent);
    color: var(--wf-primary-foreground);
    box-shadow: 0 8px 24px rgba(52, 33, 21, 0.15);
    text-decoration: none;
}

.home-portfolio-button svg {
    flex-shrink: 0;
    transform: rotate(90deg);
}

/* Tablet and desktop */

@media (min-width: 640px) {

    .home-portfolio-container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .home-portfolio-title {
        font-size: 36px;
        line-height: 40px;
    }

}

/* Mobile Portfolio — two-column cards */

@media (max-width: 639px) {

    .home-portfolio-grid {
        gap: 12px;
    }

    .home-portfolio-card {
        background: #fffaf3;
        border-radius: 12px;
    }

    .home-portfolio-card-content {
        padding: 10px;
    }

    .home-portfolio-card-category {
        display: inline-block;
        padding: 4px 6px;
        background: #f3e7d7;
        border-radius: 4px;
        color: #98704c;
        font-size: 9px;
        font-weight: 600;
        line-height: 12px;
        letter-spacing: 0;
    }

    .home-portfolio-card-title {
        margin-top: 7px;
        color: #342115;
        font-size: 13px;
        line-height: 18px;
    }
        /* Mobile gallery button */

    .home-portfolio-button {
        padding: 8px 14px;
        border-radius: 12px;

        font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
        font-size: 14px;
        font-weight: 500;
        line-height: 21px;
        color: #fbf4e9;
    }

    .home-portfolio-button svg {
        width: 14px;
        height: 14px;
    }

}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    .home-portfolio-card,
    .home-portfolio-card-image img,
    .home-portfolio-button {
        transition: none;
    }

}

/* =========================================
   HOMEPAGE PORTFOLIO — MOBILE CARDS
========================================= */

@media (max-width: 639px) {

    .home-portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .home-portfolio-card {
        background: #fffaf3;
        border: 1px solid var(--wf-border);
        border-radius: 12px;
        overflow: hidden;
    }

    .home-portfolio-card-image {
        aspect-ratio: 1 / 1;
    }

    .home-portfolio-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .home-portfolio-card-content {
        padding: 10px;
    }

    .home-portfolio-card-category {
        display: inline-block;
        padding: 4px 6px;
        background: #f3e7d7;
        border-radius: 4px;
        color: #98704c;
        font-size: 9px;
        font-weight: 600;
        line-height: 12px;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .home-portfolio-card-title {
        margin-top: 7px;
        color: #342115;
        font-size: 13px;
        font-weight: 500;
        line-height: 18px;
    }

}


/* =========================================
   HOMEPAGE — SERVICES
========================================= */

.home-services {
    scroll-margin-top: 96px;
    background: color-mix(
        in oklab,
        var(--wf-secondary) 40%,
        transparent
    );
    border-top: 1px solid var(--wf-border);
    border-bottom: 1px solid var(--wf-border);
}

.home-services-container {
    width: 100%;
    max-width: 1152px;
    margin: 0 auto;
    padding: 96px 20px;
}

/* Section heading */

.home-services-title {
    margin: 16px 0 0;
    color: var(--wf-foreground);
    font-family: var(--wf-font);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

/* Services grid */

.home-services-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 48px;
}

/* Service cards */

.home-service-card {
    min-width: 0;
    padding: 28px;
    background: var(--wf-card);
    border: 1px solid var(--wf-border);
    border-radius: 16px;
    cursor: pointer;

    transition:
        transform 250ms ease,
        border-color 250ms ease,
        box-shadow 250ms ease;
}

.home-service-card:hover {
    transform: translateY(-4px);
    border-color: var(--wf-accent);
    box-shadow: var(--wf-shadow-soft);
}

/* Service icons */

.home-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--wf-secondary);
    color: var(--wf-accent);
}

.home-service-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

/* Card typography */

.home-service-title {
    margin: 20px 0 0;
    color: var(--wf-foreground);
    font-family: var(--wf-font);
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
}

.home-service-description {
    margin: 12px 0 0;
    color: var(--wf-muted-foreground);
    font-family: var(--wf-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

/* Tablet and desktop */

@media (min-width: 640px) {

    .home-services-container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .home-services-title {
        font-size: 36px;
        line-height: 40px;
    }

    .home-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    .home-service-card {
        transition: none;
    }

}

/* =========================================
   HOMEPAGE SERVICES — MOBILE LIST
========================================= */

@media (max-width: 639px) {

    .home-services-container {
        padding: 24px 12px;
    }

    .home-services-title {
        margin-top: 8px;
        font-size: 18px;
        font-weight: 600;
        line-height: 24px;
        letter-spacing: 0;
    }

    .home-services-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: 16px;
    }

    .home-service-card {
        position: relative;
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr) 16px;
        column-gap: 8px;
        align-items: center;

        padding: 16px 0;
        background: transparent;
        border: none;
        border-bottom: 1px solid var(--wf-border);
        border-radius: 0;
        box-shadow: none;
        transform: none;
    }

    .home-service-card:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--wf-border);
    }

    .home-service-icon {
        width: 28px;
        height: 28px;
    }

    .home-service-icon svg {
        width: 14px;
        height: 14px;
    }

    .home-service-title {
        grid-column: 2;
        margin: 0;
        font-size: 12px;
        font-weight: 500;
        line-height: 18px;
    }

    .home-service-description {
        grid-column: 2;
        margin: 4px 0 0;
        font-size: 10px;
        line-height: 15px;
    }

    /* Arrow on the right */

    .home-service-card::after {
        content: "";
        grid-column: 3;
        grid-row: 1 / 3;
        justify-self: center;

        width: 6px;
        height: 6px;

        border-top: 1.5px solid var(--wf-foreground);
        border-right: 1.5px solid var(--wf-foreground);

        transform: rotate(45deg);
    }

    .home-service-icon {
        grid-column: 1;
        grid-row: 1 / 3;
    }

}


/* =========================================
   HOMEPAGE — SERVICES CONTACT POPUP
========================================= */

/* Desktop popup */

.home-service-popup {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 9998;

    width: min(384px, calc(100vw - 32px));
    padding: 20px;

    background: var(--wf-card);
    border: 1px solid var(--wf-border);
    border-radius: 20px;
    box-shadow: var(--wf-shadow-soft);
}

.home-service-popup[hidden] {
    display: none;
}

/* Close button */

.home-service-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;

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

    width: 24px;
    height: 24px;
    padding: 0;

    border: none;
    background: transparent;
    color: var(--wf-muted-foreground);

    font-size: 20px;
    line-height: 1;
}

.home-service-popup-close:hover {
    color: var(--wf-foreground);
}

/* Desktop message */

.home-service-popup-text {
    margin: 0 24px 16px 0;
    color: var(--wf-foreground);
    font-family: var(--wf-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}

/* Desktop buttons */

.home-service-popup-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}

.home-service-popup-primary,
.home-service-popup-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 42px;
    padding: 10px 14px;

    border-radius: 999px;
    font-family: var(--wf-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    text-decoration: none;
    white-space: nowrap;
}

.home-service-popup-primary {
    flex: 0 1 auto;
    background: var(--wf-primary);
    color: var(--wf-primary-foreground);
    border: 1px solid var(--wf-primary);
}

.home-service-popup-primary:hover {
    background: var(--wf-accent);
    border-color: var(--wf-accent);
    color: var(--wf-primary-foreground);
}

.home-service-popup-secondary {
    flex: 0 0 auto;
    background: transparent;
    color: var(--wf-foreground);
    border: 1px solid var(--wf-border);
}

.home-service-popup-secondary:hover {
    background: var(--wf-secondary);
}

/* =========================================
   MOBILE POPUP — COMPACT HORIZONTAL
========================================= */

@media (max-width: 639px) {

    .home-service-popup {
        display: flex;
        align-items: center;
        gap: 10px;

        right: 12px;
        bottom: calc(84px + env(safe-area-inset-bottom));

        width: calc(100vw - 24px);
        padding: 10px 12px;
        border-radius: 14px;
    }

    /* Replace long message with short mobile message */

    .home-service-popup-text {
        flex: 1;
        min-width: 0;
        margin: 0;

        font-size: 0;
        line-height: 16px;
    }

    .home-service-popup-text::after {
        content: "Skal vi snakke om din opgave?";
        font-size: 11px;
        line-height: 16px;
    }

    /* Mobile button */

    .home-service-popup-actions {
        flex-shrink: 0;
        gap: 0;
    }

    .home-service-popup-primary {
        min-height: 30px;
        padding: 6px 10px;
        border-radius: 10px;

        font-size: 11px;
        line-height: 16px;
    }

    .home-service-popup-primary svg {
        display: none;
    }

    .home-service-popup-primary span {
        font-size: 0;
    }

    .home-service-popup-primary span::after {
        content: "Skriv til mig";
        font-size: 11px;
    }

    /* Hide secondary button on mobile */

    .home-service-popup-secondary {
        display: none;
    }

    /* Mobile close button */

    .home-service-popup-close {
        position: static;
        flex-shrink: 0;

        width: 20px;
        height: 20px;
        font-size: 18px;
    }

}

/* =========================================
   HOMEPAGE — ABOUT WOODFELLA
========================================= */

.home-about {
    scroll-margin-top: 96px;
    background: var(--wf-background);
}

.home-about-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 48px;

    width: 100%;
    max-width: 1152px;
    margin: 0 auto;
    padding: 96px 20px;
}

/* Text column */

.home-about-title {
    max-width: 560px;
    margin: 16px 0 0;

    color: var(--wf-foreground);
    font-family: var(--wf-font);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.home-about-text {
    max-width: 560px;
    margin: 24px 0 0;

    color: var(--wf-muted-foreground);
    font-family: var(--wf-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}

.home-about-text + .home-about-text {
    margin-top: 16px;
}

/* Phone button — outlined like Lovable */

.home-about-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 32px;
    padding: 14px 24px;

    background: transparent;
    color: var(--wf-foreground);

    border: 1px solid var(--wf-border);
    border-radius: 9999px;

    font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;

    transition:
        background-color 200ms ease,
        border-color 200ms ease;
}

.home-about-phone:hover {
    background: var(--wf-secondary);
    border-color: var(--wf-accent);
    color: var(--wf-foreground);
    text-decoration: none;
}

.home-about-phone svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Image */

.home-about-image {
    min-width: 0;
    overflow: hidden;

    border: 1px solid var(--wf-border);
    border-radius: 24px;

    background: var(--wf-secondary);
    box-shadow: var(--wf-shadow-soft);
}

.home-about-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tablet */

@media (min-width: 640px) {

    .home-about-container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .home-about-title {
        font-size: 36px;
        line-height: 40px;
    }

}

/* Desktop */

@media (min-width: 1024px) {

    .home-about-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* Mobile — About Woodfella */

@media (max-width: 639px) {

    .home-about-container {
        gap: 32px;
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .home-about .home-section-label {
        font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
        font-size: 12px;
        font-weight: 500;
        line-height: 16px;
        letter-spacing: 3.36px;
        color: #a66c44;
    }

    .home-about-title {
        font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
        font-size: 25px;
        font-weight: 600;
        line-height: 29px;
        color: #342115;
    }

    .home-about-text {
        font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
        font-size: 15px;
        font-weight: 400;
        line-height: 23px;
        color: #736053;
    }

    .home-about-image {
        border-radius: 16px;
    }

    .home-about-phone {
        padding: 12px 20px;
        font-size: 14px;
        line-height: 21px;
    }

}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    .home-about-phone {
        transition: none;
    }

}

/* =========================================
   HOMEPAGE — CONTACT
========================================= */

.home-contact {
    scroll-margin-top: 96px;
    background: var(--wf-background);
    border-top: 1px solid var(--wf-border);
}

.home-contact-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;

    width: 100%;
    max-width: 1152px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* Contact information */

.home-contact-title {
    margin: 0;
    color: var(--wf-foreground);
    font-family: var(--wf-font);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.home-contact-description {
    max-width: 480px;
    margin: 20px 0 0;
    color: var(--wf-muted-foreground);
    font-family: var(--wf-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}

/* Contact details */

.home-contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--wf-border);
}

.home-contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;

    color: var(--wf-foreground);
    font-family: var(--wf-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
}

/* Icons */

.home-contact-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 20px;
    height: 24px;

    background: transparent;
    color: #a66c44;
}

.home-contact-detail-icon svg {
    width: 18px;
    height: 18px;
}

/* Labels and values */

.home-contact-detail-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.home-contact-detail-label {
    display: block;
    color: #736053;
    font-family: var(--wf-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.home-contact-detail-value {
    display: block;
    color: #342115;
    font-family: var(--wf-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    overflow-wrap: anywhere;
}

a.home-contact-detail:hover .home-contact-detail-value {
    color: #a66c44;
}

/* Form container */

.home-contact-form-wrapper {
    min-width: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Subject options */

.home-contact-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.home-contact-fieldset legend {
    margin-bottom: 12px;
    padding: 0;

    font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #342115;
}

.home-contact-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.home-contact-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;

    border: 1px solid var(--wf-border);
    border-radius: 10px;
    background: #FEF9F1;

    color: var(--wf-foreground);
    font-family: var(--wf-font);
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    text-align: center;
    cursor: pointer;

    transition: background 200ms ease, border-color 200ms ease;
}

.home-contact-option:hover {
    border-color: var(--wf-accent);
}

.home-contact-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.home-contact-option:has(input:checked) {
    border-color: #492D1E;
    background: #492D1E;
    color: #FEF9F1;
}

.home-contact-option:has(input:focus-visible) {
    outline: 2px solid var(--wf-accent);
    outline-offset: 3px;
}

/* Form fields */

.home-contact-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-contact-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-contact-field label {
    color: var(--wf-foreground);
    font-family: var(--wf-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.home-contact-field input:not([type="file"]),
.home-contact-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 12px 14px;

    border: 1px solid var(--wf-border);
    border-radius: 10px;
    background: #FEF9F1;

    color: var(--wf-foreground);
    font-family: var(--wf-font);
    font-size: 16px;
    line-height: 24px;

    transition: border-color 200ms ease;
}

.home-contact-field input:not([type="file"]):focus,
.home-contact-field textarea:focus {
    outline: 2px solid var(--wf-accent);
    outline-offset: 1px;
    border-color: var(--wf-accent);
}

.home-contact-field textarea {
    min-height: 120px;
    resize: vertical;
}

/* File upload */

.home-contact-field input[type="file"] {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px 20px;

    border: 1px solid var(--wf-border);
    border-radius: 16px;
    background: #FEF9F1;

    color: #492D1E;
    font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 14px;
    line-height: 20px;
}

.home-contact-field input[type="file"]::file-selector-button {
    margin-right: 16px;
    padding: 10px 18px;

    border: none;
    border-radius: 12px;
    background: #f0e4d3;

    color: #492D1E;
    font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    cursor: pointer;
}

.home-contact-file-help {
    margin: 0;
    font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #736053;
}

/* Submit button */

.home-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;

    width: auto;
    min-height: 44px;
    padding: 12px 20px;

    border: none;
    border-radius: 10px;
    background: var(--wf-primary);

    color: #fbf4e9;
    font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;

    transition: background 200ms ease;
}

.home-contact-submit:hover {
    background: var(--wf-accent);
    color: #fbf4e9;
}
/* Tablet */

@media (min-width: 640px) {

    .home-contact-container {
        padding-left: 32px;
        padding-right: 32px;
    }

}

/* Desktop */

@media (min-width: 1024px) {

    .home-contact-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* Mobile */

@media (max-width: 639px) {

    .home-contact-container {
        gap: 40px;
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .home-contact-title {
        font-size: 26px;
        line-height: 32px;
    }

    .home-contact-description {
        font-size: 15px;
        line-height: 23px;
    }

        /* Contact information — mobile */

    .home-contact-details {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 12px;
        margin-top: 24px;
        padding-top: 16px;
        border-top: 1px solid var(--wf-border);
    }

    .home-contact-detail {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        min-width: 0;

        font-size: 12px;
        font-weight: 400;
        line-height: 18px;
    }

    .home-contact-detail:last-child {
        grid-column: 1 / -1;
    }

    .home-contact-detail-icon {
        width: 20px;
        height: 20px;
        background: transparent;
    }

    .home-contact-detail-icon svg {
        width: 14px;
        height: 14px;
    }

    .home-contact-detail-label {
        font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
        color: #736053;
    }

    .home-contact-detail-value {
        font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
        font-size: 15px;
        font-weight: 400;
        line-height: 23px;
        color: #342115;
    }

    /* Two-column subject selection */

    .home-contact-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-contact-option {
    justify-content: center;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    }

    /* Full-width submit button */

    .home-contact-submit {
        align-self: stretch;
        width: 100%;
    }

}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    .home-contact-option,
    .home-contact-field input,
    .home-contact-field textarea,
    .home-contact-submit {
        transition: none;
    }

}

/* Contact form spam protection */

.woodfella-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Contact form submission messages */

.home-contact-notice {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid var(--wf-border);
    border-radius: 10px;
    font-family: var(--wf-font);
    font-size: 14px;
    line-height: 22px;
}

.home-contact-notice.is-success {
    background: #edf5e9;
    border-color: #a8c69b;
    color: #315b2b;
}

.home-contact-notice.is-error {
    background: #fff0eb;
    border-color: #dcb2a4;
    color: #8b3d2d;
}

/* Scroll reveal — service section */
@media (prefers-reduced-motion: no-preference) {
    .wf-reveal-ready {
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .wf-reveal-ready.wf-reveal-visible {
        opacity: 1;
        transform: none;
    }
}

/* Ydelser: draw icons on hover, like the reference */
@media (prefers-reduced-motion: no-preference) {
    .home-service-icon svg path {
        stroke-dasharray: 1;
        stroke-dashoffset: 0;
    }

    .home-service-card:hover .home-service-icon svg path,
    .home-service-card:focus-visible .home-service-icon svg path,
    .home-service-card:focus-within .home-service-icon svg path {
        animation: wf-draw-stroke 0.7s ease-out both;
    }

    .home-service-icon svg path:nth-child(2) {
        animation-delay: 90ms;
    }

    .home-service-icon svg path:nth-child(3) {
        animation-delay: 180ms;
    }

    .home-service-icon svg path:nth-child(4) {
        animation-delay: 270ms;
    }
}

@keyframes wf-draw-stroke {
    from {
        stroke-dashoffset: 1;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* Keep project-card hover working after scroll reveal */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
    .home-portfolio-card.wf-reveal-ready.wf-reveal-visible:hover {
        transform: translateY(-4px);
    }
}

/* Gallery button icon drawing animation */
@media (prefers-reduced-motion: no-preference) {
    .home-portfolio-button svg path {
        stroke-dasharray: 1;
        stroke-dashoffset: 0;
    }

    .home-portfolio-button:hover svg path,
    .home-portfolio-button:focus-visible svg path {
        animation: wf-draw-stroke 0.7s ease-out both;
    }

    .home-portfolio-button svg path:nth-child(2) {
        animation-delay: 90ms;
    }
}

/* Keep gallery-card hover working after scroll reveal */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
    .gallery-card.wf-reveal-ready.wf-reveal-visible:hover {
        transform: translateY(-4px);
    }
}

/* Header and footer contact icons */
@media (prefers-reduced-motion: no-preference) {
    .header-call-button svg path,
    .site-footer-contact svg path {
        stroke-dasharray: 1;
        stroke-dashoffset: 0;
    }

    .header-call-button:hover svg path,
    .header-call-button:focus-visible svg path,
    .site-footer-contact:hover svg path,
    .site-footer-contact:focus-visible svg path {
        animation: wf-draw-stroke 0.7s ease-out both;
    }

    .site-footer-contact svg path:nth-child(2) {
        animation-delay: 90ms;
    }
}

/* Contact popup button icon */
@media (prefers-reduced-motion: no-preference) {
    .home-service-popup-primary svg path {
        stroke-dasharray: 1;
        stroke-dashoffset: 0;
    }

    .home-service-popup-primary:hover svg path,
    .home-service-popup-primary:focus-visible svg path {
        animation: wf-draw-stroke 0.7s ease-out both;
    }

    .home-service-popup-primary svg path:nth-child(2) {
        animation-delay: 90ms;
    }
}

/* About section phone icon */
@media (prefers-reduced-motion: no-preference) {
    .home-about-phone svg path {
        stroke-dasharray: 1;
        stroke-dashoffset: 0;
    }

    .home-about-phone:hover svg path,
    .home-about-phone:focus-visible svg path {
        animation: wf-draw-stroke 0.7s ease-out both;
    }
}