/* ══════════════════════════════════════════════════════════════════
   Left: headline + squiggle + CTA  |  Right: photo cards
   ══════════════════════════════════════════════════════════════════ */

.sh-hero {
    padding: 210px 23px 82px 23px;
}

.sh-hero__cards-col {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
}

/* Eyebrow pill badge above h1 */
.sh-eyebrow {
    display: inline-block;
    background: rgba(var(--sh-color-primary-rgb), 0.12);
    color: var(--sh-color-primary) !important;
    padding: 5px 14px;
    border-radius: var(--sh-radius-pill);
    font-size: 0.78rem !important;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0 !important;
    line-height: 1.4 !important;
}

/* Small stats line below buttons */
.sh-hero__stats {
    border-top: 1px solid rgba(var(--sh-color-text-rgb), 0.12);
    padding-top: 1rem;
    color: #8E9490 !important;
}

/* Photo cards: right column */
.sh-photo-card {
    border-radius: var(--sh-radius-photo) !important;
    overflow: hidden !important;
}

/* Glassmorphism eyebrow on photo cards (vinjett — Kompis Sverige style) */
.sh-card-tag {
    display: inline-block !important;
    background: rgba(var(--sh-color-bg-rgb), 0.22) !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: var(--sh-color-white) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px !important;
    border-radius: var(--sh-radius-pill) !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* Ken Burns on both photo cards */
.sh-photo-card .wp-block-cover__image-background {
    animation: sh-ken-burns 20s cubic-bezier(0.12, 0, 0.39, 0) forwards;
    will-change: transform;
}

.sh-photo-card:nth-child(2) .wp-block-cover__image-background {
    animation-duration: 26s;
    animation-delay: 0.5s;
}

/* ── Hero left column: staggered text entrance ──────────────── */
.sh-hero .wp-block-column:first-child>* {
    animation: sh-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sh-hero .wp-block-column:first-child>*:nth-child(1) {
    animation-delay: 0.05s;
}

.sh-hero .wp-block-column:first-child>*:nth-child(2) {
    animation-delay: 0.20s;
}

.sh-hero .wp-block-column:first-child>*:nth-child(3) {
    animation-delay: 0.36s;
}

.sh-hero .wp-block-column:first-child>*:nth-child(4) {
    animation-delay: 0.50s;
}

.sh-hero .wp-block-column:first-child>*:nth-child(5) {
    animation-delay: 0.62s;
}

/* ── Hero right column: photo cards slide up ────────────────── */
.sh-hero__cards-col>.wp-block-cover:nth-child(1) {
    animation: sh-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.sh-hero__cards-col>.wp-block-cover:nth-child(2) {
    animation: sh-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}

/* ── Photo card inner text stagger ──────────────────────────── */
.sh-hero__cards-col .wp-block-cover__inner-container>*:nth-child(1) {
    animation: sh-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
}

.sh-hero__cards-col .wp-block-cover__inner-container>*:nth-child(2) {
    animation: sh-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.64s both;
}

/* ── SVG squiggle underline (Kompis Sverige's signature) ────── */
.sh-squiggle {
    position: relative;
    display: inline;
    white-space: nowrap;
}

.sh-squiggle__svg {
    position: absolute;
    bottom: -0.18em;
    left: 0;
    width: 100%;
    height: 0.45em;
    overflow: visible;
    pointer-events: none;
}

.sh-squiggle__svg path {
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    animation: sh-draw-squiggle 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}

@keyframes sh-draw-squiggle {
    to {
        stroke-dashoffset: 0;
    }
}

/* ── CTA glow: 3 pulses then stops ──────────────────────────── */
.sh-hero .wp-block-buttons>.wp-block-button:first-child .wp-block-button__link {
    animation: sh-cta-glow 1.8s ease-in-out 1.5s 3;
}

/* ── Mobile: stack columns ───────────────────────────────────── */
@media (max-width: 768px) {
    .sh-hero__cards-col {
        margin-top: 2rem;
    }
}

/* ── Header: frosted backdrop + deeper shadow when user scrolls */
#masthead.sh-scrolled {
    background-color: rgba(var(--sh-color-bg-rgb), 0.95) !important;
    box-shadow: var(--sh-shadow-header-scrolled) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
