/* ===========================================================
   Kintok – Custom UI Improvements & Page Preloader
   Loaded after style.css to override safely. Add tweaks here.
   =========================================================== */

/* ---------------- Page Preloader ---------------- */
.kintok-preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    background: radial-gradient(circle at center, #ffffff 0%, #f5f8fd 100%);
    transition: opacity 0.6s ease, visibility 0.6s ease;
    opacity: 1;
    visibility: visible;
}

.kintok-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.kintok-preloader__inner {
    text-align: center;
    width: 220px;
    max-width: 80vw;
}

.kintok-preloader__logo-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kintok-preloader__logo {
    width: 100px;
    height: auto;
    max-height: 70px;
    object-fit: contain;
    animation: kintok-pulse 1.6s ease-in-out infinite;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 4px 12px rgba(26, 66, 118, 0.18));
}

.kintok-preloader__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(26, 66, 118, 0.10);
    border-top-color: #1A4276;
    border-right-color: #1A4276;
    animation: kintok-spin 1.1s linear infinite;
    z-index: 1;
}

.kintok-preloader__bar {
    width: 160px;
    height: 3px;
    margin: 0 auto 14px;
    background: rgba(26, 66, 118, 0.10);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.kintok-preloader__bar span {
    position: absolute;
    inset: 0;
    width: 40%;
    background: linear-gradient(90deg, #1A4276, #2f7ad8);
    border-radius: 999px;
    animation: kintok-slide 1.4s ease-in-out infinite;
}

.kintok-preloader__text {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1A4276;
    font-weight: 600;
}

.kintok-preloader__text .dot {
    display: inline-block;
    opacity: 0.3;
    animation: kintok-dot 1.4s ease-in-out infinite;
}
.kintok-preloader__text .dot:nth-child(2) { animation-delay: 0.2s; }
.kintok-preloader__text .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes kintok-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.08); opacity: 0.92; }
}

@keyframes kintok-spin {
    to { transform: rotate(360deg); }
}

@keyframes kintok-slide {
    0%   { left: -40%; }
    100% { left: 100%; }
}

@keyframes kintok-dot {
    0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
    40%           { opacity: 1;   transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
    .kintok-preloader__logo,
    .kintok-preloader__ring,
    .kintok-preloader__bar span,
    .kintok-preloader__text .dot {
        animation: none !important;
    }
}

/* ---------------- Global polish ---------------- */
html { scroll-behavior: smooth; }

body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

img { transition: transform 0.35s ease, filter 0.35s ease; }

::selection { background: #1A4276; color: #fff; }

/* Focus rings for accessibility (visible only on keyboard nav) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible {
    outline: 2px solid #1A4276;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------------- Header polish ---------------- */
.header-area {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.header-area.is-sticky,
.header-sticky.is-sticky {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.header__logo img { transition: transform 0.3s ease; }
.header__logo a:hover img { transform: scale(1.04); }

.navigation-menu ul li a {
    transition: color 0.25s ease, transform 0.25s ease;
}
.navigation-menu ul li a:hover { transform: translateY(-1px); }

/* ---------------- Buttons ---------------- */
.btn,
.ht-btn,
.hero-button a,
button[type="submit"] {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease !important;
}
.btn:hover,
.ht-btn:hover,
.hero-button a:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(26, 66, 118, 0.18);
}
.btn:active,
.ht-btn:active,
.hero-button a:active,
button[type="submit"]:active {
    transform: translateY(0);
}

/* ---------------- Cards / Service boxes ---------------- */
.ht-box-icon,
.ht-service-box,
.feature-list,
.feature-list__one,
.feature-list__two,
.feature-images-wrap,
.single-pricing-wrap,
.team-member,
.single-blog,
.blog-grid,
.testimonial-slider__one .testimonial-inner,
.service-grid-item,
.service-grid-item__image,
.brand-logo {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.ht-box-icon:hover,
.ht-service-box:hover,
.feature-list:hover,
.feature-list__one:hover,
.feature-list__two:hover,
.feature-images-wrap:hover,
.single-pricing-wrap:hover,
.team-member:hover,
.single-blog:hover,
.blog-grid:hover,
.service-grid-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(15, 38, 76, 0.10);
}

.brand-logo img { transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease; }
.brand-logo:hover img { transform: scale(1.06); filter: none; opacity: 1; }

/* ---------------- Forms ---------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
input[type="url"],
textarea,
select {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: #1A4276 !important;
    box-shadow: 0 0 0 3px rgba(26, 66, 118, 0.12) !important;
    outline: none;
}

/* ---------------- Links ---------------- */
a { transition: color 0.25s ease, opacity 0.25s ease; }

.hover-style-link {
    position: relative;
    display: inline-block;
}

/* ---------------- Enhanced Footer ---------------- */
.footer-enhanced {
    background: linear-gradient(180deg, #f6f9fd 0%, #eaf0f9 100%);
    position: relative;
    color: #4a5568;
    border-top: 3px solid #1A4276;
    overflow: hidden;
}

.footer-enhanced::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
}

.footer-enhanced::after {
    content: '';
    position: absolute;
    right: -120px; top: -120px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26,66,118,0.06) 0%, rgba(26,66,118,0) 70%);
    pointer-events: none;
}

.footer-enhanced .footer-widget { margin-bottom: 30px; }

.footer-enhanced .footer-widget__logo img {
    max-width: 200px;
    height: auto;
    filter: none;
    transition: transform 0.3s ease;
}
.footer-enhanced .footer-widget__logo a:hover img { transform: scale(1.03); }

.footer-enhanced .footer-widget__about-text {
    color: #4a5568;
    font-size: 14.5px;
    line-height: 1.75;
    margin: 0;
}

.footer-enhanced .footer-widget__title {
    color: #14305a;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 22px;
}
.footer-enhanced .footer-widget__title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 38px;
    height: 3px;
    background: linear-gradient(90deg, #1A4276, #3a86d6);
    border-radius: 3px;
}

.footer-enhanced .footer-widget__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-enhanced .footer-widget__list li { margin-bottom: 10px; }
.footer-enhanced .footer-widget__list li a {
    color: #4a5568;
    font-size: 14.5px;
    position: relative;
    padding-left: 16px;
    display: inline-block;
    text-decoration: none;
    transition: color 0.25s ease, padding-left 0.25s ease;
}
.footer-enhanced .footer-widget__list li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-right: 2px solid #1A4276;
    border-top: 2px solid #1A4276;
    rotate: 45deg;
    opacity: 0.55;
    transition: opacity 0.25s ease, left 0.25s ease;
}
.footer-enhanced .footer-widget__list li a:hover {
    color: #1A4276;
    padding-left: 22px;
}
.footer-enhanced .footer-widget__list li a:hover::before {
    opacity: 1;
    left: 4px;
}

