/*
* Main Stylesheet
* Energy-efficient window treatments for Dutch climates
*/

/* ==== BASE VARIABLES ==== */
:root {
    /* Colors */
    --color-primary: #B3E5FC;       /* Light Sky Blue - лёгкость и свежесть */
    --color-secondary: #E8EAF6;     /* Pale Lavender Gray - мягкая современная база */
    --color-accent: #C8E6C9;        /* Soft Mint Green - натуральная свежесть */
    --color-highlight: #81D4FA;     /* Baby Blue - лёгкий контраст для акцентов */
    --color-background: #FFFFFF;    /* Pure White */
    --color-text: #2E2E2E;          /* Dark Gray - читаемый текст */
    --color-light-text: #666666;    /* Medium Gray - второстепенный текст */
    --color-dark-text: #111111;     /* Almost Black - для заголовков */
    --color-border: #DDDDDD;        /* Light Gray - мягкие границы */
    --color-success: #66BB6A;       /* Soft Green - успех и подтверждения */
    --color-error: #EF5350;         /* Soft Red - ошибки */

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;

    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.08);

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;

    /* Container */
    --container-width: 1200px;
    --container-padding: var(--space-md);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-background);
    overflow-x: hidden;
}

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

a {
    color: var(--color-highlight);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    margin-bottom: var(--space-md);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-dark-text);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--space-md);
}

/* Styles specific to inspiration page */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border: 5px solid white;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 1rem;
}

.story-card {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-lg);
}

.story-content {
    padding: var(--space-lg);
}

.story-image-container {
    height: 300px;
    overflow: hidden;
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-quote {
    position: relative;
    padding: var(--space-lg);
    background-color: var(--color-secondary);
    border-radius: var(--radius-md);
    font-style: italic;
    margin: var(--space-md) 0;
}

.user-quote:before {
    content: '\201C';
    position: absolute;
    top: 0;
    left: 10px;
    font-size: 4rem;
    font-family: serif;
    color: var(--color-accent);
    opacity: 0.5;
}

.style-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background-color: var(--color-accent);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    margin-right: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.filter-button {
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--color-highlight);
    background-color: transparent;
    color: var(--color-highlight);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-button:hover,
.filter-button.active {
    background-color: var(--color-highlight);
    color: white;
}

.map-container {
    height: 500px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: var(--space-lg) 0;
}

/* Styles specific to efficiency page */
.before-after-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin: var(--space-lg) 0;
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: white;
    left: 50%;
    cursor: ew-resize;
    z-index: 10;
}

.slider-control {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: ew-resize;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-control:before {
    content: '\f07e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-highlight);
}

.efficiency-step {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-lg);
    gap: var(--space-lg);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-primary);
}

@media (max-width: 768px) {
    .efficiency-step {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
}

.energy-loss-graphic {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.loss-item {
    flex: 1;
    min-width: 200px;
    padding: var(--space-md);
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.loss-percentage {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-highlight);
    margin-bottom: var(--space-xs);
}

/* ==== LAYOUT ==== */
.container {
    width: 100%;
    max-width: var(--container-width);
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    margin: 0 auto;
}

.section {
    padding: var(--space-xl) 0;
}

.section-sm {
    padding: var(--space-lg) 0;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-column {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

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

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-md);
}

/* ==== HEADER ==== */
.site-header {
    background-color: var(--color-background);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
    padding: var(--space-md) 0;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-highlight);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: var(--space-lg);
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    padding: var(--space-xs) 0;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.nav-link:hover:after {
    width: 100%;
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 200;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-highlight);
    transition: all var(--transition-fast);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-background);
    box-shadow: var(--shadow-lg);
    padding: 4rem var(--space-lg) var(--space-lg);
    transition: right var(--transition-medium);
    z-index: 150;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-item {
    margin-bottom: var(--space-md);
}

.mobile-nav-link {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: var(--space-sm) 0;
}

.mobile-active .mobile-nav {
    right: 0;
}

.mobile-active .menu-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-active .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.mobile-active .menu-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 140;
}

.mobile-active .overlay {
    opacity: 1;
    visibility: visible;
}

/* ==== HERO SECTION ==== */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: url("../images/1.webp") top / cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(38, 70, 83, 0.7), rgba(38, 70, 83, 0));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.hero-title {
    color: white;
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.hero-text {
    color: white;
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
}

.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background-color: var(--color-accent);
    color: white;
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn:hover {
    background-color: var(--color-highlight);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

/* ==== FEATURES SECTION ==== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    padding: var(--space-lg);
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.feature-icon {
    color: var(--color-accent);
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.feature-title {
    margin-bottom: var(--space-sm);
}

/* ==== PRODUCTS SECTION ==== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.product-card {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.product-image-container {
    height: 200px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-content {
    padding: var(--space-lg);
}

.product-title {
    margin-bottom: var(--space-xs);
}

.product-price {
    color: var(--color-highlight);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.product-description {
    margin-bottom: var(--space-md);
}

/* ==== TESTIMONIAL SECTION ==== */
.testimonial-section {
    background-color: var(--color-secondary);
    padding: var(--space-xl) 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background-color: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: var(--space-md);
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-highlight);
}

/* ==== CONTACT FORM ==== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.contact-info {
    margin-bottom: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.contact-icon {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-right: var(--space-sm);
    min-width: 24px;
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

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

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
}

.form-checkbox input {
    margin-right: var(--space-sm);
    margin-top: 6px;
}

/* ==== FOOTER ==== */
.site-footer {
    background-color: var(--color-highlight);
    color: white;
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
}

.footer-heading {
    color: white;
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
}

.footer-nav-list {
    list-style: none;
}

.footer-nav-item {
    margin-bottom: var(--space-sm);
}

.footer-nav-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-nav-link:hover {
    color: white;
}

.copyright {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

/* ==== PRIVACY POLICY POPUP ==== */
.privacy-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-highlight);
    color: white;
    padding: var(--space-md);
    z-index: 200;
    transform: translateY(100%);
    transition: transform var(--transition-fast);
}

.privacy-popup.active {
    transform: translateY(0);
}

.privacy-popup-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.privacy-popup-text {
    margin-bottom: 0;
}

.privacy-popup-close {
    background-color: white;
    color: var(--color-highlight);
    min-width: 120px;
}

/* ==== INSPIRATION GALLERY ==== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.gallery-item {
    height: 250px;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: var(--space-md);
    color: white;
    transform: translateY(100%);
    transition: transform var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    color: white;
    margin-bottom: var(--space-xs);
    font-size: 1.1rem;
}

/* ==== EFFICIENCY PAGE STYLES ==== */
.infographic {
    margin: var(--space-lg) 0;
    padding: var(--space-lg);
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.efficiency-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
    margin: var(--space-lg) 0;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    margin-bottom: var(--space-md);
    padding: var(--space-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

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

.comparison-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.comparison-card {
    flex: 1;
    min-width: 280px;
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison-header {
    padding: var(--space-md);
    background-color: var(--color-secondary);
    text-align: center;
    font-weight: 600;
}

.comparison-content {
    padding: var(--space-lg);
}

/* ==== MEDIA QUERIES ==== */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .nav-list {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero {
        min-height: 60vh;
    }

    .section {
        padding: var(--space-lg) 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero {
        min-height: 50vh;
    }

    .feature-grid,
    .product-grid,
    .testimonial-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 320px) {
    html {
        font-size: 14px;
    }

    .container {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }
}