/* ============================================ */
/* INDUSTRIAL HEIGHTS SERVICES - CUSTOM STYLES */
/* ============================================ */

/* ============================================ */
/* FOOTER LOGO DESIGN */
/* Footer logo matches design reference with diamond icon */
/* ============================================ */
footer a.group {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

/* Footer - Left side - Dark rectangle with diamond logo */
footer a.group > div:first-child {
    background-color: rgb(15, 23, 42) !important;
    border-radius: 0.5rem;
    padding: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    min-height: 3rem;
}

/* Footer - Company name and phone - hidden on mobile */
footer a.group > div:nth-child(2) {
    display: none;
}

@media (min-width: 640px) {
    footer a.group > div:nth-child(2) {
        display: block;
    }
}

footer a.group > div:nth-child(2) h3 {
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.2;
    margin: 0;
}

footer a.group > div:nth-child(2) p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    margin-top: 0.125rem;
    margin-bottom: 0;
}

/* Footer - Right side - Orange-bordered icon */
footer a.group > div:last-child {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    border: 3px solid rgb(245, 158, 11) !important;
    background-color: rgb(15, 23, 42) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

/* ============================================ */
/* BASE STYLES */
/* Global reset, typography, and base layout */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================ */
/* HERO/BANNER SECTION STYLES */
/* Hero section visibility and animation styles */
/* ============================================ */
section:first-of-type {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Hero content animations - Ensure they animate */
section:first-of-type .relative.z-10 h1,
section:first-of-type .relative.z-10 p,
section:first-of-type .relative.z-10 .flex.flex-wrap,
section:first-of-type .relative.z-10 button {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out !important;
}

/* Scroll indicator animation */
section:first-of-type .absolute.bottom-8 {
    transition: opacity 1s ease-out, transform 1s ease-out !important;
}

/* ============================================ */
/* GALLERY SECTION STYLES */
/* Gallery hover effects and image transitions */
/* ============================================ */
#galerija .group {
    transition: transform 0.3s ease;
}

#galerija .group:hover {
    transform: scale(1.02);
}

#galerija img {
    transition: transform 0.5s ease !important;
}

/* ============================================ */
/* HEADER SECTION STYLES */
/* Header scroll effect - changes background and text color on scroll */
/* ============================================ */
header {
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease, -webkit-backdrop-filter 0.5s ease;
    will-change: background-color, backdrop-filter, box-shadow;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

/* Nav buttons when scrolled */
header.scrolled nav button {
    color: rgb(51, 65, 85) !important;
    transition: all 0.3s ease;
}

header.scrolled nav button:hover {
    color: rgb(15, 23, 42) !important;
    background-color: rgb(241, 245, 249) !important;
}

/* Phone link when scrolled */
header.scrolled a[href^="tel:"] {
    color: rgb(51, 65, 85) !important;
}

/* Mobile menu button when scrolled */
header.scrolled #mobileMenuBtn {
    color: rgb(51, 65, 85) !important;
}

/* Ensure smooth transitions for all header elements */
header nav button,
header a[href^="tel:"],
header #mobileMenuBtn {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* ============================================ */
/* ANIMATION CLASSES */
/* Scroll-triggered animations for elements with data-animate attribute */
/* ============================================ */
[data-animate] {
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

[data-animate].animated {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    pointer-events: auto;
}

/* Override any inline opacity: 0 when animated */
[data-animate].animated[style*="opacity: 0"],
[data-animate].animated[style*="opacity:0"] {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure elements are visible by default if they have opacity: 1 in inline styles */
[style*="opacity: 1"],
[style*="opacity:1"] {
    opacity: 1 !important;
    visibility: visible !important;
}

[data-animate="fadeInUp"].animated {
    transform: translateY(0);
}

[data-animate="fadeInUp"] {
    transform: translateY(30px);
}

[data-animate="fadeInRight"].animated {
    transform: translateX(0);
}

[data-animate="fadeInRight"] {
    transform: translateX(30px);
}

[data-animate="fadeInLeft"].animated {
    transform: translateX(0);
}

[data-animate="fadeInLeft"] {
    transform: translateX(-30px);
}

[data-animate="scaleIn"].animated {
    transform: scale(1);
}

[data-animate="scaleIn"] {
    transform: scale(0.9);
}

/* Scroll indicator animation */
.scroll-dot {
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Counter animation */
.counter {
    display: inline-block;
}

/* ============================================ */
/* FAQ SECTION STYLES */
/* Accordion functionality with expand/collapse animations */
/* ============================================ */
#duk button {
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

#duk button.bg-slate-50 {
    background-color: rgb(248 250 252) !important;
}

#duk button.bg-slate-50:hover {
    background-color: rgb(241 245 249) !important;
    transition: background-color 0.3s ease;
}

#duk button.bg-slate-50:active {
    background-color: rgb(241 245 249) !important;
}

#duk button.bg-slate-900 {
    background-color: rgb(15 23 42) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#duk button.bg-slate-900:hover {
    background-color: rgb(15 23 42) !important;
}

#duk button .overflow-hidden {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, padding 0.4s ease;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

#duk button.bg-slate-900 .overflow-hidden {
    max-height: 1000px !important;
    opacity: 1 !important;
    padding-top: 1rem;
}

#duk button.bg-slate-900 .overflow-hidden p {
    color: rgb(203 213 225);
}

/* FAQ icon colors */
#duk button.bg-slate-50 .flex-shrink-0 {
    background-color: rgb(226 232 240);
}