.footer-enhanced .footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-enhanced .footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    color: #4a5568;
    font-size: 14.5px;
    line-height: 1.55;
}
.footer-enhanced .footer-contact-list li a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.25s ease;
}
.footer-enhanced .footer-contact-list li a:hover { color: #1A4276; }
.footer-enhanced .footer-contact-list__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(26, 66, 118, 0.12);
    border: 1.5px solid rgba(26, 66, 118, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1A4276;
    font-size: 15px;
    line-height: 1;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.footer-enhanced .footer-contact-list__icon span {
    font-size: 15px;
    line-height: 1;
    color: inherit;
}
.footer-enhanced .footer-contact-list li:hover .footer-contact-list__icon {
    background: #1A4276;
    color: #fff;
    transform: scale(1.08) rotate(-4deg);
}

.footer-enhanced .footer-social-icons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-enhanced .footer-social-icons li a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #1A4276;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(26, 66, 118, 0.10);
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.footer-enhanced .footer-social-icons li a:hover {
    background: #1A4276;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(26, 66, 118, 0.25);
}

.footer-enhanced .footer-copyright-area {
    border-top: 1px solid rgba(26, 66, 118, 0.12);
    padding: 22px 0 28px;
    background: rgba(255, 255, 255, 0.35);
    position: relative;
    z-index: 2;
}
.footer-enhanced .copyright-text {
    color: #4a5568;
    font-size: 14px;
}
.footer-enhanced .copyright-text a {
    color: #1A4276;
    font-weight: 600;
    text-decoration: none;
}
.footer-enhanced .copyright-text a:hover { text-decoration: underline; }
.footer-enhanced .copyright-extra {
    color: #6b7384;
    font-size: 13px;
    font-style: italic;
}

@media (max-width: 991px) {
    .footer-enhanced .footer-widget { margin-bottom: 35px; }
}
@media (max-width: 575px) {
    .footer-enhanced .footer-social-icons { justify-content: flex-start; }
    .footer-enhanced .footer-copyright-area { text-align: center; }
    .footer-enhanced .copyright-extra { display: block; margin-top: 8px; }
}

/* ---------------- Scroll-to-top button ---------------- */
.scroll-top {
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}
.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(26, 66, 118, 0.25);
}

/* ---------------- Hero / banner subtle tweaks ---------------- */
.appointment-hero-wrapper,
.about-banner-wrap {
    position: relative;
}

.hero-button .video-link { transition: transform 0.3s ease; }
.hero-button .video-link:hover { transform: scale(1.03); }

/* ---------------- Section titles ---------------- */
.section-title-wrap .heading,
.section-title-wrap h3,
.section-title-wrap h2 {
    line-height: 1.25;
}

.section-sub-title {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

/* ---------------- Tables / Lists ---------------- */
ul.list-styled li,
.feature-list__media-body p { line-height: 1.7; }

/* ---------------- Mobile / Responsive ---------------- */
@media (max-width: 991px) {
    .header__logo img { max-width: 130px; height: auto; }
    .kintok-preloader__logo-wrap { width: 110px; height: 110px; }
    .kintok-preloader__logo { width: 80px; }
}

@media (max-width: 576px) {
    .kintok-preloader__inner { width: 180px; }
    .kintok-preloader__bar { width: 130px; }
    .kintok-preloader__text { font-size: 11px; }
}

/* ---------------- Print ---------------- */
@media print {
    .kintok-preloader,
    .scroll-top,
    .mobile-menu-overlay,
    .search-overlay { display: none !important; }
}

/* ---------------- Reduce motion ---------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
