/* Custom styles for СантехМайстер */

:root {
    --primary-blue: #1976d2;
    --secondary-blue: #42a5f5;
    --primary-orange: #ff7043;
    --secondary-orange: #ffab40;
    --success-green: #4caf50;
    --warning-red: #f44336;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Emergency Bar */
.emergency-bar {
    background: linear-gradient(135deg, #ff7043 0%, #ff5722 100%) !important;
    box-shadow: 0 2px 8px rgba(255, 112, 67, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.emergency-phone {
    font-weight: bold !important;
    font-size: 1.1em !important;
    color: #fff !important;
}

.emergency-phone:hover {
    color: #ffeb3b !important;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Navigation */
#mainNav {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-top: none;
}

.logo {
    font-size: 1.5em !important;
    font-weight: bold !important;
}

.logo .icon {
    color: var(--primary-blue) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 50%, #64b5f6 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
}

.hero-content .ui.header {
    margin-bottom: 2rem !important;
}

.hero-content .ui.list .item {
    padding: 0.5rem 0;
    font-size: 1.1em;
}

.hero-illustration {
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-illustration .huge.icon {
    color: var(--primary-orange);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-icons i {
    position: absolute;
    color: rgba(255, 255, 255, 0.7);
    animation: float 6s ease-in-out infinite;
}

.floating-icon-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    font-size: 2rem !important;
}

.floating-icon-2 {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
    font-size: 2.5rem !important;
}

.floating-icon-3 {
    bottom: 30%;
    left: 60%;
    animation-delay: 4s;
    font-size: 1.8rem !important;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

.service-card {
    transition: all 0.3s ease;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    height: 100%;
}

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

.service-icon {
    margin: 1rem auto 1.5rem !important;
    width: 80px !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.service-icon i {
    margin: 0 !important;
}

/* Why Choose Us Section */
.why-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 80px 0;
}

.advantage-item {
    text-align: center;
    padding: 2rem 1rem;
}

.advantage-icon {
    margin: 0 auto 1.5rem !important;
    width: 100px !important;
    height: 100px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.advantage-item h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5em;
}

.advantage-item p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Service Areas Section */
.areas-section {
    padding: 80px 0;
}

.service-map {
    position: relative;
    background: #e3f2fd;
    border-radius: 10px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.map-marker {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 1rem !important;
}

.map-text {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    color: var(--primary-blue);
}

/* Reviews Section */
.reviews-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.review-card {
    height: 100%;
    transition: all 0.3s ease;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

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

.review-card .header {
    color: var(--primary-blue);
    font-weight: bold;
}

.review-card .meta {
    color: #666;
    font-size: 0.9em;
}

/* Call to Action */
.cta-section {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff5722 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-note {
    margin-top: 2rem;
    font-size: 1.1em;
    opacity: 0.9;
}

/* Footer */
.footer-section {
    background: #2c3e50 !important;
    padding: 60px 0 30px;
}

.footer-section h4 {
    color: var(--primary-orange) !important;
    margin-bottom: 1.5rem !important;
}

.orange-text {
    color: var(--primary-orange) !important;
}

.orange-text:hover {
    color: var(--secondary-orange) !important;
}

/* Floating Call Button */
.floating-call-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-call-btn .button {
    box-shadow: 0 4px 15px rgba(255, 112, 67, 0.4);
    animation: bounce 2s infinite;
}

.floating-call-btn:hover .call-tooltip {
    opacity: 1;
    visibility: visible;
}

.call-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Page-specific styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 100px 0 50px;
}

.breadcrumb-section {
    background: #e3f2fd;
    padding: 1rem 0;
}

.content-section {
    padding: 60px 0;
}

.sidebar-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

/* Service details */
.service-detail-card {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 2rem;
}

.service-price {
    background: var(--success-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
}

/* Price calculator */
.calculator-section {
    background: #fff;
    border: 2px solid var(--primary-blue);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.calculator-result {
    background: var(--primary-orange);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 1rem;
}

/* Before/After Gallery */
.gallery-item {
    position: relative;
    margin-bottom: 2rem;
}

.before-after-slider {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.before-image, .after-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Emergency page specific */
.emergency-hero {
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
    color: white;
    padding: 100px 0;
}

.emergency-card {
    border-left: 4px solid var(--warning-red) !important;
    background: #ffebee !important;
}

.emergency-phone-big {
    font-size: 3rem !important;
    color: var(--warning-red) !important;
    text-decoration: none !important;
    font-weight: bold;
}

.emergency-phone-big:hover {
    color: #c62828 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .services-section,
    .why-section,
    .areas-section,
    .reviews-section,
    .cta-section {
        padding: 60px 0;
    }
    
    .floating-call-btn {
        bottom: 20px;
        right: 20px;
    }
    
    .hero-illustration {
        padding: 2rem 1rem;
    }
    
    .floating-icons i {
        font-size: 1.5rem !important;
    }
    
    .advantage-item {
        padding: 1rem;
    }
    
    .ui.huge.buttons {
        flex-direction: column;
    }
    
    .ui.huge.buttons .or {
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .emergency-bar .item {
        padding: 0.5rem !important;
    }
    
    .emergency-phone {
        font-size: 0.9em !important;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-content .ui.header {
        font-size: 2rem !important;
    }
    
    .service-icon,
    .advantage-icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    .floating-call-btn .button {
        padding: 1rem !important;
    }
}

/* Accessibility improvements */
.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 */
.ui.button:focus,
a:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .emergency-bar,
    .floating-call-btn,
    .ui.button {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .service-card,
    .review-card {
        border: 2px solid #000 !important;
    }
    
    .hero-section {
        background: #000 !important;
        color: #fff !important;
    }
}