/*
 * Corporate display scale.
 * The original Techor theme uses very large fixed type. This layer keeps the
 * hierarchy but lowers the scale so the portal reads as a professional site.
 */

:root {
    --ivs-font-body: 15px;
    --ivs-font-small: 0.875rem;
    --ivs-font-caption: 0.78rem;
    --ivs-radius-card: 18px;
    --ivs-radius-control: 12px;
}

body {
    font-size: var(--ivs-font-body);
    line-height: 1.6;
}

main p,
main li,
main dd,
main dt,
main blockquote {
    font-size: var(--ivs-font-body);
    line-height: 1.65;
}

h1,
.h1 {
    font-size: clamp(2rem, 3vw, 2.75rem) !important;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

h2,
.h2 {
    font-size: clamp(1.65rem, 2.4vw, 2.2rem) !important;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h3,
.h3 {
    font-size: 1.15rem !important;
    line-height: 1.3;
}

h4,
.h4 {
    font-size: 1.05rem !important;
    line-height: 1.35;
}

p {
    font-size: var(--ivs-font-body);
}

.tv-section-title {
    font-size: clamp(1.65rem, 2.5vw, 2.15rem) !important;
    line-height: 1.2;
}

.tv-section-subtitle {
    font-size: 0.76rem !important;
    letter-spacing: 0.12em;
}

.tv-header-top-list-box,
.tv-header-top-list-box a,
.tv-header-top-social-box a {
    font-size: 0.82rem;
}

.tv-menu-content ul li a {
    font-size: 0.9rem;
}

/* Active section in the header, off-canvas and footer navigation. */
.tv-header-menu .tv-menu-content ul li a.active {
    color: var(--tv-theme-1);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

html[data-theme="dark"] .tv-header-menu .tv-menu-content ul li a.active {
    color: var(--ivs-accent);
}

.itoffcanvas .tv-menu-mobile ul li a.active {
    color: var(--ivs-accent) !important;
    font-weight: 700;
    border-bottom-color: var(--ivs-accent) !important;
}

.tv-footer-widget-menu ul li a.active {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

html[data-theme="dark"] .tv-footer-widget-menu ul li a.active {
    color: var(--ivs-accent);
}

.tv-btn-primary .btn-text1,
.tv-btn-primary .btn-text2,
.tv-btn-secondary .btn-text1,
.tv-btn-secondary .btn-text2 {
    font-size: 0.88rem;
}

/* Header logo and controls. */
.tv-header-logo {
    width: 100% !important;
}

.tv-header-logo img {
    width: 100% !important;
    max-width: 230px !important;
    height: auto !important;
    max-height: none !important;
    padding: 0 !important;
}

html[data-theme="dark"] .theme-toggle {
    color: var(--ivs-accent);
}

/* Header controls share the same 52px height. */
.theme-toggle {
    width: 52px;
    height: 52px;
}

.tv-header-right-action .tv-btn-primary {
    height: 52px;
    min-height: 52px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tv-header-right-action .tv-btn-primary .btn-wrap {
    display: inline-flex;
    align-items: center;
    height: 100%;
    float: none;
}

/* Social icons centered inside their circles/squares. */
.tv-header-top-social-box a,
.tv-footer-widget-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
}

.tv-header-top-social-box a i,
.tv-footer-widget-social a i {
    display: inline-block;
    line-height: 1;
}

html[data-theme="dark"] .tv-footer-widget-social a {
    background: var(--ivs-bg-elevated);
    color: var(--ivs-accent);
}

html[data-theme="dark"] .tv-footer-widget-social a:hover {
    background: var(--tv-theme-1);
    color: #ffffff;
}

/* Cards: simple rounded rectangles and a tighter, readable type scale. */
.single-service-item {
    height: 100%;
    padding: 24px !important;
    border-radius: var(--ivs-radius-card) !important;
}

.single-service-item.mb-30 {
    margin-bottom: 0 !important;
}

.tv-section-title-box {
    margin-bottom: 32px !important;
}

.single-service-item span.service-icon {
    width: 54px;
    height: 54px;
    line-height: 54px;
    margin-bottom: 22px;
    border-radius: var(--ivs-radius-control) !important;
}

.single-service-item h3,
.single-service-item .service-section-title {
    font-size: 1.05rem !important;
}

.single-service-item p {
    font-size: 0.9rem !important;
    line-height: 1.65;
}

.single-service-item .tv-normal-btn,
.single-service-item > a {
    font-size: 0.86rem;
}

/* Footer: smaller headings, links and newsletter block. */
.tv-footer-widget-title {
    font-size: 1.05rem !important;
}

.tv-footer-widget-menu ul li a {
    font-size: 0.9rem !important;
}

.tv-footer-widget-text p,
.tv-footer-widget-contact-info a {
    font-size: 0.9rem !important;
}

.tv-footer-top-heading h2 {
    font-size: clamp(1.8rem, 2.4vw, 2.1rem) !important;
    line-height: 1.15;
}

.tv-footer-top-form input {
    font-size: 0.9rem;
}

.tv-footer-top-form button {
    font-size: 0.88rem;
}

/* Newsletter: input and button are separate controls with a real gap. */
.tv-footer-top-form {
    margin-left: 0;
}

.tv-footer-top-form form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
}

.tv-footer-top-form input {
    flex: 1;
    width: auto;
    height: 50px;
    padding: 0 16px;
    border-radius: var(--ivs-radius-control);
}

.tv-footer-top-form button {
    position: relative;
    top: auto;
    right: auto;
    height: 50px;
    padding: 0 24px;
    border-radius: var(--ivs-radius-control);
}

/* Compact footer and full breathing room around the newsletter banner. */
.tv-footer-wrap {
    padding-top: 56px !important;
}

.tv-footer-top-area {
    padding: 32px 0 !important;
}

.tv-footer-top-area-form {
    width: min(1200px, calc(100% - 48px)) !important;
    margin: 0 auto !important;
    padding: 28px 32px !important;
}

.tv-footer-widget-title {
    margin-bottom: 16px !important;
}

.tv-footer-widget-menu ul li:not(:last-child) {
    margin-bottom: 10px;
}

.tv-footer-widget-text p {
    margin-bottom: 18px;
}

.tv-footer-widget-contact-info ul li:not(:last-child) {
    margin-bottom: 10px;
}

.tv-footer-area {
    margin-bottom: 30px !important;
}

/* Compact off-canvas panel. */
.itoffcanvas {
    width: 420px !important;
    padding: 30px !important;
}

.itoffcanvas__logo {
    margin-bottom: 24px;
}

.itoffcanvas__logo img {
    width: 140px;
}

.itoffcanvas__close-btn button {
    top: 24px;
    right: 28px;
    font-size: 26px;
}

.itoffcanvas__text p {
    font-size: 0.9rem;
    line-height: 1.55;
}

.tv-menu-mobile .tv-menu-content {
    margin-bottom: 24px;
}

.itoffcanvas .tv-menu-mobile ul li > a {
    padding: 9px 0;
    font-size: 0.95rem;
}

.itoffcanvas__info {
    padding-bottom: 18px;
    margin-bottom: 14px;
}

.itoffcanvas__info .offcanva-title {
    margin: 18px 0 20px;
    font-size: 1rem;
}

.itoffcanvas__info-icon a {
    width: 38px;
    height: 38px;
    line-height: 38px;
}

.itoffcanvas__info-address {
    min-width: 0;
    flex: 1;
    font-size: 0.85rem;
}

.itoffcanvas__info-address a {
    overflow-wrap: anywhere;
    white-space: normal;
    font-size: 0.82rem;
}

.itoffcanvas__info .tv-info-wrapper {
    margin-bottom: 12px !important;
}

/* Contact experience. */
.cm-title {
    font-size: clamp(2rem, 3vw, 2.65rem) !important;
}

.cm-lead {
    font-size: 0.98rem;
}

.cm-card-title {
    font-size: 1.25rem;
}

.cm-card-sub {
    font-size: 0.86rem;
}

.cm-label {
    font-size: 0.78rem;
}

.cm-input,
.cm-select-trigger,
.cm-textarea {
    font-size: 0.9rem;
}

.cm-consent-text {
    font-size: 0.8rem;
}

.cm-help,
.cm-note,
.cm-trust span,
.cm-error {
    font-size: 0.75rem;
}

.cm-submit {
    font-size: 0.9rem;
}

.cm-success-title {
    font-size: clamp(1.65rem, 2.4vw, 2.2rem);
}

@media (max-width: 767.98px) {
    .tv-footer-area .row.gx-5 {
        --bs-gutter-x: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .tv-footer-area .row.gx-5 > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 14px;
    }

    .tv-section-title {
        font-size: 1.6rem !important;
    }

    .tv-section-title-box {
        margin-bottom: 24px !important;
    }

    .cm-title {
        font-size: 2rem !important;
    }

    .tv-footer-top-area {
        padding: 24px 0 !important;
    }

    .tv-footer-top-area-form {
        width: calc(100% - 24px) !important;
        margin: 0 auto !important;
        padding: 24px !important;
    }

    .itoffcanvas {
        width: 360px !important;
        padding: 26px !important;
    }

    .tv-header-logo img {
        max-width: min(160px, 42vw) !important;
    }

    .theme-toggle,
    .tv-menu-bar span {
        width: 44px !important;
        height: 44px !important;
    }

    .scroll-top {
        display: none !important;
    }

    .tv-footer-area .col-xl-3,
    .tv-footer-area .col-xl-2,
    .tv-footer-area .col-xl-4 {
        margin-bottom: 28px !important;
    }

    .tv-footer-widget-title {
        margin-bottom: 14px !important;
    }
}

@media (max-width: 575.98px) {
    .tv-footer-top-form form {
        flex-direction: column;
        align-items: stretch;
    }

    .tv-footer-top-form button {
        width: 100%;
    }

    .itoffcanvas {
        width: min(320px, calc(100% - 24px)) !important;
        padding: 24px !important;
    }

    .itoffcanvas__close-btn button {
        right: 22px;
    }

    .itoffcanvas__info-address a {
        font-size: 0.72rem;
    }
}
