/*
Theme Name: Aprox Theme
Theme URI: https://a-prox.de
Author: Custom Development
Description: Custom WordPress theme with professional corporate identity design, optimized for Visual Composer
Version: 1.1.5
Text Domain: aprox-theme
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #fff;
}

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

.front-page > .vc-page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(9, 47, 54, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.site-logo {
    order: 1;
}

.site-logo,
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 260px;
}

.site-logo img,
.custom-logo {
    display: block;
    max-height: var(--aprox-logo-height, 56px);
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.main-navigation ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0;
    align-items: stretch;
}

.main-navigation a {
    display: block;
    padding: 1rem 0;
    text-decoration: none;
    color: #092F36;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #092F36;
}

body.menu-open {
    overflow: hidden;
}

.site-header {
    z-index: 10000;
}

.menu-toggle {
    order: 3;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: 1rem;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    z-index: 10002;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    margin: 0 auto;
    border-radius: 999px;
    background-color: #092F36;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.is-open .hamburger-line:nth-child(2) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open .hamburger-line:nth-child(3) {
    opacity: 0;
}

.menu-toggle.is-open .hamburger-line:nth-child(4) {
    transform: translateY(-8px) rotate(-45deg);
}

.main-navigation {
    position: fixed;
    top: 0;
    right: 0;
    width: min(85vw, 420px);
    height: 100vh;
    padding: 6rem 2rem 2rem;
    background-color: #fff;
    box-shadow: -8px 0 30px rgba(9, 47, 54, 0.18);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10001;
    overflow-y: auto;
}

.main-navigation.is-open {
    transform: translateX(0);
}

.main-navigation li {
    border-bottom: 1px solid #edf0f2;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    display: block;
    background-color: rgba(9, 47, 54, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000;
}

.menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.header-cta {
    order: 2;
    margin-left: auto;
    background-color: #B80000;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.header-cta:hover {
    background-color: #990000;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #092F36 0%, #0a3d45 100%);
    color: #fff;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Avenir Next', 'Helvetica Neue', sans-serif;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: #fff;
    color: #092F36;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

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

.service-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

body.has-scroll-animations .service-card,
body.has-scroll-animations .stat-item,
body.has-scroll-animations .about-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

body.has-scroll-animations .service-card.animate-in,
body.has-scroll-animations .stat-item.animate-in,
body.has-scroll-animations .about-text.animate-in {
    opacity: 1;
    transform: translateY(0);
}

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

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #092F36;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Avenir Next', 'Helvetica Neue', sans-serif;
    letter-spacing: -0.01em;
}

.service-description {
    color: #666;
    line-height: 1.7;
}

.service-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: #B80000;
    text-decoration: none;
    font-weight: 500;
}

.service-link:hover {
    color: #092F36;
    text-decoration: underline;
}

/* Statistics Section */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #092F36 0%, #0a3d45 100%);
    color: #fff;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
.site-footer {
    background-color: #092F36;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #fff;
}

.footer-contact {
    line-height: 2;
}

.footer-contact strong {
    display: block;
    margin-bottom: 0.5rem;
}

.certifications {
    margin-top: 2rem;
}

.cert-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.cert-logos img {
    height: 50px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.cert-logos img:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #95a5a6;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    color: #fff;
    padding: 1.5rem;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

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

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-btn.accept {
    background-color: #27ae60;
    color: #fff;
}

.cookie-btn.accept:hover {
    background-color: #229954;
}

.cookie-btn.settings {
    background-color: #34495e;
    color: #fff;
}

.cookie-btn.settings:hover {
    background-color: #2c3e50;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(184, 0, 0, 0.35);
    outline-offset: 3px;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }

    .site-header {
        z-index: 10000;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        padding: 0.75rem 1rem;
    }

    .site-logo img {
        max-height: 48px;
    }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 4px;
        background: transparent;
        cursor: pointer;
        z-index: 10002;
    }

    .hamburger-line {
        display: block;
        width: 28px;
        height: 3px;
        margin: 0 auto;
        border-radius: 999px;
        background-color: #092F36;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .menu-toggle.is-open .hamburger-line:nth-child(2) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-open .hamburger-line:nth-child(3) {
        opacity: 0;
    }

    .menu-toggle.is-open .hamburger-line:nth-child(4) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        width: min(85vw, 360px);
        height: 100vh;
        padding: 6rem 2rem 2rem;
        background-color: #fff;
        box-shadow: -8px 0 30px rgba(9, 47, 54, 0.18);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 10001;
        overflow-y: auto;
    }

    .main-navigation.is-open {
        transform: translateX(0);
    }

    .menu-overlay {
        position: fixed;
        inset: 0;
        display: block;
        background-color: rgba(9, 47, 54, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 10000;
    }

    .menu-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }
    
    .main-navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid #edf0f2;
    }

    .main-navigation a {
        display: block;
        padding: 1rem 0;
        color: #092F36;
        font-size: 1.1rem;
    }

    .cookie-content {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Visual Composer Compatibility */
.wpb_wrapper {
    padding: 0;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Avenir Next', 'Helvetica Neue', sans-serif;
    color: #092F36;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-weight: 700;
    font-size: 2.5rem;
}

h3 {
    font-weight: 600;
}

.section-title {
    color: #092F36;
    font-weight: 700;
}

/* Accent Colors */
.accent-primary {
    color: #092F36;
}

.accent-secondary {
    color: #B80000;
}

.bg-primary {
    background-color: #092F36;
}

.bg-secondary {
    background-color: #B80000;
}

/* Button Variations */
.btn-primary {
    background-color: #092F36;
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0a3d45;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(9, 47, 54, 0.3);
}

.btn-secondary {
    background-color: #B80000;
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #990000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 0, 0, 0.3);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 2rem;
}

.mb-3 {
    margin-bottom: 2rem;
}

/* Color Palette for Reference */
/*
Primary: #092F36 (Dark Teal)
Secondary: #B80000 (Red)
Dark Gray: #2c3e50
Medium Gray: #5a6c7d
Light Gray: #8e9ba6
Very Light Gray: #f8f9fa
White: #ffffff
*/

