/* ==================================================
   HOME.CSS — FORSIDE
   ================================================== */

/* ==================================================
   REGLER FRA DET SENESTE GODKENDTE DESIGN
   ================================================== */

.home-main {
    width: min(1240px, calc(100% - 36px));
    max-width: none;
    margin: 0 auto;
    padding: 46px 0 80px;
}

.candy-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 50px;
    padding: clamp(42px, 6vw, 78px);
    border-radius: 42px;
    background:
            radial-gradient(
                    circle at 85% 15%,
                    rgba(120, 223, 192, 0.22),
                    transparent 25%
            ),
            linear-gradient(
                    135deg,
                    var(--candy-forest-dark),
                    var(--candy-forest)
            );
    box-shadow: 0 30px 80px rgba(8, 43, 37, 0.23);
}

.candy-hero::before,
.candy-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.candy-hero::before {
    width: 380px;
    height: 380px;
    right: -150px;
    bottom: -190px;
    border: 70px solid rgba(255, 214, 79, 0.13);
}

.candy-hero::after {
    width: 210px;
    height: 210px;
    top: -120px;
    left: 42%;
    background: rgba(255, 91, 141, 0.08);
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    width: fit-content;
    margin-bottom: 20px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: var(--candy-yellow);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.candy-hero h1 {
    max-width: 700px;
    margin: 0 0 24px;
    color: white;
    font-size: clamp(54px, 7vw, 92px);
    line-height: 0.94;
    letter-spacing: -5px;
}

.candy-hero h1 span {
    position: relative;
    display: inline-block;
    color: var(--candy-yellow);
}

.candy-hero h1 span::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    height: 9px;
    border-radius: 999px;
    background: var(--candy-pink);
    transform: rotate(-2deg);
}

.hero-description {
    max-width: 620px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.hero-benefits {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.hero-benefits span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
}

.hero-benefits strong {
    margin-right: 5px;
    color: var(--candy-mint);
}

.hero-art {
    position: relative;
    z-index: 1;
    min-height: 440px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-label {
    position: absolute;
    top: 30px;
    right: 4px;
    z-index: 5;
    width: 135px;
    height: 135px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 5px solid white;
    border-radius: 50%;
    background: var(--candy-yellow);
    color: var(--candy-forest-dark);
    text-align: center;
    box-shadow: 0 16px 35px rgba(8, 43, 37, 0.28);
    transform: rotate(8deg);
}

.hero-label strong {
    font-size: 18px;
}

.hero-label span {
    max-width: 90px;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 800;
}

.candy-bag {
    position: relative;
    width: min(330px, 78vw);
    height: 370px;
    margin-top: 48px;
    border: 8px solid rgba(255, 255, 255, 0.85);
    border-radius: 45px 45px 65px 65px;
    background:
            linear-gradient(
                    145deg,
                    #fff9ec,
                    #ffe8ef
            );
    box-shadow:
            0 35px 70px rgba(0, 0, 0, 0.28),
            inset 0 -20px 40px rgba(255, 91, 141, 0.08);
    transform: rotate(3deg);
}

.bag-top {
    position: absolute;
    top: -45px;
    left: 50%;
    width: 205px;
    height: 82px;
    border: 8px solid rgba(255, 255, 255, 0.85);
    border-bottom: none;
    border-radius: 70px 70px 0 0;
    transform: translateX(-50%);
}

.bag-content {
    position: absolute;
    inset: 72px 30px auto;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--candy-forest);
    text-align: center;
}

.bag-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 24px 24px 24px 8px;
    background: var(--candy-pink);
    color: white;
    font-size: 40px;
    font-weight: 900;
    transform: rotate(-6deg);
}

.bag-content strong {
    font-size: 31px;
    letter-spacing: -1.8px;
}

.bag-content small {
    margin-top: 6px;
    color: var(--candy-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.bag-candy,
.floating-candy {
    position: absolute;
    border-radius: 50%;
}

.bag-candy {
    bottom: 20px;
    border: 5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 16px rgba(18, 63, 53, 0.15);
}

.bag-candy-one {
    left: 34px;
    width: 70px;
    height: 70px;
    background: var(--candy-purple);
}

.bag-candy-two {
    left: 92px;
    bottom: 10px;
    width: 82px;
    height: 82px;
    background: var(--candy-yellow);
}

.bag-candy-three {
    left: 155px;
    width: 68px;
    height: 68px;
    background: var(--candy-mint);
}

.bag-candy-four {
    right: 35px;
    bottom: 9px;
    width: 85px;
    height: 85px;
    background: var(--candy-pink);
}

.bag-candy-five {
    right: 92px;
    bottom: 48px;
    width: 48px;
    height: 48px;
    background: var(--candy-red);
}

.floating-candy {
    width: 42px;
    height: 42px;
    border: 5px solid rgba(255, 255, 255, 0.7);
    animation: candy-float 4s ease-in-out infinite;
}

.candy-one {
    top: 70px;
    left: 5px;
    background: var(--candy-pink);
}

.candy-two {
    right: 12px;
    bottom: 70px;
    background: var(--candy-purple);
    animation-delay: -1s;
}

.candy-three {
    bottom: 20px;
    left: 50px;
    width: 58px;
    height: 58px;
    background: var(--candy-yellow);
    animation-delay: -2s;
}

.candy-four {
    top: 3px;
    left: 35%;
    width: 30px;
    height: 30px;
    background: var(--candy-mint);
    animation-delay: -2.8s;
}

@keyframes candy-float {
    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-15px) rotate(12deg);
    }
}

.category-band {
    margin: 28px 0 90px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.category-card {
    position: relative;
    min-height: 188px;
    overflow: hidden;
    padding: 16px 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(18, 63, 53, 0.1);
    border-radius: 26px;
    color: var(--candy-forest);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(18, 63, 53, 0.09);
    transition:
            transform 200ms ease,
            box-shadow 200ms ease;
}

.category-card::before {
    content: "";
    position: absolute;
    top: -45px;
    right: -45px;
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.category-card:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 0 24px 45px rgba(18, 63, 53, 0.15);
}

.category-visual {
    position: relative;
    z-index: 1;
    width: 105px;
    height: 105px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-visual svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 9px 10px rgba(18, 63, 53, 0.12));
    transition: transform 200ms ease;
}

.category-card:hover .category-visual svg {
    transform: scale(1.08) rotate(3deg);
}

.category-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.category-content strong {
    color: var(--candy-forest);
    font-size: 15px;
    line-height: 1.2;
}

.category-content span {
    color: rgba(18, 63, 53, 0.65);
    font-size: 11px;
    font-weight: 700;
}

.category-card .icon-fill {
    fill: var(--category-color);
}

.category-card .icon-fill-light {
    fill: rgba(255, 255, 255, 0.75);
}

.category-card .icon-line {
    fill: none;
    stroke: var(--candy-forest);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.category-card-pink {
    --category-color: #ff5b8d;
    background: #ffe7ef;
}

.category-card-yellow {
    --category-color: #ffd64f;
    background: #fff2bd;
}

.category-card-purple {
    --category-color: #8068f5;
    background: #eae5ff;
}

.category-card-mint {
    --category-color: #78dfc0;
    background: #dff8ef;
}

.category-card-coffee {
    --category-color: #b8784e;
    background: #f3e2d4;
}

.category-card-orange {
    --category-color: #ff9d5c;
    background: #ffe7d4;
}

.experience-section {
    margin-bottom: 90px;
}

.section-heading {
    max-width: 680px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading h2,
.store-introduction h2 {
    margin-bottom: 18px;
    color: var(--candy-forest);
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1;
    letter-spacing: -3px;
}

.section-heading p:not(.section-kicker),
.store-introduction > p:not(.section-kicker) {
    color: var(--candy-muted);
    font-size: 17px;
    line-height: 1.7;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.experience-card {
    position: relative;
    min-height: 365px;
    overflow: hidden;
    padding: 34px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(18, 63, 53, 0.08);
    border-radius: 32px;
    box-shadow: var(--candy-shadow);
    transition:
            transform 200ms ease,
            box-shadow 200ms ease;
}

.experience-card:hover {
    transform: translateY(-8px) rotate(-0.5deg);
    box-shadow: 0 32px 65px rgba(18, 63, 53, 0.17);
}

.experience-card-pink {
    background: #ffe6ef;
}

.experience-card-yellow {
    background: #fff1b8;
}

.experience-card-mint {
    background: #dff8ef;
}

.card-number {
    position: absolute;
    top: 22px;
    right: 25px;
    color: rgba(18, 63, 53, 0.2);
    font-size: 50px;
    font-weight: 900;
    line-height: 1;
}

.card-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid white;
    border-radius: 23px;
    background: rgba(255, 255, 255, 0.55);
    font-size: 34px;
    transform: rotate(-5deg);
}

.experience-card h3 {
    color: var(--candy-forest);
    font-size: 27px;
    line-height: 1.05;
}

.experience-card p {
    margin-bottom: 25px;
    color: #536a63;
    line-height: 1.7;
}

.experience-card a {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--candy-forest);
    font-weight: 900;
    text-decoration: none;
}

.experience-card a:hover {
    gap: 15px;
}

.store-section {
    margin-bottom: 80px;
    padding: clamp(34px, 5vw, 65px);
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    gap: 60px;
    align-items: center;
    border-radius: 40px;
    background: var(--candy-paper);
    box-shadow: var(--candy-shadow);
}

.store-introduction {
    max-width: 600px;
}

.store-address {
    margin: 28px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.address-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    background: var(--candy-yellow);
    color: var(--candy-forest);
    font-size: 25px;
    font-weight: 900;
}

.store-address strong {
    color: var(--candy-forest);
    font-size: 17px;
}

.store-address p {
    color: var(--candy-muted);
}

.opening-hours-card {
    padding: 32px;
    border-radius: 30px;
    background: var(--candy-forest);
    color: white;
    box-shadow: 0 25px 50px rgba(18, 63, 53, 0.22);
    transform: rotate(1.5deg);
}

.hours-card-heading {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hours-card-heading > span {
    font-size: 34px;
}

.hours-card-heading p {
    color: var(--candy-mint);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hours-card-heading h3 {
    margin: 2px 0 0;
    color: white;
    font-size: 28px;
}

.opening-hours {
    display: grid;
    gap: 2px;
}

.opening-hours div {
    padding: 10px 4px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}

.opening-hours dt {
    color: rgba(255, 255, 255, 0.72);
}

.opening-hours dd {
    font-weight: 900;
}

.opening-hours .long-day dd {
    color: var(--candy-yellow);
}

.trust-banner {
    padding: 26px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    border-radius: 30px;
    background:
            linear-gradient(
                    100deg,
                    var(--candy-pink),
                    var(--candy-purple)
            );
    box-shadow: 0 22px 50px rgba(128, 104, 245, 0.22);
}

.trust-banner > div {
    padding: 13px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.trust-banner > div > span {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: white;
    color: var(--candy-purple);
    font-size: 20px;
    font-weight: 900;
}

.trust-banner p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.trust-banner strong {
    margin-bottom: 3px;
    display: block;
    color: white;
    font-size: 16px;
}

@media (max-width: 1000px) {
    .candy-hero {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-kicker {
        margin-inline: auto;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-actions,
    .hero-benefits {
        justify-content: center;
    }

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

    .category-band {
        grid-template-columns: repeat(3, 1fr);
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .experience-card {
        min-height: 300px;
    }

    .store-section {
        grid-template-columns: 1fr;
    }

    .opening-hours-card {
        transform: none;
    }
}

@media (max-width: 760px) {
    .home-main {
        width: min(100% - 22px, 1240px);
        padding-top: 20px;
    }

    .candy-hero {
        min-height: auto;
        padding: 45px 22px;
        border-radius: 28px;
    }

    .candy-hero h1 {
        font-size: clamp(50px, 17vw, 72px);
        letter-spacing: -3px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-benefits {
        flex-direction: column;
    }

    .hero-art {
        min-height: 350px;
    }

    .hero-label {
        top: 5px;
        right: -5px;
        width: 105px;
        height: 105px;
    }

    .hero-label strong {
        font-size: 15px;
    }

    .candy-bag {
        width: 255px;
        height: 305px;
    }

    .bag-content {
        inset: 60px 20px auto;
    }

    .bag-content strong {
        font-size: 25px;
    }

    .category-band {
        margin-bottom: 60px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .category-card {
        min-height: 170px;
        padding-inline: 10px;
    }

    .category-visual {
        width: 90px;
        height: 90px;
    }

    .section-heading h2,
    .store-introduction h2 {
        font-size: 42px;
        letter-spacing: -2px;
    }

    .experience-card {
        padding: 28px;
    }

    .store-section {
        padding: 30px 22px;
        gap: 35px;
        border-radius: 28px;
    }

    .opening-hours-card {
        padding: 25px 20px;
    }

    .trust-banner {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   FORSIDE: BILLEDER I EXPERIENCE-KORT
   Erstat den gamle .card-icon-regel med disse regler.
   ================================================== */

.card-icon.card-icon-image {
    width: 100%;
    height: 168px;
    margin: 0 0 27px;
    overflow: hidden;
    display: block;
    border: 0;
    border-radius: 24px;
    background: white;
    box-shadow:
            0 12px 28px rgba(18, 63, 53, 0.10);
    transform: none;
}

.card-icon.card-icon-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition:
            transform 240ms ease,
            filter 240ms ease;
}

.experience-card:hover
.card-icon.card-icon-image img {
    transform: scale(1.035);
    filter: saturate(1.04);
}

@media (max-width: 760px) {
    .card-icon.card-icon-image {
        height: 150px;
        margin-bottom: 23px;
        border-radius: 20px;
    }
}

/* ==================================================
   FORSIDE: FÆLLES KATEGORILISTE
   Tilføj nederst i home.css.
   ================================================== */

.category-band {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card-red {
    --category-color: #f04c5f;
    background: #ffe2e6;
}

.category-card-blue {
    --category-color: #4f83e3;
    background: #e3edff;
}

@media (max-width: 1000px) {
    .category-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .category-band {
        grid-template-columns: 1fr;
    }
}