/* RIVOG AG - Central CSS File */
/* =================================== */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica', 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, #1a1a1a 50%, #ff6600 50%);
    min-height: 600px;
}

/* Service Boxes */
.service-box {
    transition: transform 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
}

/* RIVOG Colors */
.bg-rivog-orange {
    background-color: #ff6600;
}

.bg-rivog-dark {
    background-color: #1a1a1a;
}

.text-rivog-orange {
    color: #ff6600;
}

.border-rivog-orange {
    border-color: #ff6600;
}

/* Footer Contact Icons - Fixed Width for Alignment */
.footer-contact-icon {
    width: 24px !important;
    text-align: center !important;
    display: inline-block !important;
    margin-right: 12px !important;
}

/* Alternative: Footer Contact List with CSS Grid */
.footer-contact-list {
    display: grid !important;
    grid-template-columns: 24px 1fr !important;
    gap: 0 12px !important;
    align-items: start !important;
}

.footer-contact-list li {
    display: contents !important;
}

/* Quality Icons */
.quality-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Contact Form Styles */
.contact-form input, .contact-form textarea, .contact-form select {
    border: 1px solid #ccc;
    padding: 10px;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 4px;
}

.contact-form button {
    background-color: #ff6600;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.contact-form button:hover {
    background-color: #e65c00;
}

/* Checkbox Layout Fix */
#rivog-contact-form .mb-6 input[type=checkbox] {
    width: 16px;
    height: 16px;
    position: relative;
    top: 2px;
    margin-right: 8px;
}

#rivog-contact-form .mb-6 label {
    padding-top: 0;
    display: flex;
    align-items: flex-start;
}

/* Feature Items */
.feature-item {
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Statistics Boxes */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

@media (max-width: 640px) {
    .stats-container {
        justify-content: center;
    }
    .stats-container .stats-box:nth-child(1),
    .stats-container .stats-box:nth-child(2) {
        flex: none;
        width: auto;
    }
    .stats-container .stats-box:nth-child(3) {
        flex-basis: auto;
        justify-content: center;
        margin-top: 0.5rem;
    }
}

/* Mobile Navigation */
#mobile-nav {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: 90vh;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
    display: none;
    animation: slideUpMobileNav 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
}

@keyframes slideUpMobileNav {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    width: 100%;
}

#mobile-nav ul li {
    width: 100%;
    text-align: center;
    margin: 0.5rem 0;
}

#mobile-nav ul li a {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    display: block;
    padding: 1rem 0;
    transition: color 0.2s;
}

#mobile-nav ul li a:hover {
    color: #ff6600;
}

/* Accordion style for mobile submenu */
#mobile-nav .accordion-header {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    display: block;
    padding: 1rem 0;
    position: relative;
    cursor: pointer;
}

#mobile-nav .accordion-header:after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

#mobile-nav .accordion-header.active:after {
    transform: translateY(-50%) rotate(180deg);
}

#mobile-nav .accordion-content {
    display: none;
    width: 100%;
    padding: 0;
    background-color: rgba(0,0,0,0.03);
}

#mobile-nav .accordion-content a {
    font-size: 1.3rem;
    padding: 0.75rem 0;
}

/* Desktop dropdown submenu fix */
.group:hover .group-hover\:block {
    display: block !important;
}

/* Custom z-index to ensure dropdown appears above other elements */
header nav .relative.group .absolute {
    z-index: 100;
}

/* Feature Icons */
.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ff6600;
}

/* Process Steps */
.process-step {
    position: relative;
    padding-left: 3rem;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #ff6600;
}

.process-step:last-child::before {
    height: 50%;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #ff6600;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Social Media Button Animation */
#social-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

#social-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ff6600;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
}

#social-toggle:hover {
    background: #e65c00;
    transform: scale(1.1);
}

#social-toggle.active {
    transform: rotate(45deg);
}

.social-buttons-top {
    position: absolute;
    bottom: 68px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateY(20px) scale(0.8);
}

.social-buttons-bottom {
    position: absolute;
    bottom: -60px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateY(-20px) scale(0.8);
}

.social-buttons-top.active,
.social-buttons-bottom.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(60px);
}

.social-buttons-top.active .social-btn {
    opacity: 1;
    transform: translateX(0);
}

.social-buttons-top.active .social-btn:nth-child(1) {
    transition-delay: 0.1s;
}

.social-buttons-top.active .social-btn:nth-child(2) {
    transition-delay: 0.15s;
}

.social-buttons-top.active .social-btn:nth-child(3) {
    transition-delay: 0.2s;
}

.social-buttons-top.active .social-btn:nth-child(4) {
    transition-delay: 0.25s;
}

.social-btn:hover {
    transform: scale(1.1);
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.linkedin {
    background: #0077B5;
}

.social-btn.whatsapp {
    background: #25D366;
}

.social-btn.email {
    background: #6B7280;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 24px;
    right: 96px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ff6600;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 999;
}

#back-to-top:hover {
    background: #e65c00;
    transform: scale(1.1);
}

/* Mobile Nav Popup von unten */
#mobile-nav {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: 90vh;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
    display: none;
    animation: slideUpMobileNav 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
}

@keyframes slideUpMobileNav {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    width: 100%;
}

#mobile-nav ul li {
    width: 100%;
    text-align: center;
    margin: 0.5rem 0;
}

#mobile-nav ul li a {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    display: block;
    padding: 1rem 0;
    transition: color 0.2s;
}

#mobile-nav ul li a:hover {
    color: #ff6600;
}

/* Accordion style for mobile submenu */
#mobile-nav .accordion-header {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    display: block;
    padding: 1rem 0;
    position: relative;
    cursor: pointer;
}

#mobile-nav .accordion-header:after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

#mobile-nav .accordion-header.active:after {
    transform: translateY(-50%) rotate(180deg);
}

#mobile-nav .accordion-content {
    display: none;
    width: 100%;
    padding: 0;
    background-color: rgba(0,0,0,0.03);
}

#mobile-nav .accordion-content a {
    font-size: 1.3rem;
    padding: 0.75rem 0;
}

/* Mobile responsive fixes */
@media (max-width: 640px) {
    /* Hero section mobile fixes */
    .hero-section {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .hero-section .container {
        padding: 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-section p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-section a {
        font-size: 0.9rem !important;
        padding: 0.75rem 1rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-section .flex {
        gap: 0.75rem !important;
    }
    
    /* Feature cards mobile spacing */
    .feature-card {
        margin-bottom: 1rem;
    }
    
    /* Grid improvements for mobile */
    .grid.grid-cols-1.md\\:grid-cols-2 {
        gap: 1rem;
    }
    
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 {
        gap: 1rem;
    }
    
    /* Text sizing adjustments */
    .text-3xl {
        font-size: 1.75rem;
        line-height: 2rem;
    }
    
    .text-4xl {
        font-size: 2rem;
        line-height: 2.25rem;
    }
    
    /* Container padding for mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Mobile testimonials grid fix */
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 > div {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .hero-section h1 {
        font-size: 1.5rem !important;
        line-height: 1.75rem !important;
    }
    
    .hero-section p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    .hero-section a {
        font-size: 0.8rem !important;
        padding: 0.6rem 0.8rem !important;
    }
}