/* Kristal Statik Toz Boya — Kurumsal Site Stili */

:root {
    --ink: #14171a;
    --ink-soft: #2b3036;
    --paper: #fbfaf7;
    --paper-dim: #f0eee8;
    --muted: #6b7280;
    --line: #e7e5df;

    --orange: #ff6a13;
    --red: #e5383b;
    --blue: #0072ce;
    --teal: #00b8a9;
    --yellow: #ffc93c;

    --brand-gradient: linear-gradient(135deg, var(--orange) 0%, var(--red) 45%, #9b2fae 75%, var(--blue) 100%);
    --shadow-soft: 0 20px 45px -20px rgba(20, 23, 26, 0.35);
    --shadow-card: 0 10px 30px -12px rgba(20, 23, 26, 0.22);
    --radius: 18px;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--muted); }
.container { width: min(1180px, 92%); margin: 0 auto; }
.section-pad { padding: clamp(56px, 8vw, 120px) 0; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--orange);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--brand-gradient);
    border-radius: 2px;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-stagger.in-view > * { opacity: 1; transform: none; }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: .19s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: .26s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: .33s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: .40s; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-ghost, .btn-call, .btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.btn-primary {
    background: var(--brand-gradient);
    background-size: 220% 220%;
    color: #fff;
    box-shadow: var(--shadow-soft);
    animation: gradientShift 6s ease infinite;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 24px 50px -18px rgba(229,56,59,.5); }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--line);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn-ghost .arrow { transition: transform .3s var(--ease); display: inline-block; }
