/*
Theme Name: Suvenirche
Theme URI: https://suvenirche.eu/
Description: Custom Suvenirche child theme built on Blocksy.
Author: balancedkitchen
Template: blocksy
Version: 0.5.7
Text Domain: suvenirche
*/

/*
 * Suvenirche brand tokens.
 * Keep reusable visual values centralized here so storefront components,
 * WooCommerce overrides and future custom modules share one design system.
 */
:root {
    --suvi-pink: #FF4081;
    --suvi-pink-soft: #FFC1D6;
    --suvi-yellow: #FFC93D;
    --suvi-turquoise: #2ECCB6;
    --suvi-navy: #0B2D6B;
    --suvi-surface: #FFFFFF;
    --suvi-surface-soft: #FFF9FB;
    --suvi-text: #182033;
    --suvi-text-soft: #53627A;

    --suvi-radius-sm: 8px;
    --suvi-radius-md: 14px;
    --suvi-radius-lg: 22px;
    --suvi-radius-xl: 30px;

    --suvi-shadow-soft: 0 10px 30px rgba(11, 45, 107, 0.08);
    --suvi-shadow-hero: 0 24px 56px rgba(11, 45, 107, 0.14);
    --suvi-border-soft: rgba(11, 45, 107, 0.12);

    --suvi-space-1: 0.25rem;
    --suvi-space-2: 0.5rem;
    --suvi-space-3: 0.75rem;
    --suvi-space-4: 1rem;
    --suvi-space-5: 1.5rem;
    --suvi-space-6: 2rem;
    --suvi-space-7: 3rem;
    --suvi-space-8: 4rem;
}

/* Global header utility entry point: My Account. */
.suvenirche-header-account {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: var(--suvi-navy);
    line-height: 1;
    text-decoration: none;
    border-radius: 999px;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.suvenirche-header-account svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.suvenirche-header-account:hover,
.suvenirche-header-account:focus-visible {
    color: var(--suvi-pink);
    background: rgba(255, 64, 129, 0.08);
}

.suvenirche-header-account:hover {
    transform: translateY(-1px);
}

.suvenirche-header-account:focus-visible {
    outline: 2px solid rgba(46, 204, 182, 0.72);
    outline-offset: 2px;
}

/*
 * Homepage Hero — approved Concept 3 direction.
 * The approved mockup is a reference only. The live page remains real
 * Gutenberg content, but the production gift scene is one continuous Hero
 * background rather than a separate framed image card in the right column.
 */
.suvenirche-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0;
    min-height: clamp(600px, 68vh, 700px);
    padding: clamp(2.25rem, 3.5vw, 3.75rem) clamp(1.25rem, 4vw, 4rem);
    background: linear-gradient(105deg, #fff8fb 0%, #fffefe 48%, #f7fffd 100%);
}

/* Production photo scene spans the Hero and is anchored to the right. */
.suvenirche-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image: url("assets/images/homepage/homepage-hero-gift-box.png");
    background-repeat: no-repeat;
    background-position: calc(100% + 4rem) center;
    background-size: auto 101%;
}

/*
 * Soft Concept 3 wash: preserves readable live text on the left while letting
 * the photo blend through the centre instead of ending at a card boundary.
 */
.suvenirche-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 6% 30%, rgba(255, 193, 214, 0.34) 0 6.2rem, transparent 6.3rem),
        radial-gradient(circle at 95% 14%, rgba(46, 204, 182, 0.12) 0 7.6rem, transparent 7.7rem),
        radial-gradient(circle at 88% 96%, rgba(255, 201, 61, 0.12) 0 4.2rem, transparent 4.3rem),
        linear-gradient(
            90deg,
            rgba(255, 248, 251, 0.995) 0%,
            rgba(255, 249, 251, 0.98) 32%,
            rgba(255, 250, 252, 0.93) 43%,
            rgba(255, 252, 253, 0.75) 52%,
            rgba(255, 255, 255, 0.45) 61%,
            rgba(255, 255, 255, 0.20) 69%,
            rgba(255, 255, 255, 0.05) 77%,
            rgba(255, 255, 255, 0) 82%
        );
}

/*
 * Gutenberg keeps the semantic Columns block in the editor, but on the
 * frontend the Hero no longer depends on a two-column layout. The live content
 * is one independent layer over the scene; the old right Image column is hidden.
 */
.suvenirche-hero .suvenirche-hero-columns {
    position: relative;
    z-index: 1;
    display: block !important;
    width: min(100%, 1320px);
    min-height: 100%;
    margin: 0 auto;
}

.suvenirche-hero .suvenirche-hero-columns > .wp-block-column:first-child {
    width: min(50%, 680px);
    max-width: 680px;
    margin: 0;
    padding-right: clamp(1rem, 2vw, 2rem);
}

.suvenirche-hero .suvenirche-hero-columns > .wp-block-column:last-child {
    display: none !important;
}

/* The Gutenberg image remains as source content for now, but is not rendered. */
.suvenirche-hero figure.wp-block-image {
    display: none !important;
}

