/* Site-wide consistency overrides
 * - Standard hero style for all non-home pages
 * - Standard FAQ card layout based on homepage design
 */

:root {
    --hero-standard-light-1: #f4f9ff;
    --hero-standard-light-2: #e8f2ff;
    --hero-standard-light-3: #dbe9ff;
    --hero-standard-dark-1: #070b14;
    --hero-standard-dark-2: #0f1a2b;
    --hero-standard-dark-3: #13233b;
}

/* ------------------------------
   Hero Standard (all pages except home)
   ------------------------------ */
body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) {
    background: linear-gradient(135deg, var(--hero-standard-light-1) 0%, var(--hero-standard-light-2) 52%, var(--hero-standard-light-3) 100%) !important;
    padding: var(--spacing-4xl) 0 !important;
}

body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) :is(.hero-content-ultra, .hero-content, .hero-legal-content, .package-hero-content) {
    text-align: center;
}

body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) :is(.hero-title-ultra, .hero-title, .hero-legal-title, .package-hero-title) {
    color: var(--gray-900) !important;
    text-shadow: none !important;
}

body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) :is(.hero-subtitle-ultra, .hero-subtitle, .hero-legal-subtitle, .package-hero-tagline) {
    color: var(--gray-700) !important;
}

body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) :is(.btn-ultra-outline-dark, .btn-ultra-outline-light) {
    border-color: var(--gray-400);
    color: var(--gray-900);
    background: transparent;
}

body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) :is(.btn-ultra-outline-dark, .btn-ultra-outline-light):hover {
    border-color: var(--gray-900);
    background: var(--gray-900);
    color: #fff;
}

body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) .hero-badges .section-badge {
    font-size: 0.82rem;
    padding: 0.4rem 0.8rem;
    line-height: 1.25;
}

@media (max-width: 768px) {
    body:not(.page-home) :is(
        section.hero-standard,
        section.hero-mesh,
        section.hero.hero-security,
        section.hero.hero-service,
        section.hero-local-service,
        section.hero-legal-premium,
        section.hero-faq,
        section.package-hero
    ) .hero-badges {
        gap: 0.5rem !important;
    }

    body:not(.page-home) :is(
        section.hero-standard,
        section.hero-mesh,
        section.hero.hero-security,
        section.hero.hero-service,
        section.hero-local-service,
        section.hero-legal-premium,
        section.hero-faq,
        section.package-hero
    ) .hero-badges .section-badge {
        font-size: 0.72rem;
        padding: 0.3rem 0.62rem;
    }

    body:not(.page-home) :is(
        section.hero-standard,
        section.hero-mesh,
        section.hero.hero-security,
        section.hero.hero-service,
        section.hero-local-service,
        section.hero-legal-premium,
        section.hero-faq,
        section.package-hero
    ) .hero-badges .section-badge svg {
        width: 13px !important;
        height: 13px !important;
    }
}

html[data-theme="dark"] body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) {
    background: linear-gradient(135deg, var(--hero-standard-dark-1) 0%, var(--hero-standard-dark-2) 52%, var(--hero-standard-dark-3) 100%) !important;
}

html[data-theme="dark"] body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) :is(.hero-title-ultra, .hero-title, .hero-legal-title, .package-hero-title) {
    color: #f1f5ff !important;
}

html[data-theme="dark"] body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) :is(.hero-subtitle-ultra, .hero-subtitle, .hero-legal-subtitle, .package-hero-tagline) {
    color: rgba(241, 245, 255, 0.82) !important;
}

