/* ==========================================================================
   KTPL Premium Enhancement Layer
   Purpose: Adds a polished, premium, mobile-first, accessibility-friendly
   layer on top of the existing Techvolt theme without overriding core layout.
   Loaded AFTER style.css so selectors here take precedence.
   ========================================================================== */

:root {
    --ktpl-primary: #0E2BC5;
    --ktpl-primary-dark: #091a87;
    --ktpl-primary-soft: rgba(14, 43, 197, 0.08);
    --ktpl-accent: #FF6B2C;
    --ktpl-ink: #0B1B3A;
    --ktpl-muted: #5A6B85;
    --ktpl-bg-soft: #F5F7FC;
    --ktpl-border: rgba(14, 43, 197, 0.12);
    --ktpl-shadow-sm: 0 4px 12px rgba(11, 27, 58, 0.06);
    --ktpl-shadow-md: 0 10px 30px rgba(11, 27, 58, 0.08);
    --ktpl-shadow-lg: 0 20px 60px rgba(11, 27, 58, 0.14);
    --ktpl-radius-sm: 10px;
    --ktpl-radius-md: 14px;
    --ktpl-radius-lg: 22px;
    --ktpl-ease: cubic-bezier(.22,.61,.36,1);
    --ktpl-duration: .35s;
}

/* --------------------------------------------------------------------------
   1. Global typography + smoothing
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img, picture, video, canvas, svg { max-width: 100%; height: auto; }
a { transition: color var(--ktpl-duration) var(--ktpl-ease); }

/* Fluid headings so type never distorts between laptop & mobile */
h1, .h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.15; letter-spacing: -.02em; }
h2, .h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.2;  letter-spacing: -.015em; }
h3, .h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; }

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

/* --------------------------------------------------------------------------
   2. Custom scrollbar
   -------------------------------------------------------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eef1f9; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--ktpl-primary), var(--ktpl-primary-dark));
    border-radius: 20px;
    border: 2px solid #eef1f9;
}
::-webkit-scrollbar-thumb:hover { background: var(--ktpl-primary-dark); }

/* --------------------------------------------------------------------------
   3. Selection color
   -------------------------------------------------------------------------- */
::selection { background: var(--ktpl-primary); color: #fff; }

/* --------------------------------------------------------------------------
   4. Premium button polish (applies to theme buttons)
   -------------------------------------------------------------------------- */
.te-btn, .te-quote-btn, button.te-btn, a.te-btn,
.te-contact-form button, .te-career-form button, .te-rental-modal button[type="submit"] {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--ktpl-duration) var(--ktpl-ease),
                box-shadow var(--ktpl-duration) var(--ktpl-ease),
                background var(--ktpl-duration) var(--ktpl-ease);
    will-change: transform;
}
.te-btn:hover, .te-quote-btn:hover,
.te-contact-form button:hover, .te-career-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--ktpl-shadow-md);
}
.te-btn:active { transform: translateY(0); }

/* Shine sweep on hover */
.te-btn::after, .te-quote-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
    transform: translateX(-120%);
    transition: transform .8s var(--ktpl-ease);
    pointer-events: none;
    z-index: 1;
}
.te-btn:hover::after, .te-quote-btn:hover::after { transform: translateX(120%); }

/* Ripple target (used by premium JS) */
.ktpl-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ktpl-ripple .6s linear;
    background: rgba(255,255,255,.45);
    pointer-events: none;
    z-index: 2;
}
@keyframes ktpl-ripple { to { transform: scale(4); opacity: 0; } }

/* --------------------------------------------------------------------------
   5. Cards & surfaces
   -------------------------------------------------------------------------- */
.te-service-card, .te-icon-card, .te-post-card, .te-testimonial-card-two,
.te-info-card, .feature-card, .ktpl-card, .te-team-card {
    transition: transform var(--ktpl-duration) var(--ktpl-ease),
                box-shadow var(--ktpl-duration) var(--ktpl-ease),
                border-color var(--ktpl-duration) var(--ktpl-ease);
    border-radius: var(--ktpl-radius-md);
}
.te-service-card:hover, .te-icon-card:hover, .te-post-card:hover,
.te-testimonial-card-two:hover, .feature-card:hover, .ktpl-card:hover,
.te-team-card:hover, .te-info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ktpl-shadow-lg);
}

/* --------------------------------------------------------------------------
   6. Reveal animation helpers (used by existing + premium JS)
   -------------------------------------------------------------------------- */
.ktpl-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ktpl-ease), transform .7s var(--ktpl-ease);
    will-change: opacity, transform;
}
.ktpl-reveal.ktpl-visible { opacity: 1; transform: translateY(0); }

.ktpl-fade-in { animation: ktpl-fadeIn .6s var(--ktpl-ease) both; }
@keyframes ktpl-fadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Lazy image progressive fade-in */
img.ktpl-lazy { opacity: 0; transition: opacity .5s var(--ktpl-ease); }
img.ktpl-lazy.ktpl-loaded { opacity: 1; }

/* --------------------------------------------------------------------------
   7. Forms — premium inputs + inline validation (broad selectors)
   -------------------------------------------------------------------------- */
