/* =========================================================
   Allen Studio — UX/UI effects (dark + red palette)
   ========================================================= */

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body { color: #FFFFFF; background-color: #0A0A0A; }

/* ---- Sticky header with blur + hide-on-scroll ---- */
.site-header {
    transition:
        transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        backdrop-filter 0.3s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background-color: rgba(10, 10, 10, 0.78) !important;
    z-index: 50;
}
.site-header.is-scrolled {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.site-header.is-hidden {
    transform: translateY(-110%);
}

/* ---- Nav link hover underline ---- */
.site-header .wp-block-navigation-item__content {
    position: relative;
    transition: color 0.25s ease;
}
.site-header .wp-block-navigation-item__content::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.site-header .wp-block-navigation-item__content:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

/* ---- Scroll-reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }

/* ---- Portfolio card hover ---- */
.portfolio-card {
    overflow: hidden;
    border-radius: 18px;
    transition:
        transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
    background-color: #161616;
}
.portfolio-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(248, 113, 113, 0.18);
}
.portfolio-card:hover img {
    transform: scale(1.04);
}
.portfolio-item h3 {
    transition: color 0.3s ease;
}
.portfolio-item:hover h3 {
    color: #F87171;
}

/* ---- Hero services list ---- */
.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 500;
    max-width: 720px;
    margin: 0 auto;
}
.services-list span {
    position: relative;
    white-space: nowrap;
}
.services-list span:not(:last-child)::after {
    content: "·";
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #3F3F46;
}

/* ---- Avatar circle (hero) ---- */
.avatar-circle {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    overflow: hidden;
    margin: 0 auto 1.75rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    background: #161616;
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-circle:hover { transform: scale(1.05) rotate(-2deg); }

/* ---- Magnetic buttons ---- */
.magnetic {
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: transform;
}

/* ---- Buttons ---- */
.wp-block-button .wp-block-button__link {
    transition:
        transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
        background-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}
.wp-block-button .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(230, 57, 70, 0.32);
}

/* ---- FAQ details ---- */
.wp-block-details {
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease;
    background-color: #141414;
}
.wp-block-details[open] {
    background-color: #1F0D0F;
    border-color: #7F1D1D !important;
}
.wp-block-details summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: #FFFFFF;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
    content: "+";
    font-weight: 300;
    font-size: 1.5rem;
    color: #F87171;
    transition: transform 0.3s ease;
    line-height: 1;
}
.wp-block-details[open] summary::after {
    content: "\2013";
}

/* ---- Pricing card hover ---- */
.pricing-card {
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.5s, border-color 0.3s;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(248, 113, 113, 0.20);
}

/* ---- Process icons ---- */
.process-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #2A1015;
    color: #F87171;
    margin: 0 auto 1.5rem;
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.3s;
}
.process-step:hover .process-icon {
    transform: rotate(-8deg) scale(1.05);
    background: #3A1419;
}

/* ---- Heart pulse ---- */
.heart {
    display: inline-block;
    color: #F87171;
    transform-origin: center;
    animation: heart-pulse 1.6s ease-in-out infinite;
}
@keyframes heart-pulse {
    0%, 100% { transform: scale(1); }
    20%      { transform: scale(1.18); }
    40%      { transform: scale(1); }
    60%      { transform: scale(1.10); }
    80%      { transform: scale(1); }
}

/* ---- Selection ---- */
::selection {
    background: #F87171;
    color: #0A0A0A;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .portfolio-card,
    .portfolio-card img,
    .magnetic,
    .pricing-card,
    .process-icon,
    .avatar-circle,
    .heart,
    .wp-block-button__link {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
    .site-header.is-hidden { transform: none !important; }
}

@media (max-width: 600px) {
    .services-list { font-size: 0.85rem; gap: 0.4rem 1.2rem; }
    .services-list span:not(:last-child)::after { right: -0.8rem; }
}
