/* ===================================
   ACCOUNTING & BOOKKEEPING CSS (Redesigned)
   =================================== */

/* --- Variables --- */
:root {
    --primary-gold: #c49a3c;
    --primary-dark: #0f172a;
    --secondary-blue: #1c2b4a;
    --accent-gold2: #c49a3c;
    /* For positive financial indicators */
    --accent-red: #ef4444;
    /* For alerts/negative */
    --glass-bg: rgba(255, 255, 255, 0.7);
}

body {
    background-color: #faf9f6;
}

/* --- Hero Section --- */
.accounting-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    color: white;
    overflow: hidden;
    padding: 10rem 0 6rem;
}

.hero-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: drift 20s infinite alternate;
}

.glow-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: #c49a3c;
}

.glow-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #1c2b4a;
    animation-delay: -5s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #d4b06a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span {
    background: linear-gradient(135deg, #d4b06a 0%, #1c2b4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #94a3b8;
    margin-bottom: 2.5rem;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
}

.glow-effect {
    box-shadow: 0 0 20px rgba(196, 154, 60, 0.4);
    transition: all 0.3s ease;
}

.glow-effect:hover {
    box-shadow: 0 0 30px rgba(196, 154, 60, 0.6);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    perspective: 1000px;
}

.floating-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

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

/* --- Services Overview (Cards Grid) --- */
.services-overview {
    padding: 6rem 0;
    background: white;
}

.section-header-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-header-center h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.section-header-center p {
    font-size: 1.25rem;
    color: #64748b;
}

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

.overview-card {
    background: #faf9f6;
    border: 1px solid #e0d9cc;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.overview-card:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #c49a3c;
}

.overview-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #c49a3c;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.overview-card h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.overview-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

/* --- Detailed Services (Alternating Split Layout) --- */
.accounting-services-section {
    padding: 0;
}

.accounting-detail-row {
    padding: 8rem 0;
    border-bottom: 1px solid #e8e3d8;
}

.accounting-detail-row:nth-child(even) {
    background: #faf9f6;
}

.accounting-detail-row:nth-child(odd) {
    background: white;
}

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

.split-grid.reverse .visual-col {
    order: -1;
}

.detail-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.detail-text p.lead {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two columns for features */
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #334155;
    font-weight: 500;
}

.check-circle {
    width: 20px;
    height: 20px;
    background: #c49a3c25;
    color: #1c2b4a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.btn-text {
    color: #c49a3c;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.btn-text:hover {
    gap: 10px;
}

/* Visual Components (CSS Charts) */
.visual-box {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.08);
    /* Soft floating shadow */
    border: 1px solid #e0d9cc;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Visual Box Header Mockup */
.vb-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e8e3d8;
    padding-bottom: 1rem;
}

.vb-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
}

.vb-badge {
    background: rgba(196,154,60,0.12);
    color: var(--accent-blue, #c49a3c);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 1. Bar Chart Staggered */
.bar-chart-group {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 180px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e3d8;
}

.bar-col {
    width: 15%;
    background: rgba(196, 154, 60, 0.18);
    border-radius: 6px 6px 0 0;
    position: relative;
    transition: height 1s ease;
}

.bar-col.active {
    background: #1c2b4a;
}

/* Active color */
.bar-col::before {
    content: attr(data-val);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

/* 2. Abstract Financial Records (Cards Stuffed) - ANIMATED */
.stack-card-container {
    position: relative;
    height: 200px;
    width: 100%;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Hover Effect: Spread cards apart */
.stack-card-container:hover .fc-back {
    transform: translateX(-50px) rotate(-15deg) scale(0.95);
}

.stack-card-container:hover .fc-front {
    transform: translateX(50px) rotate(10deg) scale(1.05);
}

.file-card {
    width: 180px;
    height: 140px;
    background: white;
    border: 1px solid #ddd8ce;
    border-radius: 12px;
    position: absolute;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.file-card span {
    font-size: 2rem;
    color: #94a3b8;
}

.file-card p {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 10px;
    font-weight: 600;
}

@keyframes float-card-vis {

    0%,
    100% {
        transform: translateY(0) rotate(var(--rot));
    }

    50% {
        transform: translateY(-10px) rotate(var(--rot));
    }
}

.fc-back {
    --rot: -10deg;
    transform: rotate(var(--rot)) translateX(-20px);
    z-index: 1;
    background: #f5f3ee;
    animation: float-card-vis 6s ease-in-out infinite;
}

.fc-front {
    --rot: 5deg;
    transform: rotate(var(--rot)) translateX(10px);
    z-index: 2;
    border-color: #c49a3c;
    background: white;
    animation: float-card-vis 6s ease-in-out infinite;
    animation-delay: 1.5s;
}


/* 3. Statement Table Mockup */
.table-mockup {
    width: 100%;
    border-collapse: collapse;
}

.table-mockup td {
    padding: 8px 0;
    border-bottom: 1px solid #e8e3d8;
    font-size: 0.9rem;
    color: #475569;
}

.table-mockup tr:last-child td {
    border-bottom: none;
    font-weight: 700;
    color: #0f172a;
}

.tm-val {
    text-align: right;
}

.val-pos {
    color: #c49a3c;
}

/* 4. Catchup Animation (Red to Green) */
.catchup-anim {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.state-box {
    text-align: center;
    padding: 1.5rem;
    border-radius: 16px;
    background: #fef2f2;
    color: #ef4444;
}

.state-box.fixed {
    background: rgba(196,154,60,0.10);
    color: #c49a3c;
}

.state-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.arrow-right {
    font-size: 1.5rem;
    color: #c8b97a;
}


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

.cta-pulse-btn {
    box-shadow: 0 0 0 0 rgba(196, 154, 60, 0.7);
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(196, 154, 60, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(196, 154, 60, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(196, 154, 60, 0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .split-grid.reverse .visual-col {
        order: 0;
    }

    .feature-list {
        text-align: left;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }
}

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

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

    .hero-title {
        font-size: 3rem;
    }
}
/* --- 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;
    }
}
