/**
 * APC Theme – Corporate design system, animations & 3D effects
 */

/* ------------------------------------------------------------------ */
/* Design tokens (extends :root in style.css)                         */
/* ------------------------------------------------------------------ */
:root {
    --apc-primary-dark: #2ecc12;
    --apc-primary-muted: rgba(57, 255, 20, 0.12);
    --apc-bg-elevated: #141414;
    --apc-bg-overlay: rgba(10, 10, 10, 0.92);
    --apc-border: #262626;
    --apc-border-subtle: #1a1a1a;
    --apc-text-muted: #8a8a8a;
    --apc-radius-sm: 4px;
    --apc-radius-md: 8px;
    --apc-radius-lg: 12px;
    --apc-radius-xl: 16px;
    --apc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --apc-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --apc-shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.45);
    --apc-shadow-glow: 0 0 24px var(--accent-glow);
    --apc-space-xs: 0.5rem;
    --apc-space-sm: 1rem;
    --apc-space-md: 1.5rem;
    --apc-space-lg: 2.5rem;
    --apc-space-xl: 4rem;
    --apc-space-2xl: 6rem;
    --apc-section-y: clamp(4rem, 8vw, 8rem);
    --apc-container: 1400px;
    --apc-container-wide: 1400px;
    --apc-booking-max: 1400px;
    --apc-font-display: clamp(2rem, 5vw, 3.5rem);
    --apc-font-h2: clamp(1.75rem, 4vw, 3rem);
    --apc-font-h3: clamp(1.1rem, 2vw, 1.35rem);
    --apc-font-body: 1rem;
    --apc-font-small: 0.8125rem;
    --apc-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --apc-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --apc-duration-fast: 0.2s;
    --apc-duration-normal: 0.4s;
    --apc-duration-slow: 0.7s;
    --apc-perspective: 900px;
}

/* ------------------------------------------------------------------ */
/* Skip link & focus                                                    */
/* ------------------------------------------------------------------ */
.apc-skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 10000;
    padding: 0.75rem 1.25rem;
    background: var(--primary);
    color: #000;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: var(--apc-radius-sm);
    transition: top var(--apc-duration-fast) var(--apc-ease-out);
}

.apc-skip-link:focus {
    top: 1rem;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Typography scale                                                     */
/* ------------------------------------------------------------------ */
.apc-text-eyebrow {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    font-weight: 700;
}

.apc-text-lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 42rem;
}

/* ------------------------------------------------------------------ */
/* Button system                                                        */
/* ------------------------------------------------------------------ */
.add-to-cart,
.apc-btn {
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.add-to-cart::after,
.apc-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.6s var(--apc-ease-out);
    pointer-events: none;
}

.add-to-cart:hover::after,
.apc-btn:hover::after {
    transform: translateX(120%);
}

.apc-btn-outline {
    border: 1px solid var(--primary) !important;
    background: transparent !important;
    color: var(--primary) !important;
}

.apc-btn-outline:hover {
    background: var(--apc-primary-muted) !important;
    box-shadow: var(--apc-shadow-glow);
}

/* Clickable cards (home activity/zone grids) */
a.apc-card-link,
a.apc-card--link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.apc-card-link__hint {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0.85;
    transition: opacity var(--apc-duration-fast) ease, transform var(--apc-duration-fast) ease;
}

a.apc-card-link:hover .apc-card-link__hint,
a.apc-card--link:hover .apc-card-link__hint {
    opacity: 1;
    transform: translateX(3px);
}

.apc-section-subtitle {
    font-size: var(--apc-font-h3);
    margin: 2.5rem 0 1rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.02em;
}

.apc-zone-picker {
    margin-top: 0.5rem;
}

a.apc-card--link h3 {
    margin-top: 0;
}

.apc-hero-actions .apc-btn::after {
    display: none;
}

/* Booking widget – ensure theme styles do not block interaction */
.apc-booking-wrap .oryx-booking-widget {
    position: relative;
    z-index: 1;
}

