/* 
 * Home Module - Elite Restoration
 * Specific styles for the homepage template
 */

/* Dashboard Grid Background */
.dashboard-grid-bg {
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Landing Icon Glow (Optimization) */
.landing-icon-glow {
    filter: drop-shadow(0 0 5px var(--primary));
}

/* Custom Perspective for 3D Transforms */
.perspective-1000 {
    perspective: 1000px;
}

/* Flip Animations */
.rotate-y-2 {
    transform: rotateY(2deg);
}

/* Background Depth Glows */
.bg-glow-blur {
    filter: blur(120px);
}

/* --- Core Animations --- */

/* Ping Animation */
.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Pulse Animation */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

/* Floating Animation */
.micro-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* --- Interactive Hover Utilities --- */

/* Group Hover Scale */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.group:hover .group-hover\:scale-\[1\.01\] {
    transform: scale(1.01);
}

/* Group Hover Rotate */
.group:hover .group-hover\:rotate-y-2 {
    transform: rotateY(2deg);
}

/* Group Hover Shadow */
.group:hover .group-hover\:shadow-primary\/30 {
    box-shadow: 0 10px 40px -10px rgba(120, 58, 251, 0.3);
}

/* Group Hover Translation */
.group:hover .group-hover\:translate-x-1 {
    transform: translateX(0.25rem);
}

/* Specialized Strategy Hover */
.group\/strategy:hover .group-hover\/strategy\:scale-105 {
    transform: scale(1.05);
}

.group\/strategy:hover .group-hover\/strategy\:opacity-60 {
    opacity: 0.6;
}

/* Link Hover Animation */
.group\/link:hover .group-hover\/link\:translate-x-2 {
    transform: translateX(0.5rem);
}

/* --- Tailwind Utility Backfills --- */

.bg-gradient-brand {
    background: var(--gradient-brand);
}

.blog-gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    padding-right: 0.15em;
    margin-right: -0.15em;
}

.whitespace-pre {
    white-space: pre;
}

