:root {
    --tkg-focus: rgba(55, 40, 255, 0.25);
    --tkg-shadow: 0 18px 60px rgba(21, 16, 28, 0.16);
    --tkg-shadow-sm: 0 10px 30px rgba(21, 16, 28, 0.12);
    --tkg-shadow-xs: 0 6px 18px rgba(21, 16, 28, 0.10);
    --tkg-radius: 16px;
    --tkg-radius-sm: 12px;
    --tkg-border: rgba(195, 197, 223, 0.85);
    --tkg-surface: rgba(255, 255, 255, 0.72);
    --tkg-surface-strong: rgba(255, 255, 255, 0.92);
    --tkg-text: #1e1523;
    --tkg-muted: rgba(53, 42, 58, 0.72);
    --tkg-brand: #443582;
    --tkg-brand-2: #3d3dff;
    --tkg-gradient: linear-gradient(135deg, rgba(68, 53, 130, 0.18), rgba(61, 61, 255, 0.10));
}

.tkg-page body,
body.tkg-page {
    color: var(--tkg-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tkg-page {
    background-image: radial-gradient(1200px 600px at 15% -10%, rgba(68, 53, 130, 0.18), transparent 60%),
        radial-gradient(900px 520px at 95% 10%, rgba(61, 61, 255, 0.12), transparent 60%);
}

.tkg-page a {
    text-underline-offset: 4px;
}

.tkg-page .main-container {
    padding-left: 20px;
    padding-right: 20px;
}

.tkg-page .header {
    border-bottom: 1px solid rgba(195, 197, 223, 0.55);
}

.tkg-page .header-inner.w-nav {
    background-color: transparent;
}

.tkg-page .main-menu .menu-item {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.tkg-page .main-menu .menu-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(68, 53, 130, 0.0), rgba(68, 53, 130, 0.55), rgba(61, 61, 255, 0.0));
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.tkg-page .main-menu .menu-item:hover::after,
.tkg-page .main-menu .menu-item.w--current::after {
    opacity: 1;
    transform: translateY(0);
}

.tkg-page .get-in-touch-button,
.tkg-page .blue-button.form-button {
    box-shadow: var(--tkg-shadow-xs);
    border-color: rgba(68, 53, 130, 0.55);
}

.tkg-page .get-in-touch-button {
    background-image: linear-gradient(135deg, #443582, #3d3dff);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.tkg-page .get-in-touch-button:hover {
    background-image: linear-gradient(135deg, #3d2f79, #2f2fff);
    box-shadow: var(--tkg-shadow-sm);
}

.tkg-page .hero-big-img,
.tkg-page .discover-img,
.tkg-page .about-big-img {
    box-shadow: var(--tkg-shadow);
}

.tkg-page .services-grid-item,
.tkg-page .blog-item,
.tkg-page .about-item,
.tkg-page .contact-form,
.tkg-page .contact-info-item {
    background: var(--tkg-surface);
    border: 1px solid var(--tkg-border);
    border-radius: var(--tkg-radius);
    box-shadow: var(--tkg-shadow-xs);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.tkg-page .services-grid-item:hover,
.tkg-page .blog-item:hover,
.tkg-page .contact-info-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--tkg-shadow-sm);
}

.tkg-page .services-grid-item,
.tkg-page .blog-item,
.tkg-page .contact-info-item {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tkg-page .services-text,
.tkg-page .discover-subtitle,
.tkg-page .paragraph,
.tkg-page .contact-info-span {
    color: var(--tkg-muted);
}

.tkg-page .inner-pages-hero {
    position: relative;
}

.tkg-page .inner-pages-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--tkg-gradient);
    pointer-events: none;
}

.tkg-page .inner-pages-hero > .main-container {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .tkg-page .hero-big-img,
    .tkg-page .discover-img,
    .tkg-page .about-big-img {
        transition: transform 300ms ease, box-shadow 300ms ease;
    }

    .tkg-page .hero-big-img:hover,
    .tkg-page .discover-img:hover,
    .tkg-page .about-big-img:hover {
        transform: translateY(-2px);
        box-shadow: var(--tkg-shadow-sm);
    }
}

.logo-img.tkg-logo-img {
    width: auto;
}

/* Blog empty state */
.tkg-empty-state {
    display: flex;
    justify-content: center;
}

.tkg-empty-card {
    width: 100%;
    max-width: 980px;
    background: var(--tkg-surface-strong);
    border: 1px solid var(--tkg-border);
    border-radius: calc(var(--tkg-radius) + 6px);
    box-shadow: var(--tkg-shadow);
    padding: 34px;
}

.tkg-empty-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(68, 53, 130, 0.25);
    background: var(--tkg-gradient);
    color: rgba(68, 53, 130, 0.95);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.tkg-empty-title {
    margin-top: 14px;
    margin-bottom: 10px;
    font-size: 38px;
    line-height: 42px;
}

.tkg-empty-text {
    color: var(--tkg-muted);
    max-width: 60ch;
    margin-bottom: 18px;
}

.tkg-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    margin-bottom: 22px;
}

.tkg-secondary-button {
    border: 1px solid rgba(68, 53, 130, 0.28);
    background: rgba(255, 255, 255, 0.65);
    color: var(--tkg-brand);
    border-radius: 999px;
    padding: 16px 20px 14px;
    box-shadow: var(--tkg-shadow-xs);
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.tkg-secondary-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--tkg-shadow-sm);
    background: rgba(255, 255, 255, 0.85);
}