/* Bulletproof honeypot hiding */
.ktpl-honeypot,
input[name="company"][tabindex="-1"],
input.ktpl-honeypot {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Universal premium input styling */
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="number"],
form input[type="date"],
form input[type="url"],
form input[type="password"],
form input[type="file"],
form select,
form textarea,
.te-comment-form input,
.te-comment-form textarea,
.te-comment-form select,
.te-contact-form input,
.te-contact-form select,
.te-contact-form textarea,
.te-career-form input,
.te-career-form select,
.te-career-form textarea,
.te-rental-modal input,
.te-rental-modal select,
.te-rental-modal textarea,
.ktpl-field input,
.ktpl-field select,
.ktpl-field textarea {
    width: 100%;
    border-radius: var(--ktpl-radius-sm);
    border: 1.5px solid var(--ktpl-border) !important;
    background: #fff !important;
    padding: 14px 16px !important;
    font-size: 15px;
    color: var(--ktpl-ink);
    box-shadow: none;
    transition: border-color .25s var(--ktpl-ease),
                box-shadow .25s var(--ktpl-ease),
                background .25s var(--ktpl-ease),
                transform .25s var(--ktpl-ease);
}
form input::placeholder,
form textarea::placeholder {
    color: #8E9AB0;
    opacity: 1;
}
form input:focus,
form select:focus,
form textarea:focus,
.te-comment-form input:focus,
.te-comment-form textarea:focus,
.te-contact-form input:focus,
.te-contact-form select:focus,
.te-contact-form textarea:focus,
.te-career-form input:focus,
.te-career-form select:focus,
.te-career-form textarea:focus,
.te-rental-modal input:focus,
.te-rental-modal select:focus,
.te-rental-modal textarea:focus,
.ktpl-field input:focus,
.ktpl-field select:focus,
.ktpl-field textarea:focus {
    outline: none;
    border-color: var(--ktpl-primary) !important;
    box-shadow: 0 0 0 4px var(--ktpl-primary-soft) !important;
    background: #fff !important;
    transform: translateY(-1px);
}
form input:hover:not(:focus),
form select:hover:not(:focus),
form textarea:hover:not(:focus) {
    border-color: rgba(14, 43, 197, 0.35) !important;
}

/* Form section wrappers: elevate cards */
.te-comment-respond,
.te-contact-form-wrapper,
.te-career-form {
    background: #fff;
    border-radius: var(--ktpl-radius-lg);
    padding: clamp(20px, 3vw, 36px);
    box-shadow: var(--ktpl-shadow-md);
    border: 1px solid rgba(14, 43, 197, 0.05);
}
.te-comment-respond .title,
.te-career-form .title {
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 14px;
}
.te-comment-respond .title::after,
.te-career-form .title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 56px; height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--ktpl-primary), var(--ktpl-accent));
}

/* Modern primary submit button */
form .te-theme-btn,
form button[type="submit"].te-theme-btn,
.te-theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ktpl-primary), var(--ktpl-primary-dark));
    color: #fff !important;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(14, 43, 197, 0.22);
    transition: transform .3s var(--ktpl-ease), box-shadow .3s var(--ktpl-ease);
}
form .te-theme-btn:hover,
.te-theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(14, 43, 197, 0.3);
    color: #fff !important;
}

