/* NDTC Responsive Spacing System */
:root {
    --section-space: 80px;
    --section-space2: 76px;

    --ndtc-space-section-xl: 80px;
    --ndtc-space-section-lg: 64px;
    --ndtc-space-section-md: 52px;
    --ndtc-space-section-sm: 40px;

    --ndtc-space-page-header-xl: 88px;
    --ndtc-space-page-header-lg: 72px;
    --ndtc-space-page-header-md: 56px;
    --ndtc-space-page-header-sm: 44px;
}

/* Section padding */
.section-space {
    padding-top: var(--ndtc-space-section-xl);
    padding-bottom: var(--ndtc-space-section-xl);
}

.section-space2 {
    padding-top: var(--section-space2);
    padding-bottom: var(--ndtc-space-section-xl);
}

.section-space-top,
.section-space-top2 {
    padding-top: var(--ndtc-space-section-xl);
}

.section-space-bottom,
.section-space-bottom2 {
    padding-bottom: var(--ndtc-space-section-xl);
}

/* Row gutters */
@media (max-width: 991px) {
    .section-space {
        padding-top: var(--ndtc-space-section-lg);
        padding-bottom: var(--ndtc-space-section-lg);
    }

    .section-space2 {
        padding-top: var(--ndtc-space-section-lg);
        padding-bottom: var(--ndtc-space-section-lg);
    }

    .section-space-top,
    .section-space-top2 {
        padding-top: var(--ndtc-space-section-lg);
    }

    .section-space-bottom,
    .section-space-bottom2 {
        padding-bottom: var(--ndtc-space-section-lg);
    }

    .page-header {
        padding-top: var(--ndtc-space-page-header-lg);
        padding-bottom: var(--ndtc-space-page-header-lg);
    }

    .product-page {
        padding-top: 64px;
    }

    .service-details__policies {
        padding: 48px 0;
    }

    .consultations-two__top {
        margin-bottom: 48px;
    }

    .sec-title {
        margin-bottom: 40px;
    }

    .gutter-y-60 {
        --bs-gutter-y: 40px;
    }

    .gutter-y-50 {
        --bs-gutter-y: 32px;
    }

    .gutter-y-40 {
        --bs-gutter-y: 28px;
    }
}

@media (max-width: 767px) {
    .section-space {
        padding-top: var(--ndtc-space-section-md);
        padding-bottom: var(--ndtc-space-section-md);
    }

    .section-space2 {
        padding-top: var(--ndtc-space-section-md);
        padding-bottom: var(--ndtc-space-section-md);
    }

    .section-space-top,
    .section-space-top2 {
        padding-top: var(--ndtc-space-section-md);
    }

    .section-space-bottom,
    .section-space-bottom2 {
        padding-bottom: var(--ndtc-space-section-md);
    }

    .page-header {
        padding-top: var(--ndtc-space-page-header-md);
        padding-bottom: var(--ndtc-space-page-header-md);
    }

    .page-header__title {
        margin-bottom: 10px;
    }

    .product-page {
        padding-top: 48px;
    }

    .service-details__content {
        margin-top: 36px;
    }

    .service-details__policies {
        padding: 36px 0;
    }

    .service-details__policies__image img {
        height: 260px;
    }

    .service-details__policies__content {
        padding: 8px 0 0;
    }

    .consultations-two__top {
        margin-bottom: 36px;
    }

    .sec-title {
        margin-bottom: 32px;
    }

    .sec-title__top {
        margin-bottom: 18px;
    }

    .all-products-overview {
        margin-bottom: 32px;
    }

    .gutter-y-60 {
        --bs-gutter-y: 30px;
    }

    .gutter-y-50 {
        --bs-gutter-y: 28px;
    }

    .gutter-y-40 {
        --bs-gutter-y: 24px;
    }

    .gutter-y-30 {
        --bs-gutter-y: 22px;
    }
}

