/* ──────────────────────────────────────────────
   Happyresto — Custom CSS
   Keyframes, WP defaults, & overrides
   (Tailwind CDN handles all utility classes)
   ────────────────────────────────────────────── */

/* ── Typography — Outfit for headings ──────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
}

/* ── Brush stroke highlight ─────────────────── */
.brush-text {
    position: relative;
    display: inline-block;
    color: #0066FF;
}

.brush-text svg {
    position: absolute;
    bottom: -4px;
    left: -4%;
    width: 108%;
    height: 14px;
    overflow: visible;
    pointer-events: none;
}

.brush-text svg path {
    stroke: #0066FF;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    opacity: 0.35;
    stroke-dasharray: 350;
    stroke-dashoffset: 350;
    transition: none;
}

.brush-text.brush-visible svg path {
    animation: brushDraw 1s cubic-bezier(.22, .61, .36, 1) forwards;
}

@keyframes brushDraw {
    0% {
        stroke-dashoffset: 350;
        opacity: 0;
    }

    10% {
        opacity: 0.35;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0.35;
    }
}

/* ── Hero animated underline ───────────────── */
.hero-underline-word {
    position: relative;
    display: inline-block;
}

.hero-underline-word::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: 0.05em;
    width: 100%;
    height: 6px;
    background: currentColor;
    border-radius: 3px;
    opacity: 0.5;
    transform: scaleX(0);
    transform-origin: left;
    animation: heroUnderlineDraw 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

@keyframes heroUnderlineDraw {
    to {
        transform: scaleX(1);
    }
}


/* ── Pricing wizard ─────────────────────────── */
.wizard-check.checked {
    border-color: #0f172a;
    background: #f8fafc;
}

.wizard-check.checked .w-5 {
    background: #0f172a;
    border-color: #0f172a;
}

.wizard-check.checked .w-5 i {
    opacity: 1;
}

/* ── Animations ─────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-ring {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(1.4);
    }

    100% {
        opacity: 0;
        transform: scale(1.8);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-fade-up {
    animation: fadeInUp .6s ease both;
}

.animate-fade-in {
    animation: fadeIn .5s ease both;
}

.anim-delay-1 {
    animation-delay: .1s;
}

.anim-delay-2 {
    animation-delay: .2s;
}

.anim-delay-3 {
    animation-delay: .3s;
}

.anim-delay-4 {
    animation-delay: .4s;
}

.anim-delay-5 {
    animation-delay: .5s;
}

/* ── Scroll-driven reveal ───────────────────── */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Header — transparent → scrolled white ── */
#site-header {
    transition: all .3s ease;
}

/* Default: transparent with white text */
.header-transparent .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
}

.header-transparent .nav-link:hover,
.header-transparent .nav-link.active {
    color: #fff !important;
}

.header-transparent #menu-toggle {
    color: #fff;
}

.header-transparent #header-cta {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-transparent #header-cta:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Scrolled: white bg with dark text */
#site-header.scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#site-header.scrolled .nav-link {
    color: #475569 !important;
}

#site-header.scrolled .nav-link:hover,
#site-header.scrolled .nav-link.active {
    color: #0f172a !important;
}

#site-header.scrolled #header-cta {
    background: #0f172a;
    color: #fff;
}

#site-header.scrolled #header-cta:hover {
    background: #1e293b;
}

#site-header.scrolled #menu-toggle {
    color: #475569;
}

/* ── Nav link underline animation ────────────── */
.nav-link {
    position: relative;
    padding-bottom: 6px;
    color: #475569;
}

.nav-link:hover,
.nav-link.active {
    color: #0f172a;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: width .3s cubic-bezier(.4, 0, .2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #0f172a !important;
}

/* ── Mobile menu transition ─────────────────── */
#mobile-menu {
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

/* ── WordPress Content Defaults ─────────────── */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content img {
    border-radius: .75rem;
    margin: 2rem 0;
}

.entry-content blockquote {
    border-left: 4px solid #0066FF;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #EBF5FF;
    border-radius: 0 .5rem .5rem 0;
    font-style: italic;
}

.entry-content a {
    color: #0066FF;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: .875rem;
    color: #64748b;
    text-align: center;
    margin-top: .5rem;
}

/* ── Utility overrides ──────────────────────── */
.shadow-primary-glow {
    box-shadow: 0 10px 25px -5px rgba(0, 102, 255, .25);
}

/* ── Logo sizing ────────────────────────────── */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    max-height: 60px;
    overflow: hidden;
}

.custom-logo-link img,
.custom-logo {
    height: 60px !important;
    width: auto !important;
    max-width: 210px !important;
    max-height: 60px !important;
    object-fit: contain;
}

/* ── Hero float animations ─────────────────── */
@keyframes floatSlow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -20px);
    }
}

@keyframes floatSlowReverse {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, 25px);
    }
}

@keyframes floatSubtle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.animate-float-slow {
    animation: floatSlow 12s ease-in-out infinite;
}

.animate-float-slow-reverse {
    animation: floatSlowReverse 14s ease-in-out infinite;
}

.animate-float-subtle {
    animation: floatSubtle 4s ease-in-out infinite;
}

.animate-float-subtle-delayed {
    animation: floatSubtle 4s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Subtle pulsing glow for gradient orbs */
@keyframes pulseGlow {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* ── Timeline step glow ────────────────────── */
.step-active .step-dot {
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.2);
    transition: box-shadow 0.5s ease;
}

/* ── Hover lift for glassmorphism cards ────── */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}