/* Design guide tokens - extracted from logo.png */
:root {
    --brand-primary: #8040A1;
    --brand-primary-dark: #5f2f77;
    --brand-primary-soft: #ede2f3;
    --brand-ink: #333333;
    --brand-paper: #ffffff;
}

body.guest-theme {
    background: #f3eee6;
    color: var(--brand-ink);
}

.guest-theme .container {
    border-left: none;
    border-right: none;
    background: transparent;
}

.guest-theme .header-container {
    background: rgba(248, 244, 238, 0.92);
    border-bottom: 1px solid #e4d9cb;
    position: sticky;
    top: 0;
    z-index: 120;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(38, 32, 26, 0.06);
}

.guest-theme .header-container .container,
.guest-theme .footer-container .container {
    border: none;
    background: transparent;
    max-width: 1280px;
    padding-left: 20px;
    padding-right: 20px;
}

.guest-theme .footer-container {
    background: #2f3a30;
    color: #f5efe6;
    border-top: none;
}

.guest-theme .footer-container small,
.guest-theme .footer-container a {
    color: #f5efe6;
}

.guest-theme #logo {
    height: 64px;
    margin: 14px 0;
}

.front-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    flex-wrap: nowrap;
}

.front-top-nav #logo {
    margin: 0;
    height: 56px;
}

.front-top-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    position: relative;
}

.front-top-menu-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 0;
}

.front-top-phone {
    color: #423d35;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid #dccfbe;
    border-radius: 999px;
    padding: 8px 14px;
    background: #fdfaf5;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.front-top-phone:hover {
    color: var(--brand-primary-dark);
    border-color: #ccbda9;
    background: #fff;
}

.front-top-menu {
    display: flex;
    justify-content: flex-end;
    gap: 26px;
    flex-wrap: nowrap;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.front-top-link {
    color: #4a453d;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0;
    border: none;
    border-radius: 0;
    line-height: 1;
    transition: color 0.2s ease, background 0.2s ease;
}

.front-top-link:hover,
.front-top-link:focus {
    color: var(--brand-primary-dark);
    background: transparent;
}

.front-top-link.is-active {
    color: var(--brand-primary-dark);
    font-weight: 700;
}

.front-top-link.is-cta {
    color: #4a453d;
}

.front-top-link.is-cta:hover,
.front-top-link.is-cta:focus {
    color: var(--brand-primary-dark);
    background: transparent;
}

.front-menu-toggle {
    display: none;
    border: 1px solid #d8cab8;
    background: #fdfaf5;
    color: #423d35;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
}

.front-menu-toggle:hover,
.front-menu-toggle:focus {
    border-color: #c9b9a4;
    color: var(--brand-primary-dark);
}

.guest-landing {
    max-width: 1280px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.guest-hero {
    background: linear-gradient(135deg, #e8dfd3 0%, #f5efe6 60%, #efe4d6 100%);
    border: 1px solid #d8ccbe;
    border-radius: 8px;
    padding: 56px 42px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.guest-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(66, 84, 65, 0.18) 0%, rgba(66, 84, 65, 0.02) 72%);
    pointer-events: none;
}

.guest-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 28px;
    align-items: center;
}

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

.guest-kicker {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-primary-dark);
    background: var(--brand-primary-soft);
    border-radius: 999px;
    padding: 6px 12px;
    margin-bottom: 18px;
}

.guest-hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin: 0 0 16px;
    font-weight: 700;
    color: #1f2a22;
}

.guest-hero p {
    color: #4e4a42;
    font-size: 1.08rem;
    max-width: 680px;
}

.guest-hero-media {
    border-radius: 18px;
    min-height: 280px;
    border: 1px solid #d3c6b7;
    background-color: #efe4d6;
    background-image: url('/templates/danskfirmagaver/images/hero-gift-bags.jpg'), url('/templates/danskfirmagaver/images/wrapped-gifts-stacked.svg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
    overflow: hidden;
    position: relative;
}

.guest-hero-front {
    background-image: linear-gradient(135deg, rgba(28, 24, 18, 0.52) 0%, rgba(28, 24, 18, 0.34) 55%, rgba(28, 24, 18, 0.26) 100%), var(--hero-season-image, url('/templates/danskfirmagaver/images/bg_jul.jpg'));
    background-size: cover;
    background-position: center, center calc(100% + 320px);
    background-repeat: no-repeat;
    border-color: #c8b8a6;
    border-radius: 0;
    margin-bottom: 28px;
    padding-left: max(24px, calc((100% - 1280px) / 2 + 42px));
    padding-right: max(24px, calc((100% - 1280px) / 2 + 42px));
}

.guest-hero-front::after {
    display: none;
}

.guest-hero-front .guest-hero-layout {
    grid-template-columns: 1fr;
}

.guest-hero-front .guest-hero-media {
    display: none;
}

.guest-hero-front .guest-kicker {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.guest-hero-front h1,
.guest-hero-front p {
    color: #ffffff;
}

.guest-section-kicker {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--brand-primary-dark);
    margin-bottom: 8px;
}

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

.guest-theme .btn-pine {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--brand-paper);
}

