/*
 * Additions on top of the AIERA template stylesheet. Everything here is either
 * chrome the template didn't ship (WhatsApp button) or a fix for markup that is
 * now driven by the database rather than hand-written demo content.
 */

/* --- Slim page banner ---------------------------------------------------
 * The template pads the breadcrumb 150px/90px and lays it out as a flex row
 * with a 160px gap for a globe image we no longer render. Tighten it up and
 * drop the gap so the heading sits left with the crumbs under it.
 */
.breadcrumb-wrapper .page-heading {
    padding: 130px 0 45px;
    gap: 0;
}

.breadcrumb-wrapper .page-heading .left-content .breadcrumb-items {
    margin-top: 6px;
    flex-wrap: wrap;
    align-items: center;
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

/* Separator bullets shouldn't compete with the links. */
.breadcrumb-wrapper .page-heading .left-content .breadcrumb-items li {
    opacity: 1;
}

.breadcrumb-wrapper .page-heading .left-content .breadcrumb-items li:not(:has(a)) {
    opacity: .45;
}

@media (max-width: 1200px) {
    .breadcrumb-wrapper .page-heading {
        padding: 115px 0 35px;
    }
}
@media (max-width: 991px) {
    .breadcrumb-wrapper .page-heading {
        padding: 95px 0 35px;
    }
}

@media (max-width: 575px) {
    .breadcrumb-wrapper .page-heading {
        padding: 95px 0 28px;
    }
}

/* Banner headings run long now that they carry the target keyword, so the
 * template's 96px title is scaled to 60% at every breakpoint — same reduction
 * as the home hero. Restated in full for the same reason: a percentage
 * font-size would resolve against .left-content, not against the 96px.
 */
.breadcrumb-wrapper .page-heading .left-content h1 {
    font-size: 57.6px;
}

@media (max-width: 1600px) {
    .breadcrumb-wrapper .page-heading .left-content h1 {
        font-size: 48px;
    }
}

@media (max-width: 1399px) {
    .breadcrumb-wrapper .page-heading .left-content h1 {
        font-size: 36px;
    }
}

@media (max-width: 991px) {
    .breadcrumb-wrapper .page-heading .left-content h1 {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .breadcrumb-wrapper .page-heading .left-content h1 {
        font-size: 24px;
    }
}

@media (max-width: 575px) {
    .breadcrumb-wrapper .page-heading .left-content h1 {
        font-size: 21px;
    }
}

/* --- Brand logo sizing --------------------------------------------------
 * The template's logo was 196x43 and relied on its own intrinsic size. Ours is
 * 252x100 (a stacked wordmark), so without a height cap it would more than
 * double the header. Constrain by height and let width follow.
 */
.logo img,
.offcanvas__logo img {
    height: 50px;
    width: auto;
}

.footer-widget-wrapper .footer-left-content > a img {
    height: 58px;
    width: auto;
}

.search_wrapper .search_top .search_logo img {
    height: 54px;
    width: auto;
}

@media (max-width: 767px) {

    .logo img,
    .offcanvas__logo img {
        height: 42px;
    }

    .footer-widget-wrapper .footer-left-content > a img {
        height: 48px;
    }
}

/* --- WhatsApp float ---------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 120px;
    z-index: 99;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 26px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
    transition: transform .3s ease, box-shadow .3s ease;
}

.whatsapp-float:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, .45);
}

@media (max-width: 575px) {
    .whatsapp-float {
        right: 16px;
        bottom: 84px;
        width: 46px;
        height: 46px;
        font-size: 22px;
    }
}

/* --- Form feedback ------------------------------------------------------ */
.contact-form-box .text-danger,
.contact-form-box .text-success {
    font-size: 14px;
}

/* The template styles inputs but never had a <select>; match the input look. */
.form-clt select {
    width: 100%;
    height: 60px;
    padding: 0 25px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    background-color: transparent;
    color: inherit;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23888'%3E%3Cpath d='M8 11 3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
}

.form-clt select option {
    color: #111;
}

/* --- Pagination --------------------------------------------------------- */
.site-pagination {
    margin-top: 60px;
}

.site-pagination .pagination {
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-pagination .page-link {
    min-width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, .08);
    color: inherit;
}

.site-pagination .page-item.active .page-link {
    background: var(--theme, #6a47ed);
    border-color: var(--theme, #6a47ed);
    color: #fff;
}

/* --- Rich text from the admin ------------------------------------------ */
.rich-text > :last-child {
    margin-bottom: 0;
}

.rich-text ul,
.rich-text ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.rich-text ul {
    list-style: disc;
}

.rich-text ol {
    list-style: decimal;
}

.rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* --- Empty states ------------------------------------------------------- */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    border: 1px dashed rgba(0, 0, 0, .12);
    border-radius: 12px;
}

/* --- Home hero heading --------------------------------------------------
 * The template sets the hero h1 and its italic span to 96px, stepping down to
 * 28px on phones. Scaled to 60% of those sizes at every breakpoint; the ramp
 * is restated in full because a percentage font-size would resolve against
 * .hero-content, not against the value being overridden.
 */
.hero-1 .hero-content h1,
.hero-1 .hero-content span {
    font-size: 57.6px;
}

@media (max-width: 1600px) {
    .hero-1 .hero-content h1,
    .hero-1 .hero-content span {
        font-size: 48px;
    }
}

@media (max-width: 1399px) {
    .hero-1 .hero-content h1,
    .hero-1 .hero-content span {
        font-size: 33px;
    }
}

@media (max-width: 991px) {
    .hero-1 .hero-content h1,
    .hero-1 .hero-content span {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .hero-1 .hero-content h1,
    .hero-1 .hero-content span {
        font-size: 19.8px;
    }
}

@media (max-width: 575px) {
    .hero-1 .hero-content h1,
    .hero-1 .hero-content span {
        font-size: 16.8px;
    }
}

/* --- Dropdown caret ------------------------------------------------------
 * Menu items with a submenu get a chevron. The template already spaces an
 * inline <i> inside a menu link (main.css: .main-menu ul li a i), so this only
 * adds the open/hover rotation.
 *
 * meanmenu clones the header nav for mobile and appends its own +/- expander to
 * every parent row, so the chevron is hidden there rather than duplicating it.
 */
.header-main .main-menu ul li.has-dropdown > a i {
    transition: transform 0.3s ease-in-out;
}

.header-main .main-menu ul li.has-dropdown:hover > a i {
    transform: rotate(180deg);
}

.mean-container .mean-nav ul li a i {
    display: none;
}

/* --- Testimonial client link --------------------------------------------
 * Each quote cites the site we built for that client. Kept quiet so it reads
 * as attribution rather than a call to action.
 */
.testimonial-card-item .testimonial-content .testimonial-site {
    display: inline-block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 500;
    word-break: break-word;
    color: var(--theme);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.testimonial-card-item .testimonial-content .testimonial-site:hover {
    opacity: .7;
}

/* --- Blog sidebar categories --------------------------------------------
 * A separated list in place of the template's two-column thumbnail grid,
 * whose stock images bore no relation to the category they sat under.
 */
.news-main-sideber .category-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-main-sideber .category-list li + li {
    border-top: 1px solid rgba(17, 17, 17, .1);
}

.news-main-sideber .category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    color: var(--header);
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

.news-main-sideber .category-list li a:hover,
.news-main-sideber .category-list li.active a {
    color: var(--theme);
}

.news-main-sideber .category-list li a .count {
    flex-shrink: 0;
    min-width: 26px;
    padding: 1px 7px;
    border-radius: 20px;
    background: rgba(17, 17, 17, .06);
    font-size: 13px;
    text-align: center;
}

/* --- Article tags --------------------------------------------------------
 * Tags moved out of the meta row, where the template's pill styling squeezed
 * multi-word tags into ovals, and down to the end of the article as links.
 * The template only styles .tagcloud inside the sidebar, so the pills are
 * restated here.
 */
.news-details-content .post-tags {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(17, 17, 17, .1);
}

.news-details-content .post-tags h5 {
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 700;
}

.news-details-content .post-tags .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-details-content .post-tags .tagcloud a {
    display: inline-block;
    padding: 10px 18px;
    line-height: 1;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
    background: #F8F8F8;
    border: 1px solid #D1D1D1;
    border-radius: 100px;
    color: var(--header);
    transition: all 0.3s ease-in-out;
}

.news-details-content .post-tags .tagcloud a:hover {
    background-color: var(--theme);
    border-color: var(--theme);
    color: var(--white);
}

/* --- Article meta category ----------------------------------------------
 * The template's meta row is plain grey text, so a link dropped into it needs
 * its own treatment to read as clickable.
 */
.news-details-content .top-list-item .list span.post-category a {
    font-weight: 600;
    color: var(--theme);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.3s ease-in-out;
}

.news-details-content .top-list-item .list span.post-category a:hover {
    opacity: .7;
}

/* --- Sticky footer CTA ---------------------------------------------------
 * Pinned action bar, phones and tablets only (<= 991px). On desktop the header
 * already carries a "Get In Touch" button, and a permanent bottom strip there
 * costs more than it earns.
 *
 * Colours are sampled from the logo rather than the template palette: #8000CB
 * is the mark's dominant purple and #0C4366 its deep teal. Both carry white
 * text comfortably (7.55:1 and 10.45:1); the logo's cyan would not (2.05:1),
 * which is why the gradient stops at the teal.
 *
 * Everything that has to clear the bar — the footer, the WhatsApp float, the
 * back-to-top button — is adjusted inside the media query only, so desktop
 * keeps the template's own spacing untouched.
 */
:root {
    --brand-purple: #8000CB;
    --brand-teal: #0C4366;
    --sticky-cta-h: 74px;
}

.sticky-cta {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    background: var(--white);
    border-top: 1px solid rgba(17, 17, 17, .08);
    box-shadow: 0 -4px 20px rgba(17, 17, 17, .08);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}

.sticky-cta__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
}

.sticky-cta__btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 100px;
    font-family: "Urbanist", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
}

.sticky-cta__btn i {
    font-size: 14px;
}

.sticky-cta__btn--outline {
    border: 1.5px solid var(--brand-purple);
    color: var(--brand-purple);
    background: var(--white);
}

.sticky-cta__btn--outline:hover {
    background: var(--brand-purple);
    color: var(--white);
}

.sticky-cta__btn--solid {
    border: 1.5px solid transparent;
    color: var(--white);
    background: linear-gradient(90deg, var(--brand-purple) 0%, var(--brand-teal) 100%);
}

.sticky-cta__btn--solid:hover {
    color: var(--white);
    filter: brightness(1.12);
}

@media (max-width: 991px) {
    .sticky-cta {
        display: block;
    }

    /* Keep the bar clear of the footer's last row and the floating buttons. */
    .footer-section,
    footer {
        padding-bottom: var(--sticky-cta-h);
    }

    .whatsapp-float {
        bottom: calc(100px + var(--sticky-cta-h));
    }

    .back-to-top {
        bottom: calc(30px + var(--sticky-cta-h));
    }
}

@media (max-width: 575px) {
    :root {
        --sticky-cta-h: 68px;
    }

    .sticky-cta {
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    }

    .sticky-cta__inner {
        gap: 8px;
    }

    .sticky-cta__btn {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 14px;
    }

    /* The template hides .back-to-top below 575px (main.css), so the WhatsApp
       button drops into that freed slot instead of floating high up the screen
       with nothing beneath it. */
    .whatsapp-float {
        bottom: calc(30px + var(--sticky-cta-h));
    }
}