/* Error / success state */
.ktpl-field.has-error input,
.ktpl-field.has-error select,
.ktpl-field.has-error textarea,
[data-ktpl-error="true"] { border-color: #E0242B !important; box-shadow: 0 0 0 4px rgba(224,36,43,.1) !important; }
.ktpl-field .ktpl-field-error {
    display: none;
    color: #E0242B;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}
.ktpl-field.has-error .ktpl-field-error { display: block; }

/* AJAX form status banner */
.ktpl-form-status {
    display: none;
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: var(--ktpl-radius-sm);
    font-size: 14px;
    font-weight: 500;
    animation: ktpl-fadeIn .35s var(--ktpl-ease);
}
.ktpl-form-status.is-visible { display: block; }
.ktpl-form-status.is-success { background: #E7F7EE; color: #0F7A3A; border: 1px solid #9BDFB7; }
.ktpl-form-status.is-error   { background: #FDEBEC; color: #A3181D; border: 1px solid #F3B4B7; }

/* Loading spinner inside submit button */
.ktpl-btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.ktpl-btn-loading::before {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 18px; height: 18px;
    margin: -9px 0 0 -9px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    animation: ktpl-spin .7s linear infinite;
}
@keyframes ktpl-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   8. Floating toast for quick success/error feedback
   -------------------------------------------------------------------------- */
.ktpl-toast-host {
    position: fixed;
    right: 20px;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}
.ktpl-toast {
    background: #fff;
    color: var(--ktpl-ink);
    padding: 14px 18px;
    border-radius: var(--ktpl-radius-md);
    box-shadow: var(--ktpl-shadow-lg);
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid var(--ktpl-primary);
    min-width: 260px;
    max-width: 360px;
    pointer-events: auto;
    animation: ktpl-toast-in .35s var(--ktpl-ease);
}
.ktpl-toast.is-success { border-left-color: #0F7A3A; }
.ktpl-toast.is-error   { border-left-color: #E0242B; }
.ktpl-toast.is-leaving { animation: ktpl-toast-out .3s var(--ktpl-ease) forwards; }
@keyframes ktpl-toast-in  { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes ktpl-toast-out { to   { transform: translateX(30px); opacity: 0; } }

/* --------------------------------------------------------------------------
   9. Back-to-top FAB (premium)
   -------------------------------------------------------------------------- */
.ktpl-back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ktpl-primary), var(--ktpl-primary-dark));
    color: #fff;
    border: none;
    box-shadow: var(--ktpl-shadow-lg);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px) scale(.9);
    transition: opacity .3s var(--ktpl-ease), transform .3s var(--ktpl-ease);
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.ktpl-back-top.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.ktpl-back-top:hover { transform: translateY(-3px) scale(1.05); }
.ktpl-back-top:focus-visible { outline: 3px solid rgba(14,43,197,.35); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   10. Header / navigation polish
   -------------------------------------------------------------------------- */
.te-header-menu-area {
    transition: box-shadow .3s var(--ktpl-ease),
                background .3s var(--ktpl-ease),
                padding .3s var(--ktpl-ease);
}
.te-header-menu-area.te-sticky_menu {
    box-shadow: var(--ktpl-shadow-sm);
    backdrop-filter: saturate(1.2) blur(8px);
    -webkit-backdrop-filter: saturate(1.2) blur(8px);
    background: rgba(255,255,255,.92);
}
.te-main-menu ul li > a {
    position: relative;
    transition: color var(--ktpl-duration) var(--ktpl-ease);
}
.te-main-menu ul li > a::after {
    content: "";
    position: absolute;
    left: 17px; right: 17px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: var(--ktpl-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .3s var(--ktpl-ease);
}
.te-main-menu ul li:hover > a::after,
.te-main-menu ul li.active > a::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   11. Section + hero polish
   -------------------------------------------------------------------------- */
section { scroll-margin-top: 100px; }

.te-hero-area, .te-breadcumb-area {
    position: relative;
    overflow: hidden;
}
.te-hero-area::before {
    content: "";
    position: absolute;
    inset: -10%;
    background: radial-gradient(60% 50% at 20% 20%, rgba(14,43,197,.07), transparent 60%),
                radial-gradient(50% 40% at 80% 80%, rgba(255,107,44,.06), transparent 60%);
    z-index: 0;
    pointer-events: none;
}
.te-hero-area > * { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   12. Mobile optimizations — prevents layout distortion
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl { max-width: 100%; }
}

@media (max-width: 991px) {
    section { padding-top: 60px !important; padding-bottom: 60px !important; }
    .te-hero-area { padding-top: 80px; padding-bottom: 60px; }
    h1, .h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
    .te-btn, .te-quote-btn { padding: 12px 22px !important; font-size: 14px !important; }
    .te-header-btn { gap: 8px; }

    .te-main-menu ul li > a::after { display: none; }

    /* Prevent cards from stretching awkwardly */
    .te-service-card, .te-icon-card, .feature-card, .ktpl-card { margin-bottom: 20px; }

    /* Mobile-safe tables / overflow blocks */
    table, .overflow-safe { max-width: 100%; overflow-x: auto; display: block; }
}

@media (max-width: 575px) {
    .container, .container-fluid { padding-left: 16px; padding-right: 16px; }
    .ktpl-toast-host { right: 12px; left: 12px; bottom: 80px; }
    .ktpl-toast { min-width: 0; width: 100%; }
    .ktpl-back-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }

    .te-footer-widget { text-align: left !important; }
    h2, .h2 { font-size: clamp(1.4rem, 6vw, 1.9rem); }

    /* Stack form rows cleanly */
    .te-contact-form .row > [class*="col-"],
    .te-career-form .row > [class*="col-"] { margin-bottom: 14px; }
}

/* Prevent horizontal scroll caused by oversized images/shapes */
html, body { overflow-x: hidden; }

/* Image containment — stops distortion in product grids */
.te-service-card img, .te-product-card img, .ktpl-card img, .te-icon-card img {
    object-fit: cover;
    width: 100%;
}

/* --------------------------------------------------------------------------
   13. Accessibility focus rings
   -------------------------------------------------------------------------- */
:focus-visible { outline: 3px solid rgba(14,43,197,.45); outline-offset: 2px; border-radius: 4px; }
button, a { -webkit-tap-highlight-color: transparent; }

/* --------------------------------------------------------------------------
   14. Skeleton shimmer (for lazy content)
   -------------------------------------------------------------------------- */
.ktpl-skeleton {
    background: linear-gradient(90deg, #eef1f9 25%, #f8f9fd 50%, #eef1f9 75%);
    background-size: 200% 100%;
    animation: ktpl-shimmer 1.4s infinite;
    border-radius: var(--ktpl-radius-sm);
    min-height: 14px;
}
@keyframes ktpl-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* --------------------------------------------------------------------------
   15. Print styles (professional)
   -------------------------------------------------------------------------- */
@media print {
    .te-header-menu-area, .te-footer-area, .ktpl-back-top, .ktpl-toast-host,
    .te-hero-area video, #preloader { display: none !important; }
    body { color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
}

/* ==========================================================================
   16. Page Design Upgrades — product / service / SEO pages
   ========================================================================== */

/* -------- Breadcrumb / page hero premium treatment -------- */
.te-breadcumb-area {
    background: linear-gradient(135deg, #eef2ff 0%, #f9faff 55%, #ffffff 100%);
    padding: clamp(70px, 9vw, 130px) 0 clamp(50px, 6vw, 90px);
    position: relative;
    overflow: hidden;
}
.te-breadcumb-area::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -30%;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(14,43,197,.12), transparent 60%);
    filter: blur(20px);
    pointer-events: none;
}
.te-breadcumb-area .te-breadcumb-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ktpl-ink);
}
.te-breadcumb-area .te-breadcumb-list {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    background: rgba(255,255,255,.7);
    padding: 8px 18px;
    border-radius: 999px;
    box-shadow: var(--ktpl-shadow-sm);
    backdrop-filter: blur(6px);
}

/* -------- Service / product detail content card (single card only) -------- */
.te-service-details-wrapper .service-details {
    background: #fff;
    border-radius: var(--ktpl-radius-lg);
    padding: clamp(24px, 4vw, 48px);
    box-shadow: var(--ktpl-shadow-md);
    position: relative;
    border: 1px solid rgba(14,43,197,.05);
    overflow: hidden;
}
.te-service-details-wrapper .service-details::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--ktpl-primary), var(--ktpl-accent));
}
/* Neutralize inner .content so it doesn't double up as a card */
.te-service-details-wrapper .service-details .content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    position: static !important;
}
.te-service-details-wrapper .service-details .content::before {
    display: none !important;
    content: none !important;
}
.te-service-details-wrapper .title-inner .title,
.service-details h3.title {
    position: relative;
    font-weight: 700;
    color: var(--ktpl-ink);
    padding-bottom: 16px;
    margin-bottom: 22px;
    text-align: left;
}
.service-details .te-title-wrapper.justify-content-center {
    justify-content: flex-start !important;
    text-align: left !important;
}
.service-details .text p {
    color: var(--ktpl-muted);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 18px;
}

/* Transform boring <ul> bullets into premium feature list */
.service-details .text ul,
.te-service-details-wrapper .content .text ul {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.service-details .text ul li,
.te-service-details-wrapper .content .text ul li {
    position: relative;
    padding: 18px 20px 18px 58px;
    background: var(--ktpl-bg-soft);
    border-radius: var(--ktpl-radius-md);
    border: 1px solid transparent;
    color: var(--ktpl-ink);
    font-size: 15px;
    line-height: 1.6;
    transition: all .3s var(--ktpl-ease);
}
.service-details .text ul li::before,
.te-service-details-wrapper .content .text ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    position: absolute;
    left: 16px; top: 18px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ktpl-primary), var(--ktpl-primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 6px 14px rgba(14,43,197,.25);
}
.service-details .text ul li:hover,
.te-service-details-wrapper .content .text ul li:hover {
    background: #fff;
    border-color: rgba(14,43,197,.18);
    transform: translateY(-3px);
    box-shadow: var(--ktpl-shadow-md);
}

