/* =============================================
   KODUTEHNIKARENT - Custom CSS
   ============================================= */

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal overflow on mobile without breaking sticky */
main,
footer {
    max-width: 100%;
    overflow-x: hidden;
}

/* No border-radius anywhere on the site */
*,
*::before,
*::after {
    border-radius: 0 !important;
}

/* Exception: cart count badge should be round */
.cart-count-badge {
    border-radius: 9999px !important;
}

/* =============================================
   Poe lehe otsing (vasak joondus, kõrgem kontrast)
   ============================================= */
.ktr-shop-search-band {
    background: linear-gradient(180deg, #eff6fc 0%, #f1f5f9 55%, #f8fafc 100%);
}

.ktr-shop-search-row-wrap {
    border: 2px solid #cbd5e1 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ktr-shop-search-minimal:focus-within .ktr-shop-search-row-wrap {
    border-color: #0077b6 !important;
    box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.2), 0 4px 14px rgba(0, 119, 182, 0.12) !important;
}

.ktr-shop-search-icon-slot {
    background: rgba(0, 119, 182, 0.1);
    border-right: 2px solid rgba(0, 119, 182, 0.15);
    color: #0077b6;
}

.ktr-shop-search-minimal .ktr-search-input {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    min-height: 3rem;
    /* Tailwind build ei sisalda pl-/pr-utiliite; padding peab olema siin */
    padding: 0.625rem 1.25rem !important;
}