#duk button.bg-slate-50 .flex-shrink-0 svg {
    color: rgb(71 85 105);
}

#duk button.bg-slate-900 .flex-shrink-0 {
    background-color: rgb(245 158 11) !important;
}

#duk button.bg-slate-900 .flex-shrink-0 svg {
    color: rgb(255 255 255) !important;
}

/* Testimonials slider */
#atsiliepimai .grid {
    scroll-snap-type: x mandatory;
}

@media (max-width: 1023px) {
    #atsiliepimai .grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    #atsiliepimai .grid > div {
        scroll-snap-align: start;
    }
}

/* Prevent animation overlap */
[data-animate] {
    will-change: opacity, transform;
}

[data-animate].animated {
    pointer-events: auto;
}

/* Ensure sections don't overlap during animation */
section {
    position: relative;
    z-index: 1;
}

/* ============================================ */
/* GALLERY LIGHTBOX STYLES */
/* Full-screen lightbox for gallery images with navigation */
/* ============================================ */
#gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

#gallery-lightbox:not(.hidden) {
    display: flex !important;
}

#gallery-lightbox.hidden {
    display: none !important;
}

#gallery-lightbox #lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

#gallery-lightbox button {
    cursor: pointer;
    transition: all 0.2s ease;
}

#gallery-lightbox button:hover {
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================ */
/* CONTACT FORM STYLES */
/* Form input styling with focus states and border colors */
/* ============================================ */
#kontaktai input[type="text"],
#kontaktai input[type="email"],
#kontaktai input[type="tel"],
#kontaktai textarea {
    border-color: rgb(226, 232, 240) !important;
    border-width: 1px !important;
    border-style: solid !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#kontaktai input[type="text"]:focus,
#kontaktai input[type="email"]:focus,
#kontaktai input[type="tel"]:focus,
#kontaktai textarea:focus {
    border-color: rgb(245, 158, 11) !important;
    outline: none !important;
    box-shadow: 0 0 0 1px rgb(245, 158, 11) !important;
}

#kontaktai input[type="text"]:hover,
#kontaktai input[type="email"]:hover,
#kontaktai input[type="tel"]:hover,
#kontaktai textarea:hover {
    border-color: rgb(203, 213, 225) !important;
}

/* Form validation */
input:invalid, textarea:invalid {
    border-color: #ef4444;
}

input:valid, textarea:valid {
    border-color: #10b981;
}

/* ============================================ */
/* MOBILE MENU STYLES */
/* Full-screen mobile menu with white panel design */
/* ============================================ */
#mobileMenu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: none;
    flex-direction: column;
}

#mobileMenu.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

#mobileMenu:not(.hidden) {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}

/* Mobile menu white panel design - Exact match */
#mobileMenu > div {
    animation: slideInUp 0.3s ease-out;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#mobileMenu #closeMenuBtn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mobileMenu a {
    text-decoration: none;
    display: block;
    text-align: center;
    width: 100%;
}

#mobileMenu button[data-scroll] {
    width: 100%;
    cursor: pointer;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* Mobile header adjustments */
@media (max-width: 1023px) {
    header {
        padding: 1rem 0;
    }
    
    header .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #mobileMenuBtn {
        z-index: 60;
        position: relative;
    }
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* Mobile and tablet breakpoints for all sections */
/* ============================================ */
@media (max-width: 767px) {
    /* Mobile header */
    header {
        padding: 0.75rem 0;
    }
    
    header img {
        height: 2.5rem !important;
    }
    
    header .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Mobile hero section */
    section:first-of-type {
        min-height: 100vh;
        padding-top: 5rem;
        padding-bottom: 3rem;
    }
    
    section:first-of-type .pt-32 {
        padding-top: 6rem !important;
    }
    
    section:first-of-type h1 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    section:first-of-type p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    section:first-of-type button {
        width: 100%;
        padding: 0.75rem 1.5rem !important;
    }
    
    /* Mobile sections */
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    section .max-w-7xl,
    section .max-w-4xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Mobile stats section */
    section.relative.-mt-1 {
        margin-top: -0.5rem !important;
    }
    
    section.relative.-mt-1 .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
        padding: 1.5rem !important;
    }
    
    section.relative.-mt-1 .text-4xl {
        font-size: 1.75rem !important;
    }
    
    /* Mobile services */
    #paslaugos {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    #paslaugos .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Mobile about section */
    #apie .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Mobile process section */
    #procesas .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Mobile testimonials */
    #atsiliepimai .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Mobile gallery */
    #galerija .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    /* Mobile FAQ */
    #duk button {
        padding: 1rem !important;
    }
    
    #duk button h3 {
        font-size: 1rem !important;
    }
    
    /* Mobile contact form */
    #kontaktai .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    #kontaktai .grid-sm\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet responsive */
@media (min-width: 768px) and (max-width: 1023px) {
    section:first-of-type .pt-32 {
        padding-top: 7rem !important;
    }
    
    #paslaugos .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Stats counter animation */
.stat-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-item.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Service card hover effects */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Process step connectors */
.process-connector {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, rgba(245, 158, 11, 0.5), transparent);
    transform: translateX(-1rem);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #f59e0b;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d97706;
}

button.inline-flex.items-center.justify-center.gap-2.bg-amber-500.hover\:bg-amber-600.text-white.rounded-full.px-8.py-6.text-base.font-semibold.shadow-xl.shadow-amber-500\/30.transition-all.duration-300.hover\:shadow-amber-500\/50.hover\:scale-105.animated {
    padding: 12px 30px !important;
}