/* ===================================
   ADVISORY SERVICES PAGE STYLES - PREMIUM REDESIGN
   =================================== */

:root {
    --adv-primary: #c49a3c;
    --adv-secondary: #b8893a;
    --adv-dark: #0f172a;
    --adv-dark-glass: rgba(15, 23, 42, 0.8);
    --adv-light-glass: rgba(255, 255, 255, 0.05);
    --adv-border: rgba(255, 255, 255, 0.1);
    --adv-gradient: linear-gradient(135deg, #c49a3c 0%, #1c2b4a 100%);
}

body {
    background-color: #faf9f6;
    color: #334155;
    font-family: 'Inter', sans-serif;
}

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

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

@keyframes float {

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

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

/* --- Section 1: Hero (Immersive Center) --- */
.advisory-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    /* Warm dark overlay — suppresses the blue image, adds gold glow */
    background:
        radial-gradient(ellipse at 50% 55%, rgba(196, 154, 60, 0.22) 0%, transparent 60%),
        linear-gradient(160deg, rgba(10, 6, 0, 0.93) 0%, rgba(20, 13, 0, 0.91) 50%, rgba(10, 6, 0, 0.94) 100%),
        url('../../images/advisory-hero-modern.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
    padding: 12rem 0 8rem;
}

/* Golden ambient glow layer */
.advisory-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 35%, rgba(212, 168, 60, 0.13) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 65%, rgba(180, 130, 40, 0.11) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

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

.hero-content-card {
    background: rgba(196, 154, 60, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(196, 154, 60, 0.22);
    padding: 4rem;
    border-radius: 40px;
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(196, 154, 60, 0.08),
        inset 0 1px 0 rgba(255, 215, 100, 0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-heading {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    letter-spacing: -0.02em;
}

.hero-heading span {
    background: linear-gradient(135deg, #f5d98a 0%, #d4a83c 45%, #b8893a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 40px rgba(212, 168, 60, 0.65));
}

.hero-subheading {
    color: #e8d8a0;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 700px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-btn {
    background: linear-gradient(135deg, #d4a83c 0%, #c49a3c 50%, #b8893a 100%);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 20px 40px -10px rgba(196, 154, 60, 0.55);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -15px rgba(196, 154, 60, 0.75);
    background: linear-gradient(135deg, #e8bf4a 0%, #d4a83c 50%, #c49a3c 100%);
}

/* --- Section 2: Cards Overview (Glass Grid) --- */
.advisory-overview {
    padding: 8rem 0;
    background: #0f172a;
    /* Dark background to pop the glass cards */
    position: relative;
    overflow: hidden;
}

.advisory-overview::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 154, 60, 0.12) 0%, transparent 70%);
    filter: blur(80px);
}

.overview-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.overview-header h2 {
    font-size: 3rem;
    color: white;
    font-weight: 800;
    margin-bottom: 1rem;
}

.overview-header p {
    color: #94a3b8;
    font-size: 1.1rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.service-glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-glass-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-10px);
    border-color: rgba(196, 154, 60, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(196, 154, 60, 0.12);
    color: #d4b06a;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-glass-card h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-glass-card p {
    color: #c8b97a;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.card-link {
    margin-top: auto;
    color: #d4b06a;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 0.8rem;
}

/* --- Section 3: Detail Splits (Modern) --- */
.advisory-detail-section {
    padding: 8rem 0;
    background: #fff;
    overflow: hidden;
}

.advisory-detail-section:nth-child(even) {
    background: #faf9f6;
}

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

.visual-col {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.15);
}

.visual-col img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.visual-col:hover img {
    transform: scale(1.05);
}

.detail-txt h2 {
    font-size: 3rem;
    color: #0f172a;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

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

.feature-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.pill-item {
    background: rgba(196,154,60,0.10);
    color: #c49a3c;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Final CTA --- */
.advisory-cta {
    padding: 10rem 0;
    background: #0f172a;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.advisory-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(196, 154, 60, 0.12) 0%, transparent 60%);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: #c8b97a;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-heading {
        font-size: 3.5rem;
    }

    .split-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    /* Always show visual/graph FIRST, text below */
    .split-grid .visual-col {
        order: -1;
    }

    .feature-pill-grid {
        justify-content: center;
    }

    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advisory-detail-section {
        padding: 5rem 0;
    }
}

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

    .advisory-hero {
        padding: 8rem 0 6rem;
    }

    .hero-content-card {
        padding: 2rem;
    }

    .hero-heading {
        font-size: 2.5rem;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .detail-txt h2 {
        font-size: 2.25rem;
    }

    .advisory-cta {
        padding: 6rem 0;
    }
}
/* --- Animated Visuals (CSS Only) --- */

/* Shared Container */
.anim-visual-box {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #faf9f6 0%, rgba(196, 154, 60, 0.06) 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.8), 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* 1. Outsourced Controller: Floating Dashboard */
.controller-anim-wrapper {
    position: relative;
    width: 280px;
    height: 200px;
}

.anim-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: absolute;
    animation: float-card 6s ease-in-out infinite;
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.card-main {
    width: 240px;
    height: 160px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-small {
    width: 120px;
    padding: 0.8rem;
    z-index: 3;
    animation-delay: 1s;
}

.card-small-1 {
    top: -30px;
    right: -40px;
    background: #0f172a;
    color: white;
}

.card-small-2 {
    bottom: -30px;
    left: -40px;
    background: white;
    animation-delay: 2s;
}

/* Internal Card Elements */
.skel-line { height: 8px; background: #ede8de; border-radius: 4px; margin-bottom: 8px; width: 100%; }
.skel-line.short { width: 60%; }
.skel-graph {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-top: 10px;
}
.skel-bar {
    flex: 1;
    background: rgba(196,154,60,0.10);
    border-radius: 4px;
    height: 0;
    animation: grow-vertical 3s ease-in-out infinite alternate;
}
.skel-bar:nth-child(2) { background: rgba(196,154,60,0.20); animation-delay: 0.2s; }
.skel-bar:nth-child(3) { background: #d4b06a; animation-delay: 0.4s; }
.skel-bar:nth-child(4) { background: #d4b06a; animation-delay: 0.6s; }

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes grow-vertical {
    0% { height: 20%; }
    100% { height: 80%; }
}


/* 2. Financial Analysis: Dynamic Charts */
.growth-chart-anim {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 200px;
    padding-bottom: 20px;
    position: relative;
}

.growth-bar {
    width: 40px;
    background: linear-gradient(to top, rgba(196,154,60,0.20), #d4b06a);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 10px 30px rgba(196, 154, 60, 0.35);
    height: 0;
    position: relative;
    transition: height 1s ease;
}

/* Add a simple 'appear' animation for when they load */
.chart-bar-1 { height: 40%; animation: bar-rise 1s ease-out forwards 0.2s; }
.chart-bar-2 { height: 55%; animation: bar-rise 1s ease-out forwards 0.4s; }
.chart-bar-3 { height: 45%; animation: bar-rise 1s ease-out forwards 0.6s; }
.chart-bar-4 { height: 75%; animation: bar-rise 1s ease-out forwards 0.8s; background: linear-gradient(to top, #d4b06a, #c49a3c); }
.chart-bar-5 { height: 90%; animation: bar-rise 1s ease-out forwards 1.0s; background: linear-gradient(to top, #c49a3c, #c49a3c); }

.floating-stat {
    position: absolute;
    top: -50px;
    right: 0;
    background: #0f172a;
    color: #d4b06a;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
    animation: fade-in-up 0.5s ease-out forwards 1.5s;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes bar-rise { from { height: 0; opacity: 0; } to { opacity: 1; } }
@keyframes fade-in-up { to { opacity: 1; transform: translateY(0); } }


/* 3. Year End: Success Checklist */
.checklist-anim {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    width: 280px;
    position: relative;
    border: 1px solid #e8e3d8;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: slide-in-check 0.5s ease forwards;
}

.check-row:last-child { margin-bottom: 0; }
.check-row:nth-child(1) { animation-delay: 0.3s; }
.check-row:nth-child(2) { animation-delay: 0.8s; }
.check-row:nth-child(3) { animation-delay: 1.3s; }

.check-icon {
    width: 32px;
    height: 32px;
    background: rgba(196, 154, 60, 0.15);
    color: #c49a3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.check-line {
    height: 10px;
    background: #ede8de;
    border-radius: 5px;
    width: 100%;
}

.success-stamp {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #c49a3c;
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(196, 154, 60, 0.40);
    transform: scale(0) rotate(-20deg);
    animation: stamp-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 2s;
    border: 4px solid white;
}

@keyframes slide-in-check {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes stamp-pop {
    to { transform: scale(1) rotate(0deg); }
}

/* --- Stress-Free CTA Section (Light) - Copied from Payroll CSS --- */
.payroll-stress-free-cta {
    padding: 10rem 0; /* Extra spacious */
    background: #ffffff;
    text-align: center;
    position: relative;
    border-top: 1px solid #e8e3d8;
}

.stress-free-content {
    max-width: 800px;
    margin: 0 auto;
}

.stress-free-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.stress-free-content p {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 3.5rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-stress-free {
    display: inline-block;
    background: #1c2b4a;
    color: white;
    padding: 1.25rem 3.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(196, 154, 60, 0.4);
}

.btn-stress-free:hover {
    transform: translateY(-4px);
    background: #1c2b4a;
    box-shadow: 0 20px 30px -10px rgba(196, 154, 60, 0.6);
}

@media (max-width: 768px) {
    .stress-free-content h2 {
        font-size: 2.5rem;
    }
    .payroll-stress-free-cta {
        padding: 6rem 0;
    }
}