.text-transparent {
    color: transparent;
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.bg-primary\/20 {
    background-color: rgba(120, 58, 251, 0.2);
}

.bg-secondary\/10 {
    background-color: rgba(255, 91, 73, 0.1);
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Specific Shadow for Buttons */
.shadow-primary\/30 {
    box-shadow: 0 10px 30px -5px rgba(120, 58, 251, 0.3);
}

.shadow-primary\/20 {
    box-shadow: 0 10px 30px -5px rgba(120, 58, 251, 0.2);
}

.from-primary\/40 {
    --tw-gradient-from: rgba(120, 58, 251, 0.4) var(--tw-gradient-from-position);
    --tw-gradient-to: rgba(120, 58, 251, 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

/* --- Premium Buttons --- */

.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    cursor: pointer;
}

.btn-primary-gradient {
    background: var(--gradient-brand);
    color: #FFFFFF !important;
    box-shadow: 0 10px 30px -5px rgba(120, 58, 251, 0.4);
}

.btn-primary-gradient:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px -10px rgba(120, 58, 251, 0.6);
}

.btn-outline-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF !important;
    backdrop-filter: blur(8px);
}

.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* More Tailwind-like Utilities used in front-page.php */
.pt-44 {
    padding-top: 11rem;
}

.pb-32 {
    padding-bottom: 8rem;
}

.py-24 {
    padding: 6rem 0;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.max-w-7xl {
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:px-12 {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:text-7xl {
        font-size: 4.5rem;
        line-height: 1;
    }

    .lg\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

.z-10 {
    z-index: 10;
}

@media (max-width: 768px) {
    .text-hero-h1 {
        font-size: 41px !important;
        line-height: 1.1 !important;
    }

    .text-typewriter-prefix {
        font-size: 32px !important;
    }

    .text-hero-hook {
        font-size: 15px !important;
    }

    .btn-premium {
        height: 3.5rem;
        padding: 0 1.5rem;
        font-size: 0.9rem;
    }

    .services-header-h2 {
        font-size: 46px !important;
        text-align: center;
        margin-top: 0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        line-height: 1.1;
    }

    .trust-bar-home {
        display: none !important;
    }

    .section-fold-services {
        padding-top: 0 !important;
        padding-bottom: 5rem !important;
    }

    /* Reduce header clearance for testing */
    #home {
        padding-top: 1rem !important;
    }

    /* Vertical Typewriter Stack for Portrait */
    .typewriter-stack-wrapper {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: center !important;
    }

    .typewriter-stack-wrapper .text-white.mr-5 {
        margin-right: 0 !important;
    }

    .pb-32 {
        padding-bottom: 0 !important;
    }

    /* Global spacing overrides */
    .py-32 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .py-24,
    .pt-24 {
        padding-top: 4rem !important;
        padding-bottom: 3rem !important;
    }

    .pt-44 {
        padding-top: 5rem !important;
    }

    .mb-24 {
        margin-bottom: 3rem !important;
    }

    /* Landscape Mode Refinements */
    @media (orientation: landscape) {
        .text-hero-h1 {
            font-size: 50px !important;
        }

        .text-hero-h1-sub {
            font-size: 30px !important;
            line-height: 1.1 !important;
        }

        .text-typewriter-prefix,
        #typewriter-dynamic {
            font-size: 42px !important;
        }

        .text-hero-hook {
            padding-left: 10% !important;
            padding-right: 10% !important;
            font-size: 14px !important;
        }

        #home {
            padding-top: 0 !important;
            margin-top: -2rem !important;
        }
    }

    /* Mobile Footer Gap Fix */
    #primary,
    #page,
    .site-main {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        background-color: #0F0F0F !important;
    }

    #contact {
        margin-bottom: 0 !important;
        padding-bottom: 5rem !important;
    }

    .site-footer {
        margin-top: -2px !important;
        /* Overlap slightly to kill white seam */
        padding-top: 4rem !important;
        position: relative;
        z-index: 10;
        background-color: #000000 !important;
    }
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

.opacity-15 {
    opacity: 0.15;
}

.opacity-10 {
    opacity: 0.1;
}

.opacity-40 {
    opacity: 0.4;
}

.max-w-3xl {
    max-width: 42rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-xl {
    max-width: 36rem;
}

/* Dashboard Specific Classes */
.dashboard-card-bg {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* refined_home_styles */
.section-fold-services {
    padding-bottom: 10rem !important;
}

.service-card-lift {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card-lift:hover {
    transform: translateY(-10px);
}

.card-bg-gmp {
    background-color: #1A1726 !important;
}

.card-bg-global {
    background-color: #221513 !important;
}

.icon-offset-fix {
    right: 0 !important;
    top: 0 !important;
}

@media (max-width: 768px) {
    .icon-offset-fix {
        right: 0 !important;
        top: 0 !important;
    }
}

/* Service Card Macro Icons */
.macro-icon {
    font-size: 14rem !important;
    /* 224px */
    line-height: 1 !important;
}

.macro-icon-wrapper {
    transition: all 1000ms cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.03;
}

/* Kinetic Lunge on Hover */
.service-card-lift:hover .macro-icon-wrapper {
    transform: translateX(-2rem) scale(1.15) rotate(6deg);
    opacity: 0.25 !important;
}

.service-card-lift:hover .macro-icon-wrapper.icon-global {
    transform: translateX(-2rem) scale(1.15) rotate(-6deg);
}

/* --- SOCIAL MEDIA POST MOCKUP --- */
.social-mockup-card {
    background-color: #0F0F0F !important;
    max-width: 500px;
    width: 100% !important;
    box-shadow: 0 20px 50px -15px rgba(120, 58, 251, 0.3) !important;
    animation: mockFloat 6s ease-in-out infinite;
    padding: 2.5rem !important;
    border-radius: 1.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 10 !important;
}

.mockup-header {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
    position: relative !important;
    z-index: 10 !important;
}

.mockup-text {
    color: #e5e7eb !important;
    font-size: 0.8rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    font-weight: 500 !important;
    position: relative !important;
    z-index: 10 !important;
}

.social-creative-box {
    background-color: #161616 !important;
    height: 14rem !important;
    border-radius: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 2rem !important;
    position: relative !important;
}

.creative-icon-box {
    width: 5rem !important;
    height: 5rem !important;
    box-shadow: 0 0 25px rgba(120, 58, 251, 0.4) !important;
    border-radius: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 10 !important;
}

.social-badge-container {
    background-color: #1A1A1A !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    position: absolute !important;
    z-index: 20 !important;
}

.mockup-badge-tr {
    top: -1rem !important;
    right: -1rem !important;
    transform: rotate(-2deg) !important;
    animation: mockFloat 5s ease-in-out infinite reverse;
}

.mockup-badge-bl {
    bottom: -1rem !important;
    left: -1rem !important;
    transform: rotate(2deg) !important;
    animation: mockFloat 7s ease-in-out infinite;
}

.badge-icon-box {
    width: 2rem !important;
    height: 2rem !important;
    min-width: 2rem !important;
    border-radius: 9999px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mockup-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    width: 100% !important;
    position: relative !important;
    z-index: 10 !important;
}

.mockup-footer-group {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
}

.mockup-action {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
}

.social-mockup-bg {
    opacity: 0.03 !important;
    border-radius: 1.5rem !important;
}

.avatar-bg-box {
    width: 3rem !important;
    height: 3rem !important;
    padding: 2px !important;
    display: flex !important;
    border-radius: 9999px !important;
    flex-shrink: 0 !important;
}

.avatar-inner-box {
    background-color: #111111 !important;
    border-radius: 9999px !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.text-xxs {
    font-size: 10px !important;
    line-height: 1 !important;
    margin-bottom: 0.25rem !important;
}

.text-15px {
    font-size: 15px !important;
}

.text-16px {
    font-size: 16px !important;
    line-height: 1.6 !important;
}

.icon-20px {
    font-size: 20px !important;
}

.icon-24px {
    font-size: 24px !important;
}

@keyframes mockFloat {

    0%,
    100% {
        transform: translateY(0) rotate(var(--mock-rot, 0deg));
    }

    50% {
        transform: translateY(-10px) rotate(var(--mock-rot, 0deg));
    }
}

/* --- CTA SECTION BACKGROUNDS --- */
.bg-cta-grid {
    background-size: 80px 80px !important;
    background-image:
        linear-gradient(to right, rgba(120, 58, 251, 0.45) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(120, 58, 251, 0.45) 1px, transparent 1px) !important;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%) !important;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%) !important;
}

.bg-cta-curve-left {
    background: radial-gradient(ellipse at center, rgba(120, 58, 251, 0.15) 0%, rgba(120, 58, 251, 0) 70%) !important;
    filter: blur(80px) !important;
    border-radius: 50% !important;
}

.bg-cta-curve-right {
    background: radial-gradient(ellipse at center, rgba(120, 58, 251, 0.1) 0%, rgba(120, 58, 251, 0) 70%) !important;
    filter: blur(100px) !important;
    border-radius: 50% !important;
}

/* Mobile Spacing Fixes */
@media (max-width: 768px) {
    .section-fold-services {
        padding-top: 0 !important;
        padding-bottom: 5rem !important;
    }

    .py-32 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .py-24,
    .pt-24 {
        padding-top: 3rem !important;
        /* Restore top padding */
        padding-bottom: 3rem !important;
    }

    .pb-32 {
        padding-bottom: 0 !important;
    }

    .pt-44 {
        padding-top: 5rem !important;
    }

    .mb-24 {
        margin-bottom: 3rem !important;
    }
}