/* style.css — GIPSOLIT (Fixes & Premium Design 2026) */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;800&family=Oswald:wght@500;700&display=swap');

:root {
    --bg-main: #ffffff;
    --bg-alt: #f1f5f9;
    --brand: #2d5a27;
    --brand-light: #4c8a44;
    --brand-dark: #1b3817;
    --brand-soft: rgba(45, 90, 39, 0.05);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-float: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
    --font-head: 'Oswald', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.1;
    z-index: -10;
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--brand);
}

.text-brand {
    color: var(--brand) !important;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s ease;
    background: transparent;
}

header.scrolled {
    background: #ffffff;
    padding: 15px 5%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo span {
    color: var(--brand);
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brand);
}

/* Hero */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 80px;
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.hero-sub {
    min-height: 45vh;
    padding: 100px 5% 40px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.3) 100%);
    z-index: 1;
}

.hero-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: grayscale(0.2) contrast(1.1);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-tag {
    color: var(--brand);
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 76px);
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 650px;
    border-left: 4px solid var(--brand);
    padding-left: 25px;
    margin-bottom: 45px;
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 18px 40px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: 0.3s;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--brand);
    color: #ffffff;
    border: 1px solid var(--brand);
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(45, 90, 39, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-3px);
}

/* Grid & Cards */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 5%;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 35px;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-light);
    box-shadow: var(--shadow-float);
}

.card-icon {
    font-size: 40px;
    color: var(--brand);
    margin-bottom: 20px;
}

/* Catalog Layout */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
}

.filter-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.filter-group {
    margin-bottom: 35px;
}

.filter-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--brand);
    padding-bottom: 10px;
    display: block;
}

.filter-list {
    list-style: none;
}

.filter-item {
    margin-bottom: 12px;
}

.filter-item label {
    font-size: 15px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-item input[type="checkbox"] {
    accent-color: var(--brand);
    width: 18px;
    height: 18px;
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border);
}

.stat-item h2 {
    font-size: 64px;
}

.stat-item p {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: #ffffff;
    padding: 100px 5% 50px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 30px;
}

.footer-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 15px;
    transition: 0.3s;
}

.footer-link:hover {
    color: var(--brand);
}

.copy {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 40px;
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
}

/* Burger FIX */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 2001;
}

.burger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s forwards;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .burger {
        display: flex;
    }

    .burger.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.toggle span:nth-child(2) {
        opacity: 0;
    }

    .burger.toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 2000;
    }

    .nav-links.active {
        right: 0;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 150px;
        text-align: center;
    }

    .hero p {
        border: none;
        padding: 0;
    }
}

/* Calculator Styles */
.calc-card {
    max-width: 650px;
    margin: 0 auto;
    border-top: 8px solid var(--brand);
    border-radius: 12px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    background: var(--bg-alt);
    transition: 0.3s;
}

.form-input:focus {
    border-color: var(--brand);
    background: #ffffff;
    outline: none;
}

.calc-result {
    margin-top: 40px;
    padding: 30px;
    background: var(--brand-soft);
    border-radius: 12px;
    display: none;
    border: 1px solid rgba(45, 90, 39, 0.15);
}

.calc-result.active {
    display: block;
    animation: slideIn 0.4s ease;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.result-value {
    font-family: var(--font-head);
    font-size: 28px;
    color: var(--brand);
    font-weight: 700;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Cards Alignment FIX */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card p {
    flex-grow: 1;
    margin-bottom: 25px;
}

.specs-table {
    margin-top: auto;
    background: var(--bg-alt);
    padding: 15px;
    border-radius: 8px;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cookie-banner.visible {
    bottom: 0;
}

.cookie-content {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 80%;
}

.cookie-content a {
    color: var(--brand);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 5%;
    }

    .cookie-content {
        max-width: 100%;
    }
}