/* Plåtfinish – dark, minimal, scroll-snap onepager */

:root {
    /* Premium light palette */
    --bg: #f6f7fb;
    --bg2: #ffffff;
    --card: #ffffffcc;
    --border: #0b122014;
    --text: #0b1220;
    --muted: #4b5563;
    --accent: #0b1220; /* charcoal */
    --accent2: #64748b; /* slate */
    --shadow: 0 18px 45px rgba(11, 18, 32, .10);
    --radius: 22px;
    --max: 1220px;
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: radial-gradient(1200px 600px at 20% 10%, #5b21b620, transparent 60%),
    radial-gradient(900px 500px at 80% 20%, #22c55e18, transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
    overflow-x: hidden;
}

a {
    color: inherit
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 10px 12px;
    background: #111827;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.skip:focus {
    left: 12px;
    top: 12px;
    z-index: 9999
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, .86);
    border-bottom: 1px solid #0b122014;
    box-shadow: 0 10px 28px rgba(11, 18, 32, .06);
}

.topbar__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand__logo {
    width: 120px;
    height: 61px;
    object-fit: contain;
}

.brand__text {
    font-weight: 700;
    letter-spacing: 0.3px
}

.nav {
    display: flex;
    gap: 14px;
    align-items: center
}

.nav__link {
    position: relative;
    text-decoration: none;
    color: rgba(11, 18, 32, .78);
    padding: 10px 12px;
    border-radius: 14px;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.nav__link:hover {
    background: rgba(11, 18, 32, .06);
    color: rgba(11, 18, 32, .95);
    transform: translateY(-1px);
}

.nav__cta {
    color: #fff;
    background: #0b1220;
    border: 1px solid #0b122014;
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(11, 18, 32, .12);
}

.burger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #ffffff08;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(11, 18, 32, .85);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.mobile-menu {
    max-width: var(--max);
    margin: 0 auto;
    padding: 10px 16px 14px;
    border-top: 1px solid #0b122014;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(14px);
}

.mobile-menu__link {
    display: block;
    text-decoration: none;
    padding: 12px 12px;
    border-radius: 14px;
    color: rgba(11, 18, 32, .80);
    transition: background .2s ease, transform .2s ease;
}

.mobile-menu__link:hover {
    background: #ffffff10;
    color: var(--text)
}

.mobile-menu__cta {
    background: #0b1220;
    color: #fff;
}

.snap {
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: none;
    overscroll-behavior-y: contain;
    scroll-behavior: smooth;
}

.panel:last-child {
    min-height: 100dvh;
}

.footer {
    padding-bottom: 24px;
}

.panel {
    scroll-snap-align: start;
    min-height: 100dvh;
    padding-top: 88px;
    display: flex;
    align-items: stretch;
    position: relative;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 29px 16px 34px;
}

.panel--hero .container {
    padding-top: 36px
}

.bg-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(900px 420px at 25% 25%, #8b5cf61f, transparent 62%),
    radial-gradient(900px 520px at 75% 35%, #22c55e14, transparent 60%);
    pointer-events: none;
    filter: blur(0px);
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    align-items: center;
}

.kicker {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: .25em;
    text-transform: uppercase;
}

h1 {
    margin: 10px 0 10px;
    font-size: clamp(34px, 4.2vw, 54px);
    line-height: 1.05;
}

.lead {
    color: var(--muted);
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.6;
    max-width: 52ch;
}

.actions {
    display: flex;
    gap: 10px;
    margin: 18px 0 16px;
    flex-wrap: wrap
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #ffffff08;
    text-decoration: none;
    font-weight: 650;
    letter-spacing: 0.2px;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    background: #ffffff10
}

.btn--primary {
    background: linear-gradient(135deg, #8b5cf6, #22c55e);
    border-color: transparent;
    box-shadow: 0 16px 45px #00000065;
}

.btn--primary:hover {
    box-shadow: 0 18px 60px #00000075
}

.btn--ghost {
    background: #ffffff06
}

.meta {
    display: grid;
    gap: 8px;
    max-width: 520px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

.meta a {
    color: var(--text);
    text-decoration: none
}

.meta__label {
    display: inline-block;
    min-width: 70px;
    color: #ffffff90;
}

.card {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #0f1320cc, #0b0d12cc);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.card__title {
    font-weight: 750;
    margin-bottom: 10px
}

.bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    color: var(--muted);
}

.bullets li {
    padding-left: 18px;
    position: relative;
}

.bullets li:before {
    content: "";
    position: absolute;
    left: 0;
    top: .65em;
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: linear-gradient(135deg, #8b5cf6, #22c55e);
}

.hint {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    align-items: center;
    color: #ffffffaa;
    font-size: 13px;
}

.hint__dot {
    width: 10px;
    height: 10px;
    border-radius: 99px;
    background: #22c55e;
    box-shadow: 0 0 0 6px #22c55e22;
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: .85
    }
    50% {
        transform: scale(1.12);
        opacity: 1
    }
}

.stats {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.stat {
    border: 1px solid var(--border);
    background: #ffffff06;
    border-radius: 18px;
    padding: 12px;
}

.stat__num {
    font-weight: 800;
    font-size: 18px
}

.stat__label {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px
}

.section-head {
    margin: 0 0 18px
}

h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 36px);
}

.muted {
    color: var(--muted);
    line-height: 1.6;
    max-width: 70ch
}

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

.tile {
    border: 1px solid var(--border);
    background: #ffffff06;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 10px 28px #00000030;
}

/* Tiles with background images (Tjänster)
   - Default: image is subtle so text is readable
   - Hover/active/focus: image becomes fully visible and body text fades out
   - Rubriken (h3) stays on top of the image
*/
.tile--bg {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tile--bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--tile-bg, none);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    transform: scale(1.02);
    transition: opacity .25s ease, transform .35s ease;
    z-index: 0;
}

/* Subtle dark wash so default text always stays readable */
.tile--bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #0b0d12cc, #0b0d1280 55%, #0b0d12cc);
    opacity: 0.65;
    transition: opacity .25s ease;
    z-index: 1;
}

