/* Custom Styles for Premium Monochrome Theme */

/* Typography Base */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Swiper Overrides */
.hero-slider .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.5;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.hero-slider .swiper-pagination-bullet-active {
    background: #a67a3a;
    opacity: 1;
    width: 32px;
    border-radius: 6px;
}

/* Global Swiper Pagination */
.swiper-pagination-bullet-active {
    background: #a67a3a !important;
}

.project-slider .swiper-pagination,
.testimonial-slider .swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 2rem !important;
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: #ffffff;
    transition: color 0.3s ease;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    color: #a67a3a;
}

/* Inner Banner Slider Styles */
.inner-banner-slider {
    height: 300px;
}

@media (min-width: 768px) {
    .inner-banner-slider {
        height: 350px;
    }
}

@media (min-width: 1024px) {
    .inner-banner-slider {
        height: 400px;
    }
}

.inner-banner-slider .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.5;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.inner-banner-slider .swiper-pagination-bullet-active {
    background: #a67a3a !important;
    opacity: 1;
    width: 28px;
    border-radius: 6px;
}

.inner-banner-slider .swiper-button-next,
.inner-banner-slider .swiper-button-prev {
    color: #ffffff;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.inner-banner-slider .swiper-button-next:hover,
.inner-banner-slider .swiper-button-prev:hover {
    color: #a67a3a;
    opacity: 1;
    transform: scale(1.1);
}

/* Ken Burns slow zoom animation for inner slider active slide background */
@keyframes innerKenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.12);
    }
}

.inner-banner-slider .swiper-slide-active .swiper-bg {
    animation: innerKenBurns 8000ms ease-out forwards;
}

/* Animations */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.swiper-slide-active .slide-content {
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Masonry Fallback for older browsers not supporting columns */
@supports not (columns: 1) {
    .columns-1 { display: flex; flex-direction: column; }
    .columns-2 { display: flex; flex-wrap: wrap; }
    .columns-2 > div { width: 50%; padding: 12px; }
    .columns-3 { display: flex; flex-wrap: wrap; }
    .columns-3 > div { width: 33.33%; padding: 12px; }
}

/* Mobile Menu Transition */
#site-navigation {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.menu-open body {
    overflow: hidden;
}

/* Pagination Base Styles */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}
.pagination a:hover {
    background-color: #000;
    border-color: #000;
    color: #fff;
}
.pagination .current {
    background-color: #000;
    border-color: #000;
    color: #fff;
}
.pagination .prev, .pagination .next {
    width: auto;
    padding: 0 1.5rem;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
}
.pagination .prev:hover, .pagination .next:hover {
    background-color: transparent;
    color: #a67a3a;
}

/* Solid Black Header Background to prevent transparent/white flash */
#masthead {
    background-color: #000000 !important;
}

/* Force dark theme backgrounds on 404 Error page to resolve white space gaps */
.error404 {
    background-color: #000000 !important;
}
.error404 #primary {
    background-color: #000000 !important;
}
.error404 #masthead {
    border-bottom: 1px solid #1c1c1c;
}



/* Floating WhatsApp Button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 9999px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-float-btn:hover {
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
    transform: translateY(-4px) scale(1.1);
    color: #ffffff;
}
.whatsapp-float-btn .wa-ping {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background-color: #25D366;
    opacity: 0.4;
    animation: wa-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes wa-ping {
    75%, 100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Mobile Responsive Typography and Spacing Overrides */
@media (max-width: 768px) {
    /* Typography */
    h1, .text-5xl, .text-6xl {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }
    h2, .text-4xl {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    h3, .text-3xl {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
    }
    h4, .text-2xl {
        font-size: 1.25rem !important;
    }
    
    /* Spacing */
    .py-16, .py-20, .py-24, section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .pt-16, .pt-20, .pt-24 {
        padding-top: 2.5rem !important;
    }
    .pb-16, .pb-20, .pb-24 {
        padding-bottom: 2.5rem !important;
    }
    .mt-12, .mt-16, .mt-20, .mt-24 {
        margin-top: 2rem !important;
    }
    .mb-12, .mb-16, .mb-20, .mb-24 {
        margin-bottom: 2rem !important;
    }
    .gap-8, .gap-12, .gap-16 {
        gap: 1.5rem !important;
    }
}

/* ── Comments ── */
.comment-reply-link {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a67a3a;
    text-decoration: none;
    border-bottom: 1px solid #a67a3a;
    padding-bottom: 1px;
    margin-top: 10px;
    transition: color 0.25s, border-color 0.25s;
}
.comment-reply-link:hover { color: #000; border-color: #000; }

#cancel-comment-reply-link {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    color: #9ca3af;
    text-decoration: none;
}
#cancel-comment-reply-link:hover { color: #000; }

/* Nested comment replies */
.children {
    margin-left: 36px;
    border-left: 2px solid #f0f0f0;
    padding-left: 16px;
}

/* Remove default WP paragraph margin inside comment form */
.premium-comment-form p { margin: 0; }

/* Active Menu Item Color */
#primary-menu .current-menu-item > a > span,
#primary-menu .current-menu-parent > a > span,
#primary-menu .current-menu-ancestor > a > span,
#primary-menu .current_page_item > a > span {
    color: #a67a3a !important;
}
