/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
    --primary-red: #d62020;
    --primary-red-hover: #b51b1b;
    --text-dark: #1a1a1a;
    --text-grey: #555555;
    --text-light: #888888;
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
    --bg-accent: #fdf6f6;
    --border-radius: 12px;
    --container-width: 1300px;
    --shadow-subtle: 0 6px 30px rgba(0,0,0,0.03);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.06);
    --transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    --bottom-nav-height: 70px;
    --breadcrumb-color: #999;
    --border-color: #eee;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 0;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--text-dark); line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; } /* height: auto lisatud piltide venitamise vältimiseks */
button { font-family: inherit; border: none; outline: none; background: none; cursor: pointer; }

/* --- 2. UTILITIES --- */
.container {
    max-width: var(--container-width);
    width: 100%; /* Tagab, et konteiner ei lähe katki väiksemal ekraanil */
    margin: 0 auto;
    padding: 0 25px;
}

.section-padding { padding: 100px 0; }
.text-center { text-align: center; }

/* Breadcrumbs */
.breadcrumbs {
    font-size: 13px; color: var(--breadcrumb-color); margin-bottom: 20px; padding-top: 20px;
    display: flex; flex-wrap: wrap; gap: 5px;
}
.breadcrumbs a:hover { color: var(--primary-red); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 8px 22px;
    border-radius: 50px; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 15px;
    transition: var(--transition); letter-spacing: 0.5px; white-space: nowrap;
}
.btn-primary { background-color: var(--primary-red); color: white; box-shadow: 0 4px 15px rgba(214, 32, 32, 0.2); }
.btn-primary:hover { background-color: var(--primary-red-hover); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(214, 32, 32, 0.3); }
.btn-ghost { background-color: transparent; color: var(--text-dark); border: 2px solid #e5e5e5; }
.btn-ghost:hover { border-color: var(--primary-red); color: var(--primary-red); background: rgba(214, 32, 32, 0.02); }
.btn-white { background: white; color: var(--primary-red); font-weight: 700; }
.btn-outline-white { border: 2px solid rgba(255,255,255,0.8); color: white; font-weight: 600; }

.section-title { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-title h2 { font-size: 36px; margin-bottom: 15px; letter-spacing: -0.5px; }
.section-title p { color: var(--text-grey); font-size: 18px; }

/* --- 3. HEADER & NAV --- */
header {
    position: sticky; top: 0; z-index: 900; background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,0.03); padding: 15px 0; transition: box-shadow 0.3s ease;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 50px; width: auto; }
.nav-links { display: flex; gap: 35px; }
.nav-links a { font-weight: 500; font-size: 15px; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary-red); transition: var(--transition); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.icon-btn { font-size: 24px; cursor: pointer; color: var(--text-dark); transition: color 0.2s; }
.icon-btn:hover { color: var(--primary-red); }
.cart-icon-wrapper { position: relative; cursor: pointer; }
.cart-badge { position: absolute; top: -5px; right: -8px; background: var(--primary-red); color: white; font-size: 10px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Bottom Nav (Mobile) */
.bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%; height: var(--bottom-nav-height);
    background: white; box-shadow: 0 -5px 20px rgba(0,0,0,0.05); z-index: 1000;
    justify-content: space-around; align-items: center; border-top: 1px solid #f0f0f0; padding-bottom: env(safe-area-inset-bottom);
}
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #999; font-size: 10px; font-weight: 500; width: 100%; height: 100%; transition: var(--transition); }
.nav-item i { font-size: 24px; margin-bottom: 4px; }
.nav-item.active, .nav-item:hover { color: var(--primary-red); }
.nav-item-cart { position: relative; }
.nav-item-cart .cart-badge { top: 5px; right: 25%; }

/* --- 4. OVERLAYS (Search & Cart) --- */
.search-overlay, .cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.search-overlay { background: rgba(255, 255, 255, 0.99); display: flex; flex-direction: column; }
.cart-overlay { background: rgba(0,0,0,0.4); backdrop-filter: blur(2px); z-index: 1500; }
.search-overlay.active, .cart-overlay.active { opacity: 1; visibility: visible; }

.search-header { display: flex; align-items: center; padding: 20px 25px; border-bottom: 1px solid #eee; }
.search-input-wrapper { flex: 1; display: flex; align-items: center; gap: 15px; }
.search-input { width: 100%; font-size: 20px; border: none; outline: none; color: var(--text-dark); background: transparent; }
.close-search-btn { font-size: 16px; font-weight: 600; color: var(--text-grey); cursor: pointer; padding-left: 15px; }
.search-content { padding: 40px 25px; overflow-y: auto; max-width: 800px; width: 100%; margin: 0 auto; }
.search-section-title { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #999; margin-bottom: 15px; font-weight: 600; }
.quick-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.quick-tag { padding: 8px 16px; background: #f5f5f5; border-radius: 20px; font-size: 14px; color: var(--text-dark); transition: var(--transition); cursor: pointer; }
.quick-tag:hover { background: var(--primary-red); color: white; }
.search-suggestions-list li { padding: 12px 0; border-bottom: 1px solid #f9f9f9; display: flex; align-items: center; gap: 15px; cursor: pointer; transition: padding 0.2s; }
.search-suggestions-list li:hover { padding-left: 10px; color: var(--primary-red); }
.search-suggestions-list li i { color: #ccc; font-size: 20px; }

.cart-drawer { position: fixed; top: 0; right: -450px; width: 420px; max-width: 85%; height: 100%; background: white; z-index: 1501; transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1); padding: 30px; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,0.1); }
.cart-drawer.active { right: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 0; }
.cart-footer { padding-top: 20px; border-top: 1px solid #eee; }

/* --- 5. PAGE: HOME HERO & SECTIONS --- */
.hero { background: linear-gradient(to right, #fff 45%, #fcfcfc 45%); padding: 80px 0 100px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.hero-content h1 { font-size: 52px; margin-bottom: 24px; letter-spacing: -1.5px; line-height: 1.1; }
.hero-content p { font-size: 18px; color: var(--text-grey); margin-bottom: 35px; max-width: 480px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-collage { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 220px); gap: 20px; }
.collage-item { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-subtle); position: relative; }
.collage-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.collage-item:hover img { transform: scale(1.06); }
.collage-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 2; }
.collage-item:nth-child(2) { grid-column: 2 / 4; grid-row: 1 / 3; }
.collage-item:nth-child(3) { grid-column: 1 / 2; grid-row: 2 / 3; }

.trust-section { background-color: var(--bg-light); padding: 60px 0; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.trust-item { display: flex; align-items: center; gap: 15px; }
.trust-icon { font-size: 32px; color: var(--primary-red); background: white; padding: 12px; border-radius: 50%; box-shadow: 0 4px 15px rgba(0,0,0,0.05); min-width: 56px; text-align: center; } /* min-width hoiab ikooni kuju mobiilis */
.trust-text h4 { font-size: 16px; margin-bottom: 4px; }
.trust-text p { font-size: 13px; color: var(--text-grey); margin: 0; }

.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }
.cat-card { background: white; border-radius: var(--border-radius); overflow: hidden; text-align: center; transition: var(--transition); padding-bottom: 20px; cursor: pointer; border: 1px solid transparent; }
.cat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); border-color: #f0f0f0; }
.cat-image-wrapper { height: 260px; overflow: hidden; background: #f9f9f9; margin-bottom: 20px; }
.cat-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.cat-card:hover .cat-image-wrapper img { transform: scale(1.08); }
.cat-card h3 { font-size: 18px; margin-bottom: 5px; }
.cat-card .count { font-size: 13px; color: #999; }

.process-section { position: relative; padding: 100px 0; background: white; }
.process-steps { display: flex; justify-content: space-between; position: relative; margin-top: 70px; max-width: 1000px; margin-left: auto; margin-right: auto; }
.process-steps::before { content: ''; position: absolute; top: 40px; left: 80px; right: 80px; height: 3px; background: repeating-linear-gradient(to right, #eee 0, #eee 15px, transparent 15px, transparent 25px); z-index: 0; }
.step-item { position: relative; z-index: 1; background: white; width: 28%; text-align: center; padding: 0 15px; }
.step-icon-circle { width: 86px; height: 86px; background: white; border: 2px solid #f0f0f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 30px; font-size: 36px; color: var(--primary-red); transition: var(--transition); box-shadow: 0 10px 20px rgba(0,0,0,0.03); }
.step-item:hover .step-icon-circle { border-color: var(--primary-red); background: var(--primary-red); color: white; transform: scale(1.1); }
.step-number { font-size: 40px; font-weight: 800; color: #f5f5f5; position: absolute; top: 0; right: 20px; z-index: -1; line-height: 1; }
.step-title { font-size: 20px; margin-bottom: 12px; font-weight: 700; }
.step-desc { font-size: 15px; color: var(--text-grey); line-height: 1.6; }

/* Curated (Slider) */
.curated-section { background-color: var(--bg-accent); }
.curated-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 40px; }
.curated-scroll { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 40px; padding-left: 5px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.curated-scroll::-webkit-scrollbar { display: none; }
.curated-card { min-width: 260px; background: white; border-radius: 12px; padding: 20px; box-shadow: var(--shadow-subtle); position: relative; transition: var(--transition); }
.curated-img { height: 180px; width: 100%; object-fit: contain; margin-bottom: 20px; }
.add-inquiry-btn { position: absolute; top: 15px; right: 15px; width: 35px; height: 35px; border-radius: 50%; background: white; border: 1px solid #eee; color: var(--primary-red); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); }
.add-inquiry-btn:hover { background: var(--primary-red); color: white; border-color: var(--primary-red); }

/* --- CASE STUDY & SERVICES --- */
.case-study-section { background: #1a1a1a; color: white; overflow: hidden; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 550px; }
.case-content { padding-left: 20px; padding-right: 20px; display: flex; flex-direction: column; justify-content: center; }
.case-label { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; color: var(--primary-red); margin-bottom: 20px; font-weight: 700; }
.case-image {
    background-image: url('https://fke.ee/wp-content/uploads/2025/04/IMG_2878_2.jpg');
    background-size: cover; background-position: center; position: relative; height: 100%; min-height: 400px;
}
.case-image::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.2); }

/* Print & Services */
.print-grid-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.service-list li { margin-bottom: 15px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.service-list li i { color: var(--primary-red); font-size: 20px; }
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tech-card {
    padding: 30px 20px; background: white; border: 1px solid #eee; border-radius: 12px;
    text-align: center; transition: var(--transition);
}
.tech-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-subtle); border-color: var(--primary-red); }

/* Testimonials */
.testimonials-section { background: var(--bg-accent); position: relative; overflow: hidden; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; z-index: 2; }
.testimonial-card { background: white; padding: 40px 30px; border-radius: 16px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.04); transition: var(--transition); border: 1px solid rgba(255,255,255,0.5); overflow: hidden; }
.quote-icon-large { position: absolute; top: -20px; left: 10px; font-size: 120px; color: var(--primary-red); opacity: 0.06; z-index: 0; font-family: serif; }
.testimonial-text { position: relative; z-index: 1; font-style: italic; color: #444; font-size: 17px; line-height: 1.7; }
.client-info { display: flex; align-items: center; gap: 15px; margin-top: 30px; position: relative; z-index: 1; }
.client-avatar { width: 54px; height: 54px; background: #eee; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

/* --- 6. PAGE: CATALOG & PRODUCT --- */
.catalog-layout { display: grid; grid-template-columns: 1fr 250px; gap: 40px; padding-top: 40px; padding-bottom: 80px; }
.filters-sidebar { position: sticky; top: 100px; height: fit-content; }
.filter-group { margin-bottom: 30px; border-bottom: 1px solid #f5f5f5; padding-bottom: 20px; }
.filter-title { font-size: 16px; font-weight: 700; margin-bottom: 15px; display: flex; justify-content: space-between; }
.filter-options label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; color: var(--text-grey); cursor: pointer; transition: 0.2s; }
.filter-options label:hover { color: var(--primary-red); }
.checkbox-custom { width: 18px; height: 18px; border: 2px solid #ddd; border-radius: 4px; position: relative; }
input[type="checkbox"]:checked + .checkbox-custom { background: var(--primary-red); border-color: var(--primary-red); }
.catalog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.sort-dropdown { padding: 10px 15px; border: 1px solid #ddd; border-radius: 8px; font-family: 'Inter'; background: white; }
.img-loading { opacity: 0.7; filter: blur(4px); transition: all 0.3s ease; }

.product-detail-wrapper { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; padding: 40px 0 80px; }
.product-gallery { position: sticky; top: 100px; }
.main-image { width: 100%; height: 100%; object-fit: contain; background: #f9f9f9; border-radius: 16px; margin-bottom: 20px; cursor: zoom-in; border: 1px solid #f9f9f9; }
.thumbnails { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 5px; }
.thumb { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; cursor: pointer; border: 2px solid transparent; transition: 0.2s; background: #f9f9f9; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.thumb.active { border-color: var(--primary-red); }
.product-info h1 { font-size: 36px; margin-bottom: 10px; line-height: 1.2; }
.sku { color: #999; font-size: 13px; margin-bottom: 20px; display: block; }
.price-box { background: #fdf6f6; padding: 25px; border-radius: 12px; margin-bottom: 30px; border: 1px solid rgba(214, 32, 32, 0.1); }
.price-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 15px; color: #555; }
.price-row.bold { font-weight: 700; font-size: 20px; color: var(--text-dark); margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(0,0,0,0.05); }
.color-options { display: flex; gap: 10px; margin-bottom: 30px; }
.color-circle { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; border: 2px solid white; box-shadow: 0 0 0 1px #ddd; transition: 0.2s; }
.color-circle.active { box-shadow: 0 0 0 2px var(--primary-red); transform: scale(1.1); }
.action-row { display: flex; gap: 20px; align-items: center; margin-bottom: 40px; }
.qty-input { width: 80px; padding: 14px; text-align: center; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; font-family: 'Inter'; }
.specs-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.specs-list li span:first-child { color: #888; font-weight: 500; }
.mobile-sticky-bar { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: white; padding: 15px 20px; box-shadow: 0 -5px 20px rgba(0,0,0,0.1); z-index: 1100; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: calc(15px + env(safe-area-inset-bottom)); }

.inquiry-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; padding: 40px 0 80px; }
.form-section h3 { margin-bottom: 25px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-input, .form-textarea { width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 8px; font-family: 'Inter'; font-size: 16px; transition: 0.2s; } /* 16px font väldib zoomimist iPhone-is */
.form-input:focus { border-color: var(--primary-red); outline: none; }
.upload-box { border: 2px dashed #ddd; padding: 30px; text-align: center; border-radius: 8px; cursor: pointer; transition: 0.2s; background: #fafafa; }
.upload-box:hover { border-color: var(--primary-red); background: #fdf6f6; }
.summary-card { background: #f9f9f9; padding: 30px; border-radius: 12px; position: sticky; top: 100px; }
.summary-item { display: flex; gap: 15px; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.summary-img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }

/* --- 7. PAGE: ABOUT & CONTACT (CLEAN & MODERN) --- */
.contact-hero, .about-hero {
    text-align: center;
    padding: 80px 20px 60px;
}
.contact-hero h1, .about-hero h1 { font-size: 38px; margin-bottom: 15px; letter-spacing: -0.5px; color: var(--text-dark); }
.contact-hero p, .about-hero p { color: var(--text-grey); font-size: 16px; max-width: 650px; margin: 0 auto; line-height: 1.6; }

/* TSITAAT (About lehel) */
.highlight-text {
    position: relative; max-width: 800px; margin: 60px auto; padding: 0 20px; text-align: center;
    font-family: 'Georgia', 'Times New Roman', serif; font-size: 26px; font-style: italic; color: var(--text-dark); line-height: 1.6; z-index: 1;
}
.highlight-text::before {
    content: "“"; display: block; font-size: 100px; line-height: 1; color: var(--primary-red); opacity: 0.15;
    margin-bottom: -40px; font-family: sans-serif;
}
.highlight-text::after {
    content: ''; display: block; width: 60px; height: 3px; background-color: var(--primary-red); margin: 30px auto 0; opacity: 0.3;
}

/* LAYOUT GRIDS */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; margin-bottom: 80px; align-items: start; }
.contact-info-card, .contact-form-card { padding: 40px; border-radius: 12px; border: 1px solid #eee; background: #fff; }
.contact-form-card { background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,0.04); border-color: transparent; }

.info-group { margin-bottom: 30px; }
.info-label { font-size: 11px; text-transform: uppercase; color: #999; font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; display: block; }
.company-details { margin-top: 30px; padding-top: 25px; border-top: 1px solid #f5f5f5; font-size: 13px; color: #777; }
.map-container { width: 100%; height: 250px; background: #f0f0f0; border-radius: 8px; overflow: hidden; margin-top: 30px; }
.map-container iframe { width: 100%; height: 100%; border: 0; filter: grayscale(100%); transition: 0.5s; }
.map-container:hover iframe { filter: grayscale(0%); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.alert-success { background: #eef9f0; color: #2e7d32; padding: 15px; border-radius: 8px; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; border: 1px solid #c8e6c9; font-size: 14px;}

/* TEAM GRID (ÜHTNE DISAIN) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 100px;
}
.team-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 25px;
    height: 100%;
}
.team-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: transparent; }

/* Pilt ja nimi */
.team-card-header { padding: 35px 20px 15px; background: #fff; display: flex; flex-direction: column; align-items: center; flex-grow: 1; }
.team-img {
    width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
    margin-bottom: 15px; border: 4px solid #fff; box-shadow: 0 5px 20px rgba(0,0,0,0.08); object-position: top center;
}
.team-name { font-size: 20px; font-weight: 700; color: var(--text-dark); margin-bottom: 5px; line-height: 1.3; }
.team-role { font-size: 13px; color: var(--primary-red); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; display: block; }

/* Kontaktandmed ja eraldaja */
.team-divider { height: 1px; width: 100%; background: #f5f5f5; margin: 0 0 15px 0; }
.team-body { padding: 0 20px; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: flex-end; }

.contact-line { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: #666; text-decoration: none; transition: 0.2s; }
.contact-line:hover { color: var(--primary-red); }
.contact-line i { font-size: 18px; color: #ccc; }

.lang-badges { display: flex; justify-content: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #eee; width: 100%; }
.lang-badge { font-size: 10px; font-weight: 700; color: #999; background: #f9f9f9; padding: 3px 8px; border-radius: 4px; border: 1px solid #eee; }

/* --- 12. CTA & FOOTER --- */
.cta-section-wrapper { padding: 0 20px; margin: 40px 0 60px; }
.cta-section { background: var(--primary-red); color: white; border-radius: 20px; max-width: 1100px; margin: 0 auto; padding: 70px 40px; text-align: center; box-shadow: 0 20px 50px rgba(214, 32, 32, 0.2); position: relative; overflow: hidden; }
.cta-section::after { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent 60%); pointer-events: none; }
.cta-section h2 { color: white; font-size: 38px; margin-bottom: 15px; }
.btn-white { background: white; color: var(--primary-red); font-weight: 700; }
.btn-outline-white { border: 2px solid rgba(255,255,255,0.8); color: white; font-weight: 600; }

footer { background: #1a1a1a; color: #fff; padding: 80px 0 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-col h5 { color: white; margin-bottom: 25px; font-size: 16px; font-weight: 700; }
.footer-col ul li { margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid #333; padding-top: 30px; display: flex; justify-content: space-between; color: #777; }

/* --- 13. GLOBAL RESPONSIVE STRATEGY (UPDATED) --- */

/* 1. Keskmised ekraanid (Sülearvutid, suured tahvlid: 900px - 1200px) */
@media (max-width: 1200px) {
    .container { padding: 0 20px; }
    .hero-content h1 { font-size: 42px; }
    .hero-grid { gap: 40px; }
    .nav-links { gap: 20px; } /* Kitsam menüü */
    .trust-grid { grid-template-columns: repeat(2, 1fr); } /* 4 veergu -> 2 veergu */
    .team-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } /* Tihedam tiim */
}

/* 2. Tahvlid ja väiksed sülearvutid (< 900px) */
@media (max-width: 900px) {
    /* Layout Reset */
    body { padding-bottom: var(--bottom-nav-height); }
    body.product-page .bottom-nav { display: none; } /* Toote lehel peida nav, et ostukorv mahuks */
    
    .section-padding { padding: 60px 0; } /* Väiksem vahe sektsioonidel */
    
    /* Header & Nav */
    .nav-links, .nav-actions { display: none; } /* Desktop nav peitu */
    .bottom-nav { display: flex; } /* Mobiili nav välja */
    header { padding: 12px 0; }
    .logo img { height: 36px; }

    /* Hero */
    .hero { padding: 40px 0 60px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-content h1 { font-size: 34px; margin-bottom: 15px; }
    .hero-content p { margin: 0 auto 25px; font-size: 16px; }
    .hero-buttons { justify-content: center; }
    .hero-collage { display: none; /* Keeruline kollaaž peitu mobiilis, või tee lihtsamaks */ }
    /* Kui tahad kollaaži näidata, kasuta:
       .hero-collage { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 20px; }
       .collage-item { min-width: 200px; height: 200px; } 
    */

    /* About & Contact Page */
    .contact-hero, .about-hero { padding: 60px 20px 40px; }
    .contact-hero h1, .about-hero h1 { font-size: 32px; }
    .highlight-text { font-size: 20px; margin: 40px auto; padding: 0; }
    .highlight-text::before { font-size: 80px; margin-bottom: -30px; }

    .contact-wrapper { grid-template-columns: 1fr; gap: 30px; margin-bottom: 60px; }
    .contact-info-card, .contact-form-card { padding: 30px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; } /* Vormi väljad üksteise alla */
    
    /* Grids */
    .print-grid-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .case-grid { grid-template-columns: 1fr; }
    .case-content { padding: 40px 20px; order: 2; }
    .case-image { order: 1; min-height: 250px; }
    
    /* Process Steps (Vertical) */
    .process-steps { flex-direction: column; gap: 40px; margin-top: 40px; }
    .process-steps::before { 
        width: 2px; height: 100%; top: 0; bottom: 0; left: 20px; right: auto; 
        background: repeating-linear-gradient(to bottom, #eee 0, #eee 15px, transparent 15px, transparent 25px); 
        transform: translateX(-50%); /* Keskjoondus ikooniga */
    }
    .step-item { width: 100%; text-align: left; padding: 0 0 0 50px; position: relative; }
    .step-icon-circle { 
        margin: 0; position: absolute; left: 0; top: 0; width: 40px; height: 40px; font-size: 20px; /* Väiksem ikoon */
    }
    .step-title { font-size: 18px; margin-bottom: 5px; }
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-bottom { flex-direction: column; align-items: center; gap: 10px; }

    /* Product & Catalog */
    .catalog-layout { grid-template-columns: 1fr; gap: 20px; }
    .product-detail-wrapper { grid-template-columns: 1fr; gap: 30px; }
    .main-image { height: 350px; }
    .product-gallery { position: static; }
    .action-row { display: none; }
    .mobile-sticky-bar { display: flex; }
    .inquiry-grid { grid-template-columns: 1fr; }
    .summary-card { order: -1; margin-bottom: 20px; position: static; }

    /* Filters (Sidebar Logic) */
    .filters-sidebar { display: none; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); margin-bottom: 20px; }
    .filters-sidebar.open { display: block; animation: slideDown 0.3s ease; }
    
    .cta-section { padding: 50px 20px; }
    .cta-section h2 { font-size: 26px; }
    
    /* --- 1. TESTIMONIALS (Mobiilis horisontaalne scroll) --- */
    .testimonial-grid {
        display: flex; /* Gridi asemel Flex */
        overflow-x: auto; /* Luba horisontaalne kerimine */
        gap: 20px;
        padding-bottom: 30px; /* Ruum scrollbari jaoks */
        scroll-snap-type: x mandatory; /* Äpilk "magnetiga" kerimine */
        -webkit-overflow-scrolling: touch;
        margin-left: -20px; /* Et ulatuks servani */
        margin-right: -20px;
        padding-left: 20px; /* Taastame sisu alguse */
        padding-right: 20px;
    }

    .testimonial-grid::-webkit-scrollbar {
        display: none; /* Peidame scrollbari ilu pärast */
    }

    .testimonial-card {
        min-width: 280px; /* Kaart on fikseeritud laiusega */
        max-width: 280px;
        scroll-snap-align: center; /* Kaart peatub alati keskel */
        padding: 30px 20px; /* Vähem sisu paddingut */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* --- 2. FOOTER (Kompaktne ja tsentreeritud) --- */
    footer {
        padding: 40px 0 80px; /* Vähem ruumi ülal, ruum all navi jaoks */
        text-align: center;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 0; /* Kaotame vahed, kasutame borderit */
    }

    .footer-col {
        padding: 20px 0;
        border-bottom: 1px solid #333; /* Eraldusjoon teeb selgemaks */
        width: 100%;
    }

    .footer-col:last-child {
        border-bottom: none;
    }

    .footer-col h5 {
        margin-bottom: 10px;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 1px;
        opacity: 0.8;
    }

    .footer-col ul {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .footer-col ul li {
        margin-bottom: 0;
        font-size: 13px;
        color: #aaa;
    }

    /* Peidame mobiilis vähemolulised asjad footeris (valikuline) */
    /* .footer-col:nth-child(3) { display: none; } Näiteks "Abi" veerg */

    .footer-bottom {
        margin-top: 20px;
        padding-top: 20px;
        font-size: 11px;
        flex-direction: column;
        gap: 15px;
        border-top: none;
    }
    /* See rida lükkab ikoonid mobiilis keskele */
    .social-links {
        justify-content: center;
        margin-top: 15px; /* Väike vahe pealkirjaga */
    }
}

/* 3. Mobiilid (< 600px) */
@media (max-width: 600px) {
    /* Fonts smaller */
    body { font-size: 15px; }
    .section-title h2 { font-size: 28px; }
    
    /* Stats grid */
    .stats-grid { grid-template-columns: 1fr; gap: 30px; }
    .values-grid { grid-template-columns: 1fr; }
    
    /* Team grid */
    .team-grid { grid-template-columns: 1fr; } /* 1 veerg mobiilis */
    
    /* Cart Drawer */
    .cart-drawer { width: 100%; max-width: 100%; right: -100%; } /* Full width drawer */
    
    /* Categories & Products */
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } /* 2 veergu on parem kui 1 */
    .cat-image-wrapper { height: 160px; margin-bottom: 10px; }
    .cat-card h3 { font-size: 15px; }
    
    /* Curated Scroll */
    .curated-card { min-width: 220px; }
}

@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }