:root {
    --primary: #4e7149;
    --primary-hover: #3f5c3b;
    --soft-green: #f2f6f3;
    --text-dark: #111;
    --text-light: #555;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    position: relative;
    padding: 180px 0;
    overflow: hidden;
    background: #ffffff;
    perspective: 1600px;
    --dof: 40px;
	text-align: center;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 28px;
}

/* BUTTONS */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.25s ease;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* DOF BACK */
.hero-dof-back {
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle at 30% 40%, #f2f6f3, #ffffff 70%);
    filter: blur(var(--dof));
    opacity: 0.9;
    transform: translateZ(-200px) scale(1.25);
    z-index: 1;
    pointer-events: none;
}

/* DOF MID */
.hero-dof-mid {
    position: absolute;
    inset: -15%;
    background: radial-gradient(circle at 40% 55%, rgba(255,255,255,0.9), transparent 70%);
    filter: blur(calc(var(--dof) * 0.7));
    opacity: 0.8;
    transform: translateZ(-120px) scale(1.2);
    z-index: 2;
    pointer-events: none;
}

/* SLIDER */
.hero-slider {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    border-top-left-radius: 80px;
    border-bottom-left-radius: 80px;
    background-size: cover;
    background-position: center;
    animation: heroSlider 18s infinite ease-in-out;
    filter: brightness(0.93) contrast(1.08) saturate(1.1);
    transform: translateZ(-100px) scale(1.1);
    z-index: 3;
}

@keyframes heroSlider {
    0%   { background-image: url('/assets/img/hero1.jpg'); }
    33%  { background-image: url('/assets/img/hero2.jpg'); }
    66%  { background-image: url('/assets/img/hero3.jpg'); }
    100% { background-image: url('/assets/img/hero1.jpg'); }
}

/* DOF FRONT */
.hero-dof-front {
    position: absolute;
    left: -10%;
    top: 20%;
    width: 55%;
    height: 55%;
    background: radial-gradient(circle, rgba(255,255,255,0.9), transparent 75%);
    filter: blur(calc(var(--dof) * 1.4));
    opacity: 0.6;
    transform: translateZ(140px) scale(1.4);
    animation: fogFloat 16s ease-in-out infinite alternate;
    z-index: 14;
    pointer-events: none;
}

@keyframes fogFloat {
    0%   { transform: translateZ(140px) translateY(0) scale(1.4); opacity: 0.5; }
    100% { transform: translateZ(140px) translateY(-35px) scale(1.5); opacity: 0.7; }
}

/* FLOATING PARTICLES */
.hero .particle {
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255,255,255,0.9), transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: particleFloat 14s infinite ease-in-out alternate;
    z-index: 12;
}

.hero .particle:nth-child(1) { top: 15%; left: 8%;  transform: translateZ(90px); }
.hero .particle:nth-child(2) { top: 45%; left: 20%; transform: translateZ(130px); animation-delay: 2s; }
.hero .particle:nth-child(3) { top: 70%; left: 5%;  transform: translateZ(70px); animation-delay: 4s; }

@keyframes particleFloat {
    0%   { transform: translateY(0) scale(1);   opacity: 0.6; }
    100% { transform: translateY(-40px) scale(1.3); opacity: 0.8; }
}

/* ---------------------------------------------
   GLASS PANEL – TEXT
--------------------------------------------- */
.hero-inner {
    position: relative;
    z-index: 20;
    max-width: 520px;
    padding: 45px;
    border-radius: 18px;
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 35px 80px rgba(0,0,0,0.15);
    transform: translateZ(200px);
    animation: fadeText 1.2s ease forwards;
    opacity: 0;
}

@keyframes fadeText {
    0% { opacity: 0; transform: translateZ(80px) translateY(40px) scale(0.96); }
    100% { opacity: 1; transform: translateZ(200px) translateY(0) scale(1); }
}

/* TEXT */
.hero-title { font-size: 3.3rem; font-weight: 800; margin-bottom: 14px; }
.hero-subtitle { font-size: 1.25rem; margin-bottom: 32px; color: #444; }
.hero-btn {
    padding: 15px 40px;
    font-size: 1.15rem;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(78,113,73,0.28);
}

.hero .hero-subtitle {
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.2px;
    opacity: 0.92;
}

/* ---------------------------------------------
   3D MOUSE PARALLAX – DESKTOP ONLY
--------------------------------------------- */
.hero {
    --rx: 0deg;
    --ry: 0deg;
    transform-style: preserve-3d;
}
.hero * {
    transform-style: preserve-3d;
}
.hero:hover {
    transform: rotateX(var(--rx)) rotateY(var(--ry));
}

/* ============================
   MOBILE FIX FOR OLD HERO
============================ */
@media (max-width: 600px) {

    /* hero spacing */
    .hero {
        padding: 110px 0 120px;
        perspective: none; /* optional */
    }

    /* glass panel */
    .hero-inner {
        max-width: 92%;
        margin: 0 auto;
        padding: 22px 18px;
        text-align: center;
        border-radius: 18px;
        transform: none !important;
    }

    /* TITLE fix */
    .hero-title {
        font-size: 1.9rem;
        line-height: 1.25;
        word-break: break-word;
        hyphens: auto;
        text-align: center;
    }

    /* subtitle */
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.35;
        margin-bottom: 22px;
        text-align: center;
    }

    /* button */
    .hero-btn {
        padding: 12px 28px;
        font-size: 1rem;
        border-radius: 10px;
    }

    /* slider stays but resized */
    .hero-slider {
        width: 100%;
        height: 45%;
        bottom: 0;
        top: auto;
        border-radius: 0;
        transform: none !important;
    }

    /* particles smaller */
    .particle {
        opacity: 0.3;
        transform: none !important;
        filter: blur(25px);
    }
}