/* -------- SEO quick-links / footer strip polish -------- */
.product-list {
    background: linear-gradient(135deg, #495ad4 0%, #2c3bbd 100%) !important;
    padding: 40px 0 !important;
    position: relative;
    overflow: hidden;
}
.product-list::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 240px at 10% 0%, rgba(255,255,255,.08), transparent 60%);
    pointer-events: none;
}
.product-list .te-main-menu ul { flex-wrap: wrap; justify-content: center; }
.product-list .te-main-menu ul li a {
    color: rgba(255,255,255,.92) !important;
    padding: 10px 16px !important;
    border-radius: 8px;
    transition: background .25s var(--ktpl-ease), transform .25s var(--ktpl-ease);
    font-weight: 500;
    font-size: 14px;
}
.product-list .te-main-menu ul li a:hover {
    background: rgba(255,255,255,.12);
    transform: translateY(-2px);
    color: #fff !important;
}

/* -------- Home: product / feature card grid alignment -------- */
.feature-card,
.te-service-card,
.te-post-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--ktpl-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(14,43,197,.06);
}
.feature-card > *:last-child,
.te-service-card > *:last-child { margin-top: auto; }

/* Fix rogue product image overflow on home (forces image containment) */
.feature-card img,
.te-service-card img,
.te-post-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform .6s var(--ktpl-ease);
}
.feature-card:hover img,
.te-service-card:hover img { transform: scale(1.06); }

.feature-card .content,
.te-service-card .content { padding: 20px 22px 24px; }
.feature-card .title,
.te-service-card .title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--ktpl-ink);
}
.feature-card a.read-more,
.te-service-card a.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ktpl-primary);
    font-weight: 600;
    font-size: 14px;
    transition: gap .25s var(--ktpl-ease), color .25s var(--ktpl-ease);
}
.feature-card a.read-more:hover,
.te-service-card a.read-more:hover { gap: 14px; color: var(--ktpl-primary-dark); }

/* -------- Footer polish -------- */
.te-footer-area, .footer-area {
    background: linear-gradient(180deg, #EEF3FC 0%, #E5EDFB 100%);
    padding-top: clamp(40px, 6vw, 80px);
}
.te-footer-widget .title,
.te-footer-widget h4 {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--ktpl-ink);
}
.te-footer-widget .title::after,
.te-footer-widget h4::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 36px; height: 3px;
    border-radius: 3px;
    background: var(--ktpl-primary);
}
.te-footer-widget ul li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    color: #4A5878 !important;
    transition: color .25s var(--ktpl-ease), transform .25s var(--ktpl-ease);
}
.te-footer-widget ul li a:hover {
    color: var(--ktpl-primary) !important;
    transform: translateX(4px);
}

/* -------- Contact info icon cards -------- */
.te-contact-info .te-icon-card.style-2 {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border-radius: var(--ktpl-radius-md);
    box-shadow: var(--ktpl-shadow-sm);
    margin-bottom: 14px;
    transition: transform .3s var(--ktpl-ease), box-shadow .3s var(--ktpl-ease);
}
.te-contact-info .te-icon-card.style-2:hover {
    transform: translateY(-3px);
    box-shadow: var(--ktpl-shadow-md);
}
.te-contact-info .te-icon-card.style-2 .icon {
    flex: 0 0 52px;
    width: 52px; height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--ktpl-primary), var(--ktpl-primary-dark));
    color: #fff;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(14,43,197,.25);
}
.te-contact-info .te-icon-card.style-2 .content .title { font-size: 15px; margin: 0 0 2px; color: var(--ktpl-ink); }
.te-contact-info .te-icon-card.style-2 .content .desc,
.te-contact-info .te-icon-card.style-2 .content a.desc { color: var(--ktpl-muted); font-size: 14px; }

/* -------- Social icon row -------- */
.te-social-profile-link {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.te-social-profile-link a {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: #fff;
    color: var(--ktpl-primary);
    box-shadow: var(--ktpl-shadow-sm);
    transition: transform .25s var(--ktpl-ease), background .25s var(--ktpl-ease), color .25s var(--ktpl-ease);
}
.te-social-profile-link a:hover {
    transform: translateY(-2px);
    background: var(--ktpl-primary);
    color: #fff;
}

/* -------- Responsive guards for these upgrades -------- */
@media (max-width: 767px) {
    .service-details .text ul { grid-template-columns: 1fr; }
    .te-breadcumb-area { padding: 70px 0 40px; }
    .te-comment-respond { padding: 20px; }
    .product-list .te-main-menu ul li a { padding: 8px 12px !important; font-size: 13px; }
    .te-contact-info .te-icon-card.style-2 { padding: 14px 16px; }
}

/* ==========================================================================
   17. Targeted Mobile Fixes
   ========================================================================== */

/* ---- Rent Smart Today hero section ---- */
@media (max-width: 991px) {
    .hero { padding: 50px 0 !important; }
    .hero-inner {
        grid-template-columns: 1fr !important;
        padding: 28px !important;
        gap: 28px !important;
        border-radius: 18px !important;
    }
    .hero-content h1 {
        font-size: clamp(1.75rem, 6vw, 2.3rem) !important;
        line-height: 1.25 !important;
    }
    .hero-text {
        font-size: 15px !important;
        max-width: 100% !important;
    }
    .hero-image {
        order: -1;
        text-align: center;
    }
    .hero-image img {
        max-width: 320px;
        margin: 0 auto;
    }
    .features-list {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-bottom: 22px !important;
    }
    .feature { font-size: 14px !important; }
    .cta-btn {
        display: block !important;
        text-align: center !important;
        padding: 14px 24px !important;
        width: 100% !important;
        max-width: 340px;
    }
}
@media (max-width: 575px) {
    .hero-inner { padding: 22px !important; }
    .hero-content h1 { font-size: clamp(1.5rem, 6.5vw, 2rem) !important; }
    .badge { font-size: 12px !important; padding: 8px 14px !important; }
}

/* ---- Our Location: 2 cards per row on mobile, 3 per row on small tablet ---- */
.location-container {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px !important;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}
.location-card {
    position: relative;
    width: auto !important;
    padding: 22px 16px !important;
    border-radius: 14px !important;
    overflow: hidden;
}
@media (max-width: 1199px) {
    .location-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .location-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px !important; }
    .location-card { padding: 18px 12px !important; }
    .location-card h3 { font-size: 1.05rem !important; }
    .location-card p { font-size: 13px !important; line-height: 1.4 !important; }
    #our-location h2 { font-size: 1.5rem !important; }
}
@media (max-width: 360px) {
    .location-container { grid-template-columns: 1fr; }
}

