/* Custom CSS for MOCANESCU 11 S LTD */

/* Root Variables */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f8f9fa;
    --accent-color: #28a745;
    --dark-color: #212529;
    --light-color: #ffffff;
    --text-color: #333333;
    --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);
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 76px;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 90, 160, 0.8), rgba(44, 90, 160, 0.8)), url('../images/construction-workers-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero .container {
    position: relative;
    z-index: 2;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(44, 90, 160, 0.9), rgba(44, 90, 160, 0.9)), url('../images/construction-workers-2.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    text-align: center;
}

/* Service Cards */
.service-card {
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

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

.service-detail-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-detail-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.service-detail-card .card-body {
    padding: 1.5rem;
}

/* Gallery */
.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    transition: transform 0.3s ease;
}

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

/* Process Steps */
.process-step {
    padding: 1.5rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-info {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-details h5 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-details p {
    margin-bottom: 0;
    color: var(--text-color);
}

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

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

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

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

/* Legal Content */
.legal-content {
    font-size: 1rem;
    line-height: 1.7;
}

.legal-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-content h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.legal-content ul {
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 1rem 0;
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-consent.hide {
    display: none;
}

.cookie-consent p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.cookie-consent a {
    color: white;
    text-decoration: underline;
}

.cookie-consent a:hover {
    color: #f8f9fa;
}

/* Feature Icons */
.feature-icon {
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e3f73;
    border-color: #1e3f73;
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: white !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        padding: 2rem 0;
    }
    
    .hero .display-4 {
        font-size: 2rem;
    }
    
    .hero .btn {
        margin-bottom: 0.5rem;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header .display-4 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto 1rem;
    }
    
    .cookie-consent .col-md-3 {
        text-align: center !important;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero .display-4 {
        font-size: 1.75rem;
    }
    
    .hero .lead {
        font-size: 1rem;
    }
    
    .service-detail-card .card-img-top {
        height: 150px;
    }
    
    .legal-content {
        font-size: 0.9rem;
    }
    
    .legal-content h2 {
        font-size: 1.25rem;
    }
    
    .legal-content h3 {
        font-size: 1.125rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .cookie-consent,
    footer {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .hero,
    .page-header {
        background: none !important;
        color: black !important;
    }
    
    .hero .display-4,
    .page-header .display-4 {
        color: black !important;
    }
}

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

/* Focus Styles */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

/* Loading States */
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #1e3f73;
}