@media (max-width: 575px) {
    .section-space {
        padding-top: var(--ndtc-space-section-sm);
        padding-bottom: var(--ndtc-space-section-sm);
    }

    .section-space2 {
        padding-top: var(--ndtc-space-section-sm);
        padding-bottom: var(--ndtc-space-section-sm);
    }

    .section-space-top,
    .section-space-top2 {
        padding-top: var(--ndtc-space-section-sm);
    }

    .section-space-bottom,
    .section-space-bottom2 {
        padding-bottom: var(--ndtc-space-section-sm);
    }

    .page-header {
        padding-top: var(--ndtc-space-page-header-sm);
        padding-bottom: var(--ndtc-space-page-header-sm);
    }

    .product-page {
        padding-top: 40px;
    }

    .service-details__policies {
        padding: 28px 0;
    }

    .service-details__policies__image img {
        height: 220px;
    }

    .service-details__policies__list li {
        margin-bottom: 10px;
    }

    .service-details__policies__list p {
        padding-left: 20px;
    }

    .consultations-two__top {
        margin-bottom: 28px;
    }

    .sec-title {
        margin-bottom: 24px;
    }

    .all-products-overview {
        margin-bottom: 24px;
        padding: 18px;
    }

    .gutter-y-60,
    .gutter-y-50 {
        --bs-gutter-y: 24px;
    }

    .gutter-y-40,
    .gutter-y-30 {
        --bs-gutter-y: 20px;
    }
}

@media (max-width: 767px) {
    .product-page .row.gutter-y-60 > .col-lg-4 {
        margin-top: 8px;
    }
}

/* Language switcher (GTranslate) */
.topbar,
.topbar__right,
.topbar__language,
.main-header,
.main-header__inner,
.main-header__right,
.sticky-header--cloned,
.sticky-header--cloned .main-header__inner,
.sticky-header--cloned .main-header__right {
    overflow: visible !important;
}

.topbar__language {
    position: relative;
    top: 0;
    flex-shrink: 0;
    z-index: 10050;
    overflow: visible !important;
}

.main-header__right .topbar__language {
    margin-right: 14px;
}

.topbar__language .gt_switcher {
    width: auto !important;
    min-width: 36px;
    position: relative;
    z-index: 10050;
    overflow: visible !important;
    font-family: var(--insuba-font, "Roboto", sans-serif);
    line-height: 1.2 !important;
}

.topbar__language .gt_switcher .gt_selected {
    width: auto;
    position: relative;
    z-index: 2;
    background: transparent !important;
}

/* Trigger: flag only, blends with header/topbar */
.topbar__language .gt_switcher .gt_selected a,
.topbar__language .gt_switcher .gt_selected a:hover {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
    line-height: 1 !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 0 !important;
    overflow: visible;
    box-sizing: border-box !important;
    transition: opacity 0.2s ease;
}

.topbar__language .gt_switcher .gt_selected a:hover {
    opacity: 0.82;
}

.topbar__language .gt_switcher .gt_selected a:after {
    display: none !important;
}

.topbar__language .gt_switcher .gt_selected img {
    width: 24px !important;
    height: auto !important;
    max-height: 18px;
    object-fit: contain;
    display: inline-block !important;
    opacity: 1 !important;
    margin: 0 !important;
}

/* Dropdown panel — closed */
.topbar__language .gt_switcher .gt_option {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: auto !important;
    right: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
    z-index: 10051 !important;
    box-sizing: border-box !important;
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: none !important;
}

/* Dropdown panel — open */
.topbar__language .gt_switcher:has(.gt_selected a.open) .gt_option {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    min-width: 156px !important;
    padding: 6px 0 !important;
    background: #fff !important;
    border: 1px solid rgba(var(--insuba-base-rgb, 46, 94, 170), 0.12) !important;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 53, 100, 0.12);
    max-height: min(280px, 50vh) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: none !important;
}

.topbar__language .gt_switcher .gt_option::-webkit-scrollbar {
    width: 4px;
}

.topbar__language .gt_switcher .gt_option::-webkit-scrollbar-thumb {
    background: rgba(var(--insuba-base-rgb, 46, 94, 170), 0.25);
    border-radius: 999px;
}