.btn-ghost:hover .arrow { transform: translateX(5px); }
.btn-submit { background: var(--ink); color: #fff; width: 100%; justify-content: center; padding: 16px; font-size: 16px; }
.btn-submit:hover { background: var(--orange); }

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    border-bottom: 1px solid var(--line);
}
/* Blur uygulanır bir ::before üzerinden verilir; backdrop-filter doğrudan
   .site-header üzerinde olsaydı, içindeki position:fixed mobil menü için
   yanlışlıkla bir containing block oluşturup menüyü header kutusuna hapsederdi. */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(251, 250, 247, .85);
    backdrop-filter: blur(14px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.brand { font-weight: 800; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { font-weight: 600; font-size: 14.5px; position: relative; padding: 6px 0; }
.main-nav a::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
    background: var(--brand-gradient); transition: width .3s var(--ease);
}
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.btn-call { background: var(--ink); color: #fff; padding: 11px 20px; }
.btn-call:hover { background: var(--orange); }
.ring-wrap svg { width: 17px; height: 17px; animation: ring 1.8s ease infinite; }
@keyframes ring {
    0%, 100% { transform: rotate(0); }
    10% { transform: rotate(18deg); }
    20% { transform: rotate(-14deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(0); }
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: min(92vh, 780px); overflow: hidden; background: var(--ink); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(10,12,14,.88) 10%, rgba(10,12,14,.45) 55%, rgba(10,12,14,.15) 100%);
}
.hero-content { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-copy { max-width: 640px; color: #fff; }
.hero-copy .eyebrow { color: var(--yellow); }
.hero-copy h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; }
.hero-copy p { color: rgba(255,255,255,.82); font-size: 17px; max-width: 520px; }
.hero-ctas { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.hero-ctas .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero-ctas .btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.hero-dots { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero-dots span { width: 34px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.3); cursor: pointer; transition: background .3s; }
.hero-dots span.active { background: var(--brand-gradient); }
.hero-scroll-cue { position: absolute; right: 34px; bottom: 40px; color: rgba(255,255,255,.7); font-size: 12px; display: flex; align-items: center; gap: 10px; letter-spacing: .08em; }
.hero-scroll-cue .line { width: 1px; height: 40px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.hero-scroll-cue .line::after {
    content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
    background: var(--yellow); animation: scrollLine 1.8s ease infinite;
}
@keyframes scrollLine { to { top: 100%; } }

/* Floating paint dust particles across hero for a "toz/statik" feel */
.hero .dust { position: absolute; border-radius: 50%; pointer-events: none; opacity: .55; filter: blur(.5px); animation: floaty 9s ease-in-out infinite; }
@keyframes floaty {
    0%, 100% { transform: translate(0,0); }
    50% { transform: translate(14px, -26px); }
}

/* ---------- Statement / Neden ---------- */
.statement { text-align: center; }
.statement h2 { font-size: clamp(26px, 3.6vw, 40px); max-width: 820px; margin-inline: auto; }
.statement p { max-width: 720px; margin-inline: auto; font-size: 16.5px; }
.statement .container > .eyebrow { justify-content: center; display: flex; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; }
.stat-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 18px; text-align: center;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.stat-num { font-size: clamp(28px, 3vw, 38px); font-weight: 800; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 13.5px; color: var(--muted); font-weight: 600; margin-top: 6px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.service-card {
    background: #fff; border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line);
    position: relative; overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.service-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--brand-gradient);
    transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(255,106,19,.14), rgba(0,114,206,.14)); margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--orange); fill: none; stroke-width: 1.8; }
.service-card h3 { font-size: 19px; }
.service-card p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- RAL teaser ---------- */
.ral-teaser { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.ral-teaser::before {
    content: ""; position: absolute; inset: -40% -10%; background: var(--brand-gradient); opacity: .18; filter: blur(80px);
}
.ral-teaser .container { position: relative; z-index: 2; }
.ral-teaser .eyebrow { color: var(--yellow); }
.ral-teaser h2 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); max-width: 640px; }
.ral-teaser p { color: rgba(255,255,255,.75); max-width: 560px; }
.ral-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 10px; margin: 36px 0 34px; max-width: 900px; }
.ral-swatch { aspect-ratio: 1; border-radius: 10px; transition: transform .35s var(--ease); }
.ral-swatch:hover { transform: scale(1.15) rotate(-3deg); z-index: 2; }
.ral-teaser .btn-primary { background: #fff; color: var(--ink); animation: none; }
.ral-teaser .btn-primary:hover { background: var(--yellow); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 14px; margin-top: 40px; }
.gallery-item { position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; }
.gallery-item:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.09); }
.gallery-item .tag {
    position: absolute; left: 12px; bottom: 12px; background: rgba(20,23,26,.75); color: #fff;
    font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; opacity: 0; transform: translateY(8px);
    transition: all .35s var(--ease);
}
.gallery-item:hover .tag { opacity: 1; transform: none; }
.gallery-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- References ---------- */
.refs-track-wrap { overflow: hidden; margin-top: 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.refs-track { display: flex; gap: 20px; width: max-content; animation: scrollRefs 26s linear infinite; }
.refs-track:hover { animation-play-state: paused; }
@keyframes scrollRefs { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ref-card { flex: 0 0 auto; width: 300px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.ref-card .quote { font-size: 14.5px; font-style: italic; color: var(--ink-soft); }
.ref-card .company { font-weight: 800; margin-top: 12px; font-size: 14px; color: var(--orange); }
.refs-empty { text-align: center; color: var(--muted); padding: 20px 0 0; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; margin-top: 40px; align-items: start; }
.contact-info-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 36px; }
.contact-info-card h3 { font-size: 20px; }
.contact-info-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); }
.contact-info-row:first-of-type { border-top: none; }
.contact-info-row svg { width: 20px; height: 20px; stroke: var(--yellow); fill: none; stroke-width: 1.8; flex-shrink: 0; margin-top: 2px; }
.contact-info-row a, .contact-info-row span { color: rgba(255,255,255,.85); font-size: 14.5px; }
.map-embed { margin-top: 20px; border-radius: 14px; overflow: hidden; height: 200px; background: rgba(255,255,255,.06); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.contact-form .field { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--line); font-family: inherit; font-size: 14.5px;
    transition: border-color .25s, box-shadow .25s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,106,19,.12);
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.alert { padding: 14px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; }
.alert-success { background: #e7f7ee; color: #1a7a45; }
.alert-error { background: #fdeceb; color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 12px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 22px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- WhatsApp float ---------- */
.wa-float {
    position: fixed; right: 26px; bottom: 26px; z-index: 600; width: 60px; height: 60px; border-radius: 50%;
    background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px -10px rgba(37,211,102,.6);
    animation: pulseWa 2.4s ease infinite;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes pulseWa {
    0%, 100% { box-shadow: 0 14px 30px -10px rgba(37,211,102,.6); }
    50% { box-shadow: 0 14px 30px -6px rgba(37,211,102,.9), 0 0 0 10px rgba(37,211,102,.12); }
}

/* ---------- RAL Catalog Page ---------- */
.ral-hero { background: var(--ink); color: #fff; padding: 90px 0 60px; text-align: center; position: relative; overflow: hidden; }
.ral-hero::before { content: ""; position: absolute; inset: -30% -10%; background: var(--brand-gradient); opacity: .22; filter: blur(90px); }
.ral-hero .container { position: relative; z-index: 2; }
.ral-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); max-width: 720px; margin-inline: auto; }
.ral-hero p { color: rgba(255,255,255,.75); max-width: 620px; margin-inline: auto; }

.ral-toolbar { position: sticky; top: 82px; z-index: 100; background: rgba(251,250,247,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 20px 0; }
.ral-toolbar .container { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ral-search { position: relative; flex: 1 1 260px; }
.ral-search input {
    width: 100%; padding: 13px 18px 13px 44px; border-radius: 999px; border: 1px solid var(--line); font-size: 14.5px; font-family: inherit;
}
.ral-search input:focus { outline: none; border-color: var(--orange); }
.ral-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; }
.ral-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.ral-chip {
    padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all .25s var(--ease);
}
.ral-chip.active, .ral-chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.ral-count { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }

.ral-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; padding: 44px 0 90px; }
.ral-card {
    background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); cursor: pointer;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
    opacity: 0; transform: translateY(16px) scale(.97); animation: cardIn .5s var(--ease) forwards;
}
@keyframes cardIn { to { opacity: 1; transform: none; } }
.ral-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.ral-card .swatch { height: 110px; position: relative; }
.ral-card .swatch::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -14px 20px -10px rgba(0,0,0,.15); }
.ral-card .info { padding: 14px 16px; }
.ral-card .code { font-weight: 800; font-size: 14px; }
.ral-card .name { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }
.ral-card.hidden { display: none; }
.ral-noresults { display: none; text-align: center; padding: 60px 0; color: var(--muted); }
.ral-noresults.show { display: block; }

