/* KANING AIR CONDITION - Custom styles (supplements Tailwind) */

html {
    scroll-behavior: smooth;
}

body {
    font-feature-settings: "kern" 1, "liga" 1;
}

/* Hero gradient overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(8, 145, 178, 0.35) 100%);
}

.page-hero-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.82) 100%);
}

/* Subtle grid pattern for industrial feel */
.bg-grid-pattern {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* Card hover lift */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.15);
}

/* Image zoom on hover */
.img-zoom-wrap {
    overflow: hidden;
}

.img-zoom-wrap img {
    transition: transform 0.5s ease;
}

.img-zoom-wrap:hover img {
    transform: scale(1.06);
}

/* Category catalog cards */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.category-card:hover {
    border-color: rgba(4, 107, 210, 0.25);
}

.category-card__media {
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.category-card__media img {
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.06));
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* FAQ accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-icon {
    transition: transform 0.3s ease;
}

/* Mobile nav slide */
#mobile-menu {
    transition: max-height 0.35s ease, opacity 0.35s ease;
}

#mobile-menu.hidden-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.open-menu {
    max-height: 600px;
    opacity: 1;
}

/* Stat counter accent line */
.stat-line {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #0891b2);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

/* Product gallery carousel */
.product-gallery__main {
    isolation: isolate;
}

.product-gallery__main img {
    opacity: 1;
}

.product-gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-top: -1.375rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.product-gallery__arrow:hover {
    background: #0891b2;
    color: #fff;
    border-color: #0891b2;
}

.product-gallery__arrow--prev {
    left: 0.75rem;
}

.product-gallery__arrow--next {
    right: 0.75rem;
}

.product-gallery__counter {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.product-gallery__thumb.is-active {
    border-color: #06b6d4;
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.25);
}

.product-gallery__thumbs {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.product-gallery__thumbs::-webkit-scrollbar {
    height: 6px;
}

.product-gallery__thumbs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

/* Site logo — constrained sizing (logo.png is wide format) */
.site-logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.site-logo--header {
    height: 40px;
    max-width: min(200px, 58vw);
}

.site-logo--footer {
    height: 52px;
    max-width: 240px;
}

.site-logo--admin {
    height: 40px;
    max-width: 200px;
}

.site-logo--login {
    height: 56px;
    max-width: min(300px, 85vw);
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .site-logo--header {
        height: 44px;
        max-width: 220px;
    }
}

@media (min-width: 1024px) {
    .site-logo--header {
        height: 50px;
        max-width: 260px;
    }

    .site-logo--footer {
        height: 56px;
        max-width: 280px;
    }
}

/* Floating conversion buttons (Phase 12) — scoped to prevent SVG blowout */
.floating-cta {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
    width: auto;
    max-width: none;
}

.floating-cta__btn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    box-sizing: border-box;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    overflow: hidden;
    white-space: nowrap;
}

.floating-cta__btn:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.floating-cta__btn:focus-visible {
    outline: 2px solid #06b6d4;
    outline-offset: 3px;
}

/* Icon wrapper — fixed box, never inherits parent flex stretch */
.floating-cta__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
    overflow: hidden;
}

.floating-cta__svg {
    display: block;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
    flex-shrink: 0;
}

.floating-cta__label {
    flex-shrink: 0;
}

/* Request Quote — site primary */
.floating-cta__btn--quote {
    height: 48px;
    padding: 0 20px;
    background: #0891b2;
    color: #fff;
}

.floating-cta__btn--quote:hover {
    background: #0e7490;
    color: #fff;
}

/* WhatsApp — mobile: circular icon-only */
.floating-cta__btn--whatsapp {
    width: 56px;
    height: 56px;
    max-width: 64px;
    max-height: 64px;
    padding: 0;
    background: #25D366;
    color: #fff;
    animation: floating-cta-pulse 2.5s ease-in-out infinite;
}

.floating-cta__btn--whatsapp:hover {
    background: #20bd5a;
    color: #fff;
    animation: none;
}

.floating-cta__label--whatsapp {
    display: none;
}

@keyframes floating-cta-pulse {
    0%, 100% {
        box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.45), 0 0 0 8px rgba(37, 211, 102, 0);
    }
}

/* Desktop */
@media (min-width: 640px) {
    .floating-cta__btn--quote {
        height: 52px;
        padding: 0 22px;
    }

    .floating-cta__btn--whatsapp {
        width: auto;
        height: 60px;
        max-width: none;
        max-height: none;
        padding: 0 22px;
    }

    .floating-cta__label--whatsapp {
        display: inline;
    }
}

/* Mobile — compact quote label */
@media (max-width: 639px) {
    .floating-cta__btn--quote {
        height: 44px;
        padding: 0 16px;
        font-size: 0.8125rem;
    }
}
