/* ===================================
   REvamped TAX SERVICES PAGE STYLES
   =================================== */

:root {
    --tax-gold: #c49a3c;
    --tax-dark: #0f172a;
    --tax-gold: #c49a3c;
    --tax-gradient: linear-gradient(135deg, #c49a3c 0%, #1c2b4a 100%);
    --tax-glass: rgba(255, 255, 255, 0.03);
    --tax-border: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
/* Hero Section Redesign */
.tax-hero-modern {
    padding: 12rem 0 8rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.7) 100%), url('../../images/tax-hero-modern.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    color: #fff;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.tax-hero-modern::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(196, 154, 60, 0.1) 0%, transparent 60%);
    z-index: 0;
    filter: blur(80px);
}

.tax-hero-modern::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 154, 60, 0.05) 0%, transparent 60%);
    z-index: 0;
    filter: blur(60px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    justify-items: center;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

/* Glass Card Effect for Content */
.hero-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem;
    border-radius: 40px;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 900px;
}

/* Inner glow for card */
.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.feature-tag {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: rgba(196, 154, 60, 0.15);
    color: #d4b06a;
    border: 1px solid rgba(196, 154, 60, 0.3);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(196, 154, 60, 0.2);
}

.hero-content h1 {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-content h1 span {
    background: linear-gradient(135deg, #d4b06a 0%, #c49a3c 50%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(196, 154, 60, 0.4));
}

.hero-content p {
    font-size: 1.25rem;
    color: #c8b97a;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 90%;
}

.hero-btn {
    padding: 1.2rem 3rem;
    font-size: 1.15rem;
    font-weight: 700;
    background: #c49a3c;
    background: linear-gradient(135deg, #c49a3c 0%, #1c2b4a 100%);
    border: none;
    box-shadow: 0 10px 25px rgba(196, 154, 60, 0.35);
    transition: all 0.3s ease;
    border-radius: 50px;
}

.hero-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(196, 154, 60, 0.45);
    background: linear-gradient(135deg, #d4b06a 0%, #c49a3c 100%);
}


.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    height: 100%;
}

.visual-back-element {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(196, 154, 60, 0.12) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    z-index: -1;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    /* Blend the image darks into the background */
    mix-blend-mode: lighten;
    /* Soften edges to prevent boxiness */
    mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
    /* Enhance the glowing glass look */
    filter: brightness(1.1) contrast(1.2) saturate(1.2);
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
    opacity: 0.9;
}

/* Service Detail Section */
.service-feature {
    padding: 10rem 0;
    background: #fff;
    overflow: hidden;
}

.service-feature:nth-child(even) {
    background: #faf9f6;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.service-feature:nth-child(even) .feature-grid {
    direction: rtl;
}

.service-feature:nth-child(even) .feature-grid>* {
    direction: ltr;
}

/* Removing feature tag style which is now inside hero content redesign */

.feature-content h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--tax-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.feature-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 2.5rem;
}

.section-subtitle {
    max-width: 600px;
    margin: 1rem auto 0;
    color: #64748b;
    font-size: 1.1rem;
}

.benefit-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: #334155;
    background: #fff;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid #e8e3d8;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--tax-gold);
    transform: translateY(-5px);
}

.benefit-item svg {
    color: var(--tax-accent);
}

.feature-visual {
    position: relative;
}

.feature-visual::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    background: radial-gradient(circle, rgba(196, 154, 60, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.feature-visual img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.1);
}

.shield-card {
    background: #fff;
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid #e8e3d8;
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.1);
    text-align: center;
}

.shield-card h4 {
    margin-top: 2rem;
    color: #0f172a;
    font-size: 1.5rem;
}

.shield-card p {
    color: #64748b;
    margin-top: 1rem;
}

/* Mini Stats Grid on Page */
.tax-stats-grid {
    padding: 6rem 0;
    background: var(--tax-dark);
    color: #fff;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.stat-box h3 {
    position: relative;
    /* Override global absolute from style.css */
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    white-space: nowrap;
    display: block;
    z-index: 1;
}

.stat-box p {
    position: relative;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 2;
}

/* Trust Grid Section */
.tax-trust-grid {
    padding: 8rem 0;
    background: #fff;
    text-align: center;
}

.trust-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.trust-card {
    padding: 3rem 2rem;
    background: #faf9f6;
    border-radius: 24px;
    border: 1px solid #e8e3d8;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.trust-card:hover {
    transform: translateY(-12px);
    background: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border-color: var(--tax-gold);
}

.trust-icon-box {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--tax-gold);
    box-shadow: 0 8px 16px rgba(196, 154, 60, 0.1);
}

/* Process Roadmap - Light & Bright */
.tax-process-section {
    padding: 10rem 0;
    background: #ffffff !important;
    color: #0f172a !important;
    overflow: hidden;
    position: relative;
}

.tax-process-section h2 {
    color: #0f172a !important;
    text-align: center;
}

.process-roadmap {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 2rem;
    margin-top: 6rem;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.process-roadmap::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: rgba(196, 154, 60, 0.25);
    z-index: 0;
}

.roadmap-step {
    position: relative !important;
    z-index: 2 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
}

.step-dot {
    width: 60px !important;
    height: 60px !important;
    min-height: 60px !important;
    background: #ffffff !important;
    border: 2px solid #c49a3c !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 2.5rem !important;
    /* Forces text down */
    font-weight: 800;
    color: #c49a3c !important;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(196, 154, 60, 0.1);
    position: relative;
    z-index: 5;
}

.roadmap-step h4 {
    font-size: 1.25rem !important;
    color: #1e293b !important;
    margin: 0 0 0.75rem 0 !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    position: relative !important;
    display: block !important;
}

.roadmap-step p {
    color: #64748b !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    max-width: 180px !important;
    margin: 0 auto !important;
    display: block !important;
}

.roadmap-step:hover .step-dot {
    background: #c49a3c !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(196, 154, 60, 0.3);
}

/* Enhanced CTA from User Image */
.tax-final-cta {
    padding: 10rem 0;
    background: #faf9f6;
    color: var(--tax-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #e0d9cc;
}

.tax-final-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(196, 154, 60, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: var(--tax-dark);
}

.cta-content p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.cta-glow-btn {
    background: var(--tax-gold);
    color: #fff !important;
    padding: 1.25rem 3.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(196, 154, 60, 0.3);
    transition: all 0.3s ease;
}

.cta-glow-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(196, 154, 60, 0.4);
}

/* Comprehensive Responsive Strategy */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .hero-grid,
    .feature-grid {
        grid-template-columns: 1fr !important;
        gap: 4rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .service-feature:nth-child(even) .feature-grid {
        direction: ltr !important;
    }

    .benefit-list {
        justify-content: center;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 3rem;
    }

    .trust-card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 clamp(1rem, 5vw, 1.5rem); }

    .tax-hero-modern {
        padding: 10rem 0 6rem;
    }

    .service-feature,
    .tax-process-section,
    .tax-final-cta {
        padding: 6rem 0;
    }

    .feature-content h2,
    .cta-content h2 {
        font-size: 2.5rem;
    }

    .benefit-list {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .stats-container {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }

    .trust-card-grid {
        grid-template-columns: 1fr !important;
    }

    /* Force center everything in Process Roadmap */
    .process-roadmap {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 4rem !important;
        position: relative !important;
        padding-bottom: 2rem;
    }

    .process-roadmap::after {
        top: 0;
        left: 50% !important;
        transform: translateX(-50%);
        bottom: 0;
        right: auto;
        width: 2px !important;
        /* Slightly thicker for visibility */
        height: 100%;
        background: rgba(196, 154, 60, 0.25) !important;
        display: block !important;
        z-index: 1;
    }

    .roadmap-step {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        position: relative !important;
        z-index: 2;
    }

    .step-dot {
        margin: 0 auto 1.5rem !important;
        background: white !important;
        z-index: 10 !important;
    }

    .roadmap-step h4,
    .roadmap-step p {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 280px !important;
    }

    .hero-visual img {
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .feature-content h2 {
        font-size: 2rem;
    }

    .tax-hero-modern {
        padding: 8rem 0 4rem;
    }

    .cta-glow-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
    }
}