/* Stilmall för startsidan och målgruppssidorna (företag, mäklare, bröllop).
   Undersidorna (villkor, integritetspolicy, vanliga frågor) använder undersida.css. */

:root {
    --green: #2D5F3F;
    --green-light: #4A8B5C;
    --green-bright: #6FCF97;
    --black: #0A0A0A;
    --gray: #333333;
    --gray-light: #666666;
    --white: #FAFAFA;
    --accent: #E8F5E9;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(20px);
    padding: 1.5rem 5%;
    z-index: 1000;
    border-bottom: 1px solid rgba(45, 95, 63, 0.1);
}

nav .container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--green);
}

.nav-legal a {
    color: var(--gray-light);
}

.nav-legal-first {
    padding-left: 2rem;
    border-left: 1px solid rgba(45, 95, 63, 0.2);
}

@media (max-width: 1180px) {
    .nav-links {
        gap: 1.5rem;
    }

    .nav-legal-first {
        padding-left: 1.5rem;
    }
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 1.25rem 5%;
    min-height: calc(100vh - 80px);
    min-height: calc(100svh - 80px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
}

.hero-content {
    background: var(--green);
    color: var(--white);
    padding: clamp(2rem, 6vh, 5rem) 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(111, 207, 151, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(74, 139, 92, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content > * {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-bright);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero h1 {
    font-size: clamp(2.5rem, min(5vw, 8vh), 4.5rem);
    line-height: 1.1;
    margin-bottom: clamp(1rem, 3vh, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: clamp(1.5rem, 4vh, 3rem);
    opacity: 0.9;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-services {
    display: flex;
    flex-direction: column;
    gap: clamp(0.25rem, 1vh, 1rem);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.hero-service-icon {
    width: 8px;
    height: 8px;
    background: var(--green-bright);
    border-radius: 50%;
}

.hero-service-text {
    font-size: 1rem;
    font-weight: 500;
}

.hero-image {
    position: relative;
    overflow: hidden;
    background: var(--black);
}

.hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.8s ease;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-video.is-playing {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
}

.hero-image:hover img {
    transform: scale(1.05);
}

.hero-image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    opacity: 0.4;
    pointer-events: none;
}

.hero-image-placeholder .placeholder-text {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styling */
section {
    padding: 8rem 5%;
}

.section-header {
    max-width: 1400px;
    margin: 0 auto 5rem;
}

.section-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    max-width: 800px;
}

.section-description {
    font-size: 1.15rem;
    color: var(--gray-light);
    max-width: 600px;
    line-height: 1.8;
}

/* Services */
.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    display: flex;
    flex-direction: column;
}

@supports (grid-template-rows: subgrid) {
    @media (min-width: 1001px) {
        .services-grid {
            row-gap: 0;
        }

        .service-card {
            display: grid;
            grid-row: span 5;
            grid-template-rows: subgrid;
            row-gap: 0;
        }
    }
}

.service-media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 2px;
    background: var(--accent);
    margin-bottom: 1.75rem;
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-media.combo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 2.4fr 1fr;
    gap: 4px;
    background: transparent;
}

.service-media.combo img {
    min-height: 0;
    border-radius: 2px;
}

.service-media.combo img:first-child {
    grid-column: 1 / span 2;
}

.service-card h3 {
    font-size: 1.6rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    color: var(--black);
    font-weight: 700;
}

.service-card p {
    color: var(--gray-light);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    max-width: 42ch;
}

.service-features {
    list-style: none;
    border-top: 1px solid rgba(45, 95, 63, 0.18);
    margin-bottom: 1.75rem;
}

.service-features li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(45, 95, 63, 0.18);
    color: var(--gray);
    font-size: 0.95rem;
}

.service-features li::before {
    content: '';
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    transform: translateY(-2px);
}

.service-link {
    margin-top: auto;
    align-self: flex-start;
    justify-self: start;
    color: var(--green);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--black);
}

.service-link:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
}

@media (max-width: 1000px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        max-width: 900px;
    }

    .service-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 2.5rem;
        align-items: start;
    }

    .service-media {
        grid-row: 1 / span 5;
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .service-card {
        display: flex;
        align-items: stretch;
    }

    .service-media {
        margin-bottom: 1.5rem;
    }
}