.tkg-empty-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 8px;
}

.tkg-empty-item {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(195, 197, 223, 0.65);
    border-radius: var(--tkg-radius-sm);
    padding: 18px;
    box-shadow: 0 2px 0 rgba(68, 53, 130, 0.08);
}

.tkg-empty-icon-img {
    border-radius: 12px;
    background: rgba(68, 53, 130, 0.08);
    padding: 10px;
}

.tkg-empty-item-title {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 600;
}

.tkg-empty-item-text {
    margin-top: 6px;
    color: var(--tkg-muted);
    font-size: 15px;
    line-height: 20px;
}

@media (max-width: 767px) {
    .tkg-empty-card {
        padding: 22px;
    }

    .tkg-empty-title {
        font-size: 30px;
        line-height: 34px;
    }

    .tkg-empty-grid {
        grid-template-columns: 1fr;
    }
}

.tkg-logo-img {
    width: auto;
    height: 56px;
    max-width: 200px;
    object-fit: contain;
    transition: transform 180ms ease, filter 180ms ease;
}

.logo:hover .tkg-logo-img,
.logo:focus-visible .tkg-logo-img {
    transform: translateY(-1px) scale(1.01);
    filter: drop-shadow(0 10px 18px rgba(21, 16, 28, 0.18));
}

.menu-item,
.get-in-touch-button,
.footer-menu-item {
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.menu-item:focus-visible,
.get-in-touch-button:focus-visible,
.footer-menu-item:focus-visible,
.read-more-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--tkg-focus);
    border-radius: 10px;
}

.get-in-touch-button:hover {
    transform: translateY(-1px);
}

.tkg-about .discover-lower {
    margin-top: 30px;
}

.tkg-about .title-heading {
    margin-bottom: 10px;
}

.tkg-about .services-section {
    padding-top: 0;
    padding-bottom: 0;
}

.tkg-about .services-title {
    margin-bottom: 20px;
}

.tkg-services .inner-pages-hero .sitemap-title,
.tkg-services .inner-pages-hero img,
.tkg-services .inner-pages-hero .sitemap-subtitle {
    opacity: 1;
}

.tkg-services .discover-img {
    opacity: 1;
}

.tkg-services .get-in-touch-button {
    margin-top: 20px;
}

/* Desktop keeps the Contact button on the right (not duplicated in the menu) */
@media (min-width: 992px) {
    .tkg-page .main-menu .menu-cta {
        display: none;
    }
}