.tile--bg h3,
.tile--bg p {
    position: relative;
    z-index: 2;
}

.tile--bg h3 {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(251, 251, 251, 0.8);
    border: 1px solid #ffffff1a;
    backdrop-filter: blur(8px);
}

.tile--bg p {
    transition: opacity .2s ease, transform .2s ease;
}

.tile--bg:hover::before,
.tile--bg:focus-visible::before,
.tile--bg.is-active::before {
    opacity: 1;
    transform: scale(1.06);
}

.tile--bg:hover::after,
.tile--bg:focus-visible::after,
.tile--bg.is-active::after {
    opacity: 0.15;
}

.tile--bg:hover p,
.tile--bg:focus-visible p,
.tile--bg.is-active p {
    opacity: 0;
    transform: translateY(6px);
}

.tile--bg:focus-visible {
    outline: 2px solid #ffffff55;
    outline-offset: 3px;
}

.tile__icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #8b5cf620, #22c55e18);
    border: 1px solid #ffffff1a;
    margin-bottom: 10px;
    font-size: 18px;
}

.tile h3 {
    margin: 0 0 6px;
    font-size: 16px
}

.tile p {
    margin: 0;
    line-height: 1.55;
    font-size: 14px
}

.callout {
    margin-top: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #8b5cf615, #22c55e12);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.callout__title {
    font-weight: 800
}

.callout__text {
    color: var(--muted);
    margin-top: 4px
}

.steps {
    display: grid;
    gap: 10px
}

.step {
    display: flex;
    gap: 14px;
    border: 1px solid var(--border);
    background: #ffffff06;
    border-radius: var(--radius);
    padding: 14px 16px;
}

.step__num {
    font-weight: 900;
    letter-spacing: .12em;
    color: rgba(0, 0, 0, 0.8);
    min-width: 44px;
}

.step__body h3 {
    margin: 0 0 4px;
    font-size: 16px
}

.step__body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px
}

.note {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px dashed #ffffff2a;
    color: #ffffffcc;
    background: #ffffff05;
}

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

.shot {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #ffffff06;
}

.shot__ph {
    height: 170px;
    background: radial-gradient(600px 300px at 30% 30%, #8b5cf622, transparent 60%),
    radial-gradient(600px 300px at 70% 40%, #22c55e18, transparent 58%),
    linear-gradient(180deg, #0b0d12, #070910);
}

.shot__fals {
    background: url('../assets/hero-roof.jpg') center/cover no-repeat;
}

.shot__gutters {
    background: url('../assets/gutters.png') center/cover no-repeat;
}

.shot__cap {
    padding: 12px 14px;
    color: var(--muted);
    font-size: 14px;
}

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
}

.contact__card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff06;
    padding: 16px;
}

.contact__card h3 {
    margin: 0 0 12px
}

.contact__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #ffffff10;
    color: var(--muted);
}

.contact__row:last-of-type {
    border-bottom: none
}

.contact__row a {
    color: var(--text);
    text-decoration: none
}

.contact__actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap
}

.form {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #0f1320aa, #0b0d12aa);
    padding: 16px;
}

label {
    display: block;
    margin-bottom: 12px
}

label span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px
}

input, textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: 16px;
    border: 1px solid #ffffff1a;
    background: #00000025;
    color: var(--text);
    outline: none;
}

input:focus, textarea:focus {
    border-color: #ffffff30;
    box-shadow: 0 0 0 4px #8b5cf620
}

.form__hint {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5
}

