/* Custom Styles for Swiss Hyp Vermögensverwaltung AG */

:root {
    --primary-color: #ca2d2e;
    --primary-rgb: 202, 45, 46; /* RGB values for primary color */
    --secondary-color: #152536;
    --light-bg: #f8f9fa;
    --medium-bg: #edf0f2;
    --dark-text: #333;
    --medium-text: #666;
    --light-text: #999;
}

/* Custom CSS Overrides */

/*
 * This file provides fixes for syntax errors and duplicate styles in style.css
 * The main style.css file has several issues:
 * 1. Unclosed selector (.stat-item:nth-child(4)::after) at line ~990
 * 2. Extra closing brace at the end of the file
 * 3. Multiple duplicate button class definitions
 * 
 * Rather than trying to fix the large CSS file directly (which could break functionality),
 * this custom.css file provides clean, correct styles that override the problematic ones.
 * All styles use !important to ensure they take precedence over the broken styles.
 */

/* Fixed animations and keyframes */
@keyframes badgePulse {
    0% {
        box-shadow: 0 15px 35px rgba(198, 33, 39, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 20px 45px rgba(198, 33, 39, 0.5);
        transform: scale(1.03);
    }
    100% {
        box-shadow: 0 15px 35px rgba(198, 33, 39, 0.4);
        transform: scale(1);
    }
}

/* White top bar */
.top-bar {
    background-color: #152536 !important;
    color: var(--text-dark) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.top-bar .contact-info-top a {
    color: #fff !important;
    font-size: 12px;
}

.top-bar .contact-info-top a:hover {
    color: #fff !important;
    font-size: 12px;
}

/* Horizontal language selector */
.language-options {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-option {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lang-option:hover {
    color: #ffffff;
    background-color: rgb(255 255 255 / 14%);
}

.lang-option.active {
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid #ffffff;
}

@media (max-width: 576px) {
    .contact-info-top {
        gap: 15px;
    }
    
    .lang-option {
        padding: 3px 6px;
        font-size: 0.8rem;
    }
}

/* Compact Header Styles */
.header-compact {
    padding: 30px 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

.header-compact .logo img {
    height: 38px !important;
}

.header-compact .nav-links {
    gap: 14px !important;
}

.header-compact .nav-links a {
    font-size: 0.85rem !important;
    padding: 2px 1px !important;
}

.header-compact .btn-small {
    padding: 5px 14px !important;
    font-size: 0.75rem !important;
}

/* 
 * Fix for broken button styles in style.css
 * These overrides ensure the buttons work correctly despite syntax errors in the main stylesheet
 */
.btn-outline-small {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-small:hover {
    background-color: var(--primary-color) !important;
    color: var(--text-white) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 12px rgba(198, 33, 39, 0.2) !important;
}

.btn-primary-small {
    background-color: var(--primary-color) !important;
    color: var(--text-white) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 3px 8px rgba(198, 33, 39, 0.2) !important;
}

.btn-primary-small:hover {
    background-color: var(--primary-dark) !important;
    color: var(--text-white) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 12px rgba(198, 33, 39, 0.3) !important;
}

.btn-outline-light {
    background-color: transparent !important;
    color: var(--text-white) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.btn-outline-light:hover {
    background-color: var(--text-white) !important;
    color: var(--primary-color) !important;
    border-color: var(--text-white) !important;
    transform: translateY(-3px) !important;
}

/* Fix for missing or broken stats item styles */
.stat-item:nth-child(4)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 512 512'%3E%3Cpath d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 40px !important;
    opacity: 0.15 !important;
    transition: all 0.4s ease !important;
}

/* Fix for about-image section */
.about-image img {
    border-radius: 20px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
    position: relative !important;
    z-index: 1 !important;
    border: 5px solid white !important;
}

.about-image:hover img {
    transform: scale(1.02) !important;
}

.about-image::before {
    content: '' !important;
    position: absolute !important;
    top: -30px !important;
    left: -30px !important;
    width: 90% !important;
    height: 90% !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    z-index: 0 !important;
    opacity: 0.1 !important;
    transition: all 0.3s ease !important;
}

/* Fix for experience badge styles */
.experience-badge {
    position: absolute !important;
    bottom: -40px !important;
    right: -30px !important;
    width: 180px !important;
    height: 180px !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    color: white !important;
    box-shadow: 0 15px 35px rgba(198, 33, 39, 0.4) !important;
    border: 6px solid rgba(255, 255, 255, 0.9) !important;
    transition: transform 0.3s ease !important;
    z-index: 2 !important;
    animation: badgePulse 3s infinite ease-in-out !important;
}

.experience-badge:hover {
    transform: scale(1.05) !important;
}

.experience-badge .years {
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin-bottom: 5px !important;
}

.experience-badge .text {
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: 600 !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

/* Fix for stat-item styles */
.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    text-align: center !important;
}

.stat-item {
    padding: 40px 30px !important;
    position: relative !important;
    border-radius: 15px !important;
    transition: all 0.4s ease !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    overflow: hidden !important;
}

.stat-item::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 80%) !important;
    opacity: 0 !important;
    transition: opacity 0.5s ease !important;
}

.stat-item:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.stat-item:hover::before {
    opacity: 1 !important;
}

.stat-item::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 80px !important;
    height: 80px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 40px !important;
    opacity: 0.15 !important;
    transition: all 0.4s ease !important;
}

.stat-item h3 {
    color: white !important;
    font-size: 1.4rem !important;
    margin-top: 20px !important;
    margin-bottom: 5px !important;
    font-weight: 600 !important;
}

/* Responsive media queries */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px !important;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 768px) {
    .header-compact {
        padding: 5px 0 !important;
    }
    
    .header-compact .logo img {
        height: 32px !important;
    }
    
    .header-compact .logo h1 {
        font-size: 1.4rem !important;
    }
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 750px;
    overflow: hidden;
    background-color: transparent;
    box-shadow: none;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: transparent;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 0;
}

/* First slide should be visible by default */
.slide:first-child {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 180px 20px 0;
    text-align: center;
    color: #fff;
    z-index: 2;
    animation: fadeIn 0.5s ease-in-out;
}

.slide-content h1 {
    font-size: 62px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease forwards;
    line-height: 1.2;
}

.slide-content p {
    font-size: 22px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease forwards;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeIn 1.2s ease forwards;
}

.hero-buttons .btn {
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hero-buttons .btn-primary {
    background-color: var(--primary-color);
    border: none;
}

.hero-buttons .btn-outline {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
}

.hero-buttons .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    z-index: 10;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
}

.slider-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.slider-arrow:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.slider-arrow i {
    color: #fff;
    font-size: 22px;
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.slider-dots {
    display: flex;
    gap: 12px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px 15px;
    border-radius: 30px;
}

.slider-dot {
    position: relative;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    transform: scale(1.2);
    background-color: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.7);
}

.dot-tooltip {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dot-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.7) transparent transparent transparent;
}

.slider-dot:hover .dot-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-slider {
        height: 600px;
    }
    
    .slide-content {
        padding-top: 140px;
    }
    
    .slide-content h1 {
        font-size: 48px;
    }
    
    .slide-content p {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        padding: 12px 26px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 550px;
    }
    
    .slide-content {
        padding-top: 120px;
    }
    
    .slide-content h1 {
        font-size: 40px;
    }
    
    .slide-content p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .slider-arrows {
        padding: 0 20px;
    }
    
    .slider-arrow {
        width: 50px;
        height: 50px;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 500px;
    }
    
    .slide-content {
        padding-top: 100px;
    }
    
    .slide-content h1 {
        font-size: 34px;
        margin-bottom: 15px;
    }
    
    .slide-content p {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        max-width: 200px;
        margin: 0 auto;
    }
} 