/* Shared spacing and interaction rules, loaded after each page's theme. */
:root {
    --tg-section-space: 44px;
    --tg-heading-space: 22px;
}
html body .btn:hover,
html body .btn:focus-visible,
html body section#home .premium-hero__cta .btn:hover,
html body section#home .premium-hero__cta .btn:focus-visible,
html body .btn:hover :is(span, i),
html body .btn:focus-visible :is(span, i) {
    color: #fff !important;
}
html body .btn:focus-visible {
    outline: 3px solid #ffb36b;
    outline-offset: 4px;
}
html body .btn:hover,
html body .btn:focus-visible,
html body #process-section .tg-process-promise a:hover,
html body #process-section .tg-process-promise a:focus-visible,
html body section#home .premium-hero__cta .btn:hover,
html body section#home .premium-hero__cta .btn:focus-visible {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}
html body #process-section .tg-process-promise a:hover *,
html body #process-section .tg-process-promise a:focus-visible * {
    color: #fff !important;
}
html body .tg-section-badge,
html body .tg-process-divider {
    display: none !important;
}
html body.home-page #services .row.g-4 {
    margin-top: calc(-1 * var(--bs-gutter-y)) !important;
}
html body.home-page #process-section .tg-process-grid {
    margin-top: 0 !important;
}
html body.home-page #why-us .tg-why-stats {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
}
html body.home-page #services .tg-service-card {
    position: relative;
}
html body.home-page #services :is(.tg-service-content, .tg-service-card-link) {
    position: static !important;
}
html body.home-page #services .tg-service-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
}
html body.home-page #services .tg-service-card:focus-within {
    outline: 3px solid #ff7a00;
    outline-offset: 4px;
}
html body.home-page #services .tg-service-card:hover {
    cursor: pointer;
}
html body.home-page > section:not(#home):not(#tg-spacing-lock),
html body :is(section.space-ptb, section.tg-home-section) {
    padding-top: var(--tg-section-space) !important;
    padding-bottom: var(--tg-section-space) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
html body.home-page > section > :is(.container, .container-fluid) {
    width: min(100% - 48px, 1200px) !important;
    max-width: 1200px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
}
html
    body.home-page
    .tg-home-section:not(#tg-spacing-lock)
    :is(.section-title, .container-fluid > .text-center) {
    margin-top: 0 !important;
    margin-bottom: var(--tg-heading-space) !important;
    padding-bottom: 0 !important;
}
html body.home-page .tg-home-section :is(.section-title h2, .carousel-heading) {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    line-height: 1.2 !important;
}
html
    body.home-page
    .tg-home-section
    :is(.section-title > p, .container-fluid > .text-center > p) {
    max-width: 720px !important;
    margin: 0 auto !important;
    color: #626262 !important;
    line-height: 1.6 !important;
}
html body.home-page :is(.tg-service-card, .tg-trust-card, .tg-portfolio-card) {
    height: 100%;
}
html body .tg-footer--complete .tg-footer-top {
    padding-block: var(--tg-section-space) !important;
}
html body .tg-footer--complete .tg-footer-contact-card {
    height: auto !important;
    min-height: 70px !important;
}
html body .tg-footer--complete .tg-footer-contact-card--phone > i,
html body .tg-footer--complete .tg-footer-contact-card--email > i {
    color: #ff7a00 !important;
    background: rgba(255, 122, 0, 0.12) !important;
}
html body .tg-footer--complete .tg-footer-contact-card--whatsapp > i {
    color: #59c526 !important;
    background: rgba(89, 197, 38, 0.1) !important;
}

.tg-brand-slider {
    width: 100%;
}
.tg-brand-viewport {
    overflow: hidden;
    padding-block: 12px;
}
.tg-brand-track {
    display: flex;
    width: max-content;
}
.tg-brand-group {
    display: flex;
    gap: 20px;
    padding-right: 20px;
    flex: 0 0 auto;
}
.tg-brand-item {
    width: 220px;
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    border: 1px solid #e9e9e9;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 15px #00000005;
}
.tg-brand-item img {
    max-width: 100%;
    max-height: 58px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.tg-brand-slider.is-ready .tg-brand-track {
    animation: tg-brand-scroll 40s linear infinite;
}
.tg-brand-slider:hover .tg-brand-track,
.tg-brand-slider:focus-within .tg-brand-track,
.tg-brand-slider.is-paused .tg-brand-track {
    animation-play-state: paused;
}
.tg-slider-toggle {
    display: block;
    margin: 18px auto 0;
    padding: 7px 16px;
    border: 1px solid #d5d5d5;
    border-radius: 20px;
    background: transparent;
    color: #444;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.tg-slider-toggle:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}
@keyframes tg-brand-scroll {
    to {
        transform: translateX(-50%);
    }
}

.tg-home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.tg-home-blog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px #00000006;
}
.tg-home-blog-art {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 190px;
    padding: 28px;
    background: linear-gradient(135deg, #fff0df, #ffe0bd);
    color: #a74400;
}
.tg-home-blog-art i {
    font-size: 42px;
}
.tg-home-blog-art span {
    font-size: 20px;
    font-weight: 700;
}
.tg-home-blog-card:nth-child(2) .tg-home-blog-art {
    background: linear-gradient(135deg, #111, #343434);
    color: #ff9b43;
}
.tg-home-blog-card:nth-child(3) .tg-home-blog-art {
    background: linear-gradient(135deg, #f2eee9, #e3dbd2);
    color: #573c25;
}
.tg-home-blog-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 26px;
}
.tg-home-blog-category {
    color: #a74400;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
html body #latest-blog h3 {
    margin: 0;
    font-size: 23px;
    line-height: 1.35;
    font-weight: 700;
}
html body #latest-blog h3 a {
    color: #111;
}
html body #latest-blog h3 a:hover {
    color: #b54c00;
}
html body #latest-blog .tg-home-blog-body p {
    margin: 0 0 10px;
    color: #626262;
    line-height: 1.7;
    font-size: 15px;
}
.tg-home-blog-link {
    margin-top: auto;
    color: #a74400;
    font-weight: 650;
}
.tg-home-blog-link span {
    margin-left: 8px;
}
.tg-blog-all {
    margin-top: 36px;
    text-align: center;
}
html body #google-reviews .tg-review-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    width: 100%;
    margin: 0 !important;
    padding: 4px 0 18px;
}
.tg-review-track::-webkit-scrollbar {
    display: none;
}
html body #google-reviews .tg-review-track > div {
    flex: 0 0 calc((100% - 22px) / 2) !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    scroll-snap-align: start;
    display: flex;
}
html body #google-reviews .tg-review-track .tg-testimonial-card {
    width: 100%;
    height: auto !important;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    box-shadow: 0 6px 16px #00000008;
}
html body #google-reviews .tg-review-track .tg-testimonial-author {
    margin-top: auto;
}
.tg-review-controls:not([hidden]) {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.tg-review-controls button {
    border: 1px solid #ddd;
    border-radius: 24px;
    background: #fff;
    color: #222;
    min-height: 40px;
    padding: 8px 18px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.tg-review-controls button:hover,
.tg-review-controls button:focus-visible {
    background: #000;
    color: #fff;
}
.tg-review-controls button:focus-visible,
.tg-review-track:focus-visible {
    outline: 2px solid #ff7a00;
    outline-offset: 3px;
}
@media (max-width: 991px) {
    :root {
        --tg-section-space: 36px;
        --tg-heading-space: 20px;
    }
    .tg-home-blog-grid {
        gap: 18px;
    }
    .tg-home-blog-body {
        padding: 20px;
    }
    html body #latest-blog h3 {
        font-size: 20px;
    }
}
@media (max-width: 767px) {
    :root {
        --tg-section-space: 30px;
        --tg-heading-space: 18px;
    }
    html body.home-page > section > :is(.container, .container-fluid) {
        width: calc(100% - 32px) !important;
    }
    .tg-home-blog-grid {
        grid-template-columns: 1fr;
    }
    .tg-brand-item {
        width: 170px;
        height: 90px;
        padding: 18px;
    }
    .tg-brand-group {
        gap: 14px;
        padding-right: 14px;
    }
    html body #google-reviews .tg-review-track > div {
        flex-basis: 100% !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .tg-brand-slider.is-ready .tg-brand-track {
        animation: none;
    }
    .tg-brand-viewport {
        overflow-x: auto;
    }
    .tg-brand-group[aria-hidden] {
        display: none;
    }
    .tg-slider-toggle {
        display: none;
    }
}

/* Inner-page layout baseline. Homepage styles remain governed by its own rules. */
html body:not(.home-page) {
    overflow-x: clip;
    color: #272727;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}
html
    body:not(.home-page)
    :is(main, section, article, aside, div, form, fieldset) {
    min-width: 0;
}
html body:not(.home-page) :is(img, picture, video, iframe, svg) {
    max-width: 100%;
}
html body:not(.home-page) img {
    height: auto;
}
html
    body:not(.home-page)
    :is(main > section, body > section)
    > :is(.container, .container-fluid, .tg-container, .tg-shell) {
    width: min(100% - 48px, 1200px);
    max-width: 1200px;
    margin-inline: auto;
}
html body:not(.home-page) :is(p, li) {
    line-height: 1.7;
}
html body:not(.home-page) :is(input, select, textarea, button) {
    max-width: 100%;
}
html body:not(.home-page) :is(input, select, textarea) {
    min-width: 0;
}
html
    body:not(.home-page)
    :is(a, button, input, select, textarea):focus-visible {
    outline: 3px solid #ff9a45;
    outline-offset: 3px;
}

/* Keep legacy Bootstrap rows from extending beyond the viewport. */
html body:not(.home-page) .row {
    min-width: 0;
}
html body:not(.home-page) :is(.card, .tg-card, [class*="-card"]) {
    overflow-wrap: anywhere;
}

/* Contact page: balance the information and form columns and keep fields usable. */
html body:not(.home-page):has(#leadForm) #leadForm {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
}
html
    body:not(.home-page)
    #leadForm
    :is(.form-control, input, select, textarea) {
    width: 100%;
    min-height: 48px;
    border-radius: 7px;
    font: inherit;
}
html body:not(.home-page) #leadForm textarea {
    min-height: 132px;
    resize: vertical;
}
html body:not(.home-page) #leadForm label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}
html body:not(.home-page) #leadForm :is(.btn, button[type="submit"]) {
    min-height: 48px;
    padding-inline: 22px;
}