/* ---- Stats / counter section center alignment ---- */
.te-counter-card,
.te-counter-area .row {
    justify-content: center !important;
    text-align: center !important;
}
.te-counter-item {
    text-align: center !important;
    padding: 16px 12px;
}
.te-counter-item .te-counter-title,
.te-counter-item .title,
.te-counter-item h2,
.te-counter-item .count {
    justify-content: center !important;
    text-align: center !important;
}
@media (max-width: 767px) {
    .te-counter-card > [class*="col-"],
    .te-counter-area [class*="col-"] {
        display: flex;
        justify-content: center;
        margin-bottom: 18px;
    }
    .te-counter-item {
        width: 100%;
        max-width: 340px;
    }
}

/* ---- Footer mobile alignment: consistent left alignment, proper spacing ---- */
@media (max-width: 991px) {
    .te-footer-sec .row > [class*="col-"] {
        margin-bottom: 30px;
    }
    .te-footer-widget,
    .te-footer-widget-info,
    .te-footer-widget.te_widget_nav_menu,
    .te-footer-widget.te_widget_contact {
        text-align: left !important;
    }
    .te-footer-widget-title {
        font-size: 17px !important;
        margin-bottom: 16px !important;
    }
    .te-footer-widget ul { padding-left: 0 !important; margin: 0 !important; list-style: none !important; }
    .te-footer-widget ul li { margin-bottom: 8px; }
    .te-footer-contact li {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        word-break: break-word;
    }
    .te-footer-logo img { max-width: 160px; height: auto; }
}
@media (max-width: 575px) {
    .te-footer-widget-title { font-size: 16px !important; }
    .te-footer-widget ul li a { font-size: 14px !important; }
    .te-footer-bottom,
    .te-footer-copyright,
    .te-copyright-text { text-align: center !important; font-size: 13px !important; }
}

/* ---- Mobile menu (hamburger) styling — our injected menu ---- */
.te-mobile-nav-menu .ktpl-mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}
.te-mobile-nav-menu .ktpl-mobile-nav li {
    border-bottom: 1px solid rgba(14,43,197,0.08);
}
.te-mobile-nav-menu .ktpl-mobile-nav li:last-child { border-bottom: none; }
.te-mobile-nav-menu .ktpl-mobile-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    color: var(--ktpl-ink);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color .25s var(--ktpl-ease), padding-left .25s var(--ktpl-ease);
}
.te-mobile-nav-menu .ktpl-mobile-nav li a:hover,
.te-mobile-nav-menu .ktpl-mobile-nav li a:focus {
    color: var(--ktpl-primary);
    padding-left: 8px;
}
.te-mobile-nav-menu .ktpl-mobile-nav li a i {
    color: var(--ktpl-primary);
    font-size: 12px;
    opacity: .6;
    margin-left: 8px;
}

/* Hide ONLY the header-bar horizontal nav strip on mobile (hamburger has it now).
   Keep per-page SEO quick-links product-list strip visible. */
@media (max-width: 991px) {
    .te-header-menu-area .row.product-list,
    .te-header-menu-wrapper .row.product-list,
    header .row.product-list {
        display: none !important;
    }
}

/* Sidebar premium polish */
.te-menu-sidebar-area {
    width: 320px !important;
    max-width: 85vw;
    background: #fff;
    box-shadow: 0 20px 60px rgba(11,27,58,0.18);
}
.te-menu-sidebar-area.active {
    transform: translateX(0) !important;
}

/* ---- Generic section breathing room on mobile ---- */
@media (max-width: 991px) {
    .te-hero-area, .te-breadcumb-area,
    .te-feature-area, .te-about-area, .te-service-area,
    .te-testimonial-area, .te-counter-area, .te-faq-area,
    .te-contact-area, .te-blog-area, .te-team-area,
    section[class*="te-"] {
        padding-top: clamp(40px, 7vw, 70px) !important;
        padding-bottom: clamp(40px, 7vw, 70px) !important;
    }
    .te-section-title .title,
    .te-section-content .title {
        font-size: clamp(1.4rem, 6vw, 1.9rem) !important;
        line-height: 1.25 !important;
    }
    .te-section-title .short-title {
        font-size: 13px !important;
    }
}

/* Prevent grid cards from creating horizontal scroll on mobile */
@media (max-width: 767px) {
    [class*="col-"] { padding-left: 12px !important; padding-right: 12px !important; }
    .row { margin-left: -12px !important; margin-right: -12px !important; }
    img { max-width: 100% !important; height: auto !important; }
}

/* Breadcrumb on very small screens */
@media (max-width: 575px) {
    .te-breadcumb-area { padding: 60px 0 36px !important; }
    .te-breadcumb-area .te-breadcumb-title { font-size: 1.7rem !important; }
}

/* FAQ / accordion mobile */
@media (max-width: 767px) {
    .te-faq-card .te-faq-header,
    .te-faq-card-title,
    .accordion-button {
        font-size: 14px !important;
        padding: 14px 16px !important;
    }
}

/* ==========================================================================
   FINAL MOBILE OVERRIDES — address remaining screenshot issues
   ========================================================================== */