/* Modal */
.ral-modal-backdrop {
    position: fixed; inset: 0; background: rgba(12,14,16,.6); backdrop-filter: blur(4px); z-index: 900;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.ral-modal-backdrop.open { opacity: 1; pointer-events: auto; }
.ral-modal {
    background: #fff; border-radius: 22px; max-width: 420px; width: 100%; overflow: hidden;
    transform: scale(.92) translateY(10px); transition: transform .35s var(--ease);
}
.ral-modal-backdrop.open .ral-modal { transform: none; }
.ral-modal .modal-swatch { height: 200px; position: relative; }
.ral-modal .modal-close {
    position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.85); cursor: pointer; font-size: 18px; line-height: 1;
}
.ral-modal .modal-body { padding: 26px 28px 30px; }
.ral-modal h3 { font-size: 22px; }
.ral-modal .modal-hex { display: inline-flex; align-items: center; gap: 8px; background: var(--paper-dim); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; margin-top: 10px; }
.ral-modal .modal-actions { display: flex; gap: 12px; margin-top: 22px; }
.ral-modal .btn-ghost { border-color: var(--line); flex: 1; justify-content: center; }
.ral-modal .btn-primary { flex: 1; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .main-nav { display: none; }
    .nav-toggle { display: flex; }
    .stats-row, .services-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item:nth-child(5n+1) { grid-column: span 1; grid-row: span 1; }
    .contact-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .ral-toolbar { top: 0; }
}
@media (max-width: 600px) {
    .stats-row, .services-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
    .hero-copy p { font-size: 15.5px; }
}

/* Mobile nav drawer */
.main-nav.mobile-open {
    display: flex; position: fixed; inset: 82px 0 0 0; background: var(--paper); flex-direction: column;
    padding: 30px 24px; gap: 4px; z-index: 400; overflow-y: auto;
}
.main-nav.mobile-open a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