@media (max-width: 767px) {
    html
        body:not(.home-page)
        :is(main > section, body > section)
        > :is(.container, .container-fluid, .tg-container, .tg-shell) {
        width: calc(100% - 32px);
    }
    html body:not(.home-page) :is(.row, [class*="row"]) {
        --bs-gutter-x: 1.25rem;
    }
    html
        body:not(.home-page)
        :is(.section-title, .section-heading, .section-header) {
        text-align: left;
    }
    html
        body:not(.home-page)
        :is(.section-title, .section-heading, .section-header)
        > p {
        max-width: 100%;
    }
    html body:not(.home-page) :is(.btn, button, input[type="submit"]) {
        white-space: normal;
    }
}

/* Mobile homepage: a focused, left-aligned introduction in the brand palette. */
@media (max-width: 767px) {
    html body.home-page section#home.premium-hero {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 48px 0 12px !important;
        background: #fff5eb !important;
        overflow: hidden;
    }
    html body.home-page section#home::before,
    html body.home-page section#home::after {
        display: none !important;
    }
    html body.home-page section#home .premium-hero__container {
        width: calc(100% - 36px) !important;
        max-width: 600px !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }
    html body.home-page section#home .premium-hero__intro {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: left !important;
    }
    html body.home-page section#home .premium-hero__intro #premium-hero-title {
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 22px !important;
        padding: 0 !important;
        font-size: clamp(36px, 9.5vw, 48px) !important;
        font-weight: 800 !important;
        line-height: 1.13 !important;
        letter-spacing: -0.025em !important;
        text-align: left !important;
        white-space: normal !important;
        text-wrap: wrap !important;
        color: #171717 !important;
    }
    html body.home-page section#home .premium-hero__intro .highlight-word,
    html
        body.home-page
        section#home
        .premium-hero__intro
        .highlight-word
        > span {
        display: inline !important;
        margin: 0 !important;
        padding: 0 !important;
        background: none !important;
        color: #ff7a00 !important;
        transform: none !important;
        box-shadow: none !important;
        white-space: normal !important;
    }
    html body.home-page section#home .highlight-word::before,
    html body.home-page section#home .highlight-word::after,
    html body.home-page section#home .premium-hero__mobile-break,
    html body.home-page section#home .premium-hero__subtitle br {
        display: none !important;
    }
    html
        body.home-page
        section#home
        .premium-hero__subtitle:not(#tg-type-lock) {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 18px !important;
        line-height: 1.7 !important;
        text-align: left !important;
        color: #333 !important;
    }
    html body.home-page section#home .premium-hero__cta {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: none !important;
        margin: 26px 0 0 !important;
    }
    html body.home-page section#home .premium-hero__cta .btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100% !important;
        min-height: 54px !important;
        padding: 15px 18px !important;
        border: 1px solid #ff7a00 !important;
        border-radius: 6px !important;
        background: #ff7a00 !important;
        color: #fff !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        box-shadow: none !important;
    }
    html body.home-page section#home .premium-hero__cta .btn i {
        color: inherit !important;
    }
    html body.home-page section#home .premium-hero__cta .btn:hover,
    html body.home-page section#home .premium-hero__cta .btn:focus-visible {
        background: #000 !important;
        border-color: #000 !important;
        color: #fff !important;
    }
    html body.home-page section#home .premium-hero__cta .tg-mobile-cta-note {
        display: block !important;
        min-width: 0 !important;
        margin: 0 !important;
        text-align: left !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1.45 !important;
    }
    html body.home-page section#home .premium-hero__cta .tg-mobile-cta-note a {
        color: #d95a00 !important;
        text-decoration: underline !important;
        text-underline-offset: 3px;
    }
    html body.home-page section#home .premium-hero__grid {
        display: none !important;
    }
    html body.home-page .tg-brands-in-hero {
        display: none !important;
    }
    html body.home-page section#home .tg-brand-slider {
        margin-top: 10px;
        min-width: 0;
    }
    html body.home-page section#home .tg-brand-viewport {
        padding-block: 0;
    }
    html body.home-page section#home .tg-brand-item {
        width: clamp(140px, 40vw, 220px);
        height: 76px;
        padding: 6px 12px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    html body.home-page section#home .tg-brand-item img {
        max-height: 60px;
    }
    html body.home-page section#home .tg-slider-toggle {
        margin-top: 4px;
    }
}

