/* ==========================================================================
   Seçkin Metal — kurumsal tanıtım sayfası (anasayfa "/")
   Renk değişkenleri (--accent, --accent-dark) Razor tarafından <head> içinde
   basılır; buradaki her şey onların üzerine kurulur.
   ========================================================================== */

:root {
    --ink: #14161b;
    --body: #4a5060;
    --muted: #8b92a0;
    --line: #e7eaf0;
    --line-soft: #f0f2f7;
    --bg-soft: #f6f8fb;
    --bg-dark: #101319;
    --white: #fff;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 10px 30px -12px rgba(20, 24, 35, .18);
    --shadow-lg: 0 28px 64px -22px rgba(20, 24, 35, .32);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-door: cubic-bezier(.65, .05, .36, 1);
    /* montaj parçaları: hızlı çıkıp yerine yumuşak oturur */
    --ease-set: cubic-bezier(.2, .9, .28, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--body);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }
section { position: relative; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; letter-spacing: -.022em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* --------------------------------------------------------------- butonlar */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 26px; border-radius: 999px; font-weight: 650; font-size: 15px;
    cursor: pointer; border: 1.5px solid transparent; white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease),
                background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .45); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .34); }
.btn-light:hover { background: rgba(255, 255, 255, .26); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { transform: translateY(-2px); }

/* ------------------------------------------------------------------ etiket */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 15px; border-radius: 999px; background: rgba(0, 0, 0, .045);
    color: var(--accent); font-weight: 650; font-size: 13.5px;
    background: color-mix(in srgb, var(--accent) 9%, transparent);
}
.eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none;
    animation: pulseDot 2.4s var(--ease) infinite;
}
@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
    50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent); }
}

.sec-head { text-align: center; max-width: 660px; margin: 0 auto 54px; }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(27px, 3.5vw, 40px); font-weight: 780; }
.sec-head p { margin-top: 14px; font-size: 17px; color: var(--body); }

/* ------------------------------------------------------------------ header */
header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px -18px rgba(20, 24, 35, .5);
    background: rgba(255, 255, 255, .92);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 18px; }
header.is-scrolled .nav { height: 66px; }
.nav { transition: height .25s var(--ease); }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--ink); font-size: 19px; letter-spacing: -.015em; }
.brand .mark {
    width: 42px; height: 42px; border-radius: 12px; flex: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: grid; place-items: center;
    box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent);
    transition: transform .3s var(--ease);
}
.brand:hover .mark { transform: rotate(-6deg) scale(1.05); }
.brand .mark svg { width: 23px; height: 23px; }
.brand .logo-img { height: 40px; width: auto; border-radius: 8px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links .link {
    position: relative; font-weight: 550; font-size: 15px; color: var(--body);
    padding: 9px 14px; border-radius: 999px; transition: color .18s var(--ease), background .18s var(--ease);
}
.nav-links .link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left;
    transition: transform .28s var(--ease);
}
.nav-links .link:hover { color: var(--accent); }
.nav-links .link:hover::after { transform: scaleX(1); }
.nav-links .btn { margin-left: 10px; }

