/* UK service pages (accounting / bookkeeping / tax / payroll): styles that are not in the shared
   accounting-outsourcing.css / service-split.css. View: pages/uk/service-page.blade.php
   Contains the dark panel + points sections (uk_panel_*), the "Regulations & Compliance" tabs (uk_tabs_*, uk_t_*) and the software logo size for SVG logos. */

/* SVG logos have a large intrinsic size (the PNG logos are already small), so give them the same height as the PNG ones */
.acc_software .client_slider img[src$=".svg"] {
    width: auto;
    height: 48px;
}

/* Dark panel + numbered points (personal / corporate tax). The dark panel is on the left; .uk_panel_rev moves it to
   the right, so two sections one after the other make a zig-zag. Colours come from the site theme (--blue, #c31c26). */
.uk_panel_inner {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr);
    /* clip (not hidden) keeps the rounded corners without stopping the sticky content from working */
    overflow: clip;
    border: 1px solid #e2e2d5;
    border-radius: 20px;
    background: var(--white);
}

.uk_panel_dark {
    padding: 48px 40px 40px;
    background: linear-gradient(160deg, #1d2f66 0%, var(--blue) 55%, #101a3d 100%);
    color: var(--white);
}

.uk_panel_list {
    padding: 20px 56px;
}

/* The dark panel is as tall as the points list; its content stays in view (sticky) while the points scroll with the page */
.uk_panel_body {
    position: sticky;
    top: 110px; /* below the fixed site header */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.uk_panel_dark .com_btn2 {
    margin-bottom: 36px;
}

.uk_panel_dark h2 {
    margin: 0 0 22px;
    color: var(--white);
}

.uk_panel_dark p {
    margin: 0 0 30px;
    color: var(--grey);
}

/* Animated illustration under the button: a card with a checklist (doc) or bars and a trend line (chart),
   a check badge and a floating pound coin. Everything runs in an 8s loop; --d on an element is its start delay.
   Colours: white / light lines on the navy panel, the site red for the badge and the highlighted bar. */
.uk_panel_art {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    margin-top: 4px;
    overflow: visible;
}

.uk_a_back {
    fill: rgba(255, 255, 255, 0.05);
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 1.5;
}

.uk_a_front {
    fill: rgba(255, 255, 255, 0.09);
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 1.5;
}

.uk_a_card {
    animation: uk_a_float 5s ease-in-out infinite;
}

.uk_a_title {
    fill: rgba(255, 255, 255, 0.92);
}

.uk_a_sub {
    fill: rgba(255, 255, 255, 0.28);
}

.uk_a_box {
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 1.5;
}

.uk_a_tick,
.uk_a_line {
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: uk_a_draw 8s ease-in-out infinite;
    animation-delay: var(--d, 0s);
}

.uk_a_line {
    stroke: #c31c26;
    stroke-width: 3;
}

.uk_a_row {
    fill: rgba(255, 255, 255, 0.28);
    animation: uk_a_dim 8s ease-in-out infinite;
    animation-delay: var(--d, 0s);
}

.uk_a_bar {
    fill: rgba(255, 255, 255, 0.75);
    transform-box: fill-box;
    transform-origin: bottom;
    transform: scaleY(0);
    animation: uk_a_grow 8s ease-in-out infinite;
    animation-delay: var(--d, 0s);
}

.uk_a_bar_hot {
    fill: #c31c26;
}

.uk_a_badge {
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(0);
    animation: uk_a_pop 8s ease-in-out infinite;
    animation-delay: var(--d, 0s);
}

.uk_a_badge circle {
    fill: #c31c26;
}

.uk_a_badge path {
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.uk_a_coin {
    animation: uk_a_bob 3.2s ease-in-out infinite;
}

.uk_a_coin_face {
    fill: #fff;
}

.uk_a_coin_edge {
    stroke: rgba(24, 38, 83, 0.25);
    stroke-width: 1.5;
}

.uk_a_coin text {
    font-family: "Public Sans", sans-serif;
    font-size: 28px;
    font-weight: 700;
    fill: var(--blue);
}

.uk_a_ring {
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 1.5;
    transform-box: fill-box;
    transform-origin: center;
    animation: uk_a_ring 3.2s ease-out infinite;
}

@keyframes uk_a_float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes uk_a_bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

@keyframes uk_a_ring {
    0% { transform: scale(1); opacity: 0.7; }
    70%, 100% { transform: scale(1.5); opacity: 0; }
}

@keyframes uk_a_draw {
    0% { stroke-dashoffset: 1; }
    10%, 84% { stroke-dashoffset: 0; }
    95%, 100% { stroke-dashoffset: 1; }
}

@keyframes uk_a_dim {
    0% { fill: rgba(255, 255, 255, 0.28); }
    10%, 84% { fill: rgba(255, 255, 255, 0.8); }
    95%, 100% { fill: rgba(255, 255, 255, 0.28); }
}

@keyframes uk_a_grow {
    0% { transform: scaleY(0); }
    10%, 84% { transform: scaleY(1); }
    95%, 100% { transform: scaleY(0); }
}

@keyframes uk_a_pop {
    0% { transform: scale(0); }
    6% { transform: scale(1.2); }
    9%, 84% { transform: scale(1); }
    95%, 100% { transform: scale(0); }
}

@media (prefers-reduced-motion: reduce) {
    .uk_a_card,
    .uk_a_coin,
    .uk_a_ring,
    .uk_a_tick,
    .uk_a_line,
    .uk_a_row,
    .uk_a_bar,
    .uk_a_badge {
        animation: none;
    }

    .uk_a_tick,
    .uk_a_line {
        stroke-dashoffset: 0;
    }

    .uk_a_row {
        fill: rgba(255, 255, 255, 0.8);
    }

    .uk_a_bar,
    .uk_a_badge {
        transform: none;
    }

    .uk_a_ring {
        opacity: 0;
    }
}

/* The points reuse the rows of the "For accounting firms" split (svc_split_list / svc_split_row in service-split.css):
   same lines, headings and hover underline. Only the numbers (instead of icons) are specific to this section. */
.uk_panel_num {
    display: block;
    font-family: "Public Sans", sans-serif;
    font-size: 36px;
    font-weight: 300;
    line-height: 40px;
}

/* Desktop: slightly tighter rows, so the card (and the navy panel) is only a little taller than the pinned content and
   there is not much empty navy space; the content still has some room to stay pinned while the points scroll */
@media (min-width: 992px) {
    .uk_panel_list {
        padding: 8px 56px;
    }

    .uk_panel_list .svc_split_row {
        padding: 20px 0;
    }

    .uk_panel_list .svc_split_row h3 {
        margin-bottom: 6px;
        font-size: 21px;
        line-height: 28px;
    }

    .uk_panel_list .svc_split_row p {
        font-size: 16px;
        line-height: 24px;
    }

    .uk_panel_num {
        font-size: 32px;
        line-height: 36px;
    }
}

/* Zig-zag: the second section has the dark panel on the right */
@media (min-width: 992px) {
    .uk_panel_rev {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr);
    }

    .uk_panel_rev .uk_panel_dark {
        order: 2;
    }
}

/* On short screens (or with the browser zoomed in) the pinned content must still fit in the visible area, so the illustration
   is made smaller (never hidden); the content then stays pinned instead of scrolling away and leaving the navy panel empty */
@media (min-width: 992px) and (max-height: 700px) {
    .uk_panel_art {
        max-width: 210px;
        margin-top: 0;
    }

    .uk_panel_dark {
        padding-top: 36px;
    }

    .uk_panel_dark h2 {
        margin-bottom: 14px;
    }

    .uk_panel_dark p {
        margin-bottom: 20px;
    }

    .uk_panel_dark .com_btn2 {
        margin-bottom: 20px;
    }
}

@media (min-width: 992px) and (max-height: 580px) {
    .uk_panel_art {
        max-width: 150px;
    }
}

@media (max-width: 991px) {
    .uk_panel_inner {
        grid-template-columns: 1fr;
    }

    /* Stacked layout: the dark panel is on top, nothing needs to stay in view */
    .uk_panel_body {
        position: static;
    }

    .uk_panel_dark {
        padding: 40px 28px 32px;
    }

    .uk_panel_list {
        padding: 12px 28px;
    }
}

@media (max-width: 575px) {
    .uk_panel_inner {
        border-radius: 16px;
    }

    .uk_panel_dark {
        padding: 32px 20px 26px;
    }

    .uk_panel_list {
        padding: 8px 20px;
    }

    .uk_panel_num {
        font-size: 30px;
        line-height: 34px;
    }
}

/* Regulations & Compliance tabs: tab list on the left (cream, like the svc_split band), the selected point on the right (white).
   All panels share one grid cell, so the card keeps the height of the longest panel; only the active one is visible. */
.uk_tabs {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.7fr);
    overflow: hidden;
    border: 1px solid #e2e2d5;
    border-radius: 20px;
    background: var(--white);
}

.uk_tabs_nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    background: #f3f3e6;
}

