/* Component styles extracted from style.css */



/* Modal Transitions & Strict Overlay Isolation */
#leadModal {
    transition: opacity 0.3s ease-in-out;
}

#leadModal.modal-enter {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    z-index: -99999 !important;
    position: absolute !important;
    left: -99999px !important;
    top: -99999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    inset: auto !important;
}

#leadModal.modal-enter,
#leadModal.modal-enter * {
    pointer-events: none !important;
}

/* Calculator section always sits above normal document flow to beat fixed-overlay siblings */
#calculator {
    position: relative;
    z-index: 50;
}

#leadModal.modal-enter-active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

#leadModal.modal-enter-active * {
    pointer-events: auto;
}

#leadModal > div:nth-child(2) {
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
}

#leadModal > div:nth-child(2) > div:first-child {
    padding: 0.75rem 1.25rem 0.5rem;
}

#leadModal > div:nth-child(2) > div:first-child > div:first-of-type {
    margin-bottom: 0.35rem;
}

#leadModal > div:nth-child(2) > div:first-child img {
    height: 2rem;
}

#leadModal > div:nth-child(2) > div:first-child > div:nth-of-type(2) {
    margin-bottom: 0.2rem;
}

#leadModal > div:nth-child(2) > div:first-child h3 {
    font-size: 1rem;
    line-height: 1.25;
}

#leadModal > div:nth-child(2) > div:first-child p {
    margin-top: 0.3rem;
    line-height: 1.35;
}

#leadModal > div:nth-child(2) > div:nth-child(2) {
    padding: 0.75rem 1rem;
    overflow: visible;
}

#leadModal #leadForm {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

#leadModal #leadForm > div > label,
#leadModal #leadForm legend {
    margin-bottom: 0.1rem;
}

#leadModal #leadForm input[type="text"],
#leadModal #leadForm input[type="tel"] {
    height: 2.5rem;
    padding: 0.4rem 0.75rem;
}

#leadModal #leadForm fieldset > div {
    gap: 0.35rem;
}

#leadModal #leadForm fieldset label > span {
    min-height: 2.35rem;
    padding: 0.3rem 0.25rem;
    font-size: 0.68rem;
    line-height: 1.15;
}

#leadModal #leadForm fieldset input[type="radio"]:checked + span {
    border-color: #9a3412;
    background-color: #c2410c;
    color: #fff;
}

#leadModal #leadForm > div:nth-of-type(4) {
    gap: 0.5rem;
    padding-top: 0.2rem;
}

#leadModal #leadForm button[type="submit"],
#leadModal #leadForm #modalWaBtn {
    min-height: 2.75rem;
    padding: 0.55rem 0.4rem;
    font-size: 0.72rem;
}

#leadModal #leadForm > label:last-child {
    padding-top: 0;
    font-size: 0.68rem;
}

#leadModal.logo-handoff.modal-enter-active > #modalBackdrop {
    animation: enquiry-backdrop-from-logo 650ms ease both;
}

#leadModal.logo-handoff.modal-enter-active > div:nth-child(2) {
    transform-origin: center center;
    animation: enquiry-modal-from-logo 700ms cubic-bezier(0.2, 0.75, 0.25, 1) 300ms both;
}

#leadModal.logo-closing.modal-enter-active > #modalBackdrop {
    animation: enquiry-backdrop-to-logo 650ms ease both;
}

#leadModal.logo-closing.modal-enter-active > div:nth-child(2) {
    transform-origin: center center;
    animation: enquiry-modal-to-logo 650ms cubic-bezier(0.55, 0, 0.8, 0.35) both;
}

#leadModal .modal-logo-handoff {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

#leadModal.logo-handoff.modal-enter-active .modal-logo-handoff {
    visibility: visible;
    animation: enquiry-logo-handoff 850ms ease both;
}

#leadModal.logo-closing.modal-enter-active .modal-logo-handoff {
    visibility: visible;
    animation: enquiry-logo-return 650ms ease both;
}

#leadModal .modal-logo-handoff > .brand-logo-wrap {
    width: min(32vw, 160px);
    aspect-ratio: 1;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.28));
}

#leadModal .modal-logo-handoff img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes enquiry-backdrop-from-logo {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes enquiry-modal-from-logo {
    from {
        opacity: 0;
        transform: scale(0.08);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes enquiry-backdrop-to-logo {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes enquiry-modal-to-logo {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.08);
    }
}

@keyframes enquiry-logo-handoff {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-90deg);
    }
    18% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    45% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.72) rotate(20deg);
    }
}