/* Fler grupper */
.also-for {
    max-width: 1400px;
    margin: 6rem auto 0;
}

.also-title {
    font-size: 1.6rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 700;
    margin-bottom: 2rem;
}

.also-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.also-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: #fff;
    border-radius: 4px;
    padding: 2rem 2rem 2.25rem;
    box-shadow: 0 1px 3px rgba(10, 10, 10, 0.06), 0 12px 32px rgba(10, 10, 10, 0.07);
}

.also-icon {
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    display: grid;
    place-items: center;
}

.also-icon svg {
    width: 32px;
    height: 32px;
}

.also-card h4 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0.35rem 0 0.5rem;
    color: var(--black);
    font-weight: 700;
}

.also-card p {
    color: var(--gray-light);
    line-height: 1.7;
}

@media (max-width: 1000px) {
    .also-for {
        max-width: 900px;
        margin-top: 4.5rem;
    }

    .also-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .also-card {
        padding: 1.5rem;
        gap: 1.1rem;
    }

    .also-icon {
        width: 56px;
        height: 56px;
    }

    .also-icon svg {
        width: 26px;
        height: 26px;
    }
}

/* Process Section */
.process-section {
    background: var(--black);
    color: var(--white);
}

.process-steps {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
}

.process-step {
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--green);
    line-height: 1;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.process-step h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.process-step p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* About Section */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--gray);
}

.about-person {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: left;
}