.apc-booking-wrap .oryx-booking-widget button,
.apc-booking-wrap .oryx-booking-widget input,
.apc-booking-wrap .oryx-booking-widget select,
.apc-booking-wrap .oryx-booking-widget textarea,
.apc-booking-wrap .oryx-booking-widget label,
.apc-booking-wrap .oryx-booking-widget a {
    pointer-events: auto;
}

/* ------------------------------------------------------------------ */
/* Scroll reveal enhancements                                           */
/* ------------------------------------------------------------------ */
.scroll-reveal {
    transition:
        opacity var(--apc-duration-slow) var(--apc-ease-out),
        transform var(--apc-duration-slow) var(--apc-ease-out);
}

.scroll-reveal[data-reveal="left"] {
    transform: translateX(-40px);
}

.scroll-reveal[data-reveal="right"] {
    transform: translateX(40px);
}

.scroll-reveal[data-reveal="scale"] {
    transform: scale(0.96);
}

.scroll-reveal.active {
    transform: translate(0) scale(1);
}

.scroll-reveal .product-card,
.scroll-reveal .apc-card,
.scroll-reveal .apc-faq-item {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity var(--apc-duration-normal) var(--apc-ease-out),
        transform var(--apc-duration-normal) var(--apc-ease-out);
}

.scroll-reveal.active .product-card,
.scroll-reveal.active .apc-card,
.scroll-reveal.active .apc-faq-item,
.product-card.reveal-active,
.apc-card.reveal-active,
.apc-faq-item.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------------------------------ */
/* Hero – depth layers & entrance                                       */
/* ------------------------------------------------------------------ */
.apc-home-hero {
    perspective: var(--apc-perspective);
}

/* Elementor: break hero out of boxed section/container to viewport edge */
.elementor-widget-apc_banner .apc-home-hero,
.elementor-widget-apc_banner .apc-home-hero.apc-hero--full-bleed,
.elementor-element .apc-home-hero.apc-hero--full-bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

.elementor-section:has(.apc-home-hero) {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.elementor-section:has(.apc-home-hero) > .elementor-container {
    max-width: none;
}

.elementor-section:has(.apc-home-hero) > .elementor-container > .elementor-column > .elementor-widget-wrap {
    padding: 0;
}

.elementor-widget-apc_banner .elementor-widget-container {
    padding: 0;
}

/* Elementor: break APC homepage sections out of boxed container to viewport edge */
.elementor-widget-apc_programs_section .section.apc-section--full-bleed,
.elementor-widget-apc_split_feature .section.apc-section--full-bleed,
.elementor-widget-apc_content_card .section.apc-section--full-bleed,
.elementor-widget-apc_partners_strip .section.apc-section--full-bleed,
.elementor-widget-apc_cta_band .section.apc-section--full-bleed,
.elementor-element .section.apc-section--full-bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

.elementor-section:has(.apc-section--full-bleed),
.e-con:has(.apc-section--full-bleed) {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.elementor-section:has(.apc-section--full-bleed) > .elementor-container {
    max-width: none;
}

.elementor-section:has(.apc-section--full-bleed) > .elementor-container > .elementor-column > .elementor-widget-wrap,
.e-con:has(.apc-section--full-bleed) > .e-con-inner {
    padding-left: 0;
    padding-right: 0;
}

.elementor-widget-apc_programs_section .elementor-widget-container,
.elementor-widget-apc_split_feature .elementor-widget-container,
.elementor-widget-apc_content_card .elementor-widget-container,
.elementor-widget-apc_partners_strip .elementor-widget-container,
.elementor-widget-apc_cta_band .elementor-widget-container {
    padding: 0;
}

.section.apc-section--full-bleed.apc-final-cta {
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.apc-hero-depth {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.apc-hero-depth__layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.22;
    will-change: transform;
}

.apc-hero-depth__layer--1 {
    width: 40vw;
    height: 40vw;
    top: 10%;
    left: -10%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation: apcHeroFloat1 12s ease-in-out infinite;
}

.apc-hero-depth__layer--2 {
    width: 30vw;
    height: 30vw;
    bottom: 5%;
    right: -5%;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.4) 0%, transparent 70%);
    animation: apcHeroFloat2 10s ease-in-out infinite;
}

.apc-hero-depth__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(57, 255, 20, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 255, 20, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 20%, transparent 70%);
    transform: rotateX(55deg) scale(1.2);
    transform-origin: center bottom;
    opacity: 0.3;
}

