/*
 * -----------------------------------------------------------------------
 * @author     Akshari Solutions
 * @copyright  (c) 2026 Akshari Solutions. All rights reserved.
 * -----------------------------------------------------------------------
 *
 * SEO / accessibility audit fixes, loaded after the theme (style_14.css).
 * Prefix "ao-" so nothing here collides with the theme.
 */

/* ---------- Skip link and screen-reader-only text ---------- */
.ao-skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 10000;
    padding: 12px 18px;
    background: #040404;
    color: #fff;
    border: 2px solid #F15B2B;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
}
.ao-skip-link:focus {
    top: 16px;
    color: #fff;
}
.ao-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
#main-content:focus {
    outline: none;
}

/* Visible keyboard focus on links and buttons (WCAG 2.4.7). */
a:focus-visible,
button:focus-visible,
.btn--base:focus-visible {
    outline: 3px solid #C13911;
    outline-offset: 3px;
}

/* ---------- Service cards (home + /services) ----------
 * The flicker: the theme moved the card up 7px on hover
 * (.service-item:hover translateY), so with the pointer near the bottom
 * edge the card slid away, hover ended, it dropped back, hover started
 * again... and the hover image swap toggled display:none on images of
 * different sizes, which changed the layout too. Here nothing moves: the
 * hover state is shadow + colour only, and both icon images sit stacked
 * in a fixed-size box and cross-fade. */
.ao-card {
    position: relative;
    height: 100%;
    padding: 25px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    -webkit-transition: box-shadow 0.25s ease, border-color 0.25s ease;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.ao-card.service-item,
.ao-card.service-item:hover {
    -webkit-transform: none;
    transform: none;
}
.ao-card:hover,
.ao-card:focus-within {
    border-color: #F15B2B;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}
.ao-card--plain {
    background: transparent;
    box-shadow: none;
}
.ao-card--plain:hover,
.ao-card--plain:focus-within {
    background: #fff;
}
.ao-card .title a,
.ao-card .title a:hover {
    color: #1C1C1C;
    text-decoration: none;
}
.ao-card:hover .title a,
.ao-card:focus-within .title a {
    color: #C13911;
}
/* The whole card is clickable through the title link (one link, one tab stop). */
.ao-card-link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}
.ao-card-link:focus-visible {
    outline: none;
}
.ao-card:focus-within {
    outline: 3px solid #C13911;
    outline-offset: 3px;
}
.ao-card-label {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #4a4a4a;
}
.ao-card-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
    color: #C13911;
}
/* "Learn more" at the same height on every card: the card is a column and
 * the link is pushed to the bottom. */
.ao-card {
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: vertical;
    flex-direction: column;
}
.ao-card .service-content {
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: vertical;
    flex-direction: column;
    -webkit-box-flex: 1;
    flex: 1 1 auto;
}
.ao-card .service-description {
    -webkit-box-flex: 1;
    flex: 1 1 auto;
}
.ao-card .ao-card-more {
    align-self: flex-start;
}
/* The theme sets every <span> to inline-block, so a bold phrase from the
 * admin (<span><b>WCAG compliance</b></span>) couldn't wrap and jumped to
 * its own line, leaving words like "with" alone. Back to normal text flow. */
.ao-card .service-description span,
.ao-card .service-description b,
.ao-card .service-description strong {
    display: inline;
}
.ao-card .service-description p {
    margin-bottom: 0;
}

/* Home: room above "Accessibility services for documents, media and websites". */
.ao-services-home {
    padding-top: 90px;
}
@media only screen and (max-width: 991px) {
    .ao-services-home {
        padding-top: 60px;
    }
}

/* "Why choose us" slider: side margin instead of edge-to-edge. */
.ao-why-wrap {
    padding-left: 40px;
    padding-right: 40px;
}
/* Cards as tall as the tallest one in the row, sized by their text. The
 * .equalBox rule in head.blade.php fixes them at 350px (!important), so
 * longer descriptions ran out of the card. */
.service-slider-two .swiper-wrapper {
    -webkit-box-align: stretch;
    align-items: stretch;
}
.service-slider-two .swiper-slide {
    height: auto;
    display: -webkit-box;
    display: flex;
}
.ao-why {
    display: -webkit-box;
    display: flex;
    width: 100%;
}
.ao-why .service-item,
.ao-why .service-item.equalBox {
    width: 100%;
    height: auto !important;
    min-height: 0;
    padding-bottom: 28px;
}
/* Buttons keep their label on one line (head.blade.php fixes every
 * .btn--base at 245px, which cut longer labels). */