.footer {
    margin-top: 22px;
    padding: 18px 0 10px;
    border-top: 1px solid #ffffff12;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.footer a {
    color: var(--text);
    text-decoration: none
}

.footer__links {
    display: flex;
    gap: 10px;
    align-items: center
}

.dot {
    opacity: .6
}

.section-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 0 14px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.section-footer__line {
    width: min(460px, 70vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffffff22, transparent);
}

.dots {
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 40;
}

.dotBtn {
    width: 10px;
    height: 10px;
    border-radius: 99px;
    border: 1px solid #ffffff40;
    background: #ffffff10;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.dotBtn[aria-current="true"] {
    background: linear-gradient(135deg, #8b5cf6, #22c55e);
    border-color: transparent;
    transform: scale(1.15);
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

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

    .hero {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .stats {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

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

@media (max-width: 760px) {
    .nav {
        display: none
    }

    .burger {
        display: inline-grid;
        place-items: center
    }

    .dots {
        display: none
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }

    .reveal {
        transition: none
    }

    .hint__dot {
        animation: none
    }

    .btn {
        transition: none
    }
}

.processHead__stats {
    justify-content: flex-start;
}


/* v6 scroll fix: keep snap scrolling but stop "scroll past footer" bounce */
.panel {
    scroll-snap-align: start;
    min-height: 100dvh;
}

#kontakt {
    padding-bottom: 0;
}

.footer {
    margin-bottom: 0;
    padding-bottom: 18px;
}

/* v7 layout fixes */
.processHead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.processHead__text {
    max-width: 60ch;
}

.processHead__stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.processHead__stats .stat {
    min-width: 170px;
    text-align: left;
}

@media (max-width: 980px) {
    .processHead {
        flex-direction: column;
        align-items: flex-start;
    }

    .processHead__stats {
        justify-content: flex-start;
    }
}

/* Make footer sit at bottom of the contact screen */
.contact-container {
    min-height: calc(100dvh - 88px);
    display: flex;
    flex-direction: column;
}

.contact-container .footer {
    margin-top: auto;
}

@media (max-width: 760px) {
    .snap {
        scroll-snap-type: none;
    }
}


/* === Premium light theme overrides === */
header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

nav a {
    color: #111;
    font-weight: 500;
}

nav a:hover {
    color: #555;
}

body {
    background: #f6f6f6;
    color: #1a1a1a;
}

section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(11, 18, 32, 0.06);
}

.button, .btn {
    background: #111;
    color: #fff;
    border-radius: 999px;
    padding: 12px 28px;
    transition: all .25s ease;
}

.button:hover, .btn:hover {
    background: #333;
}


/* === HERO with background image === */
#hem {
    position: relative;
    color: #fff;
    background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .55)),
    url('../assets/hero-roof.jpg') center/cover no-repeat;
}

#hem h1,
#hem h2,
#hem p {
    color: #fff;
}

@media (max-width: 760px) {
    #hem {
        background-position: center top;
        padding-top: 96px;
    }

    #hem h1 {
        font-size: clamp(28px, 7vw, 38px);
    }
}


/* === Contact: team cards (mobile friendly) === */
.contact-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

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

.contact__team h3 {
    margin-bottom: 14px;
}

.team-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

.person-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(11, 18, 32, .03);
    border: 1px solid rgba(11, 18, 32, .08);
    transition: transform .2s ease, background .2s ease;
}

.person-card:hover {
    transform: translateY(-1px);
    background: rgba(11, 18, 32, .05);
}

.person-card__img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(11, 18, 32, .10);
    box-shadow: 0 10px 22px rgba(11, 18, 32, .08);
}

.person-card__name {
    font-weight: 700;
    letter-spacing: .2px;
    margin-bottom: 6px;
}

.person-card__link {
    display: block;
    text-decoration: none;
    color: rgba(11, 18, 32, .78);
    font-size: 0.95rem;
    line-height: 1.25;
}

.person-card__link:hover {
    color: rgba(11, 18, 32, .98);
    text-decoration: underline;
}

@media (max-width: 420px) {
    .person-card {
        grid-template-columns: 64px 1fr;
    }

    .person-card__img {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }
}

/* Enkel, “premium” karta som smälter in i en modern one-page-stil */
.map-section .section-title {
    margin-bottom: .25rem;
}

.map-section .section-subtitle {
    margin-top: 0;
    opacity: .75;
}

.map-card {
    margin-top: 1.25rem;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

/* Responsiv “aspect ratio”-box */
.map-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
}

.map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;

    /* Ger en stil som ofta matchar minimalistiska sites */
    filter: grayscale(.85) contrast(1.1) saturate(1.1);
}

/* Lite snällare på mobil (om du vill) */
@media (max-width: 640px) {
    .map-embed {
        padding-bottom: 72%;
    }
}