@keyframes apcHeroFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(3%, 5%) scale(1.05); }
}

@keyframes apcHeroFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-4%, -3%); }
}

.apc-home-hero .hero-content > * {
    opacity: 0;
    transform: translateY(30px);
    animation: apcHeroEnter var(--apc-duration-slow) var(--apc-ease-out) forwards;
}

.apc-home-hero .hero-logo-wrap,
.apc-home-hero .hero-logo { animation-delay: 0.1s; }
.apc-home-hero .hero-sub { animation-delay: 0.25s; }
.apc-home-hero .hero-tagline { animation-delay: 0.4s; }
.apc-home-hero .apc-hero-actions { animation-delay: 0.55s; }

@keyframes apcHeroEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.apc-home-hero .hero-overlay-text {
    animation: apcHeroSlideIn 1s var(--apc-ease-out) 0.7s backwards;
}

@keyframes apcHeroSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ------------------------------------------------------------------ */
/* 3D card tilt (CSS perspective + JS micro-tilt)                     */
/* ------------------------------------------------------------------ */
.apc-tilt-scene {
    perspective: var(--apc-perspective);
}

.apc-tilt-card {
    transform-style: preserve-3d;
    transition:
        transform var(--apc-duration-normal) var(--apc-ease-out),
        box-shadow var(--apc-duration-normal) var(--apc-ease-out),
        border-color var(--apc-duration-fast) ease;
    will-change: transform;
}

.apc-tilt-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--apc-duration-normal) ease;
    pointer-events: none;
    transform: translateZ(1px);
}

.apc-tilt-card:hover::after,
.apc-tilt-card.is-tilting::after {
    opacity: 1;
}

.apc-zone-card {
    position: relative;
}

.apc-zone-card .product-info {
    transform: translateZ(20px);
}

.apc-zone-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.65rem;
    background: var(--apc-primary-muted);
    border: 1px solid rgba(57, 255, 20, 0.25);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--apc-radius-sm);
    transform: translateZ(30px);
}

/* ------------------------------------------------------------------ */
/* Navigation polish                                                    */
/* ------------------------------------------------------------------ */
.apc-nav {
    transition:
        background var(--apc-duration-normal) var(--apc-ease-out),
        border-color var(--apc-duration-normal) var(--apc-ease-out),
        box-shadow var(--apc-duration-normal) var(--apc-ease-out);
}

.apc-nav.is-scrolled {
    box-shadow: var(--apc-shadow-md);
}

.nav-links .nav-menu > li > a {
    position: relative;
}

.nav-links .nav-menu > li:not(.menu-item-has-children) > a::after {
    content: '';
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.3rem;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--apc-duration-fast) var(--apc-ease-out);
}

.nav-links .nav-menu > li:not(.menu-item-has-children) > a:hover::after,
.nav-links .nav-menu > li:not(.menu-item-has-children).current-menu-item > a::after,
.nav-links .nav-menu > li:not(.menu-item-has-children).current_page_item > a::after {
    transform: scaleX(1);
}

.apc-nav-cta {
    border-radius: var(--apc-radius-sm);
    box-shadow: none;
    transition:
        background var(--apc-duration-normal) var(--apc-ease-out),
        color var(--apc-duration-normal) var(--apc-ease-out),
        border-color var(--apc-duration-fast) var(--apc-ease-out);
}

.apc-nav-cta:hover {
    transform: none;
    box-shadow: none;
}

.apc-nav-cta:active {
    transform: none;
}

/* ------------------------------------------------------------------ */
/* Section & cards                                                      */
/* ------------------------------------------------------------------ */
.section {
    padding: var(--apc-section-y) 5%;
}

.section-header h2 {
    font-size: var(--apc-font-h2);
}

.apc-card {
    border-radius: var(--apc-radius-lg);
    padding: var(--apc-space-md);
    background: linear-gradient(160deg, var(--bg-card) 0%, var(--apc-bg-elevated) 100%);
    border: 1px solid var(--apc-border);
    box-shadow: var(--apc-shadow-sm);
    transition:
        transform var(--apc-duration-normal) var(--apc-ease-out),
        border-color var(--apc-duration-fast) ease,
        box-shadow var(--apc-duration-normal) var(--apc-ease-out);
}

