/*
Theme Name: Blocksy Child
Theme URI: https://creativecreative.com/blocksy-child
Description: Blocksy Child Theme
Author: Antigravity
Author URI: https://creativecreative.com/
Template: blocksy
Version: 1.0.0
*/

/* ==========================================================================
   DYNAMIC SERVICES SECTION (WITH PARALLAX)
   ========================================================================== */

.woodcastle-services-section {
    padding: 80px 0;
    background-color: #0b0f19;
    /* Sleek dark-mode background */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Subtle abstract pattern overlay */
.woodcastle-services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 99, 16, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.8;
    pointer-events: none;
}

.woodcastle-services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Section Header */
.woodcastle-services-header {
    text-align: center;
    margin-bottom: 50px;
}

.woodcastle-section-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--theme-palette-color-1, #ff6310);
    font-weight: 700;
    display: inline-block;
    margin-bottom: 8px;
    animation: fadeInDown 0.8s ease;
}

.woodcastle-section-title {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.woodcastle-section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--theme-palette-color-1, #ff6310);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

/* Grid Layout */
.woodcastle-services-grid {
    display: grid;
    gap: 30px;
}

.woodcastle-services-grid.cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Service Card with Parallax background */
.woodcastle-service-card {
    position: relative;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
        border-color 0.5s ease;
}

/* Active fixed attachment for desktop parallax */
@media (min-width: 992px) {
    .woodcastle-service-card {
        background-attachment: fixed;
    }
}

.woodcastle-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 99, 16, 0.15);
    border-color: rgba(255, 99, 16, 0.3);
}

/* Card Overlay gradient */
.woodcastle-service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
            rgba(11, 15, 25, 0.95) 0%,
            rgba(11, 15, 25, 0.6) 45%,
            rgba(11, 15, 25, 0.1) 100%);
    z-index: 1;
    transition: background 0.4s ease;
}

.woodcastle-service-card:hover .woodcastle-service-overlay {
    background: linear-gradient(to top,
            rgba(11, 15, 25, 0.98) 0%,
            rgba(255, 99, 16, 0.45) 40%,
            rgba(11, 15, 25, 0.2) 100%);
}

/* Card Content styling */
.woodcastle-service-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.woodcastle-service-card:hover .woodcastle-service-content {
    transform: translateY(0);
}

.woodcastle-service-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.woodcastle-service-desc {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0 0 20px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.woodcastle-service-card:hover .woodcastle-service-desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.woodcastle-service-btn {
    display: inline-flex;
    align-items: center;
    color: var(--theme-palette-color-1, #ff6310);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.woodcastle-service-btn .arrow-icon {
    margin-left: 8px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.woodcastle-service-card:hover .woodcastle-service-btn .arrow-icon {
    transform: translateX(6px);
}

.woodcastle-service-card:hover .woodcastle-service-btn {
    color: #ffffff;
}

/* ==========================================================================
   DYNAMIC WORKS SECTION
   ========================================================================== */

.woodcastle-works-section {
    padding: 40px 0;
}

.woodcastle-works-grid {
    display: grid;
    gap: 30px;
}

.woodcastle-works-grid.cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Work Card Container */
.woodcastle-work-card {
    position: relative;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    background-color: #f8fafc;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.woodcastle-work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
}

/* Work Image zoom effect */
.woodcastle-work-img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.woodcastle-work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.woodcastle-work-card:hover .woodcastle-work-img {
    transform: scale(1.08);
}

/* Work overlays & content */
.woodcastle-work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    opacity: 0.9;
    transition: opacity 0.4s ease;
}

.woodcastle-work-card:hover .woodcastle-work-overlay {
    opacity: 0.95;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.5) 60%,
            rgba(255, 99, 16, 0.2) 100%);
}

.woodcastle-work-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    z-index: 2;
    color: #ffffff;
}

.woodcastle-work-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--theme-palette-color-1, #ff6310);
    display: block;
    margin-bottom: 6px;
}

