/**
 * Additional styles for BrandSolutions WM 2026 Theme
 */

/* Mobile Navigation */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Form validation styles */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #dc3545;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #28a745;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hover effects */
.product-card:hover .product-image img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Accessibility improvements */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    padding: 8px 16px;
    background: var(--dark);
    color: white;
    text-decoration: none;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

/* Focus styles */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .countdown,
    .contact-form,
    nav,
    footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        background: none;
        color: black;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary: #000080;
        --secondary: #ff6600;
        --dark: #000000;
        --light: #ffffff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Additional responsive styles */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 42px;
    }
    
    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 20px;
    }
    
    .main-navigation ul.show {
        display: flex;
    }
    
    .main-navigation li {
        margin: 10px 0;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .product-grid,
    .benefits,
    .stat-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 16px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 80px;
        padding: 10px;
    }
    
    .countdown-number {
        font-size: 28px;
    }
}

/* Block Editor Frontend Styles */

/* Block color classes */
.has-primary-blue-color { color: #0066cc; }
.has-primary-blue-background-color { background-color: #0066cc; }
.has-secondary-orange-color { color: #ff4d00; }
.has-secondary-orange-background-color { background-color: #ff4d00; }
.has-dark-blue-color { color: #183153; }
.has-dark-blue-background-color { background-color: #183153; }
.has-light-blue-color { color: #f5f9ff; }
.has-light-blue-background-color { background-color: #f5f9ff; }
.has-white-color { color: #ffffff; }
.has-white-background-color { background-color: #ffffff; }
.has-gray-color { color: #666666; }
.has-gray-background-color { background-color: #666666; }

/* Block font sizes */
.has-small-font-size { font-size: 14px; }
.has-normal-font-size { font-size: 16px; }
.has-medium-font-size { font-size: 20px; }
.has-large-font-size { font-size: 24px; }
.has-huge-font-size { font-size: 32px; }

/* Wide and full width alignment */
.alignwide {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.alignfull {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Custom block specific styles */
.wp-block-brandsolutions-hero {
    margin: 0 0 60px 0;
}

.wp-block-brandsolutions-products {
    margin: 60px 0;
}

.wp-block-brandsolutions-benefits {
    margin: 60px 0;
}

.wp-block-brandsolutions-stats {
    margin: 60px 0;
}

.wp-block-brandsolutions-testimonials {
    margin: 60px 0;
}

.wp-block-brandsolutions-countdown {
    margin: 60px 0;
}

.wp-block-brandsolutions-contact-form {
    margin: 60px 0 0 0;
}

/* Benefits section styling */
.benefits-section {
    padding: 60px 0;
}

.benefits-section .wp-block-column {
    text-align: center;
    padding: 30px 20px;
}

.benefits-section .wp-block-column h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.benefits-section .wp-block-column p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Countdown section specific styles */
.countdown-section {
    background: linear-gradient(135deg, #ff4d00 0%, #183153 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.countdown-section .countdown-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.countdown-section .countdown-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.countdown-section .countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.countdown-section .countdown-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px 20px;
    min-width: 100px;
    backdrop-filter: blur(10px);
}

.countdown-section .countdown-number {
    display: block;
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 8px;
}

.countdown-section .countdown-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.countdown-section .countdown-cta p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Block spacing improvements */
.wp-block-columns {
    margin-bottom: 40px;
}

.wp-block-column {
    margin-bottom: 0;
}

/* Responsive improvements for blocks */
@media (max-width: 768px) {
    .wp-block-brandsolutions-hero,
    .wp-block-brandsolutions-products,
    .wp-block-brandsolutions-countdown,
    .wp-block-brandsolutions-contact-form {
        margin: 40px 0;
    }
    
    .benefits-section {
        padding: 40px 0;
    }
    
    .benefits-section .wp-block-column {
        padding: 20px 10px;
    }
    
    .countdown-section {
        padding: 60px 0;
    }
    
    .countdown-section .countdown-title {
        font-size: 28px;
    }
    
    .countdown-section .countdown {
        gap: 15px;
    }
    
    .countdown-section .countdown-item {
        padding: 20px 15px;
        min-width: 80px;
    }
    
    .countdown-section .countdown-number {
        font-size: 36px;
    }
    
    .has-huge-font-size {
        font-size: 28px !important;
    }
    
    .has-large-font-size {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    .countdown-section .countdown-item {
        padding: 15px 10px;
        min-width: 70px;
    }
    
    .countdown-section .countdown-number {
        font-size: 28px;
    }
    
    .countdown-section .countdown-label {
        font-size: 12px;
    }
}