.apc-card:hover {
    border-color: rgba(57, 255, 20, 0.18);
    box-shadow: var(--apc-shadow-sm);
    transform: translateY(-2px);
}

.apc-card h3 {
    font-size: var(--apc-font-h3);
    letter-spacing: -0.02em;
}

.product-card.apc-tilt-card:hover {
    transform: translateY(-10px) rotateX(2deg);
}

.apc-partners-strip span {
    border-radius: var(--apc-radius-md);
    background: var(--apc-bg-elevated);
    transition:
        border-color var(--apc-duration-fast) ease,
        transform var(--apc-duration-normal) var(--apc-ease-out),
        box-shadow var(--apc-duration-normal) var(--apc-ease-out);
}

.apc-partners-strip span:hover {
    border-color: rgba(57, 255, 20, 0.3);
    border-style: solid;
    transform: translateY(-3px);
    box-shadow: var(--apc-shadow-sm);
}

/* ------------------------------------------------------------------ */
/* Inner pages                                                          */
/* ------------------------------------------------------------------ */
.apc-page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 12vw, 7rem) 5% clamp(2rem, 5vw, 3rem);
}

.apc-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(57, 255, 20, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, #111 0%, var(--bg-dark) 100%);
    pointer-events: none;
}

.apc-page-hero__inner {
    position: relative;
    z-index: 1;
}

.apc-page-hero h1 {
    animation: apcHeroEnter var(--apc-duration-slow) var(--apc-ease-out) 0.15s backwards;
}

.apc-page-article .entry-content,
.apc-page {
    line-height: 1.75;
}

.apc-page h2,
.apc-page-article h2 {
    font-size: var(--apc-font-h2);
    font-weight: 900;
    font-style: italic;
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.02em;
}

.apc-page h3,
.apc-page-article h3 {
    font-size: var(--apc-font-h3);
    margin: 1.5rem 0 0.75rem;
}

.apc-page p,
.apc-page-article p {
    margin-bottom: 1rem;
    color: var(--text-dim);
}

.apc-cta-band,
.apc-final-cta {
    border-radius: var(--apc-radius-lg);
    margin: var(--apc-space-lg) 0;
    background: linear-gradient(180deg, var(--apc-bg-elevated) 0%, #0d0d0d 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* FAQ */
.apc-faq-item {
    border-radius: var(--apc-radius-md);
    padding: var(--apc-space-md);
    margin-bottom: var(--apc-space-sm);
    background: var(--apc-bg-elevated);
    border: 1px solid var(--apc-border-subtle);
    border-bottom: 1px solid var(--apc-border-subtle);
    transition:
        border-color var(--apc-duration-fast) ease,
        box-shadow var(--apc-duration-normal) var(--apc-ease-out);
}

.apc-faq-item:hover {
    border-color: rgba(57, 255, 20, 0.15);
    box-shadow: var(--apc-shadow-sm);
}

.apc-faq-item h3 {
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.apc-faq-item p {
    margin: 0;
    font-size: var(--apc-font-body);
}

/* Pricing page (APC Hallen priser & paket) */
.apc-pricing .apc-lead {
    font-size: 1.15rem;
    color: var(--text-main);
    max-width: 48rem;
}

.apc-price-note {
    color: var(--text-main) !important;
    border-left: 3px solid var(--primary, #39ff14);
    padding-left: 0.85rem;
}

.apc-pricing-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0 2rem;
}

.apc-price-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin: 1.25rem 0 2rem;
}

@media (min-width: 640px) {
    .apc-price-cards--5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .apc-price-cards--5 {
        grid-template-columns: repeat(5, 1fr);
    }
}

.apc-price-card {
    display: block;
    padding: 0;
    background: var(--apc-bg-elevated, #141414);
    border: 1px solid var(--apc-border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: var(--apc-radius-md, 10px);
    text-decoration: none;
    color: inherit;
    opacity: 1;
    transform: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.apc-price-card__link {
    display: block;
    padding: 1.15rem 1rem;
    text-decoration: none;
    color: inherit;
}

/* Keep overview as exactly five real cards — no filler/skeleton slots */
.apc-price-cards > .apc-price-card:empty {
    display: none;
}

.apc-price-cards > p,
.apc-price-card > p:empty {
    display: none !important;
}

.apc-price-card:hover {
    border-color: rgba(57, 255, 20, 0.45);
    transform: translateY(-2px);
}

.apc-price-card h3 {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    font-style: normal;
    color: var(--text-main);
}

.apc-price-card__amount {
    margin: 0 !important;
    color: var(--primary, #39ff14) !important;
    font-weight: 700;
    font-size: 0.95rem;
}

.apc-price-overview--home {
    max-width: min(var(--apc-container, 1400px), calc(100vw - 1.5rem));
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.apc-price-overview--home .apc-price-note {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    color: var(--text-dim, #8a8a8a);
    font-size: 0.9rem;
    line-height: 1.5;
}

.apc-price-overview--home .apc-pricing-cta-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.apc-pricing-section {
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--apc-border-subtle, rgba(255, 255, 255, 0.08));
}

.apc-price-list {
    margin: 0.5rem 0 1rem 1.15rem;
    color: var(--text-dim);
}

.apc-price-list li {
    margin-bottom: 0.35rem;
}

.apc-price-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0 1.25rem;
    border: 1px solid var(--apc-border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: var(--apc-radius-md, 10px);
    max-width: 100%;
}

.apc-price-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 0;
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .apc-price-table {
        min-width: 640px;
        font-size: 0.88rem;
    }
}

.apc-price-table th,
.apc-price-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--apc-border-subtle, rgba(255, 255, 255, 0.08));
    color: var(--text-dim);
}

.apc-price-table thead th {
    background: rgba(57, 255, 20, 0.06);
    color: var(--text-main);
    font-weight: 700;
    white-space: nowrap;
}

.apc-price-table tbody th {
    color: var(--text-main);
    font-weight: 600;
}

.apc-price-table tbody tr:last-child th,
.apc-price-table tbody tr:last-child td {
    border-bottom: 0;
}

.apc-package-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.25rem 0;
}

@media (min-width: 768px) {
    .apc-package-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .apc-package-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.apc-package-card {
    background: var(--apc-bg-elevated, #141414);
    border: 1px solid var(--apc-border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: var(--apc-radius-md, 10px);
    padding: 1.25rem;
}

.apc-package-card h3 {
    margin-top: 0;
    color: var(--text-main);
}

.apc-package-card__tagline {
    color: var(--primary, #39ff14) !important;
    font-size: 0.95rem;
    margin-bottom: 0.75rem !important;
}

.apc-package-card__price {
    color: var(--text-main) !important;
    font-size: 1.05rem;
    margin-top: 0.75rem !important;
}

.apc-camp-days {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.25rem 0;
}

@media (min-width: 768px) {
    .apc-camp-days {
        grid-template-columns: repeat(3, 1fr);
    }
}

.apc-camp-day {
    background: var(--apc-bg-elevated, #141414);
    border: 1px solid var(--apc-border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: var(--apc-radius-md, 10px);
    padding: 1rem 1.1rem;
}

.apc-camp-day h4 {
    margin: 0 0 0.65rem;
    color: var(--primary, #39ff14);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.apc-price-callout {
    background: rgba(57, 255, 20, 0.05);
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: var(--apc-radius-md, 10px);
    padding: 1.15rem 1.25rem;
    margin: 1rem 0 1.5rem;
}

.apc-price-callout p {
    color: var(--text-main) !important;
}

/* Booking wrapper */
.apc-booking-wrap {
    padding: var(--apc-space-md);
    background: var(--apc-bg-elevated);
    border: 1px solid var(--apc-border);
    border-radius: var(--apc-radius-lg);
    box-shadow: var(--apc-shadow-sm);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Tablet+ – keep flat-split horizontal inside booking wrap */
@media (min-width: 769px) {
    .apc-booking-wrap .oryx-booking-widget,
    .apc-booking-wrap .oryx-flatsplit-container {
        width: 100%;
        max-width: 100%;
    }

    .apc-booking-wrap .oryx-flatsplit-container {
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }

    .apc-booking-wrap .oryx-template-flat-split .booking-sidebar {
        flex: 0 0 280px;
        width: 280px;
        max-width: 280px;
    }

    .apc-booking-wrap .oryx-template-flat-split .booking-content {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }

    .apc-booking-wrap .oryx-template-flat-split .date-time-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }

    .apc-booking-wrap .oryx-template-flat-split .date-picker-flat,
    .apc-booking-wrap .oryx-template-flat-split .time-slots-flat {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* Book pages – full viewport content width on laptop+ */
@media (min-width: 1024px) {
    body.apc-page-book .apc-page-article .entry-content {
        max-width: min(var(--apc-booking-max), calc(100vw - 2rem));
        padding-left: clamp(1rem, 2vw, 1.5rem);
        padding-right: clamp(1rem, 2vw, 1.5rem);
    }

    body.apc-page-book .apc-page {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    body.apc-page-book .apc-booking-wrap {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .apc-booking-wrap .oryx-template-flat-split .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .apc-booking-wrap .oryx-template-flat-split .slots-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    body.apc-page-book .apc-booking-wrap .oryx-template-flat-split .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .apc-booking-wrap {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .apc-booking-wrap .oryx-flatsplit-container {
        flex-direction: column;
    }

    .apc-booking-wrap .oryx-template-flat-split .booking-sidebar {
        width: 100%;
        max-width: none;
    }
}

.apc-booking-wrap input,
.apc-booking-wrap select,
.apc-booking-wrap textarea,
.apc-page input[type="text"],
.apc-page input[type="email"],
.apc-page input[type="tel"],
.apc-page textarea {
    background: #111;
    border: 1px solid var(--apc-border);
    color: var(--text-main);
    border-radius: var(--apc-radius-sm);
    padding: 0.75rem 1rem;
    transition: border-color var(--apc-duration-fast) ease, box-shadow var(--apc-duration-fast) ease;
}

.apc-booking-wrap input:focus,
.apc-booking-wrap select:focus,
.apc-booking-wrap textarea:focus,
.apc-page input:focus,
.apc-page textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--apc-primary-muted);
    outline: none;
}

/* ------------------------------------------------------------------ */
/* Footer                                                               */
/* ------------------------------------------------------------------ */
.apc-footer {
    padding: var(--apc-space-xl) 5% var(--apc-space-lg);
    background: linear-gradient(180deg, #050505 0%, #000 100%);
    border-top: 1px solid var(--apc-border-subtle);
}

.apc-footer__inner {
    max-width: var(--apc-container-wide);
    margin: 0 auto;
    display: grid;
    gap: var(--apc-space-lg);
    text-align: center;
}

.apc-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.apc-footer__nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--apc-duration-fast) ease;
}

.apc-footer__nav a:hover,
.apc-footer__nav a:focus-visible {
    color: var(--primary);
}

.apc-footer__divider {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto;
    box-shadow: var(--apc-shadow-glow);
}

.apc-footer__logo {
    margin-bottom: 0.5rem;
}

/* ------------------------------------------------------------------ */
/* WooCommerce checkout / order-pay / cart (scoped – not Elementor home) */
/* ------------------------------------------------------------------ */
body.woocommerce-checkout,
body.woocommerce-order-pay,
body.woocommerce-cart {
    color: var(--text-main);
}

body.woocommerce-checkout .apc-page-hero h1,
body.woocommerce-order-pay .apc-page-hero h1,
body.woocommerce-cart .apc-page-hero h1,
body.woocommerce-checkout .entry-content > h1,
body.woocommerce-order-pay .entry-content > h1 {
    color: #fff;
}

body.woocommerce-checkout .apc-page-article .entry-content,
body.woocommerce-order-pay .apc-page-article .entry-content,
body.woocommerce-cart .apc-page-article .entry-content {
    color: var(--text-main);
}

body.woocommerce-checkout .apc-page-article p,
body.woocommerce-order-pay .apc-page-article p,
body.woocommerce-cart .apc-page-article p {
    color: rgba(255, 255, 255, 0.88);
}

body.woocommerce-checkout .woocommerce,
body.woocommerce-order-pay .woocommerce,
body.woocommerce-cart .woocommerce {
    color: var(--text-main);
}

/* Order tables */
body.woocommerce-checkout table.shop_table,
body.woocommerce-order-pay table.shop_table,
body.woocommerce-cart table.shop_table {
    border-color: var(--apc-border) !important;
    background: transparent;
    color: var(--text-main);
}

body.woocommerce-checkout table.shop_table th,
body.woocommerce-order-pay table.shop_table th,
body.woocommerce-cart table.shop_table th {
    color: #fff;
    font-weight: 700;
    border-color: var(--apc-border) !important;
    background: transparent;
}

body.woocommerce-checkout table.shop_table td,
body.woocommerce-order-pay table.shop_table td,
body.woocommerce-cart table.shop_table td,
body.woocommerce-checkout table.shop_table tfoot th,
body.woocommerce-order-pay table.shop_table tfoot th,
body.woocommerce-cart table.shop_table tfoot th {
    color: rgba(255, 255, 255, 0.92);
    border-color: var(--apc-border) !important;
    background: transparent;
}

body.woocommerce-checkout table.shop_table tfoot .order-total th,
body.woocommerce-checkout table.shop_table tfoot .order-total td,
body.woocommerce-order-pay table.shop_table tfoot .order-total th,
body.woocommerce-order-pay table.shop_table tfoot .order-total td {
    color: #fff;
    font-weight: 800;
}

body.woocommerce-checkout table.shop_table a,
body.woocommerce-order-pay table.shop_table a,
body.woocommerce-cart table.shop_table a {
    color: var(--primary);
}

/* Payment panel */
body.woocommerce-checkout #payment,
body.woocommerce-order-pay #payment {
    background: var(--apc-bg-elevated) !important;
    border: 1px solid var(--apc-border);
    border-radius: var(--apc-radius-md);
    color: var(--text-main);
}

body.woocommerce-checkout #payment ul.payment_methods,
body.woocommerce-order-pay #payment ul.payment_methods {
    border-bottom-color: var(--apc-border) !important;
    padding: 1.25rem 1.25rem 0.5rem;
}

body.woocommerce-checkout #payment ul.payment_methods li,
body.woocommerce-order-pay #payment ul.payment_methods li,
body.woocommerce-checkout .wc_payment_method,
body.woocommerce-order-pay .wc_payment_method {
    color: #fff;
}

body.woocommerce-checkout #payment ul.payment_methods li label,
body.woocommerce-order-pay #payment ul.payment_methods li label {
    color: #fff !important;
    font-weight: 600;
    cursor: pointer;
}

body.woocommerce-checkout #payment div.payment_box,
body.woocommerce-order-pay #payment div.payment_box {
    background: #1f1f1f !important;
    color: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid var(--apc-border);
    border-radius: var(--apc-radius-sm);
    text-shadow: none !important;
}

body.woocommerce-checkout #payment div.payment_box::before,
body.woocommerce-order-pay #payment div.payment_box::before {
    border-bottom-color: #1f1f1f !important;
}

body.woocommerce-checkout #payment div.payment_box p,
body.woocommerce-order-pay #payment div.payment_box p,
body.woocommerce-checkout #payment div.payment_box,
body.woocommerce-order-pay #payment div.payment_box {
    color: rgba(255, 255, 255, 0.92) !important;
}

body.woocommerce-checkout #payment div.form-row,
body.woocommerce-order-pay #payment div.form-row {
    border-top-color: var(--apc-border) !important;
    padding: 1rem 1.25rem 1.25rem;
}

/* Primary CTA — match BOKA NU (green + black text) */
body.woocommerce-checkout #payment #place_order,
body.woocommerce-order-pay #payment #place_order,
body.woocommerce-checkout button.button.alt,
body.woocommerce-order-pay button.button.alt,
body.woocommerce-checkout a.button.alt,
body.woocommerce-order-pay a.button.alt,
body.woocommerce-checkout input.button.alt,
body.woocommerce-order-pay input.button.alt,
body.woocommerce-cart button.button.alt,
body.woocommerce-cart a.button.alt,
body.woocommerce-cart input.button.alt,
body.woocommerce-checkout .woocommerce button.button.alt,
body.woocommerce-order-pay .woocommerce button.button.alt,
body.woocommerce-checkout .woocommerce a.button.alt,
body.woocommerce-order-pay .woocommerce a.button.alt {
    background: var(--primary) !important;
    background-color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    color: #000 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 0;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: var(--transition-smooth);
}

body.woocommerce-checkout #payment #place_order:hover,
body.woocommerce-order-pay #payment #place_order:hover,
body.woocommerce-checkout button.button.alt:hover,
body.woocommerce-order-pay button.button.alt:hover,
body.woocommerce-checkout a.button.alt:hover,
body.woocommerce-order-pay a.button.alt:hover,
body.woocommerce-cart button.button.alt:hover,
body.woocommerce-cart a.button.alt:hover {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--primary) !important;
}

body.woocommerce-checkout .woocommerce button.button:not(.alt),
body.woocommerce-order-pay .woocommerce button.button:not(.alt),
body.woocommerce-cart .woocommerce button.button:not(.alt),
body.woocommerce-checkout .woocommerce a.button:not(.alt),
body.woocommerce-order-pay .woocommerce a.button:not(.alt),
body.woocommerce-cart .woocommerce a.button:not(.alt) {
    background: transparent;
    border: 1px solid var(--text-dim);
    color: var(--text-main);
    border-radius: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

body.woocommerce-checkout .woocommerce button.button:not(.alt):hover,
body.woocommerce-order-pay .woocommerce button.button:not(.alt):hover,
body.woocommerce-cart .woocommerce button.button:not(.alt):hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

/* Checkout form fields */
body.woocommerce-checkout .woocommerce form .form-row label,
body.woocommerce-order-pay .woocommerce form .form-row label,
body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-shipping-fields h3,
body.woocommerce-checkout .woocommerce-additional-fields h3,
body.woocommerce-checkout #order_review_heading,
body.woocommerce-order-pay #order_review_heading {
    color: #fff !important;
}

body.woocommerce-checkout .woocommerce form .form-row input.input-text,
body.woocommerce-checkout .woocommerce form .form-row textarea,
body.woocommerce-checkout .woocommerce form .form-row select,
body.woocommerce-checkout .woocommerce form .form-row .select2-selection,
body.woocommerce-order-pay .woocommerce form .form-row input.input-text,
body.woocommerce-order-pay .woocommerce form .form-row textarea,
body.woocommerce-order-pay .woocommerce form .form-row select,
body.woocommerce-cart .woocommerce form .form-row input.input-text {
    background: #111 !important;
    border: 1px solid var(--apc-border) !important;
    color: var(--text-main) !important;
    border-radius: var(--apc-radius-sm);
}

body.woocommerce-checkout .woocommerce form .form-row input.input-text:focus,
body.woocommerce-checkout .woocommerce form .form-row textarea:focus,
body.woocommerce-checkout .woocommerce form .form-row select:focus,
body.woocommerce-order-pay .woocommerce form .form-row input.input-text:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--apc-primary-muted);
    outline: none;
}

body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-order-pay .woocommerce-info,
body.woocommerce-order-pay .woocommerce-message,
body.woocommerce-order-pay .woocommerce-error,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-error {
    background: var(--apc-bg-elevated);
    color: var(--text-main);
    border-top-color: var(--primary);
}

body.woocommerce-checkout .woocommerce-info a,
body.woocommerce-checkout .woocommerce-message a,
body.woocommerce-order-pay .woocommerce-info a,
body.woocommerce-cart .woocommerce-info a {
    color: var(--primary);
}

body.woocommerce-checkout #order_review,
body.woocommerce-order-pay #order_review {
    color: var(--text-main);
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                       */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-reveal,
    .scroll-reveal.active,
    .product-card,
    .apc-card,
    .apc-faq-item {
        opacity: 1 !important;
        transform: none !important;
    }

    .apc-tilt-card:hover {
        transform: translateY(-4px) !important;
    }

    .apc-hero-depth__layer,
    .scanline {
        animation: none !important;
    }
}