@keyframes enquiry-logo-return {
    0% {
        opacity: 0;
        transform: scale(0.72) rotate(-20deg);
    }
    25% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    65% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(90deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    #leadModal.logo-handoff.modal-enter-active > #modalBackdrop,
    #leadModal.logo-handoff.modal-enter-active > div:nth-child(2),
    #leadModal.logo-handoff.modal-enter-active .modal-logo-handoff,
    #leadModal.logo-closing.modal-enter-active > #modalBackdrop,
    #leadModal.logo-closing.modal-enter-active > div:nth-child(2),
    #leadModal.logo-closing.modal-enter-active .modal-logo-handoff {
        animation-duration: 100ms;
        animation-delay: 0ms;
    }
}

@media (max-height: 700px) {
    #leadModal > div:nth-child(2) > div:first-child {
        padding-top: 0.5rem;
        padding-bottom: 0.35rem;
    }

    #leadModal > div:nth-child(2) > div:first-child img {
        height: 1.6rem;
    }

    #leadModal > div:nth-child(2) > div:nth-child(2) {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    #leadModal #leadForm {
        gap: 0.3rem;
    }
}


/* Floating Elements */
.brand-logo-wrap {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    line-height: 0;
}

.brand-logo-trademark {
    position: absolute;
    top: -3px;
    right: -5px;
    z-index: 1;
    padding: 1px 2px;
    border-radius: 2px;
    background: #fff;
    color: #111827;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
}

.float-btn {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.float-btn:hover {
    transform: scale(1.08) translateY(-3px);
}

/* Animations */
@keyframes pulse-ring {
    0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(244, 121, 32, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(244, 121, 32, 0); }
    100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(244, 121, 32, 0); }
}

.animate-pulse-ring {
    animation: pulse-ring 2s infinite;
}

/* Calculator Slider Styling */
input[type=range] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%; 
    background: transparent; 
    touch-action: none;
    padding: 12px 0;
    cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 34px;
    width: 34px;
    border-radius: 50%;
    background: #F47920;
    cursor: pointer;
    margin-top: -12px; 
    box-shadow: 0 4px 14px rgba(244, 121, 32, 0.5);
    border: 3.5px solid #ffffff;
}
input[type=range]::-moz-range-thumb {
    height: 34px;
    width: 34px;
    border-radius: 50%;
    background: #F47920;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(244, 121, 32, 0.5);
    border: 3.5px solid #ffffff;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 10px;
    cursor: pointer;
    background: #cbd5e1;
    border-radius: 5px;
}
input[type=range]::-moz-range-track {
    width: 100%;
    height: 10px;
    cursor: pointer;
    background: #cbd5e1;
    border-radius: 5px;
}

/* Card Hover */
.service-card {
    transition: all 0.3s ease;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Step Line for On-Grid */
.step-connector {
    position: relative;
}
@media (min-width: 768px) {
    .step-connector::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -50%;
        width: 100%;
        height: 2px;
        background-color: #cbd5e1;
        z-index: -1;
    }
    .step-connector:last-child::after {
        display: none;
    }
}

/* Hero Background Slider - Zero Gap Continuous Fade */
.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('/assets/images/brand/Gemini_Generated_Image_ma29yxma29yxma29.png');
    background-size: cover;
    background-position: center;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
}

/* 3 slides, 15s total, 5s each with smooth overlap */
.hero-slide:nth-child(1) {
    animation: fadeSlide1 15s infinite;
}

.hero-slide:nth-child(2) {
    animation: fadeSlide2 15s infinite;
}

.hero-slide:nth-child(3) {
    animation: fadeSlide3 15s infinite;
}

@keyframes fadeSlide1 {
    0% { opacity: 1; }
    30% { opacity: 1; }
    38% { opacity: 0; }
    92% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeSlide2 {
    0% { opacity: 0; }
    30% { opacity: 0; }
    38% { opacity: 1; }
    63% { opacity: 1; }
    71% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes fadeSlide3 {
    0% { opacity: 0; }
    63% { opacity: 0; }
    71% { opacity: 1; }
    95% { opacity: 1; }
    100% { opacity: 0; }
}

.hero-text-shadow {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* FAQ Accordion Styling */
.faq-item {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
    opacity: 0;
}
.faq-item.active .faq-answer {
    max-height: 600px;
    opacity: 1;
    transition: max-height 0.35s cubic-bezier(1, 0, 1, 0), opacity 0.3s ease;
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Desktop Navigation Dropdown Styling */
.dropdown-group {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(10, 17, 40, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease-in-out;
    z-index: 50;
    padding: 8px 0;
}
.dropdown-group:hover .dropdown-menu,
.dropdown-group:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Drawer Accordion Submenu */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.mobile-submenu.open {
    max-height: 400px;
}

/* Project Filter Active Tab */
.project-tab.active {
    background-color: #F47920 !important;
    color: #ffffff !important;
    border-color: #F47920 !important;
}
