/*
Theme Name: Hvile
Theme URI: https://hvile.co
Author: Hvile Team
Author URI: https://hvile.co
Description: Nowoczesny motyw WordPress dla Hvile.co - Panele tapicerowane na wymiar. Zawiera konfigurowalne logo, formularz kontaktowy z AJAX i wiele więcej.
Version: 1.0.2
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hvile
Tags: landing-page, one-page, custom-background, custom-colors, custom-header, custom-menu, featured-images, flexible-header, full-width-template
*/

/* Custom Colors */
.bg-hvile-terra {
    background-color: #C86B3D;
}

.bg-hvile-olive {
    background-color: #9EA26D;
}

.bg-hvile-blue {
    background-color: #8CA0AB;
}

.bg-hvile-beige {
    background-color: #D6CEC0;
}

.bg-hvile-light {
    background-color: #EAE3D6;
}

.text-hvile-terra {
    color: #C86B3D;
}

/* Bento Box Styling */
.bento-box {
    border-radius: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 768px) {
    .bento-box {
        border-radius: 2rem;
    }
}

.bento-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.05);
}

.hero-bg-image {
    background-image: url('https://hvile.co/wp-content/uploads/2025/12/7B26E204-46C2-4C87-9EA8-043B3AF78B6C-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Mobile Menu */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Mobile Menu Items Animation - Stagger Effect */
#mobile-menu a {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open a:nth-child(1) {
    animation: slideIn 0.3s ease forwards 0.1s;
}

#mobile-menu.open a:nth-child(2) {
    animation: slideIn 0.3s ease forwards 0.2s;
}

#mobile-menu.open a:nth-child(3) {
    animation: slideIn 0.3s ease forwards 0.3s;
}

#mobile-menu.open a:nth-child(4) {
    animation: slideIn 0.3s ease forwards 0.4s;
}

#mobile-menu.open a:nth-child(5) {
    animation: slideIn 0.3s ease forwards 0.5s;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Animation */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Slider */
.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- BORDER STITCHING ANIMATION --- */
@keyframes stitchReveal {
    from {
        stroke-dashoffset: 1000;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.stitching-path {
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 2.5;
    fill: none;
    stroke-dasharray: 10 8;
    stroke-dashoffset: 1000;
    animation: stitchReveal 20s linear infinite;
}

/* File Upload Custom Style */
.file-upload-label {
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    background-color: #f9fafb;
    border-color: #C86B3D;
    color: #C86B3D;
}
