/*
 * Kay Real Beauties | Premium brand and conversion details
 * Loaded after the existing styles. Keeps the order/Sheets logic untouched.
 */

:root {
    --krb-forest: #0b4b38;
    --krb-emerald: #0b9462;
    --krb-mint: #eaf8f0;
    --krb-gold: #c5a467;
    --krb-ink: #12241d;
}

/* Brand lockup */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    border-bottom-color: rgba(11, 75, 56, 0.12);
    box-shadow: 0 5px 18px rgba(8, 43, 31, 0.075);
}

.brand-logo {
    min-width: 0;
    gap: 9px;
}

.brand-mark {
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
    filter: drop-shadow(0 3px 5px rgba(9, 62, 44, 0.16));
}

.brand-wordmark {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    line-height: 1;
}

.brand-name {
    color: #132a21;
    font-size: 0.98rem;
    font-weight: 950;
    letter-spacing: -0.55px;
    white-space: nowrap;
}

.brand-descriptor {
    color: #16815b;
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 2.15px;
    padding-left: 1px;
}

.header-cta-btn {
    position: relative;
    overflow: hidden;
    animation: krb-cta-float 3.6s ease-in-out infinite;
}

.header-cta-btn::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -65%;
    width: 36%;
    height: 180%;
    transform: rotate(22deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    animation: krb-cta-shine 5.5s ease-in-out infinite;
    pointer-events: none;
}

.header-cta-spark {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.header-cta-arrow {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    transition: transform 180ms ease;
}

.header-cta-btn:hover .header-cta-arrow {
    transform: translateX(3px);
}

@keyframes krb-cta-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes krb-cta-shine {
    0%, 65%, 100% { left: -65%; }
    82% { left: 140%; }
}

/* Editorial trust row beneath the main visual. */
.premium-trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 540px;
    margin: 17px auto 0;
    padding: 10px 9px;
    border: 1px solid #e1eee6;
    border-radius: 15px;
    background: linear-gradient(135deg, #fbfefc 0%, #f1faf5 100%);
    box-shadow: 0 7px 20px rgba(13, 69, 48, 0.055);
}

.premium-trust-item {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #315548;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.2;
    text-align: left;
}

.trust-icon {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    border: 1px solid #d8eadf;
    border-radius: 9px;
    background: #ffffff;
    color: #0b8e5e;
}

.trust-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Animated SVG pointer: lightweight GIF-style movement, no remote media. */
.hero-scroll-cue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px auto 2px;
    padding: 8px 14px;
    border: 1px solid #d7eee1;
    border-radius: 999px;
    background: #f4fcf7;
    color: #13734f;
    font-size: 0.77rem;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 4px 13px rgba(11, 111, 73, 0.06);
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hero-scroll-cue:hover {
    transform: translateY(2px);
    border-color: #addfc2;
    background: #eaf8f0;
}

.cue-arrow,
.submit-cue-arrow {
    display: block;
    width: 19px;
    height: 23px;
    color: #0b9462;
    animation: krb-point-down 1.25s ease-in-out infinite;
}

@keyframes krb-point-down {
    0%, 100% { transform: translateY(-3px); }
    50% { transform: translateY(4px); }
}

/* Three small steps clarify the checkout sequence. */
.order-flow-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 17px;
    padding: 0;
    list-style: none;
}

.order-flow-steps li {
    display: flex;
    min-width: 0;
    min-height: 61px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 9px 8px;
    border: 1px solid #e4eee8;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    color: #52675e;
    font-size: 0.69rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
}

.step-number {
    color: #0b9462;
    font-size: 0.62rem;
    font-weight: 950;
    letter-spacing: 1.2px;
}

.order-submit-cue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 10px 0 2px;
    color: #14744f;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.15px;
}

.order-submit-cue .submit-cue-arrow {
    width: 16px;
    height: 19px;
}

/* Refined footer identity */
.footer-brand-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

.site-footer .footer-brand-mark {
    width: 39px;
    height: 39px;
    object-fit: contain;
    filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.18));
}

.site-footer .footer-brand {
    margin: 0;
    text-align: left;
}

.site-footer .footer-tagline {
    margin-top: 4px;
}

.site-footer .footer-location strong,
.site-footer .footer-contact strong {
    color: #ffffff;
}

/* Phone-specific refinements */
@media (max-width: 480px) {
    /* clip prevents horizontal bleed without creating a sticky-scroll container */
    html {
        overflow-x: clip;
        scroll-padding-top: 74px;
    }

    body {
        overflow-x: clip;
    }

    .container {
        overflow: visible;
    }

    .main-header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1200;
        min-height: 59px;
        padding: 8px 11px;
        background: rgba(255, 255, 255, 0.97);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    .brand-logo {
        gap: 7px;
        flex: 1 1 auto;
    }

    .brand-mark {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }

    .brand-name {
        font-size: 0.85rem;
        letter-spacing: -0.4px;
    }

    .brand-descriptor {
        font-size: 0.54rem;
        letter-spacing: 1.8px;
    }

    .header-cta-btn {
        gap: 5px;
        padding: 8px 10px;
        font-size: 0.64rem;
        letter-spacing: 0.1px;
        white-space: nowrap;
        animation: none;
    }

    .header-cta-spark {
        width: 12px;
        height: 12px;
        flex-basis: 12px;
    }

    .header-cta-arrow {
        width: 13px;
        height: 13px;
        flex-basis: 13px;
    }

    .premium-trust-row {
        gap: 4px;
        margin-top: 13px;
        padding: 8px 5px;
        border-radius: 12px;
    }

    .premium-trust-item {
        flex-direction: column;
        gap: 4px;
        font-size: 0.61rem;
        text-align: center;
    }

    .trust-icon {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
        border-radius: 8px;
    }

    .trust-icon svg {
        width: 15px;
        height: 15px;
    }

    .hero-scroll-cue {
        margin-top: 12px;
        padding: 7px 12px;
        font-size: 0.7rem;
    }

    .order-flow-steps {
        gap: 6px;
        margin-bottom: 15px;
    }

    .order-flow-steps li {
        min-height: 57px;
        gap: 4px;
        padding: 7px 5px;
        border-radius: 10px;
        font-size: 0.62rem;
    }

    .step-number {
        font-size: 0.58rem;
    }

    .order-submit-cue {
        margin-top: 7px;
        font-size: 0.7rem;
    }

    .footer-brand-lockup {
        gap: 8px;
    }

    .site-footer .footer-brand-mark {
        width: 34px;
        height: 34px;
    }

    .site-footer .footer-brand {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .main-header {
        padding-right: 8px;
        padding-left: 8px;
        gap: 6px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .brand-name {
        font-size: 0.79rem;
    }

    .brand-descriptor {
        font-size: 0.5rem;
        letter-spacing: 1.55px;
    }

    .header-cta-btn {
        padding: 7px 8px;
        font-size: 0.59rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-cta-btn,
    .header-cta-btn::after,
    .cue-arrow,
    .submit-cue-arrow {
        animation: none !important;
    }

    .hero-scroll-cue,
    .header-cta-arrow {
        transition: none !important;
    }
}
