/* ---------- SERVICES HERO ---------- */
.services-hero {
    background:
        linear-gradient(rgba(17, 17, 17, 0.40), rgba(17, 17, 17, 0.52)),
        url("images/services-hero.jpg") center 30% / cover no-repeat;
    min-height: 440px;
    display: flex;
    align-items: center;
    
}

.services-hero-overlay {
    width: 100%;
    padding: 110px 0 100px;
}

.services-hero-content {
    max-width: 860px;
    color: #fff;
}

.services-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.08;
    font-weight: 800;
    margin-bottom: 22px;
    letter-spacing: -0.03em;
    color: #fff;
}

.services-hero-text {
    font-size: 1.1rem;
    line-height: 1.9;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.92);
}

.hero-eyebrow {
    color: #f2e6e6;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

/* ---------- SECTIONS ---------- */
.services-intro-grid-section,
.flexible-options-section,
.services-industries-section,
.services-cta-section,
.service-detail-content-section {
    padding: 90px 0;
}

.services-intro-grid-section {
    background: #f7f7f8;
}

.flexible-options-section {
    background: #ffffff;
}

.services-industries-section {
    background: #f7f7f8;
}

.section-heading {
    margin-bottom: 36px;
}

.section-line {
    width: 58px;
    height: 4px;
    background: #b32025;
    display: inline-block;
    margin-bottom: 14px;
    border-radius: 999px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    font-weight: 800;
    color: #111111;
    letter-spacing: -0.03em;
}

/* ---------- SERVICES GRID ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.service-card {
    background: #ffffff;
    border: 1px solid #dfdfdf;
    border-radius: 24px;
    padding: 32px 28px;
    text-decoration: none;
    transition: all 0.28s ease;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06);
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.11);
    border-color: rgba(179, 32, 37, 0.35);
}

.service-card h3 {
    font-size: 1.35rem;
    line-height: 1.35;
    margin-bottom: 16px;
    margin-top: 0;
    color: #111111;
    font-weight: 700;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: #5b5f66;
    margin-bottom: 24px;
}

.service-card-link {
    margin-top: auto;
    color: #b32025;
    font-weight: 700;
    font-size: 0.96rem;
}

/* ---------- FLEXIBLE OPTIONS ---------- */
.flexible-options-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 36px;
    align-items: start;
}

.flexible-options-copy p,
.industries-copy p,
.service-detail-intro p,
.accordion-content p,
.services-cta-card p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555b63;
}

/* ---------- FLIP CARDS ---------- */
.flip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.flip-card {
    perspective: 1200px;
    height: 260px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease;
    transform-style: preserve-3d;
}

.flip-card.active .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 22px;
    padding: 28px 24px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flip-card-front {
    background: linear-gradient(135deg, #b32025 0%, #8f1a1e 100%);
    color: #ffffff;
    text-align: center;
}

.flip-card-back {
    background: #ffffff;
    color: #111111;
    border: 1px solid #e4e4e6;
    transform: rotateY(180deg);
    text-align: center;
}

.flip-card-front h3,
.flip-card-back h3 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
}

.flip-card-front p,
.flip-card-back p {
    font-size: 0.98rem;
    line-height: 1.75;
    margin: 0;
}

