/*
Theme Name: Клімат Стандарт Плюс
Theme URI: https://klimat-standart.com.ua
Author: Web Developer
Description: Професійна тема для компанії з опалення, вентиляції та кондиціювання. 20 років досвіду, авторизований партнер Panasonic та A-Klima.
Version: 2.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: klimat-theme
Tags: custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --white: #FFFFFF;
    --cream: #FFFBF7;
    --cream-dark: #F5EDE4;
    --beige: #F0E6D9;
    --primary: #E07B39;
    --primary-dark: #C66A2E;
    --primary-light: #FDF0E8;
    --secondary: #D4956A;
    --secondary-dark: #B87D52;
    --text-dark: #2D2D2D;
    --text-medium: #5A5A5A;
    --text-light: #8A8A8A;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-medium);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

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

.btn-white:hover {
    background: var(--cream);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 20px;
}

.section-text {
    margin-bottom: 24px;
}

.text-center {
    text-align: center;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
}

/* Logo - 100x100 */
.site-logo {
    display: flex;
    align-items: center;
    width: 100px;
    height: 100px;
}

.site-logo img,
.custom-logo {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    min-width: 100px !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 8px;
}

.custom-logo-link {
    width: 100px;
    height: 100px;
    display: block;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    list-style: none;
}

.main-navigation a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-medium);
    position: relative;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
}

.header-phone:hover {
    color: var(--primary);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

@media (max-width: 992px) {
    .main-navigation,
    .header-right .btn {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .site-logo img,
    .custom-logo {
        width: 100px !important;
        height: 100px !important;
        max-width: 100px !important;
        min-width: 100px !important;
    }
    
    .site-logo,
    .custom-logo-link {
        width: 100px;
        height: 100px;
    }
    
    .header-inner {
        height: 100px;
    }
    
    .main-navigation.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-md);
        padding: 20px;
    }
    
    .main-navigation.active ul {
        flex-direction: column;
        gap: 16px;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    padding: 180px 0 80px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--white);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: clamp(36px, 5vw, 52px);
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-title span {
    color: var(--primary);
}

.hero-text {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: top;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-section {
        padding: 160px 0 60px;
    }
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: 60px 0;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: 80px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    padding: 80px 0;
    background: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--cream);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
}

.service-card.highlight {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
}

.service-card.highlight h3,
.service-card.highlight p {
    color: var(--white);
}

.service-card.highlight .service-icon {
    background: rgba(255,255,255,0.2);
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   INNOVATION SECTION
   ============================================ */
.innovation-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
}

.innovation-section .section-label {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.innovation-section .section-title {
    color: var(--white);
}

.innovation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 48px;
}

.innovation-card {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.innovation-card h3 {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.innovation-card p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.innovation-features {
    list-style: none;
}

.innovation-features li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    opacity: 0.9;
}

.innovation-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--white);
}

@media (max-width: 992px) {
    .innovation-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-section {
    padding: 80px 0;
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.project-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.project-card h3 {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 4px;
}

.project-card span {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.project-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section {
    padding: 80px 0;
    background: var(--cream);
}

.video-wrapper {
    max-width: 900px;
    margin: 48px auto 0;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.video-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    border: none;
    font-size: 24px;
    color: var(--primary);
}

.video-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-size: clamp(28px, 4vw, 40px);
    color: var(--white);
    margin-bottom: 16px;
}

.cta-text {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners-section {
    padding: 80px 0;
    background: var(--cream);
}

.partner-logo {
    background: var(--white);
    padding: 30px 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--text-dark);
}

/* ============================================
   ADVANTAGES
   ============================================ */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 48px;
}

.advantage-card {
    background: var(--cream);
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s;
}

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

.advantage-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.advantage-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.advantage-card p {
    font-size: 14px;
    color: var(--text-light);
}

@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   INFRASTRUCTURE
   ============================================ */
.infrastructure-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 48px;
}

.infrastructure-card {
    background: var(--cream);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.infrastructure-card .card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.infrastructure-card h3 {
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .infrastructure-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
    max-width: 100%;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo img {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    object-fit: contain !important;
    border-radius: 8px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 14px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    padding: 180px 0 60px;
    background: var(--cream);
    text-align: center;
}

.page-title {
    font-size: clamp(32px, 5vw, 48px);
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.wp-block-image img {
    height: auto;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Admin Bar Fix */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Google Maps */
.google-map {
    border-radius: var(--radius);
    overflow: hidden;
    height: 300px;
}

.google-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Company Details Table */
.company-details-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.company-details-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--cream-dark);
}

.company-details-table tr:last-child td {
    border-bottom: none;
}

.company-details-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
    width: 40%;
}


.project-link {
    position: absolute;
    inset: 0;
    z-index: 10;
}


/* Additional responsive fixes for static sections */
@media (max-width: 992px) {
    section [style*="grid-template-columns:1fr 1fr"],
    section [style*="grid-template-columns:repeat(3,1fr)"],
    section [style*="grid-template-columns:repeat(4,1fr)"] {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 576px) {
    .btn-lg { width: 100%; }
    .hero-buttons, .cta-buttons { flex-direction: column; }
}
