/*
Theme Name: CDT Blocks
Theme URI: 
Author: Antigravity
Author URI: 
Description: A premium block-based theme for CDT Digital
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 7.0
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: cdt-blocks
Tags: custom-colors, custom-logo, custom-menu, block-patterns, block-styles, full-site-editing
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Base Styles Ensure Poppins is Applied Globally */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Block CSS for Premium Landing Page Aesthetics */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(45, 82, 164, 0.1);
}

.premium-shadow {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.gradient-text {
    background: linear-gradient(135deg, #2D52A4, #1a365d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(45, 82, 164, 0.15);
}

/* SVG Logo Adjustments */
.site-logo-svg svg {
    height: 48px;
    width: auto;
    display: block;
}

/* Dynamic Hero Background */
.dynamic-hero-bg {
    background: linear-gradient(135deg, #1a365d 0%, #2D52A4 50%, #102a4a 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.dynamic-hero-bg::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(234, 194, 17, 0.15), transparent 40%),
                radial-gradient(circle at 70% 70%, rgba(59, 130, 246, 0.2), transparent 40%);
    z-index: -1;
    pointer-events: none;
    animation: slowDrift 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slowDrift {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, -2%); }
}

/* Mobile Navigation Base Styles (Hidden by default) */
#mobile-menu-toggle:checked ~ .mobile-nav-drawer {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}
#mobile-menu-toggle:checked ~ .mobile-nav-overlay {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff !important;
    z-index: 2147483647;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6rem 1.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    overflow-y: auto;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 2147483646;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}
.hamburger-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: #2D52A4;
    border-radius: 2px;
    transition: 0.3s;
}

/* Responsive Breakpoints */
@media screen and (max-width: 1024px) {
    .glass-panel { padding: 3rem 2rem !important; }
}

@media screen and (max-width: 768px) {
    /* Fluid Spacing & Layout */
    .alignfull { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
    
    .desktop-nav { display: none !important; }
    .hamburger-btn { display: flex !important; }

    /* Stack flex elements globally with a utility class */
    .stack-on-mobile {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    /* Column Overrides */
    .wp-block-columns {
        flex-direction: column !important;
    }
    .wp-block-column {
        flex-basis: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Typography Scale Down */
    h1 { font-size: 2.5rem !important; line-height: 1.2 !important; }
    h2 { font-size: 2rem !important; line-height: 1.3 !important; }
    .hero-text { font-size: 1.1rem !important; }
}

/* Floating Animation */
.float-element {
    animation: float 6s ease-in-out infinite;
}
.float-element:nth-child(2) {
    animation-delay: 1s;
}
.float-element:nth-child(3) {
    animation-delay: 2s;
}

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