.guest-theme .btn-pine:hover,
.guest-theme .btn-pine:focus {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: var(--brand-paper);
}

.guest-theme .btn-outline-pine {
    background: transparent;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
}

.guest-theme .btn-outline-pine:hover,
.guest-theme .btn-outline-pine:focus {
    background: var(--brand-primary);
    color: var(--brand-paper);
}

.guest-panel {
    background: #fffdf9;
    border: 1px solid #e0d6c9;
    border-radius: 8px;
    padding: 34px;
    margin-bottom: 24px;
}

.gift-examples-panel {
    padding-right: 24px;
}

.guest-panel h2 {
    font-size: clamp(1.6rem, 2.3vw, 2.05rem);
    color: #1f2a22;
    margin-bottom: 22px;
    line-height: 1.2;
}

.gift-selection-link {
    margin-top: -8px;
    margin-bottom: 16px;
    color: #6c6458;
    font-size: 0.95rem;
}

.gift-selection-link a {
    color: var(--brand-primary-dark);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(95, 47, 119, 0.25);
}

.gift-selection-link a:hover,
.gift-selection-link a:focus {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
}

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

.guest-feature-card {
    background: #fff;
    border: 1px solid #e9e0d4;
    border-radius: 14px;
    padding: 18px;
}

.guest-feature-card:nth-child(1),
.guest-feature-card:nth-child(2),
.guest-feature-card:nth-child(3),
.guest-feature-card:nth-child(4) {
    grid-column: span 6;
}

.guest-feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #263228;
}

.guest-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.guest-steps li {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.guest-process-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.guest-process-step {
    position: relative;
    background: #fff;
    border: 1px solid #e9e0d4;
    border-radius: 8px;
    padding: 18px;
}

.guest-process-step::after {
    content: "";
    position: absolute;
    top: 28px;
    right: -16px;
    width: 16px;
    height: 2px;
    background: #d7c7e2;
}

.guest-process-step:last-child::after {
    display: none;
}

.guest-process-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: var(--brand-paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 10px;
}

.guest-process-step h3 {
    font-size: 1.02rem;
    margin: 0 0 8px;
    color: #263228;
}

.guest-process-step p {
    margin: 0;
    color: #4e4a42;
    font-size: 0.95rem;
}

.guest-step-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: var(--brand-paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.guest-auth-wrap {
    padding: 56px 20px;
}

.guest-auth-card {
    background: #fffdf9;
    border-radius: 8px;
    border: 1px solid #dfd4c6;
    box-shadow: 0 10px 30px rgba(45, 42, 35, 0.08);
    padding: 34px;
    position: relative;
}

.guest-auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
}

.guest-auth-card h1,
.guest-auth-card h2,
.guest-auth-card h3 {
    color: #1f2a22;
}

.guest-auth-side .alert {
    border-radius: 14px;
    border-width: 1px;
}

.guest-theme .accordion .card,
.guest-theme .card {
    border-radius: 14px;
}

.gift-price-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.gift-price-filters::-webkit-scrollbar {
    display: none;
}

.gift-price-filter {
    border: 1px solid #d7c7e2;
    background: #fff;
    color: var(--brand-primary-dark);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.gift-price-filter.is-active,
.gift-price-filter:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.gift-carousel-wrap {
    position: relative;
}

.gift-carousel {
    display: none;
    align-items: center;
    gap: 12px;
}

.gift-carousel.is-active {
    display: flex;
}

.gift-carousel-viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    scrollbar-width: none;
}

.gift-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.gift-carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-columns: calc((100% - 16px) / 2);
    gap: 16px;
}

.gift-carousel-track.is-two-up {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
}

.gift-carousel-card {
    background: #fff;
    border: 1px solid #e8dccf;
    border-radius: 14px;
    overflow: hidden;
    min-height: 100%;
    position: relative;
}

.gift-carousel-image-wrap {
    position: relative;
    width: 100%;
    height: 350px;
    max-height: 350px;
    overflow: hidden;
    background-color: #fff;
}

.gift-carousel-image-layer {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transition: opacity 0.45s ease-in-out;
}

.gift-carousel-image-layer.is-active {
    opacity: 1;
}

.gift-carousel-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    color: #7a6a5b;
    font-size: 0.88rem;
    background: #fff;
}

.gift-carousel-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.8);
}

.gift-carousel-body h3 {
    font-size: 0.95rem;
    line-height: 1.3;
    margin: 0 0 8px;
    color: #2a2a2a;
}

.gift-carousel-body p {
    margin: 0;
    color: var(--brand-primary-dark);
    font-weight: 700;
}

.gift-carousel-body .gift-carousel-price-note {
    font-size: 0.76rem;
    font-weight: 500;
    color: #7f7f7f;
}

.gift-carousel-body .gift-carousel-price-guide {
    margin-top: 2px;
    color: #6f6f6f;
    font-size: 0.82rem;
    font-weight: 600;
}

.gift-carousel-nav {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #d9c8e5;
    background: #fff;
    color: var(--brand-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
}

.gift-carousel-nav:hover {
    background: var(--brand-primary-soft);
}

.support-wiki {
    display: grid;
    grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
    gap: 22px;
}

.support-wiki-sidebar {
    background: #fff;
    border: 1px solid #e9deef;
    border-radius: 12px;
    padding: 16px;
    height: fit-content;
    position: sticky;
    top: 16px;
}

.support-wiki-sidebar h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1rem;
}

.support-wiki-sidebar a {
    display: block;
    color: var(--brand-primary-dark);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid #f1e8f6;
}

.support-wiki-content {
    display: grid;
    gap: 16px;
}

.support-article {
    background: #fff;
    border: 1px solid #eaded2;
    border-radius: 12px;
    padding: 18px;
}

.support-article h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.35rem;
}

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

.pricing-card {
    background: #fff;
    border: 1px solid #e7dbe0;
    border-radius: 14px;
    padding: 18px;
}

.pricing-card h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.pricing-price {
    color: var(--brand-primary-dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.pricing-card ul {
    margin: 0;
    padding-left: 18px;
}

.pricing-card li {
    margin-bottom: 6px;
}

@media (max-width: 1024px) {
    .front-top-nav {
        align-items: center;
    }

    .front-top-nav-right {
        margin-left: auto;
    }

    .front-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .front-top-menu-wrap {
        position: absolute;
        right: 0;
        top: calc(100% + 10px);
        min-width: 260px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        border: 1px solid #ddcfbf;
        border-radius: 16px;
        background: #fffdf9;
        box-shadow: 0 16px 30px rgba(28, 26, 22, 0.15);
        padding: 14px;
        z-index: 130;
    }

    body.front-menu-open .front-top-menu-wrap {
        display: flex;
    }

    .front-top-menu {
        width: 100%;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .front-top-link {
        border-radius: 12px;
        padding: 10px 12px;
    }

    .front-top-phone {
        text-align: center;
    }

    .guest-hero-layout {
        grid-template-columns: 1fr;
    }

    .guest-hero-media {
        min-height: 220px;
    }

    .guest-hero {
        padding: 36px 24px;
    }

    .guest-hero-front {
        background-position: center, center center;
    }

    .guest-panel {
        padding: 24px;
    }

    .guest-feature-card:nth-child(1),
    .guest-feature-card:nth-child(2),
    .guest-feature-card:nth-child(3),
    .guest-feature-card:nth-child(4) {
        grid-column: span 12;
    }

    .guest-process-steps {
        grid-template-columns: 1fr;
    }

    .guest-process-step::after {
        display: none;
    }

    .gift-carousel-track {
        grid-auto-columns: calc((100% - 16px) / 2);
    }

    .support-wiki {
        grid-template-columns: 1fr;
    }

    .support-wiki-sidebar {
        position: static;
    }

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

@media (max-width: 575.98px) {
    .gift-carousel-track {
        grid-auto-columns: 100%;
    }
}