/* Global "Trusted by Growing Brands" strip (rendered above the footer) */
body:not(.service-page) .svc-clients {
    padding: 48px 0;
    background: #fff;
    overflow: hidden;
    border-top: 1px solid #f1ece6;
}
body:not(.service-page) .svc-clients .svc-shell {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}
body:not(.service-page) .svc-clients .svc-bottom-heading {
    max-width: 800px;
    margin: 0 auto 24px;
    text-align: center;
}
body:not(.service-page) .svc-clients .svc-bottom-heading h2 {
    margin: 0 0 12px !important;
    font-size: clamp(28px, 3.2vw, 40px) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em;
    color: #171717 !important;
}
body:not(.service-page) .svc-clients .svc-bottom-heading h2 span {
    color: #ff7a00 !important;
}
body:not(.service-page) .svc-clients .svc-bottom-heading p {
    margin: 0 !important;
    color: #686868 !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
}
body:not(.service-page) .svc-clients .tg-brand-item {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
@media (max-width: 767px) {
    body:not(.service-page) .svc-clients {
        padding: 36px 0;
    }
}

/* Floating green "Call Us" button (fixed to the right edge, above WhatsApp) */
.tg-call-float {
    position: fixed;
    right: 0;
    bottom: 112px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px 9px 9px;
    border-radius: 999px 0 0 999px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff !important;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 10px 26px rgba(22, 163, 74, 0.45);
    transition:
        padding 0.25s,
        box-shadow 0.25s,
        transform 0.25s;
}
.tg-call-float:hover {
    padding-right: 28px;
    box-shadow: 0 14px 32px rgba(22, 163, 74, 0.55);
}
.tg-call-float-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.55);
}
.tg-call-float-icon i {
    font-size: 15px;
    animation: tg-call-ring 2.4s ease-in-out infinite;
}
@keyframes tg-call-ring {
    0%,
    60%,
    100% {
        transform: rotate(0);
    }
    65% {
        transform: rotate(-18deg);
    }
    70% {
        transform: rotate(16deg);
    }
    75% {
        transform: rotate(-12deg);
    }
    80% {
        transform: rotate(8deg);
    }
}
@media (max-width: 767px) {
    .tg-call-float {
        bottom: 88px;
        padding: 7px 14px 7px 7px;
        font-size: 13px;
    }
    .tg-call-float-icon {
        width: 34px;
        height: 34px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .tg-call-float-icon i {
        animation: none;
    }
}

/* Footer on mobile: Company + Services side by side, no empty gaps */
@media (max-width: 767px) {
  html body footer.tg-footer--reference .tg-footer-directory-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 18px !important; margin: 0 !important;
  }
  html body footer.tg-footer--reference .tg-footer-directory-row > section { grid-column: auto !important; }
  html body footer.tg-footer--reference .tg-footer-address-panel { margin-top: 28px !important; }
  html body footer.tg-footer--reference .tg-footer-contact-grid { margin-top: 22px !important; }
}