.woodcastle-work-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.woodcastle-work-btn {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 3px;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.woodcastle-work-btn svg {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.woodcastle-work-card:hover .woodcastle-work-btn {
    border-color: var(--theme-palette-color-1, #ff6310);
    color: var(--theme-palette-color-1, #ff6310);
}

.woodcastle-work-card:hover .woodcastle-work-btn svg {
    transform: translate(3px, -3px);
}

/* General fallback styles */
.woodcastle-no-posts {
    text-align: center;
    font-style: italic;
    padding: 30px;
    color: #64748b;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* ==========================================================================
   PROFESSIONAL FOOTER STYLING
   ========================================================================== */

.woodcastle-site-footer {
    background-color: #0b0e17;
    /* Elegant dark-blue slate background */
    color: #94a3b8;
    /* Soft blue-gray text color for readability */
    font-family: inherit;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.woodcastle-footer-top {
    padding: 80px 0 50px 0;
    position: relative;
}

/* Subtle background overlay to add texture */
.woodcastle-footer-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 99, 16, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.8;
    pointer-events: none;
}

.woodcastle-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.woodcastle-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* Brand Column styling */
.woodcastle-footer-brand .woodcastle-footer-logo-text {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.woodcastle-footer-brand .woodcastle-footer-logo-text span {
    color: var(--theme-palette-color-1, #ff6310);
}

.woodcastle-footer-about {
    font-size: 14px;
    line-height: 1.7;
    color: #94a3b8;
    margin: 0 0 25px 0;
}

/* Social media icon links */
.woodcastle-footer-socials {
    display: flex;
    gap: 12px;
}

.woodcastle-footer-socials .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.woodcastle-footer-socials .social-icon span {
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woodcastle-footer-socials .social-icon:hover {
    background-color: var(--theme-palette-color-1, #ff6310);
    border-color: var(--theme-palette-color-1, #ff6310);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(255, 99, 16, 0.3);
}

/* Column titles */
.woodcastle-footer-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 25px 0;
    position: relative;
    padding-bottom: 10px;
}

.woodcastle-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--theme-palette-color-1, #ff6310);
    border-radius: 1px;
}

/* Menu links styling */
.woodcastle-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woodcastle-footer-links li {
    margin-bottom: 12px;
}

.woodcastle-footer-links li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.woodcastle-footer-links li a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.woodcastle-footer-links li a::before {
    content: '→';
    margin-right: 8px;
    color: var(--theme-palette-color-1, #ff6310);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 12px;
}

.woodcastle-footer-links li a:hover::before {
    opacity: 1;
}

/* Contact information list */
.woodcastle-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woodcastle-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
}

.woodcastle-contact-list li .icon-wrap {
    color: var(--theme-palette-color-1, #ff6310);
    margin-right: 12px;
    margin-top: 3px;
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woodcastle-contact-list li .contact-text {
    font-size: 14px;
    line-height: 1.5;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woodcastle-contact-list li a.contact-text:hover {
    color: #ffffff;
}

/* Footer Bottom Bar styling */
.woodcastle-footer-bottom {
    background-color: #080a10;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.woodcastle-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.woodcastle-copyright {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.woodcastle-developer {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.woodcastle-developer a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.woodcastle-developer a:hover {
    color: var(--theme-palette-color-1, #ff6310);
}

/* Responsive adjustment for footer grid */
@media (max-width: 768px) {
    .woodcastle-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
}


/* ==========================================================================
   WORKS TABS FILTER LAYOUT
   ========================================================================== */
.woodcastle-works-tabs-container {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.woodcastle-works-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    background-color: #f1f5f9;
    padding: 6px;
    border-radius: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.woodcastle-works-tabs::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.woodcastle-works-tabs {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.woodcastle-work-tab {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    border-radius: 24px;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.woodcastle-work-tab:hover {
    color: var(--theme-palette-color-1, #ff6310);
    background-color: rgba(255, 99, 16, 0.05);
}

.woodcastle-work-tab.active {
    color: #ffffff;
    background-color: var(--theme-palette-color-1, #ff6310);
    box-shadow: 0 4px 12px rgba(255, 99, 16, 0.2);
}

/* Grid animation for filtering */
.woodcastle-work-card {
    opacity: 1;
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.woodcastle-work-card.filtered-out {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* ==========================================================================
   VIDEO BADGE AND LIGHTBOX MODAL
   ========================================================================== */
.woodcastle-work-video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 99, 16, 0.9);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(255, 99, 16, 0.3);
    z-index: 3;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

.woodcastle-work-card:hover .woodcastle-work-video-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.woodcastle-work-video-badge svg.play-icon {
    width: 24px;
    height: 24px;
    margin-left: 2px; /* Center the play triangle visually */
}

/* Lightbox container */
.woodcastle-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.woodcastle-lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Backdrop blur overlay */
.woodcastle-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Lightbox Content wrapper */
.woodcastle-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    background-color: #000000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2;
}

.woodcastle-lightbox.active .woodcastle-lightbox-content {
    transform: scale(1);
}

/* Close Button */
.woodcastle-lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.woodcastle-lightbox-close:hover {
    background-color: var(--theme-palette-color-1, #ff6310);
    transform: rotate(90deg);
}

/* Responsive 16:9 Video Container */
.woodcastle-lightbox-video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
}

.woodcastle-lightbox-video-container iframe,
.woodcastle-lightbox-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
    .woodcastle-works-tabs-container {
        justify-content: flex-start;
        padding: 0 15px;
    }
    
    .woodcastle-works-tabs {
        width: 100%;
        padding: 5px;
    }
    
    .woodcastle-work-tab {
        padding: 8px 18px;
        font-size: 13px;
    }
    
    .woodcastle-work-card {
        height: 320px;
    }
    
    .woodcastle-work-video-badge {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}