.overview-btn .btn--base {
    display: inline-block;
    width: auto;
    white-space: nowrap;
}
/* Partner logos: equal boxes. */
.brand-section .brand-item {
    width: 260px;
    max-width: 100%;
}
@media only screen and (max-width: 575px) {
    .ao-why-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Partner logos: same box for every logo, whatever the image size. */
.brand-section .brand-item {
    height: 200px;
    padding: 30px;
}
.brand-section .brand-item img {
    max-width: 100%;
    max-height: 120px;
    -o-object-fit: contain;
    object-fit: contain;
}

/* Icon box: fixed size, images stacked, cross-fade only. */
.ao-icon-swap {
    position: relative;
    display: block;
    width: 150px;
    max-width: 100%;
    height: 150px;
    margin-bottom: 20px;
}
.ao-icon-swap img,
.ao-icon-swap .ao-icon-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    -webkit-transition: opacity 0.2s ease;
    transition: opacity 0.2s ease;
    -webkit-transform: none !important;
    transform: none !important;
}
.ao-icon-swap .ao-icon-anim {
    opacity: 0;
}
.is-animating.is-gif-ready .ao-icon-swap .ao-icon-anim {
    opacity: 1;
}
.is-animating.is-gif-ready .ao-icon-swap .ao-icon-static {
    opacity: 0;
}

/* "Why choose us" slider cards: same fix (they also moved on hover). */
.ao-why .service-item,
.ao-why .service-item:hover {
    -webkit-transform: none;
    transform: none;
}
.ao-why .service-item:hover {
    border-color: #F15B2B !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}
.ao-why .ao-icon-swap {
    margin: 0 auto 15px;
}

/* ---------- Headings that changed level, keep their old look ---------- */
/* Home hero: the slogan is the page's H1 and the largest heading on the
 * page (section H2s are 40px). */
.development-section .content h1.title {
    text-align: left;
    margin: 0 0 16px;
    font-size: 48px;
    line-height: 1.2;
}
@media only screen and (max-width: 991px) {
    .development-section .content h1.title {
        font-size: 36px;
    }
}
@media only screen and (max-width: 575px) {
    .development-section .content h1.title {
        font-size: 30px;
    }
}
.ao-h1-sub {
    display: block;
    margin-top: 6px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #4a4a4a;
}
/* The orange line under it was an <h3>, now a paragraph: smaller than the
 * H1 so the heading stays the first thing people read. */
.development-section .content p.ao-hero-lead {
    color: #C13911;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 15px;
    font-family: "Jost", sans-serif;
}
@media only screen and (max-width: 991px) {
    .development-section .content p.ao-hero-lead {
        font-size: 19px;
    }
}
/* Kicker above a section title ("WHY CHOOSE US"), was an <h3>. */
.ao-kicker {
    color: #C13911;
    font-size: 39px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
    font-family: "Jost", sans-serif;
}
@media only screen and (max-width: 991px) {
    .ao-kicker {
        font-size: 28px;
    }
}
/* Blog post title is the H1 now (was an <h3>). */
.blog-item.details .blog-content h1.title {
    font-size: 26px;
    text-align: left;
    margin: 0 0 15px;
}
/* Banner label that used to be a heading on the blog post page. */
.banner-content-header p.title {
    margin-bottom: 0;
}
/* Booking calendar: today's date was an <h1>. */
.ao-today-date {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: inherit;
}
@media (max-width: 768px) {
    .ao-today-date {
        font-size: 2rem;
    }
}
/* Sidebar/section titles that went from h4/h5 to h2/h3 keep their size. */
.ao-h-small {
    font-size: 20px !important;
}
.ao-h-xsmall {
    font-size: 18px !important;
}

/* ---------- Home: proof numbers and latest blog posts ---------- */
.ao-proof-band {
    padding: 50px 0 10px;
}
.ao-proof-list {
    display: -webkit-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ao-proof-list li {
    flex: 1 1 220px;
    max-width: 320px;
    padding: 24px;
    border: 2px solid #040404;
    border-radius: 16px;
    text-align: center;
    background: #fff;
}
.ao-proof-number {
    display: block;
    font-size: 40px;
    font-weight: 700;
    color: #C13911;
    line-height: 1.1;
    font-family: "Jost", sans-serif;
}
.ao-blog-teasers {
    padding: 60px 0 40px;
}
.ao-blog-card {
    position: relative;
    height: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    -webkit-transition: box-shadow 0.25s ease, border-color 0.25s ease;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.ao-blog-card:hover,
.ao-blog-card:focus-within {
    border-color: #F15B2B;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}
.ao-blog-card img {
    width: 100%;
    height: 200px;
    -o-object-fit: cover;
    object-fit: cover;
}
.ao-blog-card-body {
    padding: 20px;
}
.ao-blog-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}
.ao-blog-card h3 a {
    color: #1C1C1C;
}
.ao-blog-card:hover h3 a,
.ao-blog-card:focus-within h3 a {
    color: #C13911;
}

/* ---------- SEO landing pages ---------- */
.ao-page-intro {
    padding: 60px 0 20px;
}
.ao-lead p {
    font-size: 18px;
    line-height: 1.7;
}
.ao-proof {
    display: inline-block;
    padding: 8px 14px;
    border-left: 4px solid #F15B2B;
    background: #FFE5C7;
    font-weight: 600;
    color: #1C1C1C;
}
.ao-cta-row {
    display: -webkit-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}
.ao-cta-row .btn--base {
    width: auto;
}
.ao-btn-secondary {
    display: inline-block;
    padding: 13px 26px;
    border: 2px solid #040404;
    border-radius: 6px;
    font-weight: 700;
    color: #040404;
    background: transparent;
}
.ao-btn-secondary:hover {
    background: #040404;
    color: #fff;
}
.ao-btn-secondary--light {
    border-color: #fff;
    color: #fff;
}
.ao-btn-secondary--light:hover {
    background: #fff;
    color: #040404;
}
.ao-updated {
    margin-top: 14px;
    font-size: 14px;
    color: #555;
}
.ao-intro-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
}
.ao-article-section {
    padding: 30px 0 40px;
}
.ao-article {
    max-width: 860px;
    margin: 0 auto;
}
.ao-article h2 {
    font-size: 30px;
    margin: 45px 0 14px;
}
.ao-article h3 {
    font-size: 21px;
    margin: 24px 0 8px;
}
.ao-article p,
.ao-article li {
    font-size: 17px;
    line-height: 1.75;
}
.ao-article ul,
.ao-article ol {
    margin: 0 0 18px 22px;
    padding: 0;
}
.ao-article ul {
    list-style: disc;
}
.ao-article ol {
    list-style: decimal;
}
.ao-article li {
    margin-bottom: 8px;
}
.ao-article a {
    color: #C13911;
    text-decoration: underline;
}
.ao-table-wrap {
    overflow-x: auto;
    margin: 18px 0;
}
.ao-article table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}
.ao-article caption {
    caption-side: top;
    padding: 0 0 8px;
    font-weight: 700;
    color: #1C1C1C;
}
.ao-article th,
.ao-article td {
    padding: 10px 12px;
    border: 1px solid #cfcfcf;
    text-align: left;
    vertical-align: top;
}
.ao-article thead th {
    background: #040404;
    color: #fff;
}
.ao-article tbody th {
    background: #fafafa;
    font-weight: 600;
}
.ao-faq-item {
    padding: 4px 0 10px;
    border-bottom: 1px solid #e3e3e3;
}
.ao-related {
    padding: 30px 0;
    background: #EBEDE5;
}
.ao-related h2 {
    font-size: 28px;
}
.ao-related-list {
    display: -webkit-box;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ao-related-list a {
    font-weight: 600;
    color: #C13911;
    text-decoration: underline;
}
.ao-cta-band {
    padding: 50px 0;
    background: #040404;
    color: #f0f0f0;
    text-align: center;
}
.ao-cta-band h2 {
    color: #fff;
}
.ao-cta-band p {
    color: #f0f0f0;
}
.ao-cta-band .ao-cta-row {
    justify-content: center;
}

/* ---------- Footer service links ---------- */
.ao-footer-small {
    font-size: 14px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .ao-card,
    .ao-blog-card,
    .ao-icon-swap img,
    .ao-icon-swap .ao-icon-anim {
        -webkit-transition: none;
        transition: none;
    }
    .ao-icon-swap .ao-icon-anim {
        display: none;
    }
    .service-item:hover,
    .service-item:hover .service-icon img {
        -webkit-transform: none !important;
        transform: none !important;
    }
}