@media (max-width: 991px) {
    /* Make header usable on mobile (no overlap, easy access) */
    .tkg-page .header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: rgba(215, 217, 240, 0.94);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: var(--tkg-shadow-sm);
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Flush header content to the screen edges (mobile/tablet) */
    .tkg-page .header .main-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100%;
        max-width: none;
    }

    /* Mobile header: logo (left) • burger (right) */
    .tkg-page .header-inner.w-nav {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-left: 12px !important;
        padding-right: 12px !important;
        text-align: left;
        width: 100%;
    }

    /* Webflow adds clearfix pseudo-elements to `.w-nav` which become flex items; remove them */
    .tkg-page .header-inner.w-nav::before,
    .tkg-page .header-inner.w-nav::after {
        display: none !important;
        content: none !important;
    }

    /* No standalone Contact pill in header on mobile */
    .tkg-page .header-right-side {
        display: none !important;
    }

    .tkg-page .logo {
        margin: 0 !important;
        padding-left: 0 !important;
        flex: 0 0 auto;
        margin-right: auto !important;
    }

    .tkg-page .menu-button {
        margin-left: 0;
        margin-right: 0 !important;
        flex: 0 0 auto;
        margin-left: auto !important;
    }

    .tkg-page .main-menu .menu-item {
        display: block;
        margin-right: 0;
        padding: 14px 6px;
    }

    .tkg-page .main-menu .menu-item.w--current {
        background-size: 26px;
        margin-right: 0;
    }

    /* Style the opened dropdown menu (Webflow adds data-nav-menu-open) */
    .tkg-page .main-menu[data-nav-menu-open] {
        background-color: var(--grey-bg);
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: var(--tkg-shadow);
        padding: 8px 20px;
        text-align: left;
    }

    /* Make Contact look like the last/primary item in the dropdown */
    .tkg-page .main-menu .menu-cta {
        border-top: 1px solid var(--border);
        margin-top: 6px;
        padding-top: 16px;
        font-weight: 600;
    }
}

@media (max-width: 767px) {
    .tkg-page .main-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .tkg-logo-img {
        height: 44px;
        max-width: 160px;
    }

    /* Reduce excessive vertical whitespace on mobile */
    .tkg-page .hero-section {
        padding-top: 140px;
        padding-bottom: 70px;
        background-position: 90% 95%, 0 100%, 0 0;
    }

    .tkg-page .inner-pages-hero {
        padding-top: 150px;
        padding-bottom: 70px;
    }

    .tkg-page .sitemap-subtitle {
        max-width: 40ch;
        margin-left: auto;
        margin-right: auto;
    }

    .tkg-home .discover-section,
    .tkg-home .services-section,
    .tkg-home .blog-section,
    .tkg-home .stats-section,
    .tkg-about .discover-section,
    .tkg-services .services-section,
    .tkg-services .discover-section,
    .tkg-blog .blog-section,
    .tkg-contact .contact-section {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .tkg-page .contact-form-heading {
        margin-bottom: 24px;
    }

    .tkg-page .contact-form {
        margin-top: 24px;
        padding: 28px 18px;
    }

    .tkg-page .form-input {
        padding: 18px 16px;
    }

    .tkg-page .form-input::placeholder {
        font-size: 16px;
    }

    .tkg-page .form-input.textarea {
        padding-bottom: 120px;
    }
}

@media (max-width: 479px) {
    .tkg-page .header {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .tkg-page .header-inner.w-nav {
        column-gap: 10px;
    }

    .tkg-page .header .get-in-touch-button {
        padding: 9px 12px 8px !important;
        font-size: 13px;
        line-height: 15px;
        border-radius: 999px;
    }

    .tkg-page .hero-section {
        padding-top: 120px;
        padding-bottom: 54px;
    }

    .tkg-page .inner-pages-hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .tkg-page .sitemap-title {
        font-size: 34px;
        line-height: 32px;
    }
}