.about-person img {
    width: 170px;
    height: 170px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.about-person h3 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.about-person p {
    color: var(--gray);
    line-height: 1.8;
}

@media (max-width: 640px) {
    .about-person {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.about-detail {
    text-align: left;
}

.about-detail h4 {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-detail p {
    color: var(--gray-light);
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    background: var(--green);
    color: var(--white);
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.contact-content .section-title {
    color: var(--white);
    margin: 0 auto 2rem;
}

.contact-content .section-description {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto 4rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-method {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.contact-method h4 {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.contact-method a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    word-break: break-word;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--green);
    padding: 1.2rem 3rem;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.cta-button:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Contact form */
.contact-form {
    max-width: 640px;
    margin: 0 auto 1rem;
    text-align: left;
    display: grid;
    gap: 1.2rem;
}

.contact-form h3 {
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.01em;
    text-align: center;
    margin-bottom: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-field label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.form-optional {
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.7;
    margin-left: 0.3rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    padding: 0.9rem 1rem;
    color: var(--white);
    font: inherit;
    font-size: 1rem;
}

.form-field textarea {
    min-height: 150px;
    resize: vertical;
}

.form-field select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FAFAFA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 16px;
}

.form-field select option {
    color: var(--black);
    background: var(--white);
}

.form-picked {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2px;
}

.form-picked[hidden] {
    display: none;
}

.form-picked img {
    width: 84px;
    height: 63px;
    object-fit: cover;
    flex-shrink: 0;
}

.form-picked p {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.45;
}

.form-picked small {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}

.form-picked button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    opacity: 0.7;
}

.form-picked button:hover {
    opacity: 1;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.contact-form .cta-button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    justify-self: center;
    margin-top: 0.5rem;
}

.contact-form .cta-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.form-status {
    text-align: center;
    min-height: 1.5em;
    font-weight: 500;
}

.form-honeypot {
    display: none;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background: var(--black);
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 5%;
    text-align: center;
    font-size: 0.9rem;
}

footer .logo {
    color: var(--white);
    margin-bottom: 1rem;
}

footer p + p {
    margin-top: 0.4rem;
}

.footer-info {
    margin-top: 1.5rem;
}

.footer-info span {
    white-space: nowrap;
}

footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-social {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    padding: 0;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
    background: var(--green-bright);
    border-color: var(--green-bright);
    color: var(--black);
    text-decoration: none;
}

.footer-social a:focus-visible {
    outline: 2px solid var(--green-bright);
    outline-offset: 3px;
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.75rem;
    margin: 1.5rem 0;
}

/* Hero price link */
.hero-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.75rem;
    align-self: flex-start;
    background: var(--white);
    color: var(--green);
    padding: 0.9rem 1.5rem;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: clamp(1.25rem, 3.5vh, 2.5rem);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.5s forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-price span {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--green-light);
}

.hero-price:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Pricing */
.pricing-section {
    background: var(--accent);
}

/* Vit variant när sektionen före redan är grön */
.pricing-section.is-plain {
    background: var(--white);
}

.pricing-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.pricing-note {
    max-width: 1100px;
    margin: 2rem auto 0;
    color: var(--gray-light);
    font-size: 0.95rem;
}

.pricing-note a {
    color: var(--green);
    font-weight: 500;
}

.price-card {
    background: var(--white);
    border: 2px solid var(--green);
    border-radius: 2px;
    padding: 2.5rem 2rem;
    position: relative;
}



.price-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.price {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--green);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.price .from {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-light);
    letter-spacing: 0;
}

.price-card p {
    color: var(--gray-light);
    line-height: 1.7;
}

/* Portfolio */
.showreel {
    max-width: 1100px;
    margin: 0 auto 3rem;
}

.showreel video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: var(--black);
    border-radius: 2px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Egen videospelare (spelare.js) */
.showreel.vp {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    outline: none;
    background: var(--black);
}

.showreel.vp video {
    box-shadow: none;
    border-radius: 0;
    cursor: pointer;
}

.showreel.vp:focus-visible {
    box-shadow: 0 0 0 3px var(--green-bright), 0 20px 50px rgba(0, 0, 0, 0.15);
}

.vp-knapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    background: none;
    color: var(--white);
    cursor: pointer;
}

.vp-knapp svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.vp-knapp:focus-visible {
    outline: 2px solid var(--green-bright);
    outline-offset: 2px;
    border-radius: 50%;
}

/* Stor startknapp mitt i bilden */
.vp-stor {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 88px;
    height: 88px;
    margin: -44px 0 0 -44px;
    border-radius: 50%;
    background: rgba(45, 95, 63, 0.88);
    box-shadow: 0 0 0 2px rgba(250, 250, 250, 0.55), 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.vp-stor svg {
    width: 34px;
    height: 34px;
    margin-left: 4px;
}

.showreel.vp:hover .vp-stor {
    transform: scale(1.06);
    background: var(--green);
}

.showreel.vp:not(.vp-start) .vp-stor {
    opacity: 0;
    pointer-events: none;
}

/* Kontrollraden längst ner */
.vp-rad {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 2.5rem 1.25rem 1rem;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.75), rgba(10, 10, 10, 0));
    color: var(--white);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.showreel.vp:not(.vp-start).vp-visa .vp-rad,
.showreel.vp:not(.vp-start):not(.vp-spelar) .vp-rad,
.showreel.vp.vp-drar .vp-rad {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.showreel.vp.vp-spelar:not(.vp-visa):not(.vp-drar) video {
    cursor: none;
}

.vp-tid {
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    min-width: 2.6rem;
    text-align: center;
    opacity: 0.9;
}

.vp-linje {
    position: relative;
    flex: 1;
    height: 18px;
    cursor: pointer;
    touch-action: none;
    outline: none;
}

.vp-linje::before,
.vp-laddat,
.vp-spelat {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 4px;
    margin-top: -2px;
    border-radius: 2px;
    transition: height 0.15s ease, margin 0.15s ease;
}

.vp-linje::before {
    right: 0;
    background: rgba(250, 250, 250, 0.25);
}

.vp-laddat {
    width: 0;
    background: rgba(250, 250, 250, 0.35);
}

.vp-spelat {
    width: 0;
    background: var(--green-bright);
}

.vp-prick {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transform: scale(0);
    transition: transform 0.15s ease;
}

.vp-linje:hover .vp-prick,
.vp-linje:focus-visible .vp-prick,
.showreel.vp.vp-drar .vp-prick {
    transform: scale(1);
}

.vp-linje:hover::before,
.vp-linje:hover .vp-laddat,
.vp-linje:hover .vp-spelat,
.showreel.vp.vp-drar .vp-linje::before,
.showreel.vp.vp-drar .vp-laddat,
.showreel.vp.vp-drar .vp-spelat {
    height: 6px;
    margin-top: -3px;
}

/* Snurra medan filmen laddar */
.showreel.vp.vp-vantar::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border: 3px solid rgba(250, 250, 250, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: vp-snurra 0.8s linear infinite;
    pointer-events: none;
}

@keyframes vp-snurra {
    to { transform: rotate(360deg); }
}

.showreel.vp.vp-helskarm {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    border-radius: 0;
}

.showreel.vp.vp-helskarm video {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
}

@media (max-width: 600px) {
    .vp-stor {
        width: 64px;
        height: 64px;
        margin: -32px 0 0 -32px;
    }
    .vp-stor svg {
        width: 26px;
        height: 26px;
    }
    .vp-rad {
        gap: 0.6rem;
        padding: 2rem 0.75rem 0.6rem;
    }
    .vp-tid {
        font-size: 0.75rem;
        min-width: 2.2rem;
    }
}

.portfolio-section {
    background: var(--white);
}

.portfolio-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.portfolio-item.is-hidden {
    display: none;
}

.portfolio-more {
    text-align: center;
    margin-top: 2.5rem;
}

.portfolio-more button {
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    background: var(--green);
    border: none;
    border-radius: 2px;
    padding: 0.95rem 1.75rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-more button span {
    font-weight: 500;
    opacity: 0.75;
}

.portfolio-more button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    background: var(--black);
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.04);
    opacity: 0.9;
}

.portfolio-item .portfolio-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 1.25rem 1rem;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.7), transparent);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-caption,
.portfolio-item:focus-visible .portfolio-caption {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 4rem 1rem 5.5rem;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox button {
    position: absolute;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    opacity: 0.8;
}

.lightbox button:hover {
    opacity: 1;
}

.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.5rem; top: 50%; transform: translateY(-50%); }

.lightbox-bar {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.75rem;
    text-align: center;
}

.lightbox-title {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
}

.lightbox .lightbox-buy {
    position: static;
    transform: none;
    opacity: 1;
    background: var(--green);
    color: var(--white);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.lightbox .lightbox-buy:hover {
    background: var(--green-light);
}

.lightbox .lightbox-buy:focus-visible {
    outline: 2px solid var(--green-bright);
    outline-offset: 3px;
}

.lightbox-full {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.lightbox-full:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-content {
        padding: 5rem 5%;
    }

    .hero-image {
        min-height: 400px;
    }

    .nav-links {
        display: none;
    }

    section {
        padding: 5rem 5%;
    }
}

@media (max-width: 640px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Målgruppssida */
.permit-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.permit-card {
    background: var(--white);
    border: 1px solid rgba(45, 95, 63, 0.14);
    padding: 2.25rem;
}

.permit-card .permit-tag {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 600;
}

.permit-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
}

.permit-card p {
    color: var(--gray-light);
}

.permit-more {
    max-width: 1100px;
    margin: 1.75rem auto 0;
    color: var(--gray-light);
}

.permit-more a {
    color: var(--green);
    font-weight: 600;
}

.portfolio-grid.is-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1200px;
}

@media (max-width: 900px) {
    .portfolio-grid.is-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .portfolio-grid.is-three {
        grid-template-columns: 1fr;
    }
}

.pricing-grid.is-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
}

@media (max-width: 760px) {
    .permit-grid,
    .pricing-grid.is-two {
        grid-template-columns: 1fr;
    }
}

a.logo {
    text-decoration: none;
}
