/* ═══════════════════════════════════════════════════════════
   TIWA Homepage Custom Styles
   Comprehensive reset to override Hestia parent theme CSS
   ═══════════════════════════════════════════════════════════ */

/* Force correct base font size (Hestia sets body to 14px) */
html {
    scroll-behavior: smooth;
    font-size: 16px !important;
}

body {
    font-size: 16px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f8fafc !important;
}

/* Reset ALL heading styles (Hestia sets font-weight:500, line-height:1.618) */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: inherit;
    line-height: inherit;
    font-size: inherit;
    margin: 0;
}

/* Reset link hover (Hestia sets opacity:0.75 on hover) */
a:not(.btn):not(.button):not(.added_to_cart):hover {
    opacity: 1 !important;
}

/* Reset list margins (Hestia sets margin-bottom: 30px) */
ul,
ol {
    margin-bottom: 0;
    line-height: inherit;
}

/* Reset Hestia .container max-width interference */
.container {
    max-width: none;
}

/* Reset button font-size (Hestia sets 12px) */
button,
input[type=submit],
input[type=button] {
    font-size: inherit;
    font-weight: inherit;
}

/* Reset navbar interference */
.navbar,
.navbar a {
    font-size: inherit;
}

/* Reset body background */
body {
    overflow-x: hidden;
}

/* Ensure Tailwind classes work without Hestia interference */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Hidden scrollbar for horizontal scroll sections */
.scroll-hide::-webkit-scrollbar {
    display: none;
}

.scroll-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
    transition: max-height 0.4s ease-in, opacity 0.3s ease-in;
}

/* Mobile service card image height */
@media (max-width: 767px) {
    .service-card-img {
        min-height: 220px;
        max-height: 250px;
    }

    .about-heading {
        font-size: 2rem !important;
    }
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-marquee {
    animation: marquee 25s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Fix Sticky Header when Admin Bar is active */
body.admin-bar nav.sticky {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar nav.sticky {
        top: 46px !important;
    }
}

/* FAQ Accordion */
.faq-item summary::-webkit-details-marker,
.faq-item summary::marker {
    display: none;
}

.faq-item[open] {
    background-color: #fff;
    border-color: #1183d4;
    box-shadow: 0 4px 6px -1px rgba(17, 131, 212, 0.1), 0 2px 4px -2px rgba(17, 131, 212, 0.06);
}

.faq-item[open]>summary {
    color: #1183d4;
    border-bottom: 1px solid #e2e8f0;
}

.faq-item>div {
    animation: faq-open 0.3s ease-out;
}

@keyframes faq-open {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}