.uk_tab {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--blue);
    font-family: "Public Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.uk_tab:hover {
    background: rgba(255, 255, 255, 0.6);
}

.uk_tab:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* Number chip: the same navy gradient tile as the site's process icons (.process_icon) when the tab is active */
.uk_tab_num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #9aa1bd;
    transition: color 0.25s ease, background 0.25s ease;
}

.uk_tab.is_active {
    background: var(--white);
    box-shadow: 0 6px 18px rgba(24, 38, 83, 0.1);
}

.uk_tab.is_active .uk_tab_num {
    background: linear-gradient(135deg, #2a3d7a, var(--blue));
    color: var(--white);
}

.uk_tabs_panels {
    display: grid;
}

.uk_tabs_panel {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: center;
    gap: 40px;
    padding: 44px 48px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}

.uk_tabs_panel.is_active {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.4s ease 0.05s, transform 0.4s ease 0.05s, visibility 0s;
}

.uk_tabs_count {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #c31c26;
}

.uk_tabs_text h3 {
    margin: 0 0 14px;
    font-family: "Public Sans", sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 36px;
    color: var(--blue);
}

.uk_tabs_text p {
    margin: 0;
    color: var(--black6);
}

/* Document illustration: card, title bar, lines and a check that draw themselves each time the tab is shown */
.uk_tabs_art {
    display: block;
    width: 100%;
    height: auto;
}

.uk_t_card {
    fill: #f3f3e6;
    stroke: #cfcfbd;
    stroke-width: 1.5;
}

.uk_t_bar {
    fill: #2a3d7a;
    transform-box: fill-box;
    transform-origin: left;
}

.uk_t_line {
    fill: #d3d6e4;
    transform-box: fill-box;
    transform-origin: left;
}

.uk_t_ring,
.uk_t_tick {
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
}

.uk_t_ring {
    stroke: var(--blue);
    stroke-width: 3;
}

.uk_t_tick {
    stroke: #c31c26;
    stroke-width: 3.5;
}

.uk_tabs_panel.is_active .uk_t_bar {
    animation: uk_t_grow 0.5s ease-out both;
}

.uk_tabs_panel.is_active .uk_t_line {
    animation: uk_t_grow 0.5s ease-out both;
    animation-delay: var(--d, 0.3s);
}

.uk_tabs_panel.is_active .uk_t_ring {
    animation: uk_t_draw 0.6s ease-out 0.8s both;
}

.uk_tabs_panel.is_active .uk_t_tick {
    animation: uk_t_draw 0.4s ease-out 1.25s both;
}

@keyframes uk_t_grow {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

@keyframes uk_t_draw {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}

@media (max-width: 1199px) {
    .uk_tabs_panel {
        grid-template-columns: minmax(0, 1fr) 120px;
        gap: 28px;
        padding: 36px 32px;
    }
}

@media (max-width: 991px) {
    .uk_tabs {
        grid-template-columns: 1fr;
    }

    .uk_tabs_nav {
        padding: 10px;
    }
}

@media (max-width: 575px) {
    .uk_tabs {
        border-radius: 16px;
    }

    .uk_tab {
        padding: 13px 14px;
        font-size: 15px;
    }

    .uk_tabs_panel {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 28px 20px;
    }

    .uk_tabs_text h3 {
        font-size: 23px;
        line-height: 30px;
    }

    .uk_tabs_art {
        max-width: 110px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .uk_tabs_panel,
    .uk_tabs_panel.is_active {
        transform: none;
        transition: none;
    }

    .uk_tabs_panel.is_active .uk_t_bar,
    .uk_tabs_panel.is_active .uk_t_line,
    .uk_tabs_panel.is_active .uk_t_ring,
    .uk_tabs_panel.is_active .uk_t_tick {
        animation: none;
    }

    .uk_t_ring,
    .uk_t_tick {
        stroke-dashoffset: 0;
    }
}

/* List of points with check marks (small business service cards) */
.uk_check_list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.uk_check_list li {
    position: relative;
    padding-left: 26px;
    font-weight: 600;
    color: var(--blue);
}

.uk_check_list li + li {
    margin-top: 6px;
}

.uk_check_list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 12px;
    height: 7px;
    border-left: 2px solid #c31c26;
    border-bottom: 2px solid #c31c26;
    transform: rotate(-45deg);
}

/* Sticky split intro with several paragraphs: closer spacing between them (the button / image keeps its own gap) */
.uk_split_multi p {
    margin-bottom: 14px;
}

.uk_split_multi p:last-of-type {
    margin-bottom: 28px;
}

/* Contact band heading with a small picture inside it (small business page): the picture sits in the line of the text */
.contact_band_head h2 .inner-gif {
    display: inline-block;
    width: 64px;
    height: 64px;
    margin: -10px 4px -6px;
    vertical-align: middle;
    object-fit: contain;
}

@media (max-width: 575px) {
    .contact_band_head h2 .inner-gif {
        width: 44px;
        height: 44px;
        margin: -6px 2px -4px;
    }
}