html[data-theme="dark"] body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) .section-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #eef4ff;
    border-color: rgba(255, 255, 255, 0.22);
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) body:not(.page-home) :is(
        section.hero-standard,
        section.hero-mesh,
        section.hero.hero-security,
        section.hero.hero-service,
        section.hero-local-service,
        section.hero-legal-premium,
        section.hero-faq,
        section.package-hero
    ) {
        background: linear-gradient(135deg, var(--hero-standard-dark-1) 0%, var(--hero-standard-dark-2) 52%, var(--hero-standard-dark-3) 100%) !important;
    }

    html:not([data-theme="light"]) body:not(.page-home) :is(
        section.hero-standard,
        section.hero-mesh,
        section.hero.hero-security,
        section.hero.hero-service,
        section.hero-local-service,
        section.hero-legal-premium,
        section.hero-faq,
        section.package-hero
    ) :is(.hero-title-ultra, .hero-title, .hero-legal-title, .package-hero-title) {
        color: #f1f5ff !important;
    }

    html:not([data-theme="light"]) body:not(.page-home) :is(
        section.hero-standard,
        section.hero-mesh,
        section.hero.hero-security,
        section.hero.hero-service,
        section.hero-local-service,
        section.hero-legal-premium,
        section.hero-faq,
        section.package-hero
    ) :is(.hero-subtitle-ultra, .hero-subtitle, .hero-legal-subtitle, .package-hero-tagline) {
        color: rgba(241, 245, 255, 0.82) !important;
    }
}

/* ------------------------------
   FAQ Standard (homepage style)
   ------------------------------ */
.faq-standard {
    padding: 80px 0;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.faq-standard .faq-grid,
.faq-standard .faq-list,
.faq-standard .faq-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.faq-standard .faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-standard .faq-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: #d4af37;
}

.faq-standard .faq-item h3,
.faq-standard .faq-item .faq-question {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0a0e27;
}

.faq-standard .faq-item p,
.faq-standard .faq-item .faq-answer {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
}

@media (max-width: 768px) {
    .faq-standard {
        padding: 60px 0;
    }

    .faq-standard .faq-grid,
    .faq-standard .faq-list,
    .faq-standard .faq-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .faq-standard .faq-item {
        padding: 22px;
    }
}