/* Each language row: flag + label */
.topbar__language .gt_switcher .gt_option a {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 42px;
    padding: 8px 14px !important;
    margin: 0 !important;
    font-size: var(--ndtc-text-sm, 0.875rem) !important;
    font-weight: 400;
    line-height: var(--ndtc-leading-snug, 1.35) !important;
    color: var(--insuba-black, #122f51) !important;
    background: #fff !important;
    border: 0 !important;
    white-space: nowrap;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.topbar__language .gt_switcher .gt_option a.gt-current {
    display: none !important;
}

.topbar__language .gt_switcher .gt_option a:not(:last-child) {
    border-bottom: 1px solid rgba(var(--insuba-base-rgb, 46, 94, 170), 0.07);
}

.topbar__language .gt_switcher .gt_option a:hover {
    background-color: rgba(var(--insuba-base-rgb, 46, 94, 170), 0.07) !important;
    color: var(--insuba-base, #2e5eaa) !important;
}

.topbar__language .gt_switcher .gt_option a img {
    width: 22px !important;
    height: auto !important;
    max-height: 16px;
    flex-shrink: 0;
    object-fit: contain;
    display: inline-block !important;
    opacity: 1 !important;
    margin: 0 !important;
}

.topbar__language .gt_switcher .gt_option a span {
    font-size: inherit !important;
    line-height: inherit;
}

.sticky-header--cloned.active .main-header__right {
    display: flex;
    align-items: center;
    overflow: visible !important;
}

.sticky-header--cloned .main-header__right .topbar__language {
    display: block;
}

/* Mobile / tablet header layout */
@media (max-width: 1199px) {
    .main-header__right {
        gap: 0;
    }

    .main-header__right .topbar__language {
        margin-right: 12px;
    }

    .topbar__language .gt_switcher:has(.gt_selected a.open) .gt_option {
        min-width: 148px !important;
        background: #fff !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 8px;
        padding: 4px 0 !important;
    }

    .topbar__language .gt_switcher:has(.gt_selected a.open) .gt_option a {
        min-height: 40px;
        padding: 7px 12px !important;
        background: #fff !important;
    }

    .topbar__language .gt_switcher:has(.gt_selected a.open) .gt_option a:not(:last-child) {
        border-bottom: none;
    }

    .topbar__language .gt_switcher:has(.gt_selected a.open) .gt_option a:hover {
        background-color: rgba(var(--insuba-base-rgb, 46, 94, 170), 0.08) !important;
    }
}

@media (max-width: 575px) {
    .topbar__language {
        margin-left: 0 !important;
    }

    .topbar__language .gt_switcher .gt_selected a,
    .topbar__language .gt_switcher .gt_selected a:hover {
        width: 34px !important;
        height: 34px !important;
    }

    .topbar__language .gt_switcher .gt_selected img {
        width: 22px !important;
        max-height: 16px;
    }

    .topbar__language .gt_switcher:has(.gt_selected a.open) .gt_option {
        min-width: 140px !important;
    }

    .topbar__language .gt_switcher:has(.gt_selected a.open) .gt_option a {
        min-height: 38px;
        padding: 6px 10px !important;
        gap: 8px;
    }

    .main-header__right .topbar__language {
        margin-right: 10px;
    }
}

.scroll-to-top {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--insuba-base, #2e5eaa);
    color: #fff;
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) !important;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(var(--insuba-base-rgb, 46, 94, 170), 0.35);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
    text-decoration: none;
}

.scroll-to-top__text,
.scroll-to-top__wrapper,
.scroll-to-top__inner {
    display: none !important;
}

.scroll-to-top__icon {
    font-size: 18px;
    line-height: 1;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) !important;
    bottom: 28px;
    right: 28px;
}

.scroll-to-top:hover,
.scroll-to-top:focus {
    background-color: var(--insuba-gray6, #3c5c83);
    color: #fff;
    outline: none;
}

@media (max-width: 991px) {
    .scroll-to-top,
    .scroll-to-top.show {
        width: 46px;
        height: 46px;
        bottom: 22px;
        right: 20px;
    }
}

@media (max-width: 575px) {
    .scroll-to-top,
    .scroll-to-top.show {
        width: 44px;
        height: 44px;
        bottom: 18px;
        right: 16px;
    }

    .scroll-to-top__icon {
        font-size: 16px;
    }
}

/* Footer layout */
.ndtc-footer.main-footer--home-2 .main-footer__top {
    padding-top: clamp(64px, 5vw, 96px);
    padding-bottom: clamp(48px, 4vw, 72px);
}

.ndtc-footer__grid {
    align-items: flex-start;
}

.ndtc-footer .footer-widget__title {
    margin-bottom: 24px;
    font-size: var(--ndtc-text-lg, 1.125rem);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.ndtc-footer .footer-widget__title::after {
    width: 36px;
    height: 3px;
    border-radius: 999px;
    background: var(--insuba-base, #2e5eaa);
}

.ndtc-footer__about-logo {
    display: inline-block;
    margin-bottom: 18px;
}

.ndtc-footer__about-logo img {
    max-width: 180px;
    height: auto;
}

.ndtc-footer__about-info {
    display: grid;
    gap: 12px;
}

.ndtc-footer__about-card.ndtc-footer__contact-card {
    max-width: 100%;
}

.ndtc-footer__about-card .ndtc-footer__company-name {
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: var(--ndtc-text-md, 1rem);
    line-height: var(--ndtc-leading-snug, 1.35);
}

.ndtc-footer__about-card .ndtc-footer__contact-list {
    margin: 0;
}

.ndtc-footer__links .footer-widget__links li + li {
    margin-top: 12px;
}

.ndtc-footer__links .footer-widget__links li a {
    position: relative;
    display: inline-block;
    padding-left: 14px;
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.ndtc-footer__links .footer-widget__links li a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--insuba-base, #2e5eaa);
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.ndtc-footer__links .footer-widget__links li a:hover {
    color: #fff;
    padding-left: 18px;
}

.ndtc-footer__links .footer-widget__links li a:hover::before {
    transform: scale(1.15);
}

.ndtc-footer__contact-grid {
    display: grid;
    gap: 16px;
}

.ndtc-footer__contact-card {
    padding: 18px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.ndtc-footer__contact-card-title {
    margin: 0 0 12px;
    font-size: var(--ndtc-text-sm, 0.875rem);
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ndtc-footer__contact-list {
    margin: 0;
}

.ndtc-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ndtc-footer__contact-item + .ndtc-footer__contact-item {
    margin-top: 10px;
}

.ndtc-footer__contact-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
}

.ndtc-footer__contact-icon--phone i {
    transform: scaleX(-1);
}

.ndtc-footer__contact-text {
    flex: 1;
    min-width: 0;
    font-size: var(--ndtc-text-sm, 0.875rem);
    line-height: var(--ndtc-leading-normal, 1.6);
    color: rgba(255, 255, 255, 0.88);
}

.ndtc-footer__contact-text a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ndtc-footer__contact-text a:hover {
    color: #fff;
}

.ndtc-footer__bottom.main-footer__bottom {
    background: linear-gradient(90deg, rgba(15, 54, 103, 1) 0%, rgba(46, 94, 170, 1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ndtc-footer__bottom .main-footer__bottom__inner {
    padding: 8px 0;
}

.ndtc-footer__bottom .main-footer__copyright {
    font-size: var(--ndtc-text-xs, 0.75rem);
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.88);
}

@media (min-width: 992px) {
    .ndtc-footer__contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    .ndtc-footer__about-info,
    .ndtc-footer__about-card.ndtc-footer__contact-card {
        max-width: none;
    }
}

@media (max-width: 767px) {
    .ndtc-footer .main-footer__shape-one,
    .ndtc-footer .main-footer__shape-two {
        opacity: 0.35;
    }
}

@media (max-width: 575px) {
    .ndtc-footer__contact-card,
    .ndtc-footer__about-card {
        padding: 14px 16px;
    }
}