/* Small uppercase lead-in: “МАЛКИ ПОДАРЪЦИ”. */
.suvenirche-hero .suvenirche-hero-kicker {
    margin: 0 0 0.45rem;
    color: var(--suvi-pink);
    font-size: clamp(0.82rem, 0.95vw, 0.95rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Script-style Concept 3 headline: “Големи моменти”. */
.suvenirche-hero .suvenirche-hero-title {
    position: relative;
    display: inline-block;
    max-width: 10ch;
    margin: 0;
    color: var(--suvi-navy);
    font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
    font-size: clamp(3.25rem, 5.4vw, 5.8rem);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.suvenirche-hero .suvenirche-hero-title::after {
    content: "";
    position: absolute;
    left: 7%;
    right: 2%;
    bottom: -0.18em;
    height: 0.12em;
    border-radius: 999px;
    background: var(--suvi-pink);
    transform: rotate(-2.5deg);
    transform-origin: left center;
}

.suvenirche-hero .suvenirche-hero-copy {
    max-width: 34rem;
    margin: clamp(1.55rem, 2.2vw, 2rem) 0 0;
    color: var(--suvi-text-soft);
    font-size: clamp(1rem, 1.1vw, 1.12rem);
    line-height: 1.65;
}

/* Keep any unmarked paragraph inside Hero visually neutral. */
.suvenirche-hero p:not(.suvenirche-hero-kicker):not(.suvenirche-hero-copy) {
    color: var(--suvi-text-soft);
}

.suvenirche-hero .wp-block-buttons {
    margin-top: 1.55rem;
    gap: 0.85rem;
}

.suvenirche-hero .wp-block-button__link {
    min-height: 3.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.82rem 1.55rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.suvenirche-hero .wp-block-button:first-child .wp-block-button__link {
    color: #ffffff;
    background: var(--suvi-pink);
    box-shadow: 0 10px 24px rgba(255, 64, 129, 0.22);
}

.suvenirche-hero .wp-block-button:first-child .wp-block-button__link:hover,
.suvenirche-hero .wp-block-button:first-child .wp-block-button__link:focus-visible {
    color: #ffffff;
    background: #ef2f73;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 64, 129, 0.28);
}

.suvenirche-hero .wp-block-button:nth-child(2) .wp-block-button__link {
    color: var(--suvi-navy);
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(46, 204, 182, 0.68);
}

.suvenirche-hero .wp-block-button:nth-child(2) .wp-block-button__link:hover,
.suvenirche-hero .wp-block-button:nth-child(2) .wp-block-button__link:focus-visible {
    color: var(--suvi-navy);
    background: rgba(46, 204, 182, 0.13);
    border-color: var(--suvi-turquoise);
    transform: translateY(-2px);
}

@media (max-width: 1000px) {
    .suvenirche-hero {
        min-height: 620px;
        padding: 3rem 1.5rem;
    }

    .suvenirche-hero::before {
        background-position: 72% center;
    }

    .suvenirche-hero .suvenirche-hero-columns > .wp-block-column:first-child {
        width: min(56%, 680px);
    }

    .suvenirche-hero .suvenirche-hero-title {
        font-size: clamp(3rem, 7vw, 4.9rem);
    }
}

@media (max-width: 781px) {
    .suvenirche-hero {
        min-height: 700px;
        padding: 2.6rem 1.25rem 3rem;
    }

    /* Tablet keeps the product scene visible, but clear of the trust copy. */
    .suvenirche-hero::before {
        opacity: 0.60;
        background-position: 92% 105%;
        background-size: auto 82%;
    }

    .suvenirche-hero::after {
        background:
            linear-gradient(
                180deg,
                rgba(255, 249, 251, 0) 0%,
                rgba(255, 249, 251, 0.08) 38%,
                rgba(255, 249, 251, 0.34) 62%,
                rgba(255, 249, 251, 0.58) 100%
            ),
            radial-gradient(circle at 8% 22%, rgba(255, 193, 214, 0.28) 0 5.4rem, transparent 5.5rem),
            radial-gradient(circle at 94% 16%, rgba(46, 204, 182, 0.10) 0 6rem, transparent 6.1rem),
            linear-gradient(
                108deg,
                rgba(255, 249, 251, 0.985) 0%,
                rgba(255, 249, 251, 0.96) 38%,
                rgba(255, 250, 252, 0.82) 55%,
                rgba(255, 252, 253, 0.54) 72%,
                rgba(255, 255, 255, 0.20) 100%
            );
    }

    .suvenirche-hero .suvenirche-hero-columns > .wp-block-column:first-child {
        width: 100%;
        max-width: none;
        padding-right: 0;
    }

    .suvenirche-hero .suvenirche-hero-title,
    .suvenirche-hero .suvenirche-hero-copy {
        max-width: none;
    }
}

@media (max-width: 520px) {
    .suvenirche-hero {
        min-height: 0;
        padding: 2.25rem 1rem 2.5rem;
    }

    /* Mobile keeps the same continuous scene, cropped into the lower-right. */
    .suvenirche-hero::before {
        opacity: 0.50;
        background-position: 82% 100%;
        background-size: auto 78%;
    }

    .suvenirche-hero::after {
        background:
            radial-gradient(circle at 8% 20%, rgba(255, 193, 214, 0.28) 0 4.8rem, transparent 4.9rem),
            radial-gradient(circle at 96% 15%, rgba(46, 204, 182, 0.10) 0 5.2rem, transparent 5.3rem),
            linear-gradient(
                180deg,
                rgba(255, 249, 251, 0.99) 0%,
                rgba(255, 249, 251, 0.97) 34%,
                rgba(255, 249, 251, 0.88) 52%,
                rgba(255, 250, 252, 0.68) 70%,
                rgba(255, 252, 253, 0.46) 100%
            );
    }

    .suvenirche-hero .suvenirche-hero-kicker {
        letter-spacing: 0.12em;
    }

    .suvenirche-hero .suvenirche-hero-title {
        font-size: clamp(2.9rem, 14vw, 4rem);
    }

    .suvenirche-hero .wp-block-buttons {
        gap: 0.7rem;
    }

    .suvenirche-hero .wp-block-button {
        width: 100%;
    }

    .suvenirche-hero .wp-block-button__link {
        width: 100%;
    }
}