html[data-theme="dark"] .faq-standard {
    background: linear-gradient(180deg, #0e1524 0%, #0a111d 100%);
}

html[data-theme="dark"] .faq-standard .faq-item {
    background: #111b2c;
    border-color: rgba(117, 145, 199, 0.28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .faq-standard .faq-item h3,
html[data-theme="dark"] .faq-standard .faq-item .faq-question {
    color: #eef4ff;
}

html[data-theme="dark"] .faq-standard .faq-item p,
html[data-theme="dark"] .faq-standard .faq-item .faq-answer {
    color: rgba(238, 244, 255, 0.84);
}

/* ------------------------------
   Global Hero/Faq Normalization
   (all pages except homepage)
   ------------------------------ */
body:not(.page-home) section[class*="hero"] {
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0.16) 46%, rgba(255, 255, 255, 0) 72%),
        radial-gradient(circle at 88% 82%, rgba(67, 126, 218, 0.3) 0%, rgba(67, 126, 218, 0) 50%),
        linear-gradient(130deg, #eef5ff 0%, #bfd7ff 48%, #7ea9e6 100%) !important;
    padding: clamp(64px, 9vw, 110px) 0 !important;
    position: relative;
    overflow: hidden;
}

body:not(.page-home) section[class*="hero"] :is(
    .hero-overlay,
    .hero-gradient-overlay,
    .hero-legal-gradient,
    .spotlights,
    .shape
) {
    display: none !important;
}

body:not(.page-home) section[class*="hero"] :is(
    .hero-content-ultra,
    .hero-content,
    .hero-legal-content,
    .package-hero-content
) {
    max-width: 920px;
    margin: 0 auto;
    text-align: center !important;
}

body:not(.page-home) section[class*="hero"] :is(
    h1,
    .hero-title-ultra,
    .hero-title,
    .hero-legal-title,
    .package-hero-title
) {
    color: #07142a !important;
    text-shadow: none !important;
}

body:not(.page-home) section[class*="hero"] :is(
    p,
    .hero-subtitle-ultra,
    .hero-subtitle,
    .hero-legal-subtitle,
    .package-hero-tagline
) {
    color: #334155 !important;
}

body:not(.page-home) section[class*="hero"] :is(.hero-badges, .hero-cta-group, .hero-buttons) {
    justify-content: center !important;
}

body:not(.page-home) section[class*="hero"] .hero-badges .section-badge {
    font-size: 0.82rem !important;
    padding: 0.4rem 0.82rem !important;
    line-height: 1.25;
}

html:not([data-theme="dark"]) body:not(.page-home) section[class*="hero"] :is(
    .section-badge,
    .section-badge-light
) {
    background: rgba(10, 66, 146, 0.09) !important;
    color: #123b78 !important;
    border-color: rgba(10, 66, 146, 0.2) !important;
}

html:not([data-theme="dark"]) body:not(.page-home) section[class*="hero"] .btn-ultra-primary {
    background: linear-gradient(135deg, #0e4ea8 0%, #1a65c8 52%, #2f82e2 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(10, 52, 122, 0.32) !important;
    box-shadow: 0 10px 26px rgba(22, 78, 163, 0.28) !important;
}

html:not([data-theme="dark"]) body:not(.page-home) section[class*="hero"] .btn-ultra-primary::before {
    background: linear-gradient(90deg, #2c8bff 0%, #66acff 100%) !important;
}

html:not([data-theme="dark"]) body:not(.page-home) section[class*="hero"] .btn-ultra-primary:hover {
    color: #ffffff !important;
}

html:not([data-theme="dark"]) body:not(.page-home) section[class*="hero"] :is(
    .btn-ultra-outline,
    .btn-ultra-outline-light,
    .btn-ultra-outline-dark
) {
    background: rgba(255, 255, 255, 0.56) !important;
    color: #123b78 !important;
    border: 2px solid rgba(18, 59, 120, 0.36) !important;
    box-shadow: 0 4px 14px rgba(14, 56, 126, 0.08) !important;
}

html:not([data-theme="dark"]) body:not(.page-home) section[class*="hero"] :is(
    .btn-ultra-outline,
    .btn-ultra-outline-light,
    .btn-ultra-outline-dark
):hover {
    background: #123b78 !important;
    color: #ffffff !important;
    border-color: #123b78 !important;
}

html:not([data-theme="dark"]) body:not(.page-home) section[class*="hero"] .highlight-gold {
    background: linear-gradient(90deg, #8c6a1a 0%, #a17a1f 52%, #7b5b14 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
    filter: none !important;
}

@media (max-width: 768px) {
    body:not(.page-home) section[class*="hero"] .hero-badges {
        gap: 0.45rem !important;
    }

    body:not(.page-home) section[class*="hero"] .hero-badges .section-badge {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.6rem !important;
    }

    body:not(.page-home) section[class*="hero"] .hero-badges .section-badge svg {
        width: 13px !important;
        height: 13px !important;
    }
}

html[data-theme="dark"] body:not(.page-home) section[class*="hero"] {
    background: linear-gradient(135deg, #060d1a 0%, #0e1d34 52%, #173056 100%) !important;
}

html[data-theme="dark"] body:not(.page-home) section[class*="hero"] :is(
    h1,
    .hero-title-ultra,
    .hero-title,
    .hero-legal-title,
    .package-hero-title
) {
    color: #f0f5ff !important;
}

html[data-theme="dark"] body:not(.page-home) section[class*="hero"] :is(
    p,
    .hero-subtitle-ultra,
    .hero-subtitle,
    .hero-legal-subtitle,
    .package-hero-tagline
) {
    color: rgba(240, 245, 255, 0.86) !important;
}

html[data-theme="dark"] body:not(.page-home) section[class*="hero"] .btn-ultra-primary {
    background: #ffffff !important;
    color: #0a1020 !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] body:not(.page-home) section[class*="hero"] :is(
    .btn-ultra-outline,
    .btn-ultra-outline-light,
    .btn-ultra-outline-dark
) {
    background: transparent !important;
    color: #eaf1ff !important;
    border: 2px solid rgba(234, 241, 255, 0.42) !important;
}

html[data-theme="dark"] body:not(.page-home) section[class*="hero"] :is(
    .btn-ultra-outline,
    .btn-ultra-outline-light,
    .btn-ultra-outline-dark
):hover {
    background: #eaf1ff !important;
    color: #0d1a30 !important;
    border-color: #eaf1ff !important;
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) body:not(.page-home) section[class*="hero"] {
        background: linear-gradient(135deg, #060d1a 0%, #0e1d34 52%, #173056 100%) !important;
    }

    html:not([data-theme="light"]) body:not(.page-home) section[class*="hero"] .btn-ultra-primary {
        background: #ffffff !important;
        color: #0a1020 !important;
        border: 1px solid rgba(255, 255, 255, 0.35) !important;
    }

    html:not([data-theme="light"]) body:not(.page-home) section[class*="hero"] :is(
        .btn-ultra-outline,
        .btn-ultra-outline-light,
        .btn-ultra-outline-dark
    ) {
        color: #eaf1ff !important;
        border: 2px solid rgba(234, 241, 255, 0.42) !important;
        background: transparent !important;
    }
}

.faq-standard,
.faq-standard.faq-section,
.faq-standard.package-section {
    padding: 80px 0 !important;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%) !important;
}

.faq-standard :is(.faq-grid, .faq-list, .faq-container) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.faq-standard .faq-item {
    background: #ffffff !important;
    border: 1px solid #dbe5f2 !important;
    border-radius: 16px !important;
    padding: 28px !important;
    box-shadow: 0 3px 14px rgba(15, 32, 67, 0.07) !important;
}

.faq-standard .faq-item:hover {
    box-shadow: 0 10px 28px rgba(15, 32, 67, 0.12) !important;
    transform: translateY(-4px);
    border-color: #c8d8f2 !important;
}

.faq-standard .faq-item :is(h3, .faq-question) {
    color: #0b1b38 !important;
    font-weight: 700 !important;
}

.faq-standard .faq-item :is(p, .faq-answer) {
    color: #475569 !important;
}

@media (max-width: 768px) {
    .faq-standard,
    .faq-standard.faq-section,
    .faq-standard.package-section {
        padding: 60px 0 !important;
    }

    .faq-standard :is(.faq-grid, .faq-list, .faq-container) {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .faq-standard .faq-item {
        padding: 22px !important;
    }
}

html[data-theme="dark"] .faq-standard,
html[data-theme="dark"] .faq-standard.faq-section,
html[data-theme="dark"] .faq-standard.package-section {
    background: linear-gradient(180deg, #0a1426 0%, #0b172b 100%) !important;
}

html[data-theme="dark"] .faq-standard .faq-item {
    background: #10203a !important;
    border-color: rgba(143, 171, 224, 0.34) !important;
}

html[data-theme="dark"] .faq-standard .faq-item :is(h3, .faq-question) {
    color: #eef4ff !important;
}

html[data-theme="dark"] .faq-standard .faq-item :is(p, .faq-answer) {
    color: rgba(238, 244, 255, 0.84) !important;
}

/* ------------------------------
   Final Hero Light Override
   Ensures win over hero-animations.min.css defaults
   ------------------------------ */
html[data-theme="light"] body:not(.page-home) :is(
    section.hero-mesh,
    section.hero,
    section.hero-section,
    section.hero-service,
    section.hero-page,
    section.hero-mesh-compact,
    section.hero-local-service,
    section.hero-security,
    section.hero-webbdrift,
    section.hero-faq,
    section.hero-legal-premium,
    section.newsletter-hero,
    section.package-hero
) {
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0.16) 46%, rgba(255, 255, 255, 0) 72%),
        radial-gradient(circle at 88% 82%, rgba(67, 126, 218, 0.3) 0%, rgba(67, 126, 218, 0) 50%),
        linear-gradient(130deg, #eef5ff 0%, #bfd7ff 48%, #7ea9e6 100%) !important;
}

html:not([data-theme]) body:not(.page-home) :is(
    section.hero-mesh,
    section.hero,
    section.hero-section,
    section.hero-service,
    section.hero-page,
    section.hero-mesh-compact,
    section.hero-local-service,
    section.hero-security,
    section.hero-webbdrift,
    section.hero-faq,
    section.hero-legal-premium,
    section.newsletter-hero,
    section.package-hero
) {
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0.16) 46%, rgba(255, 255, 255, 0) 72%),
        radial-gradient(circle at 88% 82%, rgba(67, 126, 218, 0.3) 0%, rgba(67, 126, 218, 0) 50%),
        linear-gradient(130deg, #eef5ff 0%, #bfd7ff 48%, #7ea9e6 100%) !important;
}

/* Webbdrift: "Så fungerar det" uses 3 steps */
body.page-webbdrift .steps-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 1024px) {
    body.page-webbdrift .steps-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    body.page-webbdrift .steps-grid {
        grid-template-columns: 1fr !important;
    }
}
