/* =========================================================
   ACCOUNTING PAGE  |  assets/accounting.css

   Everything is scoped under .accounting-page and uses the
   "acc-" prefix, so it cannot leak into (or be overridden by)
   the header, footer, mega menus or other page stylesheets.

   Desktop values (1366px) were measured from the design:
   - Headings : system UI font stack (Segoe UI on Windows)
   - Body text: Montserrat 400
   - Orange   : #ee9d1e   Dark text: #1f2937   Body grey: #555
   - Dark bg  : #05060a   Gold (icons/borders): #e7b830
   ========================================================= */


/* =========================================================
   TOKENS
   ========================================================= */

.accounting-page {
    --acc-orange: #ee9d1e;
    --acc-gold: #f0b217;          /* CTA button text */
    --acc-gold-line: #e7b830;     /* icons + borders + accents */
    --acc-gold-rgb: 231, 184, 48; /* same colour, for rgba() glows */
    --acc-dark: #1f2937;
    --acc-grey: #555555;
    --acc-bg: #05060a;            /* page / dark sections */
    --acc-muted: #aeb4bd;         /* light text on dark */

    --acc-font-heading:
        system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", "Noto Sans", "Liberation Sans",
        Arial, sans-serif;

    --acc-font-body:
        "Montserrat", "Segoe UI", Arial, sans-serif;

    width: 100%;

    background: var(--acc-bg);
    color: #ffffff;

    font-family: var(--acc-font-body);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* =========================================================
   SCOPED RESET
   ========================================================= */

.accounting-page,
.accounting-page *,
.accounting-page *::before,
.accounting-page *::after {
    box-sizing: border-box;
}

.accounting-page h1,
.accounting-page h2,
.accounting-page h3,
.accounting-page p {
    margin: 0;
    padding: 0;
}


/* =========================================================
   SHARED CONTAINER  (content width = 1200px)
   ========================================================= */

.acc-container {
    width: 100%;
    max-width: 1260px;

    margin: 0 auto;
    padding: 0 30px;
}


/* =========================================================
   HERO
   ========================================================= */

.acc-hero {
    position: relative;

    width: 100%;
    height: 210px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    /* 1st image = accounting banner, 2nd = existing site banner
       (used automatically if the first file is missing) */
    background:
        url("../assets/images/accounting-banner.jpg")
            center center / cover no-repeat,
        url("../assets/images/banner.png")
            center center / cover no-repeat,
        #6e6d69;
}


.acc-hero__overlay {
    position: absolute;
    inset: 0;

    /* tune this to make the photo lighter / darker */
    background: rgba(0, 0, 0, 0.25);

    z-index: 1;
}


.acc-hero__content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 0 20px;

    text-align: center;
}


.acc-hero__title {
    margin: 0 0 12px;

    color: #ffffff;

    font-family: var(--acc-font-heading);
    font-size: 48px;
    line-height: 1.2;
    font-weight: 600;

    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);

    animation: accTitleReveal 0.8s ease-out both;
}


@keyframes accTitleReveal {

    from {
        opacity: 0;
        transform: translateY(18px);
    }

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


/* =========================================================
   INTRODUCTION
   ========================================================= */

.acc-intro {
    width: 100%;
    min-height: 382px;

    padding: 40px 0;

    background: var(--acc-bg);

    display: flex;
    align-items: center;
    justify-content: center;
}


.acc-intro__title {
    margin: 0 0 8px;

    color: #ffffff;

    font-family: var(--acc-font-heading);
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;

    text-align: center;
}


.acc-intro__text {
    width: 100%;

    color: #ffffff;

    font-family: var(--acc-font-body);
    font-size: 24px;
    line-height: 1.6;
    font-weight: 400;

    text-align: left;
}


/* =========================================================
   FEATURES
   ========================================================= */

.acc-features {
    width: 100%;

    padding: 90px 0 49px;

    /* same soft gold glow + dark base as the recruitment page */
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(var(--acc-gold-rgb), 0.10),
            transparent 42%
        ),
        var(--acc-bg);
}


.acc-features__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 30px;

    align-items: stretch;
}


/* =========================================================
   CARD
   (1px border added, so padding is reduced by 1px on each
    side to keep the exact same card size and text position)
   ========================================================= */

.acc-card {
    position: relative;

    display: flex;
    flex-direction: column;

    padding: 34px 19px 29px;

    background: #ffffff;

    border: 1px solid var(--acc-gold-line);
    border-radius: 12px;

    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.40);

    overflow: hidden;

    animation: accCardReveal 0.65s ease-out both;

    transition:
        transform 0.30s ease,
        box-shadow 0.30s ease,
        border-color 0.30s ease;
}


/* gold accent line (shows on hover) */