/* ============================================
   EXTREME SERVICES (cleaned)
============================================ */
.services {
    padding: 120px 0;
    background: radial-gradient(circle at 50% 0%, #f2f6f3, #ffffff 60%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(120deg, rgba(78,113,73,0.06) 0%, transparent 60%),
        repeating-linear-gradient(135deg, rgba(78,113,73,0.06) 0px, rgba(78,113,73,0.06) 2px, transparent 2px, transparent 8px);
    opacity: 0.35;
    animation: aiLines 18s linear infinite;
    z-index: 1;
}

@keyframes aiLines {
    0% { transform: translateY(0); }
    100%{ transform: translateY(-200px); }
}

.section-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 70px;
    position: relative;
    text-align: center;
    z-index: 3;
}

.section-title::after {
    content: "";
    width: 80px;
    height: 5px;
    background: var(--primary);
    display: block;
    margin: 12px auto 0;
    border-radius: 100px;
    box-shadow: 0 0 20px rgba(78,113,73,0.5);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 40px;
    z-index: 3;
    position: relative;
}

.service-card {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(14px) saturate(180%);
    padding: 32px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 18px 50px rgba(0,0,0,0.12), inset 0 0 25px rgba(255,255,255,0.2);
    position: relative;
    cursor: pointer;
    transition: 0.35s ease;
    transform-style: preserve-3d;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-12px) rotateX(6deg) rotateY(4deg) scale(1.03);
    box-shadow: 0 28px 80px rgba(0,0,0,0.18), inset 0 0 40px rgba(255,255,255,0.3);
}

.service-card::before {
    content: "";
    position: absolute;
    inset: -60%;
    background: radial-gradient(circle, rgba(78,113,73,0.22), transparent 70%);
    opacity: 0;
    transition: 0.35s;
}

.service-card:hover::before { opacity: 1; }

.service-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.55) 50%, transparent 80%);
    transform: skewX(-20deg);
    opacity: 0;
    transition: 0.35s;
}

.service-card:hover::after {
    left: 150%;
    opacity: 1;
}

.service-category {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    
    /* Important so transform works properly */
    position: relative;
    z-index: 5;
    
    /* Smooth movement */
    transition: transform 0.25s ease, color 0.25s ease;
}

.service-item:last-child {
    border-bottom: none;
}

/* Hover animation */
.service-item:hover {
    transform: translateX(8px);   /* smoother and more visible */
    color: var(--primary);
}

.service-item:hover .price {
    color: var(--primary);
}

/* ============================================
   EXTREME RULES (cleaned)
============================================ */
.rules {
    padding: 120px 0;
    background: linear-gradient(180deg, #f2f6f3 0%, #ffffff 60%);
    position: relative;
    overflow: hidden;
}

.rules::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(78,113,73,0.05) 0%, transparent 60%),
        repeating-linear-gradient(135deg, rgba(78,113,73,0.05) 0px, rgba(78,113,73,0.05) 2px, transparent 2px, transparent 8px);
    opacity: 0.3;
    animation: rulesAILines 20s linear infinite;
    z-index: 1;
}

@keyframes rulesAILines {
    0% { transform: translateY(0); }
    100%{ transform: translateY(-200px); }
}

.rules-grid {
    display: grid;
    gap: 35px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    position: relative;
    z-index: 3;
}

.rule-card {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(12px) saturate(180%);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08), inset 0 0 18px rgba(255,255,255,0.25);
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: 0.35s;
    overflow: hidden;
}

.rule-card:hover {
    transform: translateY(-10px) rotateX(4deg) rotateY(3deg) scale(1.03);
    box-shadow: 0 26px 70px rgba(0,0,0,0.12), inset 0 0 40px rgba(255,255,255,0.28);
}

.rule-card::before {
    content: "";
    position: absolute;
    inset: -55%;
    background: radial-gradient(circle, rgba(78,113,73,0.18), transparent 70%);
    opacity: 0;
    transition: 0.3s ease;
    z-index: -1;
}

.rule-card:hover::before { opacity: 1; }

