html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
    max-width: 100%;
}

.main-wrapper {
    overflow-x: clip;
    max-width: 100%;
}

.swiper {
    overflow: hidden;
}

.navbar-brand img.logo-white,
.navbar-brand img.logo-color,
.offcanvas-header img {
    height: 46px;
    width: auto;
    max-width: 220px;
}

.footer-single-col img.logo-color {
    height: 58px;
    width: auto;
    max-width: 280px;
}

.preloader-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.digtal-marketing-logo img,
.sponsor-logo-bg img,
.logo-grid-item img {
    max-height: 64px;
    width: auto;
    margin: 0 auto;
}

.testimonial-tab-menu img,
.author-info img,
img[alt="author"],
img[alt="user"],
img[alt="testimonial author"],
img[alt="testimonial thumb"] {
    object-fit: cover;
}

/* Scroll fade animations (AOS) — smoother section reveals */
.main-wrapper section:not(.consult-area):not(.cta-subscribe) {
    overflow-x: clip;
}

/* web-design-sydney consult block + overlapping CTA card (ms-call-2) */
.zindex-1 {
    z-index: 1;
}

section.cta-subscribe.ms-call-2 {
    position: relative;
    z-index: 2;
}

[data-aos="fade-up"],
[data-aos="fade-left"],
[data-aos="fade-right"] {
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Scroll to top — brand blue / CTA accent (replaces template green success gradient) */
.theme-scroll-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    line-height: 1;
    border-radius: 50%;
    background: linear-gradient(135deg, #015cc0 0%, #0b4370 100%) !important;
    box-shadow: 0 4px 16px rgba(1, 92, 192, 0.4);
    font-size: 18px;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.theme-scroll-top:after {
    display: none;
}

.theme-scroll-top:hover,
.theme-scroll-top:focus {
    background: #ff3951 !important;
    box-shadow: 0 4px 16px rgba(255, 57, 81, 0.45);
    color: #fff;
    transform: translateY(-2px);
}

.scroll-top.theme-scroll-top.open {
    bottom: 28px;
    right: 28px;
}

@media (max-width: 767.98px) {
    .scroll-top.theme-scroll-top.open {
        bottom: 20px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

/* Services dropdown — narrow single column (matches About menu) */
.services-mega-menu.dropdown-menu {
    min-width: 0;
    width: 260px;
    max-width: min(280px, calc(100vw - 24px));
    padding: 6px 0;
}

.services-mega-menu .dropdown-grid-item {
    width: 100%;
}

.services-mega-menu .dropdown-link {
    padding: 10px 18px;
}

/* Contact page */
.contact-hero-bg {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
    opacity: 0.35;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 67, 112, 0.92) 0%, rgba(1, 92, 192, 0.75) 50%, rgba(20, 20, 43, 0.88) 100%);
}

.contact-hero .z-2 {
    z-index: 2;
}

.contact-hero-float-card {
    position: absolute;
    left: 24px;
    bottom: -24px;
    max-width: calc(100% - 48px);
    border-left: 4px solid #015cc0;
}

@media (min-width: 992px) {
    .contact-hero-visual {
        padding-bottom: 32px;
    }
}

.contact-info-tile {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 4px 20px rgba(11, 67, 112, 0.06);
    border: 1px solid rgba(1, 92, 192, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    min-width: 0;
    max-width: 100%;
}

.contact-info-tile .contact-info {
    min-width: 0;
    max-width: 100%;
}

.contact-info-tile .contact-info-link {
    display: block;
    max-width: 100%;
    line-height: 1.45;
    font-size: 0.875rem;
}

.contact-info-tile .contact-info-link-text {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.contact-page-main .row > [class*='col-'] {
    min-width: 0;
}

.contact-info-tile:hover {
    box-shadow: 0 12px 32px rgba(11, 67, 112, 0.1);
    transform: translateY(-2px);
}

.contact-info-tile .icon-box {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.contact-office-card {
    border: 1px solid rgba(1, 92, 192, 0.08);
}

.contact-channel-card.contact-office-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-office-badge {
    background: linear-gradient(135deg, #015cc0 0%, #0b4370 100%);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 11px;
}

.contact-form-card {
    border: 1px solid rgba(1, 92, 192, 0.08);
    overflow: hidden;
}

.contact-form-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #015cc0 0%, #ff3951 100%);
}

.contact-page-main .register-form .contact-input.form-control {
    border-radius: 10px;
    padding: 0.65rem 1rem;
    border-color: rgba(0, 0, 0, 0.1);
    background: #f9fafc;
}

.contact-page-main .register-form .contact-input.form-control:focus {
    background: #fff;
    border-color: #015cc0;
    box-shadow: 0 0 0 3px rgba(1, 92, 192, 0.12);
}

.contact-submit-btn {
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 57, 81, 0.35);
}

.contact-channel-card {
    border: 1px solid rgba(1, 92, 192, 0.08);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-channel-card:hover {
    border-color: rgba(1, 92, 192, 0.25);
    box-shadow: 0 12px 36px rgba(11, 67, 112, 0.1) !important;
    transform: translateY(-4px);
}