/* Header action buttons (Call Us / Contact Us) — shrink on small screens */
@media (max-width: 991px) {
    .te-header-action,
    .te-header-btn-area,
    .te-header-btn-wrapper {
        gap: 6px !important;
    }
    .te-header-action .te-btn,
    .te-header-btn .te-btn,
    header .te-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        min-height: 36px !important;
    }
}
@media (max-width: 575px) {
    .te-header-action .te-btn,
    .te-header-btn .te-btn,
    header .te-btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
}

/* Hero H1 — hard cap font size on mobile to prevent overflow */
@media (max-width: 767px) {
    .te-hero-title,
    .te-hero-area h1,
    .te-hero-content h1,
    .te-banner-title,
    .te-banner-area h1,
    section.te-hero-area h1,
    .hero-title {
        font-size: clamp(22px, 6.2vw, 30px) !important;
        line-height: 1.22 !important;
        word-break: break-word !important;
    }
    .te-hero-area .te-hero-subtitle,
    .te-hero-content p {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }
}

/* Features list: single column on mobile with stronger selectors */
@media (max-width: 767px) {
    .te-features-list,
    .te-feature-list,
    ul.te-features,
    .feature-list,
    .te-hero-features,
    .te-hero-area ul,
    .te-hero-content ul {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding-left: 0 !important;
    }
    .te-features-list li,
    .te-feature-list li,
    ul.te-features li,
    .feature-list li,
    .te-hero-features li {
        width: 100% !important;
        margin: 0 !important;
        font-size: 14px !important;
    }
}

/* Location cards: 2-per-row on mobile with high specificity */
@media (max-width: 767px) {
    #our-location .location-container,
    #our-locations .location-container,
    .te-locations-area .location-container,
    .te-our-location .row,
    .location-grid,
    .te-location-grid,
    .locations-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    #our-location .location-container > *,
    #our-locations .location-container > *,
    .te-locations-area .location-container > *,
    .te-our-location .row > [class*="col-"],
    .location-grid > *,
    .locations-row > [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    .te-location-card,
    .location-card,
    .te-location-item {
        padding: 12px 10px !important;
        font-size: 12px !important;
        text-align: center !important;
    }
    .te-location-card h3,
    .te-location-card h4,
    .location-card h3,
    .location-card h4 {
        font-size: 14px !important;
        margin-bottom: 4px !important;
    }
}

/* Stats: centered layout with high specificity */
@media (max-width: 767px) {
    .te-stats-area,
    .te-funfact-area,
    .te-counter-area,
    .stats-section {
        text-align: center !important;
    }
    .te-stats-area .row,
    .te-funfact-area .row,
    .te-counter-area .row,
    .stats-row {
        justify-content: center !important;
    }
    .te-stats-item,
    .te-funfact-item,
    .te-counter-item,
    .stat-item,
    .stats-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 6px !important;
        padding: 14px 10px !important;
    }
    .te-stats-item i,
    .te-stats-item svg,
    .te-stats-item img,
    .te-funfact-item i,
    .te-funfact-item svg,
    .stat-item i,
    .stat-item svg {
        margin: 0 auto 6px !important;
        display: block !important;
    }
    .te-stats-item .te-stats-number,
    .te-funfact-item .te-funfact-number,
    .te-counter-item .counter,
    .stat-number {
        font-size: 26px !important;
        font-weight: 700 !important;
    }
    .te-stats-item p,
    .te-funfact-item p,
    .stat-item p {
        font-size: 13px !important;
        margin: 0 !important;
    }
}