.menu-btn {
    display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
    background: #fff; color: var(--ink); place-items: center; cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }
.mobile-menu {
    display: none; border-top: 1px solid var(--line); background: #fff;
    padding: 14px 0 20px;
}
.mobile-menu.is-open { display: block; animation: dropIn .28s var(--ease); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu a {
    display: block; padding: 13px 4px; font-size: 16px; font-weight: 550;
    color: var(--ink); border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .btn { margin-top: 16px; width: 100%; }

/* --------------------------------------------------------------------- hero
   Tam boy (kenardan kenara) gece sahnesi arka planda; metin sahnenin sol
   yarısındaki duvarın üzerine biner. Okunabilirlik soldan sağa açılan
   karartma katmanıyla (.hero-scrim) sağlanır. */
.hero {
    position: relative; overflow: hidden; background: #0d0f14;
    min-height: clamp(580px, 84vh, 820px);
    display: flex; align-items: center;
}
.hero-scene { position: absolute; inset: 0; z-index: 0; }
.hero-scene svg { width: 100%; height: 100%; display: block; }
.hero-scrim {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(96deg, rgba(9, 11, 15, .95) 0%, rgba(9, 11, 15, .9) 30%,
                        rgba(9, 11, 15, .62) 48%, rgba(9, 11, 15, .12) 66%, transparent 80%),
        linear-gradient(to top, rgba(9, 11, 15, .55), transparent 40%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 72px 24px; }
/* Metin genişliği bilerek sınırlı: sahnedeki kapı sağda kaldığı için
   yazının kapının üzerine binmemesi gerekiyor. */
.hero-copy { max-width: 560px; }

.hero-badge {
    position: absolute; right: 26px; bottom: 24px; z-index: 2;
    display: inline-flex; align-items: center; gap: 9px;
    padding: 9px 15px; border-radius: 999px; font-size: 13px; font-weight: 650; color: #fff;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-badge .live {
    width: 8px; height: 8px; border-radius: 50%; background: #37d67a; flex: none;
    animation: blinkLive 1.6s steps(1, end) infinite;
}
@keyframes blinkLive { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .25; } }

/* koyu zemin üzerinde metin renkleri */
.hero h1 { font-size: clamp(33px, 4.6vw, 58px); font-weight: 820; color: #fff; }
.hero .lead { color: rgba(255, 255, 255, .8); }
.hero .eyebrow { background: rgba(255, 255, 255, .12); color: #fff; }
.hero .hero-trust .t { color: #fff; }
.hero .btn-ghost {
    background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .34);
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; border-color: rgba(255, 255, 255, .5); }
/* Koyu zeminde saf vurgu rengi yeterince okunmuyor; beyazla açılmış tonu kullanılır. */
.hero h1 .hl { color: color-mix(in srgb, var(--accent) 42%, #fff); position: relative; white-space: nowrap; }
/* başlıktaki altı çizgi kendini çizer */
.hero h1 .hl::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .09em;
    background: color-mix(in srgb, var(--accent) 62%, #fff); border-radius: 4px;
    transform: scaleX(0); transform-origin: left;
    animation: drawUnderline 1s var(--ease) .5s forwards;
}
@keyframes drawUnderline { to { transform: scaleX(1); } }
.hero .lead { margin: 22px 0 34px; font-size: clamp(16px, 1.6vw, 19px); max-width: 545px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px 32px; margin-top: 40px; }
.hero-trust .t { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 550; color: var(--ink); }
.hero-trust .t svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

/* ------------------------------------------ hero sahnesi: kapı mekanizması
   Kanat, açıklığın genişliğinden (290) fazla kaydırılır ki sol sütunun
   arkasında tamamen kaybolsun. */
.gate-leaf {
    transform-box: view-box;
    animation: gateCycle 10s var(--ease-door) 1.2s infinite;
}
@keyframes gateCycle {
    0%, 12% { transform: translateX(0); }
    30%, 58% { transform: translateX(-292px); }
    76%, 100% { transform: translateX(0); }
}
/* uyarı lambası kapı hareket ederken çalışır */
.gate-lamp { animation: lampFlash 10s linear 1.2s infinite; transform-box: view-box; transform-origin: center; }
@keyframes lampFlash {
    0%, 11% { opacity: .25; }
    12%, 30% { opacity: 1; }
    31%, 57% { opacity: .25; }
    58%, 76% { opacity: 1; }
    77%, 100% { opacity: .25; }
}
.gate-lamp-glow { animation: lampGlow 10s linear 1.2s infinite; }
@keyframes lampGlow {
    0%, 11% { opacity: 0; }
    12%, 30% { opacity: .55; }
    31%, 57% { opacity: 0; }
    58%, 76% { opacity: .55; }
    77%, 100% { opacity: 0; }
}
/* fotosel ışını */
.gate-beam { animation: beamPulse 2.6s ease-in-out infinite; }
@keyframes beamPulse { 0%, 100% { opacity: .18; } 50% { opacity: .5; } }
/* arka plandaki bina ışıkları */
.win-glow { animation: winGlow 5s ease-in-out infinite alternate; }
@keyframes winGlow { from { opacity: .35; } to { opacity: .85; } }

/* ------------------------------------------------- yetenek şeridi (marquee) */
.strip {
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: var(--bg-soft); padding: 18px 0; overflow: hidden;
}
.marquee { display: flex; gap: 0; width: max-content; animation: marquee 32s linear infinite; }
.strip:hover .marquee { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee .item {
    display: inline-flex; align-items: center; gap: 11px; padding: 0 30px;
    font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.marquee .item svg { width: 19px; height: 19px; color: var(--accent); flex: none; }
.marquee .item::after {
    content: ""; width: 5px; height: 5px; border-radius: 50%;
    background: var(--line); margin-left: 30px;
}

/* --------------------------------------------------------------- hizmetler */
.services { padding: 96px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 30px 28px; overflow: hidden;
    transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    transform: scaleX(0); transform-origin: left; transition: transform .32s var(--ease);
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card .ic {
    width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px;
    background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--accent);
    transition: transform .3s var(--ease), background .3s var(--ease);
}
.card:hover .ic { transform: translateY(-2px) scale(1.06); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.card .ic svg { width: 28px; height: 28px; }
.card h3 { font-size: 19px; margin-bottom: 9px; }
.card p { font-size: 15px; }

/* ------------------------------------------ etkileşimli kapı mekanizmaları */
.doors { padding: 96px 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.door-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.door,
.build {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 22px 24px; cursor: pointer; user-select: none;
    transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.door:hover,
.build:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.door .stage,
.build .stage {
    position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 18px;
    background: linear-gradient(170deg, #f2f5fa, #e6eaf2); aspect-ratio: 16 / 11;
}
.door .stage svg,
.build .stage svg { width: 100%; height: 100%; }
.door h3,
.build h3 { font-size: 17.5px; margin-bottom: 6px; }
.door p,
.build p { font-size: 14.5px; }
.door .tag,
.build .tag {
    position: absolute; right: 10px; top: 10px; z-index: 2;
    padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
    background: rgba(255, 255, 255, .82); color: var(--ink);
    border: 1px solid rgba(20, 24, 35, .08);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: background .25s var(--ease), color .25s var(--ease);
}
.door.is-active .tag,
.build.is-active .tag { background: var(--accent); color: #fff; border-color: transparent; }
.door .hint,
.build .hint {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
    font-size: 13px; font-weight: 650; color: var(--accent);
}
.door .hint svg,
.build .hint svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.door.is-active .hint svg,
.build.is-active .hint svg { transform: rotate(180deg); }

/* mekanizmalar — .is-active sınıfı JS ile eklenir (hover + görünür olunca) */
.mech { transform-box: view-box; transition: transform 1.15s var(--ease-door); }

/* sürgülü: yana kayar — kanat genişliği (112) kadar, açıkken tamamen
   sol duvarın arkasında kalsın diye */
.door.is-active .mech-slide { transform: translateX(-112px); }
/* kanatlı: menteşeden açılır (scaleX ile derinlik hissi) */
.mech-wing-l { transform-origin: 34px 50px; }
.mech-wing-r { transform-origin: 150px 50px; }
.door.is-active .mech-wing-l,
.door.is-active .mech-wing-r { transform: scaleX(.22); }
/* seksiyonel: paneller sırayla yukarı toplanır */
.mech-panel { transition: transform 1s var(--ease-door); transform-box: view-box; }
.door.is-active .mech-panel { transform: translateY(-92px); }
.door.is-active .mech-panel-1 { transition-delay: 0s; }
.door.is-active .mech-panel-2 { transition-delay: .07s; }
.door.is-active .mech-panel-3 { transition-delay: .14s; }
.door.is-active .mech-panel-4 { transition-delay: .21s; }
/* kepenk: yukarı sarılır */
.mech-shutter { transform-origin: 100px 24px; transition: transform 1.1s var(--ease-door); transform-box: view-box; }
.door.is-active .mech-shutter { transform: scaleY(.08); }
/* fotoselli cam kapı: iki kanat ortadan ayrılır */
.door.is-active .mech-bipart-l { transform: translateX(-46px); }
.door.is-active .mech-bipart-r { transform: translateX(46px); }
/* fotosel algılama halkası */
.door.is-active .mech-sensor { animation: sensorPing 1.4s var(--ease) infinite; }
@keyframes sensorPing {
    0% { r: 3; opacity: .9; }
    100% { r: 13; opacity: 0; }
}
/* bariyer: kol kalkar — pivot kutunun üstünde, 60° kaldırınca uç kadrajda kalır */
.mech-arm { transform-origin: 46px 96px; transition: transform 1.05s var(--ease-door); transform-box: view-box; }
.door.is-active .mech-arm { transform: rotate(-60deg); }
/* bariyer lambası */
.door.is-active .mech-beacon { animation: beaconBlink .7s steps(1, end) infinite; }
@keyframes beaconBlink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: .2; } }
/* motor göstergesi */
.door.is-active .mech-led { fill: #37d67a; }
.mech-led { transition: fill .3s var(--ease); }

/* ------------------------------------ çelik konstrüksiyon: montaj animasyonu
   Kapılar hareket eden ürünler olduğu için "aç/kapa" mantığı işliyordu; çelik
   yapılar sabit olduğundan burada MONTAJ canlandırılır: kart etkin değilken yapı
   tamamlanmış görünür, etkinleşince animasyon baştan oynayıp yapıyı kurar.
   Bu yüzden transition değil animation kullanılır (fill-mode: both). */
.builds { padding: 96px 0; }
.build-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.build .stage { background: linear-gradient(170deg, #eff3f9, #e1e7f0); }

/* Montaj sözlüğü — her parça geliş biçimini seçer, gecikmeyi HTML verir:
     bl-rise  kolonlar, alttan yükselir        bl-in-l/r  paneller, yandan kayar
     bl-drop  kirişler, üstten iner            bl-pop     küçük parçalar, yerine oturur
     bl-line  korkuluk/nervür, kendini çizer   bl-glint   camda ışık süzülmesi

   DİKKAT: Bu sınıflar opacity'yi de canlandırır; animasyonlu bir öğeye ayrıca
   opacity="..." verilirse animasyon onu ezer ve parça tam opak biter. Yarı
   saydamlık gerekiyorsa rengin kendisine gömülür ya da dış <g>'ye yazılır. */
.bl { transform-box: view-box; }
.bl-pop { transform-box: fill-box; transform-origin: center; }
/* pathLength="1" ile her yol tek birime normalize edilir; böylece kısa da olsa
   uzun da olsa aynı sürede çizilir. Sabit dasharray uzun yollarda deseni
   tekrarlıyor, kısa yollarda çizimi sona sıkıştırıyordu. */
.bl-line { stroke-dasharray: 1; }

.build.is-active .bl-rise { animation: blRise .6s var(--ease-set) both; }
.build.is-active .bl-drop { animation: blDrop .55s var(--ease-set) both; }
.build.is-active .bl-in-l { animation: blSlideL .62s var(--ease-set) both; }
.build.is-active .bl-in-r { animation: blSlideR .62s var(--ease-set) both; }
.build.is-active .bl-pop { animation: blPop .4s var(--ease-set) both; }
.build.is-active .bl-line { animation: blDraw .55s var(--ease) both; }
.build.is-active .bl-glint { animation: blGlint 1.1s var(--ease) both; }

@keyframes blRise { from { transform: translateY(34px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes blDrop { from { transform: translateY(-26px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes blSlideL { from { transform: translateX(-50px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes blSlideR { from { transform: translateX(50px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes blPop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes blDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes blGlint {
    0% { transform: translateX(-70px); opacity: 0; }
    30% { opacity: .85; }
    100% { transform: translateX(190px); opacity: 0; }
}

/* ------------------------------------------------------------ süreç adımları */
.process { padding: 96px 0; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
/* adımları birleştiren çizgi kaydırınca çizilir */
.steps::before {
    content: ""; position: absolute; left: 8%; right: 8%; top: 31px; height: 2px;
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent));
    transform-origin: left;
    transition: transform 1.4s var(--ease) .2s;
}
.js .steps::before { transform: scaleX(0); }
.js .steps.is-in::before { transform: scaleX(1); }
.step { text-align: center; position: relative; }
.step .num {
    width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
    display: grid; place-items: center; background: #fff; color: var(--accent);
    border: 2px solid var(--line); font-weight: 800; font-size: 19px;
    position: relative; z-index: 1;
    transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.step:hover .num { transform: translateY(-4px) scale(1.06); border-color: var(--accent); background: var(--accent); color: #fff; }
.step h3 { font-size: 17.5px; margin-bottom: 7px; }
.step p { font-size: 14.5px; }

/* ------------------------------------------------------------------- neden */
.why { padding: 96px 0; background: var(--bg-dark); color: rgba(255, 255, 255, .72); }
.why h2, .why h3 { color: #fff; }
.why .eyebrow { background: rgba(255, 255, 255, .1); color: #fff; }
.why .eyebrow .dot { background: var(--accent); }
.why .sec-head p { color: rgba(255, 255, 255, .66); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
    text-align: center; padding: 32px 22px; border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04);
    transition: transform .26s var(--ease), background .26s var(--ease), border-color .26s var(--ease);
}
.stat:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); }
.stat .ic {
    width: 50px; height: 50px; margin: 0 auto 16px; border-radius: 13px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--accent) 22%, transparent); color: #fff;
}
.stat .ic svg { width: 25px; height: 25px; }
.stat .n { font-size: 17.5px; font-weight: 720; color: #fff; }
.stat p { font-size: 14px; color: rgba(255, 255, 255, .6); margin-top: 6px; }

/* ------------------------------------------------------------------ galeri */
.gallery { padding: 96px 0; }
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gal-item {
    position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
    aspect-ratio: 4 / 3; background: var(--bg-soft); border: 1px solid var(--line);
}
.gal-item img,
.gal-item video {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .5s var(--ease), filter .4s var(--ease);
}
.gal-item:hover img,
.gal-item:hover video { transform: scale(1.07); }
/* video karesinin üstündeki oynat rozeti */
.gal-item .play {
    position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center; pointer-events: none; color: #fff;
    background: rgba(12, 15, 20, .55); border: 1.5px solid rgba(255, 255, 255, .5);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    transition: transform .3s var(--ease), background .3s var(--ease);
}
.gal-item.is-video:hover .play { transform: scale(1.1); background: var(--accent); border-color: transparent; }
.gal-item .play svg { width: 26px; height: 26px; margin-left: 3px; }

/* grup sekmeleri */
.gal-tabs {
    display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-bottom: 26px;
}
.gal-tab {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    padding: 9px 17px; border-radius: 999px; font-family: inherit;
    font-size: 14px; font-weight: 620; color: var(--body);
    background: #fff; border: 1.5px solid var(--line);
    transition: border-color .22s var(--ease), color .22s var(--ease),
                background .22s var(--ease);
}
.gal-tab span {
    font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px;
    background: var(--bg-soft); color: var(--muted);
}
.gal-tab:hover { border-color: var(--accent); color: var(--accent); }
.gal-tab.is-on { background: var(--accent); border-color: transparent; color: #fff; }
.gal-tab.is-on span { background: rgba(255, 255, 255, .22); color: #fff; }
/* Dar ekranda alt alta sarılınca yedi sekme yarım ekran yer kaplıyordu;
   tek sıraya alınıp yatay kaydırılır, kenarlara taşarak "devamı var" hissi verir. */
@media (max-width: 640px) {
    .gal-tabs {
        flex-wrap: nowrap; justify-content: flex-start;
        overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
        margin-left: -24px; margin-right: -24px; padding: 2px 24px 4px;
    }
    .gal-tabs::-webkit-scrollbar { display: none; }
    .gal-tab { flex: none; }
}

/* Gizleme yalnızca JS varken; JS kapalıysa galeri eksiksiz görünür. */
.js .gal-item.is-hidden { display: none; }
.gal-more {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 26px auto 0; padding: 13px 26px; border-radius: 999px; cursor: pointer;
    font-size: 15px; font-weight: 650; font-family: inherit;
    background: #fff; color: var(--ink); border: 1.5px solid var(--line);
    transition: border-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.gal-more:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.gal-more svg { width: 16px; height: 16px; }
.gal-more[hidden] { display: none; }
.gal-item figcaption {
    position: absolute; inset: auto 0 0 0; padding: 26px 16px 14px; color: #fff;
    font-size: 14px; font-weight: 600;
    background: linear-gradient(transparent, rgba(10, 12, 16, .82));
    opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gal-item:hover figcaption { opacity: 1; transform: none; }

/* fotoğraf büyütme */
.lightbox {
    position: fixed; inset: 0; z-index: 200; display: none;
    background: rgba(8, 10, 14, .92); padding: 24px;
    place-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; animation: fadeIn .22s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img,
.lightbox video {
    max-width: min(1100px, 94vw); max-height: 84vh; width: auto; border-radius: 14px;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); animation: popIn .28s var(--ease);
}
/* aynı anda yalnızca biri açık; JS hangisiyse onu görünür yapar */
.lightbox img,
.lightbox video { display: none; }
.lightbox.is-photo img,
.lightbox.is-video video { display: inline-block; }
@keyframes popIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.lightbox .cap { color: rgba(255, 255, 255, .8); font-size: 14.5px; margin-top: 16px; text-align: center; }
.lightbox .close {
    position: absolute; right: 20px; top: 20px; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer; color: #fff;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
}
.lightbox .close:hover { background: rgba(255, 255, 255, .22); }
.lightbox .close svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------- iletişim */
.contact { padding: 96px 0; background: var(--bg-soft); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ci {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
    display: flex; gap: 16px; align-items: flex-start;
    transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}
.ci:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.ci .ic {
    width: 48px; height: 48px; flex: none; border-radius: 13px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--accent);
    transition: background .25s var(--ease);
}
.ci:hover .ic { background: var(--accent); color: #fff; }
.ci .ic svg { width: 23px; height: 23px; }
.ci .lbl { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.ci .val { font-size: 16px; color: var(--ink); font-weight: 550; margin-top: 3px; }

/* WhatsApp kartı kendi markasının rengini alır. Bu kurallar bilerek .ci .ic
   tanımlarından SONRA duruyor — aynı özgüllükte olduğu için sıra belirleyicidir. */
.ci-wa .ic { background: rgba(37, 211, 102, .12); color: #1eab52; }
.ci-wa:hover .ic { background: #25d366; color: #fff; }

/* -------------------------------------------------------------------- CTA */
.cta { padding: 26px 0 100px; }
.cta-box {
    border-radius: var(--radius-lg); padding: 62px 40px; text-align: center; color: #fff;
    position: relative; overflow: hidden;
    background: linear-gradient(150deg, var(--accent), var(--accent-dark));
    box-shadow: 0 30px 64px -26px color-mix(in srgb, var(--accent) 65%, transparent);
}
.cta-box::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(620px 320px at 82% 120%, rgba(255, 255, 255, .2), transparent 62%);
}
/* dönen ışık huzmesi */
.cta-box::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1;
    translate: -50% -50%;
    background: conic-gradient(from 0deg, transparent 0 78%, rgba(255, 255, 255, .13) 86%, transparent 94%);
    animation: sweep 9s linear infinite;
}
@keyframes sweep { to { rotate: 360deg; } }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; font-size: clamp(26px, 3.5vw, 37px); }
.cta-box p { color: rgba(255, 255, 255, .92); font-size: 18px; margin: 14px 0 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ----------------------------------------------------------------- footer */
footer { background: #0d0f14; color: rgba(255, 255, 255, .64); padding: 60px 0 30px; }
/* Dört sütun: marka + Kapı Sistemleri + Çelik Konstrüksiyon + İletişim */
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
footer .brand { color: #fff; margin-bottom: 16px; }
footer p { font-size: 14.5px; max-width: 340px; }
footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 16px; }
footer ul { list-style: none; display: grid; gap: 10px; }
footer ul a, footer ul li { font-size: 14.5px; transition: color .18s var(--ease); }
footer ul a:hover { color: #fff; }
.foot-bottom { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .48); }
.foot-bottom a:hover { color: #fff; }

/* ------------------------------------------------- sabit hızlı erişim butonları */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 12px; }
.fab a {
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
    color: #fff; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.fab a:hover { transform: translateY(-3px) scale(1.06); }
.fab a svg { width: 26px; height: 26px; }
.fab .wa { background: #25d366; }
.fab .tel { background: var(--accent); }
/* telefon butonunda halka efekti */
.fab .tel::after {
    content: ""; position: absolute; width: 54px; height: 54px; border-radius: 50%;
    border: 2px solid var(--accent); animation: ring 2.2s var(--ease) infinite;
}
@keyframes ring {
    0% { transform: scale(1); opacity: .7; }
    100% { transform: scale(1.7); opacity: 0; }
}
.fab a { position: relative; }

/* --------------------------------------------------- kaydırma animasyonları */
/* Öğeler yalnızca JS çalışıyorsa gizlenir (<html class="js">). JS yoksa ya da
   hata verirse sayfa eksiksiz görünür — içerik hiçbir zaman script'e bağlı kalmaz. */
.js [data-reveal] {
    opacity: 0; transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------- responsive */
/* Üst menü altı bağlantıya çıktı (galeri açıldığında yedi olur); dar
   masaüstlerinde sıkışmadan hamburger'a devretsin. Hero düzeni buna
   karışmaz, o 860px'te değişir. */
@media (max-width: 1080px) {
    .nav-links { display: none; }
    .menu-btn { display: grid; }
}

@media (max-width: 1000px) {
    .cards, .door-grid, .build-grid, .gal-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .steps::before { display: none; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    /* Telefonda geniş sahneyi metnin ARKASINA koymak işe yaramıyor: yazı okunsun
       diye karartma arttıkça kapı kayboluyor. Bu yüzden düzen ikiye ayrılır —
       yazı üstte, sahne altta tam genişlikte bir şerit olarak. Şeridin oranı
       (375×250) sahnenin yanlarını daha az kırptığı için kapı bütün görünür. */
    .hero { flex-direction: column; min-height: 0; }
    .hero-inner { order: 1; padding: 52px 24px 32px; }
    .hero-scene { order: 2; position: relative; inset: auto; height: 250px; }
    .hero-scene svg { width: 100%; margin-left: 0; }
    .hero-scrim { display: none; }
    .hero-badge { display: none; }
    .hero-copy { max-width: none; }
    .nav-links { display: none; }
    .menu-btn { display: grid; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .services, .doors, .builds, .process, .why, .gallery, .contact { padding: 72px 0; }
}
@media (max-width: 560px) {
    .cards, .door-grid, .build-grid, .gal-grid, .why-grid, .foot-grid, .steps { grid-template-columns: 1fr; }
    /* Etiket iki satıra düştüğünde nokta ortada asılı kalmasın, ilk satıra hizalanır. */
    .eyebrow { align-items: flex-start; }
    .eyebrow .dot { margin-top: 8px; }
    .sec-head { margin-bottom: 40px; }
    .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
    .cta-box { padding: 46px 24px; }
}

/* ---------------------------------------- hareket azaltma tercihi (erişilebilirlik) */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
    .steps::before { transform: scaleX(1); }
}