.acc-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: var(--acc-gold-line);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.35s ease;
}


@keyframes accCardReveal {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

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


.acc-card:nth-child(1) { animation-delay: 0.08s; }
.acc-card:nth-child(2) { animation-delay: 0.18s; }
.acc-card:nth-child(3) { animation-delay: 0.28s; }
.acc-card:nth-child(4) { animation-delay: 0.38s; }


.acc-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.42),
        0 0 18px rgba(var(--acc-gold-rgb), 0.14);
}

.acc-card:hover::before {
    transform: scaleX(1);
}


/* ---------- icon ---------- */

.acc-card__icon {
    height: 50px;

    margin: 0 0 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--acc-gold-line);

    font-size: 50px;
    line-height: 1;

    transition: transform 0.35s ease;
}

.acc-card__icon i {
    color: var(--acc-gold-line);
    line-height: 1;

    transition: transform 0.35s ease;
}

.acc-card:hover .acc-card__icon {
    transform: translateY(-3px) scale(1.06);
}

.acc-card:hover .acc-card__icon i {
    transform: rotate(-5deg);
}


/* ---------- title ---------- */

.acc-card__title {
    margin: 0 0 9px;

    color: var(--acc-dark);

    font-family: var(--acc-font-heading);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;

    text-align: center;
}


/* ---------- description ---------- */

.acc-card__text {
    margin: 0 0 16px;

    color: var(--acc-grey);

    font-family: var(--acc-font-body);
    font-size: 19.2px;
    line-height: 1.6;
    font-weight: 400;

    text-align: left;
}


/* =========================================================
   WHY CHOOSE
   ========================================================= */

.acc-why {
    width: 100%;
    min-height: 334px;

    padding: 40px 0;

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(var(--acc-gold-rgb), 0.08),
            transparent 55%
        ),
        var(--acc-bg);

    border-top: 1px solid rgba(var(--acc-gold-rgb), 0.08);

    display: flex;
    align-items: center;
    justify-content: center;
}


.acc-why__inner {
    width: 100%;
    max-width: 760px;               /* 700px of content */

    margin: 0 auto;
    padding: 0 30px;
}


.acc-why__title {
    margin: 0 0 20px;

    color: #ffffff;

    font-family: var(--acc-font-heading);
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;

    text-align: center;
}


.acc-why__text {
    color: var(--acc-muted);

    font-family: var(--acc-font-body);
    font-size: 17.6px;
    line-height: 1.6;
    font-weight: 400;

    text-align: left;
}


/* =========================================================
   CTA
   ========================================================= */

.acc-cta {
    width: 100%;
    min-height: 303px;

    padding: 12px 25px 0;

    background: var(--acc-bg);

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}


.acc-cta__inner {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
}


.acc-cta__title {
    margin: 0 0 7px;

    color: #ffffff;

    font-family: var(--acc-font-heading);
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
}


.acc-cta__button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 196px;
    height: 50px;

    border-radius: 25px;

    background: #ffffff;
    color: var(--acc-gold);

    font-family: var(--acc-font-heading);
    font-size: 17px;
    line-height: 1;
    font-weight: 600;

    text-decoration: none;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
}


/* light sweep on hover */

.acc-cta__button::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(238, 157, 30, 0.22),
            transparent
        );

    transform: skewX(-20deg);

    transition: left 0.55s ease;
}

.acc-cta__button:hover::before {
    left: 150%;
}

.acc-cta__button:hover {
    color: var(--acc-orange);

    transform: translateY(-3px);

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.acc-cta__button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.acc-card:focus-within {
    box-shadow: 0 0 0 2px rgba(var(--acc-gold-rgb), 0.6);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */


/* ---------- SMALL DESKTOP / LARGE TABLET  (<= 1199px) ---------- */

@media (max-width: 1199.98px) {

    .acc-hero {
        height: 190px;
    }

    .acc-hero__title {
        font-size: 42px;
    }

    .acc-intro {
        min-height: 340px;
    }

    .acc-intro__title,
    .acc-why__title,
    .acc-cta__title {
        font-size: 30px;
    }

    .acc-intro__text {
        font-size: 22px;
    }

    .acc-features {
        padding: 75px 0 45px;
    }

    .acc-features__grid {
        gap: 24px;
    }

    .acc-card {
        padding: 31px 17px 25px;
    }

    .acc-card__icon {
        height: 46px;
        font-size: 46px;
    }

    .acc-card__title {
        font-size: 22px;
    }

    .acc-card__text {
        font-size: 16.5px;
        margin-bottom: 12px;
    }

    .acc-why {
        min-height: 300px;
    }

    .acc-cta {
        min-height: 270px;
    }
}


/* ---------- TABLET  (<= 1100px) : 2 columns ---------- */

@media (max-width: 1100px) {

    .acc-features__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        max-width: 820px;
        margin: 0 auto;

        gap: 26px;
    }

    .acc-card {
        padding: 33px 27px 27px;
    }

    .acc-card__text {
        font-size: 17.6px;
    }
}


/* ---------- TABLET  (<= 991px) ---------- */

@media (max-width: 991.98px) {

    .acc-hero {
        height: 180px;
    }

    .acc-hero__title {
        font-size: 38px;
    }

    .acc-intro {
        min-height: 310px;
    }

    .acc-intro__title,
    .acc-why__title,
    .acc-cta__title {
        font-size: 28px;
    }

    .acc-intro__text {
        font-size: 20px;
    }

    .acc-why__text {
        font-size: 16.5px;
    }
}


/* ---------- LARGE PHONE  (<= 767px) ---------- */

@media (max-width: 767.98px) {

    .acc-container {
        padding: 0 22px;
    }

    .acc-hero {
        height: 165px;
    }

    .acc-hero__title {
        font-size: 34px;
        margin-bottom: 8px;
    }

    .acc-intro {
        min-height: 0;
        padding: 52px 0;
    }

    .acc-intro__title,
    .acc-why__title,
    .acc-cta__title {
        font-size: 26px;
    }

    .acc-intro__text {
        font-size: 18px;
        line-height: 1.65;
    }

    .acc-features {
        padding: 55px 0 40px;
    }

    .acc-features__grid {
        gap: 20px;
    }

    .acc-card {
        padding: 29px 21px 23px;
    }

    .acc-card__title {
        font-size: 21px;
    }

    .acc-card__text {
        font-size: 16.5px;
    }

    .acc-why {
        min-height: 0;
        padding: 55px 0;
    }

    .acc-why__inner {
        padding: 0 22px;
    }

    .acc-why__title {
        margin-bottom: 16px;
    }

    .acc-cta {
        min-height: 0;
        padding: 55px 22px;
    }
}


/* ---------- PHONE  (<= 575px) : 1 column ---------- */

@media (max-width: 575.98px) {

    .acc-container {
        padding: 0 18px;
    }

    .acc-hero {
        height: 150px;
    }

    .acc-hero__content {
        padding: 0 15px;
    }

    .acc-hero__title {
        font-size: 28px;
    }

    .acc-intro {
        padding: 44px 0;
    }

    .acc-intro__title,
    .acc-why__title,
    .acc-cta__title {
        font-size: 23px;
        line-height: 1.25;
    }

    .acc-intro__text {
        font-size: 16px;
        line-height: 1.7;
    }

    .acc-features {
        padding: 42px 0 36px;
    }

    .acc-features__grid {
        grid-template-columns: 1fr;

        max-width: 420px;

        gap: 18px;
    }

    .acc-card {
        padding: 27px 23px 21px;
    }

    .acc-card__icon {
        height: 44px;
        margin-bottom: 16px;

        font-size: 44px;
    }

    .acc-card__title {
        font-size: 21px;
    }

    .acc-card__text {
        font-size: 15.5px;
        text-align: center;
    }

    .acc-why {
        padding: 46px 0;
    }

    .acc-why__inner {
        padding: 0 18px;
    }

    .acc-why__text {
        font-size: 15px;
        line-height: 1.65;
    }

    .acc-cta {
        padding: 46px 18px;
    }

    .acc-cta__button {
        width: 180px;
        height: 46px;

        font-size: 16px;
    }
}


/* ---------- SMALL PHONE  (<= 375px) ---------- */

@media (max-width: 375px) {

    .acc-hero {
        height: 140px;
    }

    .acc-hero__title {
        font-size: 24px;
    }

    .acc-intro__title,
    .acc-why__title,
    .acc-cta__title {
        font-size: 21px;
    }

    .acc-intro__text {
        font-size: 15px;
    }

    .acc-card__text,
    .acc-why__text {
        font-size: 14.5px;
    }
}


/* =========================================================
   TOUCH DEVICES : no hover jumps
   ========================================================= */

@media (hover: none) {

    .acc-card:hover {
        transform: none;

        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.40);
    }

    .acc-card:hover::before {
        transform: scaleX(0);
    }

    .acc-card:hover .acc-card__icon,
    .acc-card:hover .acc-card__icon i {
        transform: none;
    }

    .acc-cta__button:hover {
        transform: none;

        box-shadow: none;

        color: var(--acc-gold);
    }

    .acc-cta__button:hover::before {
        left: -120%;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .acc-hero__title,
    .acc-card {
        animation: none;
    }

    .acc-card,
    .acc-card::before,
    .acc-card__icon,
    .acc-card__icon i,
    .acc-cta__button,
    .acc-cta__button::before {
        transition: none;
    }
}