/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/

/* ==========================================================================
   LOADER - Minimal & Elegant
   ========================================================================== */
#preloader {
    background-color: #fff !important;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    animation: none !important;
    opacity: 0;
    visibility: hidden;
}

.loader-minimal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 8px;
}

.loader-dot {
    width: 10px;
    height: 10px;
    background-color: #c5a47e;
    border-radius: 50%;
    animation: loaderPulse 1.4s ease-in-out infinite both;
}

.loader-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes loaderPulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================================================
   CLIENTS REVEAL - Appear on scroll
   ========================================================================== */
.clients-reveal {
    padding: 50px 0;
    background: #f9f7f4;
    overflow: hidden;
}

.clients-reveal__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
}

.clients-reveal__item {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 300;
    color: #333;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.clients-reveal.is-visible .clients-reveal__item {
    opacity: 1;
    transform: translateY(0);
}

.clients-reveal__item::after {
    content: '·';
    margin-left: 30px;
    color: #c5a47e;
    font-weight: 600;
}

.clients-reveal__item:last-child::after {
    display: none;
}

/* ==========================================================================
   COUNTER - Animated number
   ========================================================================== */
.counter-box {
    padding: 15px 0;
}

.counter-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #c5a47e;
    line-height: 1;
    margin-right: 15px;
    min-width: 80px;
}

.counter-number::after {
    content: '+';
}

.counter-label {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.3;
    max-width: 220px;
}

/* ==========================================================================
   SERVICE ICON LINK - Clickable icon
   ========================================================================== */
.service-icon-link {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-icon-link:hover {
    transform: scale(1.15);
}

.service-icon-link i {
    color: inherit;
}

/* ==========================================================================
   HERO MOSAIC - 1 wide top + 2 bottom side by side
   ========================================================================== */
.hero-mosaic {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Each image: individual card frame */
.hero-mosaic__main,
.hero-mosaic__secondary,
.hero-mosaic__tertiary {
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Top: full width, 45% height */
.hero-mosaic__main img {
    width: 100%;
    height: 225px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Bottom: 2 side by side, 55% height */
.hero-mosaic__right {
    display: flex;
    gap: 14px;
}

.hero-mosaic__secondary,
.hero-mosaic__tertiary {
    flex: 1;
}

.hero-mosaic__secondary img,
.hero-mosaic__tertiary img {
    width: 100%;
    height: 275px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* ==========================================================================
   CONTACT FORM - Fix textarea label overflow
   ========================================================================== */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

#contact .form-floating label {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 20px);
    line-height: 1.3;
}

#contact textarea.form-control {
    min-height: 120px;
}

#contact .contacts_wrapper {
    overflow: hidden;
    max-width: 100%;
}

/* ==========================================================================
   MOBILE STYLES
   ========================================================================== */
@media (max-width: 991px) {
    /* Hide hamburger menu but keep header */
    .hamburger_2,
    .main-menu,
    .menu_v1 .hamburger_2 {
        display: none !important;
    }

    /* Mobile header with centered oval logo - stuck to top */
    header.fixed_header,
    header.fixed_header.sticky {
        background: transparent !important;
        box-shadow: none !important;
        border-bottom: none !important;
        top: 0 !important;
        padding: 0 !important;
    }

    header.fixed_header > .container {
        display: flex;
        justify-content: center;
        padding: 0;
    }

    header.fixed_header .row {
        width: auto;
        margin: 0;
    }

    header.fixed_header .col-md-3,
    header.fixed_header .col-5 {
        width: auto;
        flex: none;
        padding: 0;
    }

    header.fixed_header .col-md-9,
    header.fixed_header .col-7 {
        display: none;
    }

    /* Semi-circle background behind round logo */
    header.fixed_header .col-md-3.col-5 {
        position: relative;
        display: flex;
        justify-content: center;
        padding: 5px 30px 18px;
    }

    header.fixed_header .col-md-3.col-5::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 85px;
        height: 70px;
        background: #fff;
        border-radius: 0 0 60px 60px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        z-index: -1;
    }

    header.fixed_header .logo_normal,
    header.fixed_header .logo_sticky {
        position: relative;
        z-index: 1;
    }

    header.fixed_header .logo_normal img,
    header.fixed_header .logo_sticky img {
        width: 55px;
        height: 55px;
    }

    /* Hide hero mosaic images on mobile */
    #about .hero-mosaic {
        display: none !important;
    }

    #about .col-lg-5:first-child {
        display: none !important;
    }

    /* Product buttons full width on mobile */
    .box_item_info .mt-4 {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .box_item_info .mt-4 .btn_1 {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0 !important;
    }

    /* Bottom Navigation Bar */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e5e5e5;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        z-index: 99999;
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-bottom-nav ul {
        display: flex;
        justify-content: stretch;
        align-items: stretch;
        list-style: none;
        margin: 0;
        padding: 0;
        height: 65px;
        width: 100%;
    }

    .mobile-bottom-nav li {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        border-right: 1px solid #f0f0f0;
    }

    .mobile-bottom-nav li:last-child {
        border-right: none;
    }

    /* CTA button container */
    .mobile-bottom-nav li:nth-child(3) {
        border-right: 1px solid #f0f0f0;
        position: relative;
    }

    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #555;
        font-size: 10px;
        font-weight: 500;
        padding: 8px 4px;
        transition: color 0.2s ease;
        width: 100%;
        height: 100%;
    }

    .mobile-bottom-nav a i {
        font-size: 22px;
        margin-bottom: 3px;
    }

    .mobile-bottom-nav a:hover,
    .mobile-bottom-nav a:focus {
        color: #c5a47e;
    }

    .mobile-bottom-nav a.nav-cta {
        color: #fff;
        background: linear-gradient(135deg, #c5a47e 0%, #b8956d 100%);
        border-radius: 50%;
        width: 56px;
        height: 56px;
        margin-top: -22px;
        padding: 0;
        box-shadow: 0 4px 15px rgba(197, 164, 126, 0.5);
        border: 3px solid #fff;
    }

    .mobile-bottom-nav a.nav-cta i {
        font-size: 24px;
        margin-bottom: 0;
    }

    .mobile-bottom-nav a.nav-cta span {
        display: none;
    }

    /* Add padding at the bottom of the page */
    body {
        padding-bottom: 75px;
    }

    footer {
        padding-bottom: 85px !important;
    }

    /* Adjust for textarea overflow */
    .contacts_wrapper {
        overflow: hidden;
    }

    /* Footer links centered and stacked */
    .copy .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .copy .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .copy .footer-links .mx-2 {
        display: none;
    }
}

/* ==========================================================================
   LEGAL PAGES - Simple header
   ========================================================================== */
.legal-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}
