/*
Theme Name: plastconstructor
Description: Кастомная тема для plastconstructor - компании по продаже и установке окон, дверей, мебели, ролет и жалюзи
Version: 1.0
Author: Ваше имя
*/

/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Ссылки */
a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.btn:hover {
    background-color: #1d4ed8;
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background-color: #2563eb;
    color: white;
}

/* Header стили убраны - теперь используются из header.php */

/* Hero Section - Updated for Slider */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #f8f9fa;
}

.hero-slider {
    position: relative;
    height: 100%; 
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Button Styles - Real Estate Minimal Design */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 45px;
    background: rgba(255,255,255,0.95);
    color: #1f2937 !important;
    text-decoration: none;
    border: none;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    position: relative;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.btn-hero-primary span {
    position: relative;
    z-index: 2;
}

.btn-hero-primary svg {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1f2937;
    transition: width 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-hero-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1f2937;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.btn-hero-primary:hover {
    color: white !important;
}

.btn-hero-primary:hover::before {
    width: 100%;
}

.btn-hero-primary:hover::after {
    transform: translateX(0);
}

.btn-hero-primary:hover svg {
    transform: translateX(5px);
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 43px;
    background: transparent;
    color: white !important;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    position: relative;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.btn-hero-outline span {
    position: relative;
    z-index: 2;
}

.btn-hero-outline svg {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
}

.btn-hero-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.btn-hero-outline:hover {
    color: #1f2937 !important;
    border-color: rgba(255,255,255,0.95);
}

.btn-hero-outline:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-hero-outline:hover svg {
    transform: rotate(12deg) scale(1.1);
}

/* Slider Navigation */
.slider-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
    z-index: 10;
}

.slider-prev,
.slider-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    pointer-events: all;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.slider-prev svg,
.slider-next svg {
    color: rgba(255, 255, 255, 0.9);
    width: 18px;
    height: 18px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Hero Categories Bar */
.hero-categories {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.1);
    z-index: 15;
    height: 100px;
}

.categories-row {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.category-quick-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.3s ease;
    border-right: 1px solid #e5e7eb;
    position: relative;
    min-height: 100px;
}

.category-quick-link:last-child {
    border-right: none;
}

.category-quick-link:hover {
    background: #f8f9fa;
    color: #1f2937;
}

.category-quick-link.active {
    background: linear-gradient(to bottom, #fff, #f0f4f8);
    color: #1f2937;
}

.category-quick-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #1f2937;
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.category-hover-text {
    font-size: 0.85rem;
    color: #1f2937;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: none;
    margin-top: 8px;
}

.category-quick-link:hover .category-hover-text {
    opacity: 1;
    transform: translateY(0);
}

.category-quick-link:hover .category-name {
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 1s ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
    }

    .slider-navigation {
        padding: 0 15px;
    }

    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
    }

    .slider-dots {
        display: none;
    }

    .hero-categories {
        display: none;
    }
}


/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.category-image {
    width: 100%;
    height: 200px;
    background-color: #f3f4f6;
    background-size: cover;
    background-position: center;
}

.category-content {
    padding: 1.5rem;
}

.category-content h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.category-content p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* About Section */
.about-section {
    background-color: #f9fafb;
    padding: 4rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Footer */
.site-footer {
    background-color: #1f2937;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #60a5fa;
}

.footer-section p,
.footer-section a {
    color: #d1d5db;
    line-height: 1.6;
}

.footer-section a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Утилиты */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.py-4 { padding: 2rem 0; }