.rule-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.55) 50%, transparent 80%);
    transform: skewX(-20deg);
    opacity: 0;
    transition: 0.35s;
}

.rule-card:hover::after {
    left: 150%;
    opacity: 1;
}

.rule-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.rule-card p {
    font-size: 1.05rem;
    line-height: 1.45;
    color: var(--text-light);
}

/* ============================================
   EXTREME SHOWCASE (cleaned)
============================================ */
.showcase {
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f2f6f3 60%);
    position: relative;
    overflow: hidden;
}

.showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(78,113,73,0.05) 0%, transparent 70%),
        repeating-linear-gradient(135deg, rgba(78,113,73,0.05) 0px, rgba(78,113,73,0.05) 2px, transparent 2px, transparent 8px);
    opacity: 0.35;
    animation: galleryAILines 26s linear infinite;
    z-index: 1;
}

@keyframes galleryAILines {
    0% { transform: translateY(0); }
    100%{ transform: translateY(-240px); }
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 3;
}

.showcase-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px) saturate(160%);
    box-shadow: 0 18px 50px rgba(0,0,0,0.12), inset 0 0 25px rgba(255,255,255,0.25);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.32s ease;
    transform-style: preserve-3d;
}

.showcase-grid img:hover {
    transform: translateY(-10px) scale(1.05) rotateX(6deg) rotateY(4deg);
    box-shadow: 0 28px 80px rgba(0,0,0,0.16), inset 0 0 45px rgba(255,255,255,0.45);
}

.showcase-grid img::before {
    content: "";
    position: absolute;
    inset: -60%;
    background: radial-gradient(circle, rgba(78,113,73,0.25), transparent 70%);
    opacity: 0;
    transition: 0.35s;
    z-index: -1;
}

.showcase-grid img:hover::before { opacity: 1; }

.showcase-grid img::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,0.55) 50%, transparent 75%);
    transform: skewX(-20deg);
    opacity: 0;
    transition: 0.45s ease;
}

.showcase-grid img:hover::after {
    left: 150%;
    opacity: 1;
}

.showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 65%);
    filter: blur(40px);
    opacity: 0.4;
    animation: bokehFloat 16s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes bokehFloat {
    0%   { transform: translateY(0) scale(1); opacity: 0.35; }
    100% { transform: translateY(-60px) scale(1.15); opacity: 0.5; }
}

@media (max-width: 600px) {
    .showcase-grid img {
        height: 200px;
        border-radius: 18px;
    }
}

/* ============================================
   LIGHTBOX (kept)
============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

.hidden {
    display: none;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 40px;
    cursor: pointer;
    color: #fff;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 20px;
    font-size: 40px;
    color: #fff;
    transform: translateY(-50%);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* MOBILE LIGHTBOX ADJUST */
@media (max-width: 600px) {
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 32px;
    }
    .lightbox-prev,
    .lightbox-next {
        font-size: 32px;
    }
}

.reviews {
    padding: 60px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.review-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.25s;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.review-name {
    font-weight: 700;
    font-size: 16px;
}

.review-stars {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1.5px;

    background: linear-gradient(
        180deg,
        #fff3b0 0%,
        #ffd84d 35%,
        #f5c400 65%,
        #d4a800 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    display: inline-block;
}

.review-text {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

/* Avatar wrapper */
.review-avatar-wrapper {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Om ingen bild – visa initialer */
.review-avatar-wrapper.no-avatar {
    background: var(--primary); /* din gröna färg */
    color: white;
    font-size: 20px;
    font-weight: 700;
}

/* Om bild finns */
.review-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.verified-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 600;
    color: #4e7149;
    background: #f2f6f3;
    border-radius: 6px;
    vertical-align: middle;
}

.reviews-actions {
    text-align: center;
    margin-top: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a {
    padding: 8px 12px;
    border-radius: 6px;
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.pagination a.active {
    background: var(--primary);
    color: #fff;
}

.reviews-filters {
    display: flex;
    gap: 12px;
    margin: 20px 0 30px;
}

.reviews-filters a {
    padding: 8px 16px;
    border-radius: 20px;
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.reviews-filters a.active {
    background: #f7c300;
    color: #000;
}

.rating-summary {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.rating-breakdown .rating-row {
    display: grid;
    grid-template-columns: 40px 1fr 60px;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.rating-bar {
    height: 10px;
    background: #f5f5f5;
    border-radius: 20px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: #f7c300;
    border-radius: 20px;
}

.rating-average-box {
    background: #fff9e6;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.rating-average {
    font-size: 72px;
    font-weight: 800;
    color: #f7c300;
}

.rating-stars {
    font-size: 32px;
    color: #f7c300;
    margin: 10px 0;
}

.rating-total {
    font-size: 16px;
    color: #555;
}

.rating-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #444;
}

.rating-label .star {
    color: #f7c300;
    font-size: 16px;
    line-height: 1;
}
