/* 15075 OÜ - Professional Corporate Stylesheet */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #2c5aa0;
    --primary-dark: #1e3d6f;
    --primary-light: #4a7bc8;
    --secondary-color: #6c757d;
    --warning-color: #ffc107;
    --success-color: #198754;
    --danger-color: #dc3545;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --white: #ffffff;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.375rem;
    --border-radius-lg: 1rem;
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    padding-top: 76px; /* Account for fixed navbar */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-4 {
    font-weight: 700;
    line-height: 1.1;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* Navigation Styles */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(44, 90, 160, 0.8), rgba(30, 61, 111, 0.9)), 
                url('../images/business-tech.jpg') center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-stats {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 6rem 0 4rem;
    margin-top: -76px;
    padding-top: calc(6rem + 76px);
}

/* Button Styles */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-warning {
    background-color: var(--warning-color);
    color: var(--dark-gray);
    font-weight: 600;
}

.btn-warning:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Card Styles */
.service-card,
.service-detail-card,
.mission-card,
.vision-card,
.expertise-card,
.company-info-card,
.contact-form-wrapper,
.contact-card {
    transition: var(--transition);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.service-card:hover,
.service-detail-card:hover,
.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Service Icons */
.service-icon,
.value-icon,
.security-measure,
.industry-item {
    transition: var(--transition);
}

.service-icon i,
.value-icon i {
    margin-bottom: 1rem;
}

/* Stats */
.stat-item {
    padding: 1rem;
}

.stat-item i {
    opacity: 0.8;
}

/* Process Steps */
.process-step {
    position: relative;
}

.process-icon {
    position: relative;
    display: inline-block;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--warning-color);
    color: var(--dark-gray);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

/* Feature Lists */
.feature-list .feature-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-list .feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(44, 90, 160, 0.1);
    border-radius: 50%;
}

/* Forms */
.form-control,
.form-select,
.form-check-input {
    border-radius: var(--border-radius);
    border-color: var(--border-color);
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    position: relative;
}

.contact-info-sidebar .contact-card {
    margin-bottom: 1.5rem;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 37, 41, 0.95);
    color: var(--white);
    padding: 1rem 0;
    z-index: 9999;
    backdrop-filter: blur(10px);
    border-top: 3px solid var(--primary-color);
    transform: translateY(100%);
    transition: var(--transition);
}

.cookie-consent.show {
    transform: translateY(0);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-settings-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

/* Legal Content Styling */
.privacy-content,
.terms-content,
.cookie-content {
    font-size: 1rem;
    line-height: 1.7;
}

.legal-basis-card,
.rights-grid .right-item,
.definition-card,
.third-party-card {
    transition: var(--transition);
}

.legal-basis-card:hover,
.third-party-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* Tables */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(44, 90, 160, 0.05);
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #1a1e23 100%);
    margin-top: 4rem;
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-light) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }
    
    .hero-stats {
        margin-top: 3rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .page-header {
        text-align: center;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 70px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .page-header {
        padding: 4rem 0 3rem;
        padding-top: calc(4rem + 70px);
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-section {
        min-height: 60vh;
    }
    
    .contact-info-sidebar .contact-card {
        margin-bottom: 1rem;
    }
    
    .cookie-settings-modal {
        padding: 1rem;
    }
    
    .cookie-settings-content {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    .hero-stats .row > div {
        margin-bottom: 1rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto 1rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .cookie-consent,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .page-header {
        background: none !important;
        color: var(--text-dark) !important;
        margin-top: 0;
        padding-top: 2rem;
    }
    
    .hero-section {
        background: none !important;
        color: var(--text-dark) !important;
        min-height: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --text-dark: #000000;
        --border-color: #000000;
    }
}

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

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

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

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

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