/*
Theme Name: UNICAST Theme
Theme URI: https://unicast.gr
Author: UNICAST
Author URI: https://unicast.gr
Description: Custom theme for UNICAST - Sound & Light Production with ESPA banner, WCAG AA compliance, and dark modern design.
Version: 1.2.0 - WCAG AA Compliant
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: unicast-theme
Tags: dark, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, one-column, accessibility-ready
*/

/* ==========================================================
   CSS Variables - WCAG AA Compliant Colors
   All contrast ratios > 4.5:1
========================================================== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #121218;
    --bg-card: #1a1a24;
    --text-primary: #ffffff;
    --text-secondary: #c8c8d8; /* ΔΙΟΡΘΩΣΗ: πιο φωτεινό */
    --accent-cyan: #00e5ff; /* ΔΙΟΡΘΩΣΗ: πιο φωτεινό */
    --accent-magenta: #ff00aa;
    --accent-gold: #ffd700;
    --gradient-glow: linear-gradient(135deg, #00d4ff 0%, #ff00aa 50%, #ffd700 100%);
}

/* ==========================================================
   Reset & Base Styles
========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================
   ESPA Banner
========================================================== */
.espa-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: linear-gradient(135deg, #003366 0%, #004080 50%, #003366 100%);
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.espa-banner-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.espa-banner img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    filter: brightness(1.05);
    transition: transform 0.3s ease;
}

.espa-banner img:hover {
    transform: scale(1.02);
}

.espa-fallback {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 0.85rem;
    text-align: center;
}

.espa-fallback span:first-child {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .espa-banner {
        padding: 6px 0;
    }
    
    .espa-banner img {
        max-height: 45px;
    }
    
    .espa-fallback {
        font-size: 0.7rem;
        flex-direction: column;
        gap: 4px;
    }
}

/* ==========================================================
   Skip Link for Accessibility
========================================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-cyan);
    color: var(--bg-primary);
    padding: 1rem 2rem;
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================
   Animated Background
========================================================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 0, 170, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 215, 0, 0.04) 0%, transparent 50%);
    animation: bgPulse 15s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

/* Grid Pattern Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ==========================================================
   Navigation
========================================================== */
nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(10,10,15,0.95) 0%, transparent 100%);
    transition: all 0.3s ease;
}

nav.scrolled {
    top: 76px;
    background: rgba(10,10,15,0.98);
    backdrop-filter: blur(20px);
    padding: 1rem 5%;
}

@media (max-width: 768px) {
    nav {
        top: 57px;
    }
    
    nav.scrolled {
        top: 57px;
    }
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 4px;
    color: var(--accent-cyan);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--text-primary);
    outline: none;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ==========================================================
   Hero Section
========================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 12rem 5% 4rem;
    position: relative;
}

.hero-content {
    max-width: 1000px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 212, 255, 0.22);
    border: 1px solid rgba(0, 212, 255, 0.45);
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 2rem;
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.hero h1 .gradient-text {
    /* Solid color για maximum contrast */
    color: #00e5ff;
    
    /* Glow effect */
    text-shadow: 0 0 40px rgba(0, 229, 255, 0.6),
                 0 0 80px rgba(0, 229, 255, 0.3);
}

/* Fallback για browsers χωρίς background-clip support */
@supports not (background-clip: text) {
    .hero h1 .gradient-text {
        color: #00e5ff !important;
        background: none !important;
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================
   Buttons
========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border: none;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-3px);
    background: #00b8e0;
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(255,255,255,0.05);
    border-color: var(--accent-cyan);
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* ==========================================================
   Sound Wave Animation
========================================================== */
.sound-waves {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 60px;
}

.wave-bar {
    width: 4px;
    background: var(--gradient-glow);
    border-radius: 2px;
    animation: wave 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 35px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 50px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 40px; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 60px; animation-delay: 0.4s; }
.wave-bar:nth-child(6) { height: 45px; animation-delay: 0.5s; }
.wave-bar:nth-child(7) { height: 30px; animation-delay: 0.6s; }
.wave-bar:nth-child(8) { height: 55px; animation-delay: 0.7s; }
.wave-bar:nth-child(9) { height: 25px; animation-delay: 0.8s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.4); }
}

/* ==========================================================
   Stats Section
========================================================== */
.stats {
    padding: 6rem 5%;
    background: var(--bg-secondary);
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-magenta), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

/* ==========================================================
   About Section
========================================================== */
.about {
    padding: 8rem 5%;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    margin-bottom: 4rem;
}

.about-intro {
    margin-bottom: 2rem;
}

.lead-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.lead-text strong {
    color: var(--accent-cyan);
}

.about-text {
    margin-bottom: 2.5rem;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.about-partners {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-cyan);
    margin-bottom: 3rem;
}