/* Footer quick-links: clean mobile alignment */
@media (max-width: 767px) {
    .te-footer-widget,
    .te-footer-area .te-footer-col,
    footer .te-footer-widget {
        margin-bottom: 24px !important;
        text-align: left !important;
    }
    .te-footer-widget h3,
    .te-footer-widget h4,
    .te-footer-title {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
    .te-footer-widget ul,
    .te-footer-links,
    .te-quick-links {
        padding-left: 0 !important;
        list-style: none !important;
    }
    .te-footer-widget ul li,
    .te-footer-links li,
    .te-quick-links li {
        padding: 4px 0 !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
    .te-footer-widget ul li a,
    .te-footer-links li a {
        display: inline-block !important;
    }
}

/* "Rent Smart Today" CTA band — compact on mobile */
@media (max-width: 767px) {
    .te-cta-area,
    .te-rent-smart,
    section[class*="rent-smart"],
    .te-contact-cta {
        padding: 30px 16px !important;
        text-align: center !important;
    }
    .te-cta-area h2,
    .te-cta-area h3,
    .te-rent-smart h2,
    .te-rent-smart h3,
    .te-contact-cta h2 {
        font-size: 22px !important;
        line-height: 1.25 !important;
        margin-bottom: 10px !important;
    }
    .te-cta-area p,
    .te-rent-smart p {
        font-size: 14px !important;
        margin-bottom: 14px !important;
    }
    .te-cta-area .te-btn,
    .te-rent-smart .te-btn {
        display: inline-block !important;
        margin: 4px !important;
        padding: 10px 18px !important;
        font-size: 13px !important;
    }
}

/* Contact form: ensure always visible + readable on mobile */
@media (max-width: 767px) {
    .te-contact-form-area,
    .te-comment-form,
    #contact-form,
    form.contact-form {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        padding: 16px !important;
    }
    .te-comment-form input,
    .te-comment-form textarea,
    .te-comment-form select,
    form input[type="text"],
    form input[type="email"],
    form input[type="tel"],
    form textarea {
        width: 100% !important;
        font-size: 14px !important;
        padding: 10px 12px !important;
        min-height: 42px !important;
    }
    .te-comment-form textarea,
    form textarea {
        min-height: 100px !important;
    }
    .te-comment-form .te-btn,
    form button[type="submit"] {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
    }
}

/* Prevent horizontal scroll everywhere */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* Hide desktop horizontal nav on mobile — meanmenu hamburger handles it */
@media (max-width: 991px) {
    #primary-menu,
    #main-menu,
    nav.te-main-menu,
    .te-main-menu > ul,
    .te-header-menu-area nav.te-main-menu,
    .te-header-menu-wrapper nav.te-main-menu {
        display: none !important;
    }
    /* Keep meanmenu-generated mobile nav visible */
    .mean-container,
    .mean-container .mean-bar,
    .mean-container .mean-nav,
    .te-mobile-nav-menu {
        display: block !important;
    }
}

/* ==========================================================================
   PREMIUM DESKTOP NAVIGATION BAR
   ========================================================================== */
@media (min-width: 992px) {
  /* Reset header-menu-area (we do NOT want a gradient on the whole header) */
  .te-header-menu-area,
  .te-header-menu-wrapper,
  header .te-header-menu-area {
    background: #ffffff !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 14px rgba(15,23,42,0.06) !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    max-width: none !important;
    position: relative !important;
    overflow: visible !important;
  }
  .te-header-menu-area::before { content: none !important; }

  /* Apply premium gradient ONLY to the SEO/primary nav strip (product-list row) */
  .te-header-menu-area .row.product-list {
    background: linear-gradient(135deg, #1e3a8a 0%, #2d4ed8 45%, #3b5bdb 100%) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 30px -10px rgba(30, 58, 138, 0.45),
                0 2px 6px rgba(30, 58, 138, 0.15) !important;
    padding: 4px 16px !important;
    margin: 14px auto 6px !important;
    max-width: 1240px !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .te-header-menu-area .row.product-list::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: radial-gradient(800px 200px at 20% 0%, rgba(255,255,255,0.18), transparent 60%),
                radial-gradient(600px 160px at 80% 100%, rgba(255,255,255,0.10), transparent 60%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }
  .te-header-menu-area .row.product-list > * { position: relative !important; z-index: 1 !important; }  #primary-menu > ul {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }  #primary-menu > ul > li {
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
  }  #primary-menu > ul > li > a {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14.5px !important;
    letter-spacing: 0.2px !important;
    padding: 14px 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    border-radius: 10px !important;
    transition: all .28s cubic-bezier(.4,0,.2,1) !important;
    position: relative !important;
    text-transform: none !important;
  }

  /* Remove the ugly chevron separators */  #primary-menu > ul > li > a::after,
  nav.te-main-menu > ul > li > a > i.fa-chevron-right,
  nav.te-main-menu > ul > li > a > i.fa-angle-right {
    display: none !important;
  }

  /* Animated underline accent */  #primary-menu > ul > li > a::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 6px !important;
    transform: translateX(-50%) scaleX(0) !important;
    width: 28px !important;
    height: 2px !important;
    background: #ffd447 !important;
    border-radius: 2px !important;
    transition: transform .3s ease !important;
    transform-origin: center !important;
  }  #primary-menu > ul > li:hover > a,
  #primary-menu > ul > li.active > a,
  #primary-menu > ul > li.current-menu-item > a {
    background: rgba(255,255,255,0.14) !important;
    color: #ffd447 !important;
    transform: translateY(-1px) !important;
  }  #primary-menu > ul > li:hover > a::before,
  #primary-menu > ul > li.active > a::before,
  #primary-menu > ul > li.current-menu-item > a::before {
    transform: translateX(-50%) scaleX(1) !important;
  }

  /* Dropdown submenu premium look */  #primary-menu ul.sub-menu,
  #primary-menu ul ul {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 8px !important;
    min-width: 220px !important;
    box-shadow: 0 20px 50px -12px rgba(15,23,42,0.25), 0 4px 12px rgba(15,23,42,0.08) !important;
    border: 1px solid rgba(15,23,42,0.06) !important;
    margin-top: 8px !important;
  }  #primary-menu ul.sub-menu li a {
    color: #0f172a !important;
    font-weight: 500 !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
  }  #primary-menu ul.sub-menu li a:hover {
    background: linear-gradient(90deg, rgba(45,78,216,0.08), rgba(45,78,216,0.02)) !important;
    color: #2d4ed8 !important;
  }
}

/* Header top row (logo + contact) tighter spacing */
@media (min-width: 992px) {
  .te-header-top,
  .te-header-top-area,
  header > .container > .row:first-child {
    padding: 14px 0 !important;
  }
  .te-header-action .te-btn,
  header .te-btn {
    background: linear-gradient(135deg, #2d4ed8, #3b5bdb) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 10px 22px !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 20px -8px rgba(45,78,216,0.6) !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
  }
  .te-header-action .te-btn:hover,
  header .te-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 26px -10px rgba(45,78,216,0.7) !important;
  }
}

/* ==========================================================================
   PRODUCT QUERY MODAL — validation states
   ========================================================================== */
#productQueryForm .ktpl-input.is-invalid,
#productQueryForm .form-control.is-invalid {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.12) !important;
}
#productQueryForm .ktpl-input.is-valid,
#productQueryForm .form-control.is-valid {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12) !important;
}
#productQueryForm .ktpl-field-error {
  color: #dc2626 !important;
  font-size: 12px !important;
  margin-top: 4px !important;
  font-weight: 500 !important;
  display: block !important;
}
#productQueryForm .ktpl-input:focus,
#productQueryForm .form-control:focus {
  border-color: #2d4ed8 !important;
  box-shadow: 0 0 0 3px rgba(45,78,216,0.15) !important;
  outline: none !important;
}
#productQueryForm .ktpl-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
.ktpl-form-status.is-success {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  margin-top: 10px !important;
  border: 1px solid #a7f3d0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}
.ktpl-form-status.is-error {
  background: #fef2f2 !important;
  color: #991b1b !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  margin-top: 10px !important;
  border: 1px solid #fecaca !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* ==========================================================================
   Hide top header Call Us + Contact Us on mobile (moved into hamburger nav)
   ========================================================================== */
@media (max-width: 991px) {
  .te-header-top,
  .te-header-top-area,
  .te-header-btn,
  .te-header-btn-area,
  .te-header-action,
  header .te-quote-btn,
  header a[href^="tel:"],
  header .te-header-call {
    display: none !important;
  }
  /* Keep logo + hamburger row visible */
  .te-header-menu-wrapper,
  .te-header-logo,
  .te-header-logo-area {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
}

/* ==========================================================================
   HOMEPAGE QUICK QUOTE SECTION
   ========================================================================== */
.ktpl-quick-quote-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #f0f4ff 0%, #eef2ff 100%);
  position: relative;
  overflow: hidden;
}
.ktpl-quick-quote-section::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(45,78,216,0.14), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.ktpl-quick-quote-section::after {
  content: "";
  position: absolute;
  bottom: -100px; left: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,212,71,0.18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.ktpl-qq-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 24px 60px -18px rgba(15,23,42,0.18), 0 4px 12px rgba(15,23,42,0.06);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(45,78,216,0.06);
}
.ktpl-qq-left { display: flex; flex-direction: column; justify-content: center; }
.ktpl-qq-eyebrow {
  display: inline-block;
  background: linear-gradient(135deg, #ffd447, #ffc107);
  color: #0b1b3a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  align-self: flex-start;
}
.ktpl-qq-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: #0b1b3a;
  margin-bottom: 12px;
  line-height: 1.2;
}
.ktpl-qq-sub {
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.ktpl-qq-points {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ktpl-qq-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
}
.ktpl-qq-points i {
  color: #16a34a;
  font-size: 16px;
}

.ktpl-qq-right {
  background: #fafbff;
  border-radius: 14px;
  padding: 26px;
  border: 1px solid #e2e8f0;
}
.ktpl-qq-form-title {
  font-size: 20px;
  font-weight: 700;
  color: #0b1b3a;
  margin-bottom: 16px;
}
.ktpl-qq-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.ktpl-qq-field { display: flex; flex-direction: column; }
.ktpl-qq-field.ktpl-qq-full { grid-column: 1 / -1; }
.ktpl-qq-field label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.ktpl-qq-field input,
.ktpl-qq-field select,
.ktpl-qq-field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, background .2s;
  font-family: inherit;
}
.ktpl-qq-field input:focus,
.ktpl-qq-field select:focus,
.ktpl-qq-field textarea:focus {
  outline: none;
  border-color: #2d4ed8;
  box-shadow: 0 0 0 3px rgba(45,78,216,0.15);
}
.ktpl-qq-field .qq-invalid {
  border-color: #dc2626 !important;
  background: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1) !important;
}
.qq-err {
  color: #dc2626;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}
.ktpl-qq-submit {
  width: 100%;
  background: linear-gradient(135deg, #2d4ed8, #1e3a8a);
  color: #fff;
  border: none;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 10px 24px -10px rgba(45,78,216,0.6);
  transition: transform .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ktpl-qq-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(45,78,216,0.7);
}
.ktpl-qq-submit:disabled { opacity: .7; cursor: wait; }
.ktpl-qq-privacy {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0;
}
.ktpl-qq-privacy i { color: #2d4ed8; margin-right: 4px; }
.ktpl-qq-status {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
}
.ktpl-qq-status.is-success {
  background: #ecfdf5;
  color: #065f46;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #a7f3d0;
}
.ktpl-qq-status.is-error {
  background: #fef2f2;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #fecaca;
}
.ktpl-qq-right .ktpl-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important; visibility: hidden !important;
}

/* Quick Quote - mobile */
@media (max-width: 991px) {
  .ktpl-qq-card { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
}
@media (max-width: 575px) {
  .ktpl-quick-quote-section { padding: 40px 0; }
  .ktpl-qq-card { padding: 18px; border-radius: 14px; }
  .ktpl-qq-right { padding: 18px; }
  .ktpl-qq-row { grid-template-columns: 1fr; gap: 10px; }
  .ktpl-qq-title { font-size: 22px; }
}

/* ==========================================================================
   FORCE-HIDE top-header Call Us + Contact Us strip on ALL mobile pages
   (This row holds the two top-right buttons only; hamburger shows them instead)
   ========================================================================== */
@media (max-width: 991px) {
  nav#main-menu,
  nav#main-menu ul,
  nav#main-menu ul li,
  nav#main-menu ul li a,
  .te-menu > nav#main-menu,
  .te-menu .te-main-menu:not(.ktpl-primary-nav),
  .te-header-area .te-menu > nav:not(#primary-menu),
  li.te-header-btn,
  .te-header-btn {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .te-header-area .container > .row:first-child,
  .te-header-area .container-fluid > .row:first-child { align-items: center !important; }
  .te-header-area .col-xl-9.col-lg-9 { justify-content: flex-end !important; }
  .te-mobile-menu-bar { display: block !important; margin-left: auto !important; }
  .te-mobile-menu-toggle-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: #f1f5f9 !important;
    border-radius: 10px !important;
    color: #0b1b3a !important;
    font-size: 20px !important;
  }
}

/* Swiper fallback: keeps hero/testimonials usable if the CDN is blocked. */
.swiper {
  position: relative;
  overflow: hidden;
}
.swiper-wrapper {
  display: flex;
  width: 100%;
}
.swiper-slide {
  flex-shrink: 0;
  width: 100%;
}
.myHeroSwiper:not(.swiper-initialized) .swiper-wrapper,
.myHeroSwiper.ktpl-swiper-fallback .swiper-wrapper {
  display: block;
}
.myHeroSwiper:not(.swiper-initialized) .swiper-slide,
.myHeroSwiper.ktpl-swiper-fallback .swiper-slide {
  display: none;
}
.myHeroSwiper:not(.swiper-initialized) .swiper-slide:first-child,
.myHeroSwiper.ktpl-swiper-fallback .swiper-slide.is-active {
  display: block;
}
.myTestimonialSwiper:not(.swiper-initialized) .swiper-wrapper,
.myTestimonialSwiper.ktpl-swiper-fallback .swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.myTestimonialSwiper:not(.swiper-initialized) .swiper-slide,
.myTestimonialSwiper.ktpl-swiper-fallback .swiper-slide {
  width: auto;
}
@media (max-width: 1199px) {
  .myTestimonialSwiper:not(.swiper-initialized) .swiper-wrapper,
  .myTestimonialSwiper.ktpl-swiper-fallback .swiper-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .myTestimonialSwiper:not(.swiper-initialized) .swiper-wrapper,
  .myTestimonialSwiper.ktpl-swiper-fallback .swiper-wrapper {
    grid-template-columns: 1fr;
  }
}
