/* ==========================================================
   KARATAS IPLIK - Site (Front-end) CSS
   Premium textile / corporate / industrial palette
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --c-navy: #0e1b3a;
    --c-navy-2: #1b2a4e;
    --c-navy-3: #243558;
    --c-cream: #f7f3eb;
    --c-cream-2: #fbf8f1;
    --c-beige: #d8c7a8;
    --c-grey: #6c7280;
    --c-grey-light: #e6e3db;
    --c-grey-dark: #2c2c2c;
    --c-accent: #2c5f8d;          /* industrial blue */
    --c-accent-2: #3fb6b6;        /* turquoise */
    --c-success: #1b6e4f;
    --c-warning: #c98a1d;
    --c-danger: #b03028;
    --c-white: #ffffff;
    --c-black: #0a0a0a;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-sm: 0 1px 2px rgba(14, 27, 58, 0.05);
    --shadow-md: 0 6px 20px rgba(14, 27, 58, 0.08);
    --shadow-lg: 0 20px 50px rgba(14, 27, 58, 0.12);

    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 24px;

    --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--c-navy-2);
    background: var(--c-cream-2);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--c-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-navy); }

h1, h2, h3, h4, h5 { font-weight: 700; color: var(--c-navy); margin: 0 0 .6em; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--c-navy-3); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* -------------- TOPBAR -------------- */
.topbar {
    background: var(--c-navy);
    color: rgba(255,255,255,.85);
    font-size: 13px;
    padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar a { color: inherit; }
.topbar a:hover { color: var(--c-accent-2); }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span svg { vertical-align: -2px; margin-right: 6px; opacity: .8; }
.topbar-lang a { padding: 0 8px; opacity: .6; }
.topbar-lang a.active { opacity: 1; font-weight: 600; }

/* -------------- HEADER -------------- */
.site-header {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-grey-light);
    position: sticky; top: 0; z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.site-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--c-navy); letter-spacing: -.02em; }
.site-logo img { height: 40px; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
    padding: 10px 14px;
    color: var(--c-navy-2);
    font-weight: 500;
    border-radius: var(--r-sm);
    position: relative;
}
.site-nav a:hover, .site-nav a.active { background: var(--c-cream); color: var(--c-navy); }
.site-nav .dropdown { position: relative; }
.site-nav .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 240px;
    background: #fff; border: 1px solid var(--c-grey-light);
    border-radius: var(--r-md); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all .25s; padding: 8px;
}
.dropdown-menu a { display: block; padding: 10px 14px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; font-weight: 600; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; transition: all .2s; font-size: 15px; }
.btn-primary { background: var(--c-navy); color: #fff; }
.btn-primary:hover { background: var(--c-navy-2); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: var(--c-navy); color: #fff; }
.btn-outline { background: transparent; border-color: var(--c-navy); color: var(--c-navy); }
.btn-outline:hover { background: var(--c-navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--c-navy); }
.btn-ghost:hover { background: var(--c-cream); }

.btn-mobile { display: none; }
@media (max-width: 980px) {
    .site-nav { position: fixed; top: 60px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px; box-shadow: var(--shadow-md); transform: translateY(-150%); transition: transform .3s; gap: 0; }
    .site-nav.open { transform: translateY(0); }
    .site-nav a { padding: 14px; border-bottom: 1px solid var(--c-grey-light); }
    .btn-mobile { display: inline-flex; padding: 10px; }
}

/* -------------- HERO -------------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-2) 60%, var(--c-navy-3) 100%);
    color: #fff;
    overflow: hidden;
    min-height: 86vh;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 80% 30%, rgba(63, 182, 182, .14) 0%, transparent 60%),
                      radial-gradient(circle at 20% 80%, rgba(216, 199, 168, .08) 0%, transparent 50%);
}
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 18px; }
.hero h1 .highlight { background: linear-gradient(90deg, var(--c-accent-2), var(--c-beige)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-primary { background: var(--c-accent-2); color: var(--c-navy); }
.hero .btn-primary:hover { background: var(--c-cream); }
.hero .btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }

.hero-visual {
    position: relative;
    aspect-ratio: 1.05;
    background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--r-xl);
    backdrop-filter: blur(8px);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.hero-visual svg { width: 80%; height: 80%; opacity: .9; }

.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
    padding: 24px 0 0; border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px;
}
.hero-stat .num { font-size: 2.2rem; font-weight: 800; color: var(--c-accent-2); display: block; line-height: 1; letter-spacing: -.02em; }
.hero-stat .lbl { font-size: 13px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }

@media (max-width: 980px) {
    .hero .container { grid-template-columns: 1fr; gap: 40px; padding-top: 60px; padding-bottom: 60px; }
    .hero-visual { max-width: 420px; margin: 0 auto; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 18px; }
}

/* -------------- SECTIONS -------------- */
section { padding: 90px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-tag { display: inline-block; padding: 6px 14px; background: var(--c-cream); color: var(--c-navy); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border-radius: 100px; margin-bottom: 18px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--c-grey); font-size: 1.05rem; }

.bg-cream { background: var(--c-cream); }
.bg-navy { background: var(--c-navy); color: #fff; }
.bg-navy h2 { color: #fff; }
.bg-navy p { color: rgba(255,255,255,.8); }
.bg-navy .section-tag { background: rgba(255,255,255,.1); color: var(--c-accent-2); }

/* -------------- CARDS / GRID -------------- */
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; } .grid-6 { grid-template-columns: repeat(2, 1fr); } }

.card { background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-sm); border: 1px solid var(--c-grey-light); overflow: hidden; transition: all .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .card-img { aspect-ratio: 1.4; background: var(--c-cream); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-body h3 { margin-bottom: 8px; font-size: 1.18rem; }
.card-body p { font-size: .95rem; color: var(--c-grey); margin-bottom: 16px; }
.card-link { color: var(--c-navy); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.card-link::after { content: '→'; transition: transform .2s; }
.card-link:hover::after { transform: translateX(4px); }

/* Product card — premium */
.product-card { display: block; background: #fff; border-radius: var(--r-md); border: 1px solid var(--c-grey-light); overflow: hidden; transition: all .3s; color: inherit; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .pc-img { aspect-ratio: 1.2; background: linear-gradient(135deg, var(--c-cream) 0%, var(--c-grey-light) 100%); display: flex; align-items: center; justify-content: center; }
.product-card .pc-body { padding: 22px; }
.product-card .pc-tag { font-size: 11px; color: var(--c-accent); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.product-card h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.product-card .pc-spec { font-size: .85rem; color: var(--c-grey); }

/* Color swatch */
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.color-card-item { background: #fff; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--c-grey-light); transition: all .3s; cursor: pointer; }
.color-card-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.color-card-item .swatch { aspect-ratio: 1.2; }
.color-card-item .info { padding: 14px; font-size: 13px; }
.color-card-item .info strong { display: block; color: var(--c-navy); margin-bottom: 2px; }
.color-card-item .info .code { color: var(--c-grey); font-family: ui-monospace, monospace; font-size: 12px; }
.color-card-item .stock { font-size: 11px; padding: 2px 8px; border-radius: 100px; display: inline-block; margin-top: 6px; font-weight: 600; }
.stock-available { background: rgba(27, 110, 79, .12); color: var(--c-success); }
.stock-low { background: rgba(201, 138, 29, .12); color: var(--c-warning); }
.stock-out { background: rgba(176, 48, 40, .12); color: var(--c-danger); }
.stock-custom { background: rgba(44, 95, 141, .12); color: var(--c-accent); }

/* Filter bar */
.filter-bar { display: flex; gap: 14px; flex-wrap: wrap; padding: 20px; background: #fff; border-radius: var(--r-md); border: 1px solid var(--c-grey-light); margin-bottom: 30px; }
.filter-bar input, .filter-bar select { padding: 10px 14px; border: 1px solid var(--c-grey-light); border-radius: var(--r-sm); font-family: inherit; font-size: 14px; flex: 1; min-width: 160px; }
.filter-bar input:focus, .filter-bar select:focus { outline: none; border-color: var(--c-accent); }

/* Feature bar */
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 980px) { .feature-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-row { grid-template-columns: 1fr; } }
.feature { padding: 28px; background: #fff; border-radius: var(--r-md); border: 1px solid var(--c-grey-light); }
.feature .icon { width: 50px; height: 50px; background: var(--c-cream); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--c-navy); }
.feature h4 { margin-bottom: 8px; font-size: 1.1rem; }
.feature p { color: var(--c-grey); font-size: .95rem; margin: 0; }

/* Factory cards */
.factory-card { background: #fff; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--c-grey-light); }
.factory-card .img { aspect-ratio: 1.6; background: linear-gradient(135deg, var(--c-navy), var(--c-accent)); }
.factory-card .body { padding: 26px; }
.factory-card .body h3 { margin-bottom: 6px; }
.factory-card .meta { font-size: 13px; color: var(--c-grey); margin-bottom: 4px; display: flex; gap: 8px; align-items: flex-start; }

/* CTA */
.cta-banner { padding: 70px 0; background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-accent) 100%); color: #fff; text-align: center; border-radius: var(--r-lg); }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 580px; margin: 0 auto 28px; }

/* News card */
.news-card { background: #fff; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--c-grey-light); }
.news-card .img { aspect-ratio: 1.7; background: var(--c-cream); }
.news-card .body { padding: 22px; }
.news-card .date { font-size: 12px; color: var(--c-grey); letter-spacing: .08em; text-transform: uppercase; }
.news-card h3 { font-size: 1.08rem; margin: 8px 0 10px; }

/* Catalog block */
.catalog-card { display: flex; gap: 20px; padding: 24px; background: #fff; border: 1px solid var(--c-grey-light); border-radius: var(--r-md); transition: all .25s; }
.catalog-card:hover { border-color: var(--c-accent); transform: translateY(-2px); }
.catalog-card .pdf-icon { width: 70px; height: 84px; background: linear-gradient(135deg, var(--c-danger), #8a1f17); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; border-radius: var(--r-sm); flex-shrink: 0; }
.catalog-card .body { flex: 1; }

/* Cert badge */
.cert-badge { background: #fff; padding: 24px; border-radius: var(--r-md); text-align: center; border: 1px solid var(--c-grey-light); transition: all .3s; }
.cert-badge:hover { border-color: var(--c-accent); }
.cert-badge .iso { font-size: 24px; font-weight: 800; color: var(--c-navy); margin-bottom: 6px; letter-spacing: -.02em; }
.cert-badge .desc { font-size: 13px; color: var(--c-grey); }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; color: var(--c-navy); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border: 1px solid var(--c-grey-light); border-radius: var(--r-sm); font-family: inherit; font-size: 15px; background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(44, 95, 141, .1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.alert { padding: 14px 18px; border-radius: var(--r-sm); border-left: 4px solid; margin-bottom: 18px; font-size: 14px; }
.alert-success { background: rgba(27, 110, 79, .08); border-color: var(--c-success); color: var(--c-success); }
.alert-error, .alert-danger { background: rgba(176, 48, 40, .08); border-color: var(--c-danger); color: var(--c-danger); }
.alert-warning { background: rgba(201, 138, 29, .08); border-color: var(--c-warning); color: var(--c-warning); }
.alert-info { background: rgba(44, 95, 141, .08); border-color: var(--c-accent); color: var(--c-accent); }

/* Footer */
.site-footer { background: var(--c-navy); color: rgba(255,255,255,.7); padding: 70px 0 30px; margin-top: 80px; }
.site-footer h4 { color: #fff; margin-bottom: 18px; font-size: 1rem; letter-spacing: .04em; }
.site-footer .grid { gap: 40px; }
.site-footer a { color: rgba(255,255,255,.7); display: block; padding: 5px 0; }
.site-footer a:hover { color: var(--c-accent-2); }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; font-size: 13px; gap: 14px; }

/* Whatsapp floating */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; background: #25D366; color: #fff; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .4); transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* Page header */
.page-header { padding: 70px 0 50px; background: linear-gradient(135deg, var(--c-navy), var(--c-navy-2)); color: #fff; text-align: center; }
.page-header h1 { color: #fff; margin-bottom: 12px; }
.page-header .breadcrumb { color: rgba(255,255,255,.6); font-size: 14px; }
.page-header .breadcrumb a { color: var(--c-accent-2); }

/* Detail page */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 980px) { .detail-grid { grid-template-columns: 1fr; gap: 30px; } }
.detail-img { aspect-ratio: 1.1; background: var(--c-cream); border-radius: var(--r-md); overflow: hidden; }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }

.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; background: #fff; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--c-grey-light); }
.spec-table th, .spec-table td { padding: 14px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--c-grey-light); }
.spec-table th { background: var(--c-cream); color: var(--c-navy); font-weight: 600; width: 40%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeIn .8s forwards; }
.fade-in:nth-child(2) { animation-delay: .1s; }
.fade-in:nth-child(3) { animation-delay: .2s; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

/* Toast (front) */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--c-navy); color: #fff; padding: 14px 20px; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); z-index: 200; transform: translateY(150%); transition: transform .3s; }
.toast.show { transform: translateY(0); }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 30px; }
.pagination a, .pagination span { padding: 10px 14px; background: #fff; border: 1px solid var(--c-grey-light); border-radius: var(--r-sm); font-size: 14px; }
.pagination .active { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 2rem; } .mb-6 { margin-bottom: 3rem; }
.flex { display: flex; }
.gap-2 { gap: .5rem; } .gap-4 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