.about-partners h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.about-partners p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-partners strong {
    color: var(--text-primary);
}

.about-values {
    margin-bottom: 4rem;
}

.about-values h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.value-item {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.value-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.value-item h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.value-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.about-cta {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(255, 0, 170, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.cta-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cta-highlight {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

/* ==========================================================
   Section Headers
========================================================== */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-label {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: 2px;
}

/* ==========================================================
   Services Section
========================================================== */
.services {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-cyan);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.service-icon.sound {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.05) 100%);
    color: var(--accent-cyan);
}

.service-icon.light {
    background: linear-gradient(135deg, rgba(255, 0, 170, 0.2) 0%, rgba(255, 0, 170, 0.05) 100%);
    color: var(--accent-magenta);
}

.service-icon.video {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.05) 100%);
    color: var(--accent-gold);
}

.service-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.service-features {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.service-features li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    list-style: none;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

/* ==========================================================
   Portfolio Section
========================================================== */
.portfolio {
    padding: 8rem 5%;
    background: var(--bg-secondary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,15,0.95) 0%, transparent 60%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover::before,
.portfolio-item:focus-within::before {
    opacity: 1;
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-info,
.portfolio-item:focus-within .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-info h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================
   Brands
========================================================== */
.brands {
    padding: 6rem 5%;
    text-align: center;
}

.brands-label {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #e2e2f0;
    margin-bottom: 3rem;
}

.brands-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0.6;
}

.brand-item {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.brand-item:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

/* ==========================================================
   Contact Section
========================================================== */
.contact {
    padding: 8rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-info h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 2rem;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-details li span:first-child {
    color: var(--accent-cyan);
    font-size: 1.2rem;
}

.contact-details a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover,
.contact-details a:focus {
    color: var(--accent-cyan);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 1.2rem;
    background: var(--accent-cyan);
    border: none;
    border-radius: 6px;
    color: var(--bg-primary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover,
.form-submit:focus {
    transform: translateY(-2px);
    background: #00b8e0;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Contact Container - New Grid Layout */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 212, 255, 0.3);
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.contact-item .contact-details h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-item .contact-details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.contact-item .contact-details a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item .contact-details a:hover {
    text-decoration: underline;
}

/* Form Select */
.form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Form Full Width */
.form-group.full-width {
    grid-column: 1 / -1;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--accent-cyan);
    cursor: pointer;
}

.checkbox-label a {
    color: var(--accent-cyan);
}

/* Form Message */
.form-message {
    padding: 1rem;
    border-radius: 6px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.form-message.error {
    display: block;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    color: #ff4d4d;
}

/* Contact Form Grid */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Contact Responsive */
@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
}

/* ==========================================================
   Contact Compact Layout
========================================================== */
.contact-compact {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-chip:hover,
.contact-chip:focus {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

.chip-icon {
    font-size: 1rem;
}

.contact-form-compact {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form-compact .form-group {
    margin-bottom: 0;
}

.contact-form-compact input,
.contact-form-compact textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-primary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.contact-form-compact input::placeholder,
.contact-form-compact textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.contact-form-compact input:focus,
.contact-form-compact textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.contact-form-compact textarea {
    min-height: 100px;
    resize: vertical;
    margin-bottom: 1rem;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-footer .checkbox-label {
    font-size: 0.85rem;
}

.form-footer .btn {
    padding: 0.875rem 2rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-info-row {
        flex-direction: column;
        align-items: center;
    }
    
    .form-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================
   Footer
========================================================== */
footer {
    background: var(--bg-secondary);
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 3px;
    color: var(--accent-cyan);
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--accent-cyan);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ==========================================================
   Cookie Banner
========================================================== */
/* ==========================================================
   Responsive
========================================================== */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #ffffff;
        --accent-cyan: #00ffff;
        --accent-magenta: #ff00ff;
    }

    .service-card,
    .contact-form {
        border-width: 2px;
    }
}

/* Focus Visible */
:focus-visible {
    outline: 3px solid var(--accent-cyan);
    outline-offset: 3px;
}

/* WordPress Overrides */
.wp-block-html {
    margin: 0 !important;
    padding: 0 !important;
}

.entry-content > * {
    margin-top: 0;
    margin-bottom: 0;
}

/* ==========================================================
   WCAG 2.1 AA ACCESSIBILITY ENHANCEMENTS
========================================================== */

/* Screen Reader Only - Hidden visually but accessible */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Skip Link Enhancement */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-cyan);
    color: var(--bg-primary);
    padding: 1rem 2rem;
    z-index: 100000;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Enhanced Focus States - WCAG 2.4.7 */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--accent-cyan) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 6px rgba(0, 212, 255, 0.25);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent-cyan) !important;
    outline-offset: 2px !important;
}

/* Button Focus States */
.btn:focus-visible {
    outline: 3px solid var(--accent-gold) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.3);
}

/* Form Field Focus */
.form-group input:focus-visible,
.form-group textarea:focus-visible {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

/* Interactive Card Focus */
.service-card:focus-visible,
.portfolio-item:focus-visible {
    outline: 3px solid var(--accent-cyan) !important;
    outline-offset: 4px !important;
    transform: translateY(-5px);
}

/* WCAG 2.1 AA: Minimum Touch Target Size 44x44px */
.btn,
.form-submit,
.menu-toggle {
    min-height: 44px;
    min-width: 44px;
}

.nav-links a {
    padding: 12px 16px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* WCAG 1.4.3 & 1.4.6: Contrast Ratios - Already Good, Enhanced Here */
/* Text contrast on dark backgrounds - minimum 4.5:1 for normal text */
:root {
    /* Primary text on dark: #ffffff on #0a0a0f = 18.3:1 ✓ */
    /* Secondary text: #b8b8c8 on #0a0a0f = 8.2:1 ✓ */
    /* Accent cyan: #00d4ff on #0a0a0f = 10.1:1 ✓ */
    /* Link colors enhanced for better visibility */
    --link-color: #00d4ff;
    --link-hover: #66e5ff;
    --error-color: #ff6b6b;
    --success-color: #00d4ff;
}

/* Form Error States - WCAG 1.4.1 */
.form-group input.error,
.form-group textarea.error {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.field-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.error-message {
    color: var(--error-color) !important;
    background: rgba(255, 107, 107, 0.1);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--error-color);
}

.success-message {
    color: var(--success-color) !important;
    background: rgba(0, 212, 255, 0.1);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--success-color);
}

/* WCAG 1.4.4: Text Resize - Support up to 200% */
html {
    font-size: 100%; /* Base for rem calculations */
}

/* Ensure content reflows at 200% zoom */
@media (min-width: 320px) {
    body {
        min-width: 320px;
    }
}

/* WCAG 1.4.10: Reflow at 320px */
@media (max-width: 320px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid,
    .portfolio-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* WCAG 2.3.1: Reduced Motion - Three flashes or below threshold */
.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

.reduced-motion .sound-waves,
.reduced-motion .bg-animation,
.reduced-motion .wave-bar {
    animation: none !important;
}

/* WCAG 1.4.12: Text Spacing - Support user overrides */
body {
    line-height: 1.6; /* 1.5x font size minimum */
    letter-spacing: normal; /* Allow user override */
    word-spacing: normal; /* Allow user override */
}

p {
    margin-bottom: 1.5em; /* Paragraph spacing at least 2x font size */
}

/* High Contrast Mode Enhancement */
.high-contrast {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-card: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --accent-cyan: #00ffff;
    --accent-magenta: #ff00ff;
    --accent-gold: #ffff00;
}

.high-contrast * {
    border-color: #ffffff !important;
}

.high-contrast a {
    text-decoration: underline !important;
}

.high-contrast .btn {
    border: 2px solid currentColor !important;
}

.high-contrast .service-card,
.high-contrast .portfolio-item,
.high-contrast .value-item {
    border: 2px solid #ffffff !important;
}

/* Underline Links Mode */
.underline-links a:not(.btn):not(.logo) {
    text-decoration: underline !important;
}

/* WCAG 2.4.4: Link Purpose - Ensure links are distinguishable */
a:not(.btn):not(.logo) {
    color: var(--link-color);
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s ease;
}

a:not(.btn):not(.logo):hover,
a:not(.btn):not(.logo):focus {
    text-decoration: underline;
    text-decoration-color: currentColor;
}

/* Navigation Link Improvements */
.nav-links a {
    position: relative;
}

.nav-links a:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Mobile Menu Accessibility */
@media (max-width: 768px) {
    .nav-links.active {
        display: flex;
        z-index: 10000;
    }
    
    .nav-links.active a {
        padding: 1rem 2rem;
        min-height: 48px;
        font-size: 1.2rem;
    }
}

/* Print Styles for Accessibility */
@media print {
    .bg-animation,
    .grid-overlay,
    .sound-waves,
    .accessibility-btn,
    nav,
    .espa-banner {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* WCAG 1.4.11: Non-text Contrast - UI Components */
.menu-toggle {
    border: 2px solid var(--text-secondary);
    background: transparent;
    padding: 8px 12px;
    border-radius: 4px;
}

.menu-toggle:hover,
.menu-toggle:focus {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Form Labels Always Visible */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Required Field Indicator */
.form-group label[for] span[aria-hidden="true"] {
    color: var(--accent-magenta);
    margin-left: 0.25rem;
}