/* Aivexaon site-wide adjustments (loaded after the theme from includes/head-extra.php). */

/* Homepage intro ("Welcome to Aivexaon…") under the hero: readable centred block. */
.home-secondary-desc {
    max-width: 1000px;
    margin: 56px auto 24px !important;
    padding: 32px 36px !important;
    background: #ffffff;
    border: 1px solid #e3ecef;
    border-left: 4px solid #008080;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(39, 39, 46, .06);
    color: #27272e;
    font-size: 17px;
    line-height: 1.8;
    text-align: left;
}

.home-secondary-desc p {
    margin: 0 0 14px;
    color: #42424a;
}

.home-secondary-desc p:last-child {
    margin-bottom: 0;
}

/* Thank-you / 404 pages */
.ax-thanks {
    padding: 72px 16px 96px;
    background: linear-gradient(180deg, #ecf2f6 0%, #ffffff 70%);
}

.ax-thanks__card {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 40px;
    background: #ffffff;
    border: 1px solid #e3ecef;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(39, 39, 46, .08);
    text-align: center;
    color: #27272e;
}

.ax-thanks__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a3a3, #006565);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 128, 128, .3);
}

.ax-thanks__icon svg {
    width: 42px;
    height: 42px;
}

.ax-thanks__icon--warn {
    background: linear-gradient(135deg, #ffb300, #ff8a00);
    box-shadow: 0 10px 24px rgba(255, 138, 0, .3);
}

.ax-thanks .ax-thanks__title {
    margin: 0 0 12px;
    font-size: clamp(28px, 5vw, 42px) !important;
    line-height: 1.2 !important;
    color: #27272e;
}

.ax-thanks__text {
    margin: 0 auto 28px;
    max-width: 520px;
    font-size: 17px;
    color: #525260;
}

.ax-thanks__steps {
    list-style: none;
    counter-reset: step;
    margin: 0 0 32px;
    padding: 0;
    text-align: left;
}

.ax-thanks__steps li {
    counter-increment: step;
    position: relative;
    margin: 0 0 12px;
    padding: 14px 16px 14px 62px;
    border-radius: 12px;
    background: #f4f8f9;
}

.ax-thanks__steps li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #008080;
    color: #ffffff;
    font-weight: 600;
    line-height: 32px;
    text-align: center;
}

.ax-thanks__steps strong {
    display: block;
    color: #27272e;
}

.ax-thanks__steps span {
    color: #525260;
    font-size: 15px;
}

.ax-thanks__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.ax-thanks__btn {
    display: inline-block;
    padding: 13px 28px;
    border: 2px solid #008080;
    border-radius: 999px;
    color: #008080;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.ax-thanks__btn:hover,
.ax-thanks__btn:focus-visible {
    background: #008080;
    color: #ffffff;
}

.ax-thanks__btn--primary {
    background: #008080;
    color: #ffffff;
}

.ax-thanks__btn--primary:hover,
.ax-thanks__btn--primary:focus-visible {
    background: #006565;
    border-color: #006565;
}

.ax-thanks__note {
    margin: 26px 0 0;
    font-size: 14px;
    color: #757589;
}

.ax-thanks__note a {
    color: #008080;
}

/* Enquiry form (includes/enquiry-form.php), the same on every page */
.ax-form {
    width: 100%;
    margin: 0;
    text-align: left;
}

.ax-form__trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ax-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.ax-form__field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
}

.ax-form__field--full {
    grid-column: 1 / -1;
}

.ax-form .ax-form__label {
    margin: 0 0 6px;
    padding: 0;
    color: #27272e;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}

.ax-form__label span {
    color: #d93025;
}

.ax-form .ax-form__input {
    display: block;
    width: 100%;
    height: auto;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #cfdde3;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: none;
    color: #27272e;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color .15s, box-shadow .15s;
}

.ax-form textarea.ax-form__input {
    min-height: 110px;
    resize: vertical;
}

.ax-form .ax-form__input::placeholder {
    color: #8a8a99;
    opacity: 1;
}

.ax-form .ax-form__input:focus {
    border-color: #008080;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 128, 128, .18);
}

.ax-form .ax-form__input.is-invalid {
    border-color: #d93025;
    box-shadow: 0 0 0 3px rgba(217, 48, 37, .12);
}

.ax-form .ax-form__error {
    margin: 5px 0 0;
    color: #d93025;
    font-size: 13px;
    line-height: 1.35;
}

.ax-form .ax-form__alert {
    margin: 16px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fdecea;
    color: #a1281e;
    font-size: 14px;
}

.ax-form .ax-form__submit {
    display: block;
    width: 100%;
    margin: 20px 0 0;
    padding: 14px 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #00a3a3, #006565);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: filter .15s, transform .15s;
}

.ax-form .ax-form__submit:hover,
.ax-form .ax-form__submit:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.ax-form .ax-form__submit:disabled {
    opacity: .7;
    cursor: wait;
    transform: none;
}

/* ---------- All screen sizes ---------- */
/* Decorative/animated pieces (background map, slide-in images, carousels) must never make the
   page scroll sideways. "clip" (unlike "hidden") keeps the sticky header working. */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

.solution-section {
    overflow-x: clip;
}

/* Top contact bar: Bootstrap row gutters made it ~15px wider than the screen */
.tool-bar > .row {
    margin-left: 0;
    margin-right: 0;
}

p, li, h1, h2, h3, h4, a {
    overflow-wrap: break-word;
}

/* Minimum readable sizes for small print the theme sets at 10–11px */
.card-back-text {
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.solution-info p {
    font-size: 13px !important;
}

.process-card .card-content p {
    font-size: 13px !important;
    line-height: 1.55 !important;
}

/* Homepage hero picture (build/convert.php set_hero_image): left column on desktop, below the text on phones */
.main-hero-section .hero-visual {
    display: flex;
    justify-content: center;
}

.main-hero-section .hero-visual .hero-imgg {
    width: 100%;
    max-width: 560px;
    height: auto;
}

@media (max-width: 767px) {
    .main-hero-section .hero-visual {
        margin-top: 28px;
    }

    .main-hero-section .hero-visual .hero-imgg {
        max-width: 380px;
    }
}

/* ---------- Tablets and phones ---------- */
@media (max-width: 1199px) {
    /* Services page stats strip: the "07+" figure overflowed its column */
    .stats-strip .credibles {
        font-size: 22px !important;
        line-height: 1.2 !important;
        white-space: nowrap;
    }

    /* Contact page "why us" copy scaled down to ~10px */
    .brand-why p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
    /* Homepage hero stats: readable labels, wrap instead of squeezing */
    .main-hero-section .d-flex.mt-4 {
        flex-wrap: wrap;
        gap: 14px 22px;
    }

    .main-hero-section .d-flex.mt-4 > .d-flex {
        padding: 0 !important;
    }

    .main-hero-section .d-flex.mt-4 span,
    .main-hero-section .d-flex.mt-4 p {
        font-size: 13px !important;
    }

    .main-hero-section .d-flex.mt-4 span.fs-3 {
        font-size: 24px !important;
    }

    /* Justified text leaves big gaps between words on narrow screens */
    .home-secondary-desc p,
    .home-secondary-desc h3,
    .service-hero-desc p,
    .secondary-header,
    .client-centric-section .desc,
    .why-choose .secondary-desc,
    .wide_service_description,
    p[style*="justify"] {
        text-align: left !important;
    }

    .ax-thanks__card {
        padding: 36px 20px;
    }

    .ax-form__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .home-secondary-desc {
        margin: 32px 16px 16px !important;
        padding: 22px 20px !important;
        font-size: 16px;
    }
}
