/* Kaiser Grand - Tailwind CDN'e ek özel stiller (açık tema) */

:root {
    --ink: #0a0a0a;
    --gold-dark: #946b00;
    --gold: #f6c61a;
    --paper: #f6f5f2;
    --line: #e6e4df;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html { background: #fff; }

/* Kurumsal kimlik: tüm köşeler ve butonlar keskin.
   Yalnızca nokta / nabız gibi küçük işaretler .keep-round ile yuvarlak kalır. */
*, *::before, *::after { border-radius: 0 !important; }
.keep-round, .keep-round::before, .keep-round::after { border-radius: 9999px !important; }
body { text-rendering: optimizeLegibility; }

/* Başlıklar: logodaki geniş, güçlü karakter */
h1, h2, h3, .font-display {
    font-family: 'Archivo', 'Plus Jakarta Sans', ui-sans-serif, sans-serif;
    font-stretch: 112%;
}
h1, .section-title { font-stretch: 118%; }

/* Kurumsal şerit (siyah / sarı) */
.tricolor { background: linear-gradient(90deg, var(--ink) 0 50%, var(--gold) 50% 100%); }
.bicolor  { background: linear-gradient(90deg, var(--ink) 0 48%, transparent 48% 52%, var(--gold) 52% 100%); }

/* Bölüm etiketi: (01) — Kurumsal */
.section-label {
    display: inline-flex; align-items: center; gap: .75rem;
    font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #737373;
}
.section-label b { font-family: 'Archivo', sans-serif; font-stretch: 112%; color: var(--gold-dark); letter-spacing: .05em; }
.section-label::after { content: ""; width: 2.5rem; height: 1px; background: currentColor; opacity: .5; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .75rem;
    font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
}
.eyebrow::before {
    content: ""; width: 2.5rem; height: 4px;
    background: linear-gradient(90deg, var(--ink) 0 46%, transparent 46% 54%, var(--gold) 54% 100%);
}

.section-title {
    font-size: clamp(2rem, 1.1rem + 2.8vw, 3.5rem);
    line-height: 1.02; font-weight: 800; letter-spacing: -.03em; color: var(--ink);
}

/* Mimari ızgara çizgileri */
.guides { background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / 4) 100%; }
.dot-grid { background-image: radial-gradient(#d4d2cc 1px, transparent 1px); background-size: 22px 22px; }

summary::-webkit-details-marker { display: none; }

/* ---------------------------------------------------------------- Header */
.site-header { transition: background-color .5s var(--ease-out), box-shadow .5s, border-color .5s; border-bottom: 1px solid transparent; }
.site-header .hdr-stripe { opacity: 0; transition: opacity .4s; }

.hdr-link {
    position: relative; padding: .6rem 1rem; font-size: 15px; font-weight: 600;
    color: var(--ink); transition: color .3s;
}
.hdr-link:hover, .hdr-link.is-active { color: var(--ink); }
.hdr-link::after {
    content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .2rem; height: 2px;
    height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.hdr-link:hover::after, .hdr-link.is-active::after { transform: scaleX(1); }
.hdr-btn { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

.site-header.is-solid { background: rgba(255,255,255,.92); backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.site-header.is-solid .header-inner { height: 72px; }
.site-header.is-solid .hdr-stripe { opacity: 1; }

/* Üst bilgi çubuğu: kaydırınca kapanır */
.topbar { height: 40px; transition: height .45s var(--ease-out), opacity .3s; }
.site-header.is-solid .topbar { height: 0; opacity: 0; overflow: hidden; }

/* Google çeviri katmanlarını gizle (GTranslate kendi arayüzümüzle kullanılıyor) */
body { top: 0 !important; }
.skiptranslate iframe, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ---------------------------------------------------------------- 3D görüntüleyici */
[data-product-3d] canvas { display: block; }
.viewer-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.viewer-3d.is-ready canvas { opacity: 1; }
.rotate-hint { transition: opacity .5s; }
.rotate-hint.is-hidden { opacity: 0 !important; }

/* ---------------------------------------------------------------- Hero */
.hero-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; }
.hero-3d.is-ready canvas { opacity: 1; }
.hero.is-3d .hero-fallback { opacity: 0; }
.hero-fallback { transition: opacity 1.2s ease; }

.hero-line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-line > span { display: inline-block; transform: translateY(110%) rotateX(-40deg); transform-origin: 50% 100%; opacity: 0; transition: transform 1.2s var(--ease-out), opacity 1.2s; transition-delay: var(--d, 0s); }
.is-loaded .hero-line > span { transform: none; opacity: 1; }
.hero-fade { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.is-loaded .hero-fade { opacity: 1; transform: none; }

.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::after { content: ""; position: absolute; left: -.04em; right: -.04em; bottom: .08em; height: .38em; background: var(--gold); z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out) 1s; }
.is-loaded .mark::after { transform: scaleX(1); }

.scroll-cue { width: 24px; height: 40px; box-shadow: inset 0 0 0 1.5px rgba(10,10,10,.35); position: relative; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------------------------------------------------------------- Yatay kaydırma (projeler) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 520px); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-progress { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.rail-progress > span { position: absolute; inset: 0 auto 0 0; background: var(--ink); width: 20%; transition: width .2s; }

/* ---------------------------------------------------------------- Görsel büyütme */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 4.5rem 1rem 2rem; background: rgba(10,10,10,.88); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(900px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.lightbox img { max-width: 100%; max-height: calc(100svh - 9rem); object-fit: contain; background: #fff; border-radius: 6px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); transform: scale(.96); transition: transform .4s var(--ease-out); }
.lightbox.is-open img { transform: none; }
.lightbox figcaption { color: #e5e5e5; font-size: .875rem; font-weight: 600; text-align: center; }
.lightbox-close, .lightbox-nav { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; transition: background .2s; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--gold); color: var(--ink); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------------------------------------------------------------- İhracat küresi */
.globe canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.globe.is-ready canvas { opacity: 1; }

/* ---------------------------------------------------------------- Değer zinciri çizgisi */
.chain-line { position: absolute; left: 0; right: 0; top: 28px; height: 2px; background: var(--line); }
.chain-line > span { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--ink), var(--gold)); transition: width 2.2s var(--ease-out); }
.chain-line.is-visible > span { width: 100%; }

/* ---------------------------------------------------------------- 3D geçişler */
.reveal {
    opacity: 0;
    transform: perspective(1200px) translate3d(0, 60px, 0) rotateX(12deg);
    transform-origin: 50% 100%;
    transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
    transition-delay: var(--d, 0s);
    will-change: transform, opacity;
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-img { clip-path: inset(14% 14% 14% 14%); transition: clip-path 1.4s var(--ease-out); }
.reveal-img.is-visible { clip-path: inset(0 0 0 0); }

[data-tilt] { transform-style: preserve-3d; transition: transform .6s var(--ease-out); will-change: transform; }
[data-tilt] .tilt-pop { transform: translateZ(40px); }
[data-tilt] .tilt-glare {
    pointer-events: none; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .4s;
    background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.35), transparent 40%);
}
[data-tilt]:hover .tilt-glare { opacity: 1; }

[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-img, .hero-line > span, .hero-fade { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
    .mark::after { transform: scaleX(1); transition: none; }
    .scroll-cue::after { animation: none; }
    .chain-line > span { width: 100%; transition: none; }
    html { scroll-behavior: auto; }
}

/* Bildirimler */
.toast { animation: toast-in .35s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