@media (min-width: 768px) {
    .ktr-shop-search-minimal .ktr-search-input {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

.ktr-shop-search-minimal .ktr-search-input:focus,
.ktr-shop-search-minimal .ktr-search-input:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.ktr-shop-search-dropdown {
    border-radius: 4px !important;
}

/* Päise tooteotsing (kompaktne, tulemuste loend laiem kui väli) */
.ktr-header-product-search .ktr-header-search-row {
    min-height: 2.375rem;
}

@media (min-width: 768px) {
    .ktr-header-product-search .ktr-header-search-row {
        min-height: 2.75rem;
    }
}

.ktr-header-product-search.ktr-shop-search-minimal .ktr-search-input {
    min-height: 2.375rem !important;
    padding: 0.375rem 0.625rem !important;
    font-size: 0.875rem !important;
}

.ktr-header-product-search .ktr-search-input::placeholder {
    color: #64748b;
    opacity: 1;
}

@media (min-width: 768px) {
    .ktr-header-product-search.ktr-shop-search-minimal .ktr-search-input {
        min-height: 2.75rem !important;
        padding: 0.5rem 0.875rem !important;
        font-size: 1rem !important;
    }
}

.ktr-header-search-dropdown {
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: min(calc(100vw - 2rem), 22rem);
    z-index: 100;
    /* max-h/overflow-y Tailwind buildis puuduvad — piirame kõrgust ja lubame kerimist */
    max-height: min(55vh, 21rem);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    /* .ktr-search-dropdown { box-shadow: none } muidu nullib shadow-lg */
    box-shadow:
        0 12px 40px rgba(15, 23, 42, 0.14),
        0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

/* Selgem kerimisriba tulemuste loendis (Windows / WebKit) */
.ktr-header-search-dropdown::-webkit-scrollbar {
    width: 8px;
}

.ktr-header-search-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px !important;
}

.ktr-header-search-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px !important;
}

.ktr-header-search-dropdown::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (min-width: 768px) {
    .ktr-header-search-dropdown {
        left: auto;
        right: 0;
        width: min(calc(100vw - 2rem), 24rem);
    }
}

.ktr-search-combined,
.ktr-search-dropdown:not(.ktr-shop-search-dropdown),
.ktr-search-item .ktr-search-thumb,
.ktr-search-item .ktr-search-thumb-ph,
.ktr-search-kbd {
    border-radius: 4px !important;
}

.ktr-search-field-label {
    display: block;
    margin: 0 0 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.01em;
}

.ktr-search-combined {
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ktr-search-combined:focus-within {
    border-color: #94a3b8 !important;
    box-shadow: 0 0 0 1px rgba(0, 119, 182, 0.2);
}

/* Vältib Windows/Chrome search-välja „musta kasti“ ja fookuse topeltjooni */
.ktr-search-input {
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.ktr-search-input:focus,
.ktr-search-input:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.ktr-search-input::-webkit-search-decoration,
.ktr-search-input::-webkit-search-cancel-button,
.ktr-search-input::-webkit-search-results-button,
.ktr-search-input::-webkit-search-results-decoration {
    display: none;
    -webkit-appearance: none;
}

.ktr-search-dropdown {
    box-shadow: none;
}

.ktr-search-footnote {
    max-width: 22rem;
}

.ktr-search-kbd {
    display: inline-block;
    padding: 0.1em 0.45em;
    font-size: 0.85em;
    font-family: inherit;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    vertical-align: baseline;
}

.ktr-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.35rem 1rem;
    color: #64748b;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

.ktr-search-loading .dot {
    width: 5px;
    height: 5px;
    border-radius: 9999px !important;
    background: #94a3b8;
    animation: ktrSearchDot 0.9s ease-in-out infinite;
}

.ktr-search-loading .dot:nth-child(2) {
    animation-delay: 0.15s;
}

.ktr-search-loading .dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes ktrSearchDot {
    0%,
    80%,
    100% {
        opacity: 0.28;
        transform: scale(0.85);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

.ktr-search-item {
    text-decoration: none;
    border-left: none;
    transition: background-color 0.14s ease;
}

.ktr-search-item:hover,
.ktr-search-item:focus-visible {
    background-color: #f8fafc;
    outline: none;
}

.ktr-search-item.ktr-search-item-active {
    background-color: #f1f5f9;
}

.ktr-search-item--text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.65rem 1rem;
    text-align: left;
    color: inherit;
}

.ktr-search-item-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem 0.65rem;
    width: 100%;
}

.ktr-search-item-title {
    flex: 1;
    min-width: 8rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ktr-search-item-badge {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0.1rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    line-height: 1.2;
    border-radius: 3px !important;
}

.ktr-search-item-badge--rent {
    background: rgba(0, 95, 148, 0.12);
    color: #005f94;
}

.ktr-search-item-badge--buy {
    background: rgba(0, 119, 182, 0.1);
    color: #0077b6;
}

.ktr-search-item-badge--quote {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

.ktr-search-item-price {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.ktr-search-thumb-ph {
    background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Scroll margin for anchor links */
.scroll-mt-24 {
    scroll-margin-top: 4rem;
}

@media (min-width: 768px) {
    .scroll-mt-24 {
        scroll-margin-top: 6rem;
    }
}

/* =============================================
   Päise paigutus: menüü keskel (töölaud)
   ============================================= */
.ktr-header-bar {
    position: relative;
}

.ktr-header-nav-desktop {
    display: none;
}

@media (min-width: 1281px) {
    .ktr-header-nav-desktop {
        display: flex;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 5;
        max-width: min(52vw, 34rem);
        padding: 0 0.5rem;
        box-sizing: border-box;
    }
}

/* =============================================
   Desktop Navigation Menu
   ============================================= */
.desktop-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.desktop-nav-menu li {
    margin: 0;
    list-style: none;
}

.desktop-nav-menu li a,
.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    position: relative;
}

.desktop-nav-menu li a::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0;
    height: 2px;
    background: #0077b6;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.desktop-nav-menu li a:hover {
    color: #0077b6;
}

.desktop-nav-menu li a:hover::after {
    transform: scaleX(1);
}

.desktop-nav-menu li.current-menu-item > a,
.desktop-nav-menu li.current_page_item > a,
.desktop-nav-menu li.current-menu-ancestor > a {
    color: #0077b6;
    font-weight: 600;
}

.desktop-nav-menu li.current-menu-item > a::after,
.desktop-nav-menu li.current_page_item > a::after,
.desktop-nav-menu li.current-menu-ancestor > a::after {
    transform: scaleX(1);
}

/* =============================================
   Mobile Navigation Overlay
   ============================================= */

/* Dark backdrop behind mobile menu — starts below header */
.mobile-nav-backdrop {
    position: fixed;
    top: 65px; /* vaikimisi: üks päiserida */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Panel that grows downward from header bottom edge */
.mobile-nav-panel {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-panel.is-open {
    max-height: calc(100vh - 65px);
    overflow-y: auto;
}

/* Offset for WP admin bar */
.admin-bar .mobile-nav-backdrop {
    top: calc(65px + 46px);
}

.admin-bar .mobile-nav-panel {
    top: calc(65px + 46px);
}

.admin-bar .mobile-nav-panel.is-open {
    max-height: calc(100vh - 65px - 46px);
}

/* Between tablet and desktop, header is taller (h-24). */
@media (min-width: 768px) and (max-width: 1279px) {
    .mobile-nav-backdrop {
        top: 97px;
    }

    .mobile-nav-panel {
        top: 97px;
    }

    .mobile-nav-panel.is-open {
        max-height: calc(100vh - 97px);
    }

    .admin-bar .mobile-nav-backdrop {
        top: calc(97px + 46px);
    }

    .admin-bar .mobile-nav-panel {
        top: calc(97px + 46px);
    }

    .admin-bar .mobile-nav-panel.is-open {
        max-height: calc(100vh - 97px - 46px);
    }
}

@media (min-width: 783px) {
    .admin-bar .mobile-nav-backdrop {
        top: calc(65px + 32px);
    }

    .admin-bar .mobile-nav-panel {
        top: calc(65px + 32px);
    }

    .admin-bar .mobile-nav-panel.is-open {
        max-height: calc(100vh - 65px - 32px);
    }
}

/* =============================================
   Hamburger Button Animation
   ============================================= */
.hamburger-btn {
    position: relative;
    cursor: pointer;
}

.ktr-mobile-toggle {
    display: inline-flex;
}

@media (min-width: 1281px) {
    .ktr-mobile-toggle {
        display: none !important;
    }
}

.hamburger-icon {
    width: 22px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}

/* When menu is open: animate to X */
.hamburger-btn.is-active .hamburger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.is-active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.is-active .hamburger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   Mobile Navigation Menu Items
   ============================================= */
.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-menu li {
    list-style: none;
    margin: 0;
}

.mobile-nav-menu li a {
    display: block;
    padding: 0.875rem 1rem;
    font-size: 1.0625rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    border-radius: 0;
    transition: color 0.2s, background-color 0.2s;
}

.mobile-nav-menu li a:hover {
    color: #0077b6;
    background-color: #eff6ff;
}

.mobile-nav-menu li.current-menu-item > a,
.mobile-nav-menu li.current_page_item > a {
    color: #0077b6;
    background-color: #eff6ff;
    font-weight: 600;
}

/* =============================================
   WooCommerce Price Styles
   ============================================= */
.woocommerce-Price-amount {
    font-weight: 800;
}

del .woocommerce-Price-amount {
    font-weight: 500;
    color: #94a3b8;
}

ins {
    text-decoration: none;
}

/* Hide "View Cart" link after add to cart */
.added_to_cart.wc-forward {
    display: none !important;
}

/* =============================================
   Cart Notification
   ============================================= */
.cart-notification {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 99999;
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.cart-notification-visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.cart-notification-inner {
    width: 360px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.cart-notification-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: #f0fdf4;
    border-bottom: 1px solid #dcfce7;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #166534;
}

.cart-notification-badge {
    width: 20px;
    height: 20px;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-notification-badge svg {
    width: 12px;
    height: 12px;
    color: #fff;
    stroke-width: 3;
}

.cart-notification-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #6b7280;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-notification-close:hover {
    color: #1f2937;
}

.cart-notification-close svg {
    width: 16px;
    height: 16px;
}

.cart-notification-body {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
}

.cart-notification-img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.cart-notification-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-notification-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-notification-icon svg {
    width: 24px;
    height: 24px;
    color: #0077b6;
}

.cart-notification-details {
    flex: 1;
    min-width: 0;
}

.cart-notification-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.cart-notification-price {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

.cart-notification-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem 1rem;
}

.cart-notification-btn-outline {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s;
}

.cart-notification-btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.cart-notification-btn-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: #0077b6;
    border: 1px solid #0077b6;
    text-decoration: none;
    transition: all 0.2s;
}

.cart-notification-btn-primary:hover {
    background: #005f94;
    border-color: #005f94;
}

@media (max-width: 480px) {
    .cart-notification {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(120%);
    }

    .cart-notification-visible {
        transform: translateY(0);
    }

    .cart-notification-inner {
        width: 100%;
    }
}

/* =============================================
   WooCommerce Notices
   ============================================= */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0;
    font-size: 0.875rem;
}

.woocommerce-message {
    background: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.woocommerce-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.woocommerce-error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
    list-style: none;
    padding-left: 1.5rem;
}

/* =============================================
   Admin Bar Fix
   ============================================= */
.admin-bar .sticky {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .sticky {
        top: 46px;
    }
}

/* =============================================
   Prose / Content Styles
   ============================================= */
.prose h1 { font-size: 2.25rem; font-weight: 800; margin-bottom: 1rem; color: #0f172a; }
.prose h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.75rem; margin-top: 2rem; color: #0f172a; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; margin-top: 1.5rem; color: #0f172a; }
.prose p { margin-bottom: 1rem; line-height: 1.75; color: #475569; }
.prose a { color: #0077b6; text-decoration: underline; }
.prose a:hover { color: #005f94; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; color: #475569; }
.prose li { margin-bottom: 0.5rem; }
.prose img { border-radius: 0; margin: 1.5rem 0; }

/* =============================================
   Contact Page Form Styles
   ============================================= */
.page-template-page-kontakt input:focus,
.page-template-page-kontakt textarea:focus {
    outline: none;
    border-color: #0077b6;
    box-shadow: 0 0 0 2px rgba(0, 158, 221, 0.15);
}

/* CF7 form styling override (if used) */
.page-template-page-kontakt .wpcf7-form > p {
    margin-bottom: 1.25rem;
}

.page-template-page-kontakt .wpcf7-form > p label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.page-template-page-kontakt .wpcf7 input[type="text"],
.page-template-page-kontakt .wpcf7 input[type="email"],
.page-template-page-kontakt .wpcf7 textarea {
    width: 100%;
    height: 3rem;
    padding: 0 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    transition: border-color 0.2s;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.page-template-page-kontakt .wpcf7 textarea {
    height: auto;
    min-height: 180px;
    padding: 1rem;
    resize: none;
}

.page-template-page-kontakt .wpcf7 input[type="text"]:focus,
.page-template-page-kontakt .wpcf7 input[type="email"]:focus,
.page-template-page-kontakt .wpcf7 textarea:focus {
    border-color: #0077b6;
    box-shadow: 0 0 0 2px rgba(0, 158, 221, 0.15);
}

.page-template-page-kontakt .wpcf7 input[type="submit"] {
    background: #0077b6;
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.page-template-page-kontakt .wpcf7 input[type="submit"]:hover {
    background: #005f94;
}

/* =============================================
   Hero Banner Animations
   ============================================= */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-animate {
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out forwards;
}

.hero-animate-1 {
    animation-delay: 0.15s;
}

.hero-animate-2 {
    animation-delay: 0.4s;
}

.hero-animate-3 {
    animation-delay: 0.65s;
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-animate {
        opacity: 1;
        animation: none;
    }
}

/* Add left breathing room and slightly smaller hero copy on narrow screens */
@media (max-width: 767px) {
    .ktr-hero-content {
        padding-left: 0.75rem;
        max-width: 34rem;
    }

    .ktr-hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .ktr-hero-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* =============================================
   Quote Request Modal
   ============================================= */
.ktr-quote-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ktr-quote-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.ktr-quote-dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.25);
}

.ktr-quote-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.ktr-quote-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.ktr-quote-title i,
.ktr-quote-title svg {
    color: #0077b6;
}

.ktr-quote-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.ktr-quote-close:hover {
    color: #0f172a;
}

.ktr-quote-body {
    padding: 1.5rem;
}

.ktr-quote-product-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #005f94;
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    padding: 0.625rem 0.875rem;
    margin-bottom: 1.25rem;
}

/* CF7 form styling inside quote modal */
.ktr-quote-body .wpcf7 {
    margin: 0;
}

.ktr-quote-body .wpcf7-form p {
    margin-bottom: 1rem;
}

.ktr-quote-body .wpcf7-form p:last-of-type {
    margin-bottom: 0;
}

.ktr-quote-body .wpcf7-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

.ktr-quote-body .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):not(.wpcf7-checkbox):not(.wpcf7-radio) {
    width: 100%;
    height: 2.75rem;
    padding: 0 0.875rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    font-size: 0.875rem;
    font-family: "Inter", sans-serif;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.ktr-quote-body .wpcf7-form select.wpcf7-form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8.825L.35 3.175l.7-.7L6 7.425l4.95-4.95.7.7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
}

.ktr-quote-body .wpcf7-form textarea.wpcf7-form-control {
    height: auto;
    min-height: 90px;
    padding: 0.75rem 0.875rem;
    resize: vertical;
    line-height: 1.5;
}

.ktr-quote-body .wpcf7-form-control:not(.wpcf7-submit):focus {
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.12);
    background: #fff;
}

/* Submit button */
.ktr-quote-body .wpcf7-form input[type="submit"],
.ktr-quote-body .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 3rem;
    margin-top: 0.25rem;
    padding: 0 1.5rem;
    background: #0077b6;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: "Inter", sans-serif;
    letter-spacing: 0.01em;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.ktr-quote-body .wpcf7-form input[type="submit"]:hover,
.ktr-quote-body .wpcf7-submit:hover {
    background: #005f94;
}

.ktr-quote-body .wpcf7-form input[type="submit"]:active,
.ktr-quote-body .wpcf7-submit:active {
    transform: scale(0.98);
}

/* Spinner */
.ktr-quote-body .wpcf7 .wpcf7-spinner {
    display: block;
    margin: 0.75rem auto 0;
}

/* Validation error per field */
.ktr-quote-body .wpcf7-not-valid-tip {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #dc2626;
    margin-top: 0.375rem;
    padding-left: 0.125rem;
}

/* Invalid field border */
.ktr-quote-body .wpcf7-not-valid {
    border-color: #fca5a5 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Response messages (success / error / spam etc.) */
.ktr-quote-body .wpcf7-response-output {
    margin: 1.25rem 0 0 !important;
    padding: 0.875rem 1rem !important;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
    border: none !important;
    border-radius: 0;
    border-left: 3px solid transparent !important;
}

/* Success */
.ktr-quote-body .wpcf7-form.sent .wpcf7-response-output {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border-left-color: #10b981 !important;
}

/* Validation failed */
.ktr-quote-body .wpcf7-form.invalid .wpcf7-response-output,
.ktr-quote-body .wpcf7-form.unaccepted .wpcf7-response-output {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border-left-color: #ef4444 !important;
}

/* Spam blocked */
.ktr-quote-body .wpcf7-form.spam .wpcf7-response-output {
    background: #fffbeb !important;
    color: #92400e !important;
    border-left-color: #f59e0b !important;
}

/* Mail failed */
.ktr-quote-body .wpcf7-form.failed .wpcf7-response-output {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border-left-color: #ef4444 !important;
}

/* Hide response output when empty */
.ktr-quote-body .wpcf7-response-output:empty {
    display: none;
}