/* ---------- INDUSTRIES ---------- */
.industries-copy {
    max-width: 860px;
    margin-bottom: 30px;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.industry-card {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 18px;
    padding: 18px 20px;
    font-weight: 600;
    color: #1b1b1b;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

/* ---------- CTA ---------- */
.services-cta-section {
    background: #ffffff;
}

.services-cta-card {
    background: linear-gradient(135deg, #111111 0%, #222222 58%, #7f1418 100%);
    border-radius: 32px;
    padding: 56px 48px;
    color: #ffffff;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
}

.services-cta-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.services-cta-card p {
    color: rgba(255, 255, 255, 0.86);
    max-width: 780px;
}

.cta-eyebrow {
    color: #ff8a90;
}

.services-cta-card .hero-button-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.services-cta-card .button,
.services-cta-card .primary-button,
.services-cta-card .secondary-button,
.services-cta-card .services-outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 56px;
    padding: 0 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.services-cta-card .primary-button {
    background: #e11c22;
    color: #ffffff;
    border: 2px solid #e11c22;
}

.services-cta-card .primary-button:hover {
    background: #c8161b;
    border-color: #c8161b;
    color: #ffffff;
    transform: translateY(-1px);
}

.services-cta-card .services-outline-button,
.services-cta-card .secondary-button {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.services-cta-card .services-outline-button:hover,
.services-cta-card .secondary-button:hover {
    background: #ffffff;
    color: #111111;
    transform: translateY(-1px);
}

/* ---------- DETAIL PAGE HERO ---------- */
.service-detail-hero {
    min-height: 360px;
    display: flex;
    align-items: center;
}

.service-detail-hero-overlay {
    width: 100%;
    padding: 100px 0 90px;
}

.service-detail-hero-content {
    max-width: 860px;
    color: #fff;
}

.service-detail-hero-content h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.08;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: -0.03em;
}

.service-detail-hero-content p {
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.08rem;
    line-height: 1.9;
    max-width: 760px;
}

/* ---------- PAGE-SPECIFIC HERO IMAGES ---------- */
.business-formation-page .service-detail-hero {
    background:
        linear-gradient(rgba(120, 20, 28, 0.18), rgba(120, 20, 28, 0.24)),
        linear-gradient(rgba(15, 15, 15, 0.24), rgba(15, 15, 15, 0.34)),
        url("images/business-formation-hero.jpg") center center / cover no-repeat;
}

.bookkeeping-page .service-detail-hero {
    background:
        linear-gradient(rgba(120, 20, 28, 0.18), rgba(120, 20, 28, 0.24)),
        linear-gradient(rgba(15, 15, 15, 0.24), rgba(15, 15, 15, 0.34)),
        url("images/bookkeeping-hero.jpg") center center / cover no-repeat;
}

.business-advisory-page .service-detail-hero {
    background:
        linear-gradient(rgba(120, 20, 28, 0.14), rgba(120, 20, 28, 0.20)),
        linear-gradient(rgba(15, 15, 15, 0.16), rgba(15, 15, 15, 0.26)),
        url("images/business-advisory-hero.jpg") center 22% / cover no-repeat;
}


.third-party-page .service-detail-hero {
    background:
        linear-gradient(rgba(120, 20, 28, 0.18), rgba(120, 20, 28, 0.24)),
        linear-gradient(rgba(15, 15, 15, 0.24), rgba(15, 15, 15, 0.34)),
        url("images/third-party-hero.jpg") center center / cover no-repeat;
}

/* ---------- DETAIL PAGE BODY ---------- */
.service-detail-content-section {
    background: #ffffff;
}

.service-detail-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.2fr;
    gap: 44px;
    align-items: start;
}

.service-detail-side {
    position: sticky;
    top: 100px;
}

.service-detail-side h2 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.16;
    font-weight: 800;
    color: #111111;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.back-link {
    display: inline-block;
    margin-top: 22px;
    color: #b32025;
    text-decoration: none;
    font-weight: 700;
}

.back-link:hover {
    text-decoration: underline;
}

.accordion-list-services {
    background: #ffffff;
    border: 1px solid #e5e5e7;
    border-radius: 24px;
    padding: 8px 28px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}

.accordion-item-service {
    border-bottom: 1px solid #e7e7e8;
}

.accordion-item-service:last-child {
    border-bottom: none;
}

.accordion-toggle {
    width: 100%;
    background: transparent;
    border: none;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
    cursor: pointer;
}

.accordion-title {
    font-size: 1.03rem;
    line-height: 1.7;
    font-weight: 700;
    color: #111111;
    padding-right: 16px;
}

.accordion-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    border: 1px solid #d8d8dc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #111111;
    font-weight: 500;
    transition: all 0.25s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
}

.accordion-content-inner {
    padding: 0 58px 24px 0;
}

.accordion-item-service.active .accordion-toggle {
    padding-bottom: 16px;
}

.accordion-item-service.active .accordion-icon {
    background: #b32025;
    color: #ffffff;
    border-color: #b32025;
}

/* ---------- NAV ACTIVE ---------- */
nav a.active-nav {
    color: #b32025;
    font-weight: 700;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flexible-options-layout,
    .service-detail-layout,
    .flip-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-side {
        position: static;
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-intro-grid-section,
    .flexible-options-section,
    .services-industries-section,
    .services-cta-section,
    .service-detail-content-section {
        padding: 65px 0;
    }

    .services-grid,
    .industries-grid,
    .flip-grid {
        grid-template-columns: 1fr;
    }

    .services-cta-card {
        padding: 40px 24px;
    }

    .services-cta-card .hero-button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .services-cta-card .button,
    .services-cta-card .primary-button,
    .services-cta-card .secondary-button,
    .services-cta-card .services-outline-button {
        width: 100%;
        min-width: 0;
    }

    .accordion-list-services {
        padding: 8px 20px;
    }

    .accordion-content-inner {
        padding-right: 0;
    }

    .flip-card {
        height: 280px;
    }
}