/* ══════════════════════════════════════════════════════
   YILDIZ CAM — Quiet Luxury · Soft Blue-Gray · Photo-forward
   Düşük kontrast · az renk · bol nefes · sessiz hareket
══════════════════════════════════════════════════════ */

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

:root {
    --bg:       #edeef0;   /* yumuşak serin gri */
    --surface:  #f6f7f8;   /* zeminden çok az ayrışır */
    --ink:      #232a31;   /* yumuşak koyu arduvaz (saf siyah değil) */
    --ink-2:    #707880;   /* sakin gri */
    --ink-3:    #a6acb2;
    --line:     rgba(35,42,49,0.09);
    --line-2:   rgba(35,42,49,0.05);

    --accent:   #51708c;   /* soft çelik mavisi — sakin, az doygun */
    --accent-2: #6f8aa6;
    --accent-tint: #e3e8ee;

    --r:    16px;
    --r-lg: 22px;
    --r-sm: 12px;
    --nav-h: 80px;
    --tr:   0.5s cubic-bezier(0.22, 1, 0.36, 1);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    --disp: 'Space Grotesk', system-ui, sans-serif;
    --sans: 'Manrope', system-ui, sans-serif;

    --img-filter: saturate(0.9) contrast(1.02) brightness(1.01);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    letter-spacing: 0.002em;
}

a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }
em { font-style: normal; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* Ortak tipografi */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.22em; color: var(--accent); margin-bottom: 24px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); opacity: 0.7; }

.h2 {
    font-family: var(--disp); font-weight: 400;
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    line-height: 1.1; letter-spacing: -0.025em; color: var(--ink);
}
.h2 em { color: var(--accent); }

.head { margin-bottom: 64px; max-width: 620px; }
.head .h2 { margin-top: 2px; }

/* Görsel kapları — yüklenmezse yumuşak gradyan kalır */
.media {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #d5dbe2, #aab4c0);
}
.media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: var(--img-filter);
    transition: transform 1.4s var(--ease), opacity 0.6s ease;
}
.media img.img-fail { opacity: 0; }


/* ══════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════ */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 1000; transition: var(--tr); border-bottom: 1px solid transparent; }
.nav.scrolled {
    background: rgba(237,238,240,0.82);
    backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
    border-bottom-color: var(--line);
}
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--disp); font-size: 1.24rem; font-weight: 500; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; color: #fff; transition: color var(--tr); text-shadow: 0 1px 12px rgba(0,0,0,0.45); }
.logo-img { display: block; flex-shrink: 0; }
.nav-links { display: flex; list-style: none; gap: 38px; align-items: center; }
.nav-links a { font-size: 0.84rem; font-weight: 600; color: #fff; transition: color var(--tr); position: relative; text-shadow: 0 1px 12px rgba(0,0,0,0.5); }
.nav-links a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: currentColor; transition: width var(--tr); }
.nav-links a:not(.nav-cta):hover { color: #fff; }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { background: rgba(255,255,255,0.14); color: #fff !important; border: 1px solid rgba(255,255,255,0.4); padding: 9px 21px; border-radius: 100px; font-weight: 500; transition: var(--tr); }
.nav-cta:hover { background: rgba(255,255,255,0.24); transform: translateY(-1px); }

/* Kaydırınca açık zemine geçince koyu yazı */
.nav.scrolled .nav-logo { color: var(--ink); text-shadow: none; }
.nav.scrolled .nav-links a { color: var(--ink-2); text-shadow: none; }
.nav.scrolled .nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav.scrolled .nav-links a:not(.nav-cta)::after { background: var(--accent); }
.nav.scrolled .nav-cta { background: var(--ink); color: #fff !important; border-color: var(--ink); }
.nav.scrolled .nav-cta:hover { opacity: 0.9; }
.nav.scrolled .nav-toggle span { background: var(--ink); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; z-index: 1001; }
.nav-toggle span { width: 24px; height: 1.5px; background: #fff; border-radius: 2px; transition: var(--tr); }


/* ══════════════════════════════════════════════════════
   HERO — tam ekran cam-değişim sahnesi
══════════════════════════════════════════════════════ */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: flex-end;
    padding: 0 0 64px; overflow: hidden;
}

/* Arka plan — push-in tek kapsayıcıda, kareler birebir hizalı */
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    transform: scale(1.03);
    animation: heroPush 30s ease-in-out infinite alternate;
}
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center center;
    opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
@keyframes heroPush {
    from { transform: scale(1.03); }
    to   { transform: scale(1.09); }
}
.hero-scrim {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(15,18,22,0.55) 0%, rgba(15,18,22,0) 16%),
        linear-gradient(90deg, rgba(15,18,22,0.72) 0%, rgba(15,18,22,0.34) 38%, rgba(15,18,22,0) 64%),
        linear-gradient(0deg, rgba(15,18,22,0.55) 0%, rgba(15,18,22,0) 42%);
}

.hero-content { position: relative; z-index: 2; max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 40px; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.74rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.22em; color: rgba(255,255,255,0.8); margin-bottom: 22px;
}

.hero-title {
    font-family: var(--disp); font-weight: 400; color: #fff;
    font-size: clamp(2.8rem, 6.6vw, 5.8rem);
    line-height: 1.0; letter-spacing: -0.035em; margin-bottom: 26px;
    text-shadow: 0 2px 40px rgba(0,0,0,0.25);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease); }
.hero-title .line > span em { color: #fff; font-style: italic; opacity: 0.96; }
.hero.in .hero-title .line:nth-child(1) > span { transition-delay: 0.06s; }
.hero.in .hero-title .line:nth-child(2) > span { transition-delay: 0.2s; }
.hero.in .hero-title .line > span { transform: translateY(0); }

.hero-desc { font-size: 1.06rem; color: rgba(255,255,255,0.78); line-height: 1.8; max-width: 460px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Cam tipi etiketi */
.hero-tag {
    position: absolute; z-index: 2; right: 40px; bottom: 64px;
    display: inline-flex; align-items: center; gap: 11px;
    padding: 12px 20px; border-radius: 100px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
    color: #fff; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
}
.ht-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.18); }
.ht-label { transition: opacity 0.4s ease; min-width: 88px; }
.ht-label.swap { opacity: 0; }

.btn-ghost.light { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost.light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }


/* ══════════════════════════════════════════════════════
   BUTONLAR
══════════════════════════════════════════════════════ */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 15px 28px; font-size: 0.88rem; font-weight: 500; border-radius: 100px; border: none; cursor: pointer; transition: var(--tr); white-space: nowrap; font-family: inherit; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary svg { transition: transform var(--tr); }
.btn-primary:hover { transform: translateY(-2px); opacity: 0.92; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); transform: translateY(-2px); }


/* ══════════════════════════════════════════════════════
   HAKKIMIZDA
══════════════════════════════════════════════════════ */
.about { padding: 150px 0; }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: center; }
.about-media .media { border-radius: var(--r-lg); aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -52px rgba(35,42,49,0.35); }
.about-text .h2 { margin: 2px 0 24px; }
.about-text > p { font-size: 1.04rem; color: var(--ink-2); line-height: 1.9; margin-bottom: 16px; max-width: 520px; }

.stats {
    display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap;
}
.stat {
    display: inline-flex; align-items: center; gap: 12px;
    min-width: 148px; padding: 14px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    box-shadow: 0 12px 28px -24px rgba(35,42,49,0.35);
}
.stat-num {
    font-family: var(--disp); font-size: 1.65rem; font-weight: 500;
    line-height: 1; letter-spacing: -0.03em; color: var(--accent);
}
.stat-copy {
    font-size: 0.86rem; font-weight: 500; color: var(--ink-2);
    letter-spacing: 0.01em; line-height: 1.2;
}


/* ══════════════════════════════════════════════════════
   HİZMETLER
══════════════════════════════════════════════════════ */
.services { padding: 0 0 150px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.scard {
    background: transparent; border-radius: var(--r-lg); overflow: hidden;
    transition: transform var(--tr);
}
.scard .media { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.scard:hover .media img { transform: scale(1.05); }
.scard-body { padding: 24px 4px 0; position: relative; }
.scard-num { font-family: var(--disp); font-size: 0.78rem; font-weight: 500; color: var(--accent); letter-spacing: 0.08em; }
.scard h3 { font-family: var(--disp); font-weight: 500; font-size: 1.32rem; letter-spacing: -0.015em; margin: 8px 0 9px; line-height: 1.2; }
.scard p { font-size: 0.9rem; color: var(--ink-2); line-height: 1.7; }


/* ══════════════════════════════════════════════════════
   ŞUBELER
══════════════════════════════════════════════════════ */
.branches { padding: 0 0 150px; }
.branches-layout { display: grid; grid-template-columns: 350px 1fr; gap: 24px; align-items: stretch; }
.branch-list { display: flex; flex-direction: column; gap: 12px; }
.branch-item {
    display: flex; align-items: center; gap: 16px;
    background: var(--surface); border: 1px solid var(--line-2);
    border-radius: var(--r-sm); padding: 22px 24px; cursor: pointer; text-align: left; width: 100%;
    font-family: inherit; color: var(--ink); transition: var(--tr); position: relative; overflow: hidden;
}
.branch-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform var(--tr); }
.branch-item:hover { border-color: var(--line); }
.branch-item.active::before { transform: scaleY(1); }
.bi-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); flex-shrink: 0; transition: var(--tr); }
.branch-item.active .bi-dot { background: var(--accent); }
.bi-text { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.bi-text strong { font-size: 0.98rem; font-weight: 600; }
.bi-text em { font-size: 0.8rem; color: var(--ink-2); }
.bi-arrow { font-size: 1rem; color: var(--ink-3); transition: var(--tr); }
.branch-item:hover .bi-arrow, .branch-item.active .bi-arrow { color: var(--accent); }

.map-wrap { border-radius: var(--r-lg); overflow: hidden; min-height: 470px; border: 1px solid var(--line-2); }
#map { width: 100%; height: 100%; min-height: 470px; }
.sube-tooltip { background: var(--ink); color: #fff; border: none; border-radius: 8px; padding: 6px 12px; font-family: var(--sans); font-size: 0.76rem; font-weight: 600; box-shadow: 0 6px 18px rgba(35,42,49,0.25); white-space: nowrap; }
.sube-tooltip::before { border-top-color: var(--ink) !important; }
.leaflet-container { background: #e1e4e8; }


/* ══════════════════════════════════════════════════════
   İLETİŞİM
══════════════════════════════════════════════════════ */
.contact { padding: 0 0 150px; }
.contact-card {
    background: var(--ink); color: #fff; border-radius: var(--r-lg);
    padding: 76px 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
    position: relative; overflow: hidden;
}
.cc-left { position: relative; z-index: 2; }
.cc-left .eyebrow { color: var(--accent-2); }
.cc-left .eyebrow::before { background: var(--accent-2); }
.cc-left .h2 { color: #fff; margin-top: 2px; }
.cc-sub { color: rgba(255,255,255,0.6); font-size: 1.02rem; margin-top: 20px; max-width: 380px; line-height: 1.8; }
.cc-right { position: relative; z-index: 2; display: flex; flex-direction: column; }
.contact-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.12); transition: var(--tr); }
.contact-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
a.contact-row:hover { padding-left: 10px; }
.cr-label { grid-column: 1 / -1; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255,255,255,0.4); font-weight: 600; }
.cr-val { font-family: var(--disp); font-size: clamp(1.15rem, 2.4vw, 1.55rem); font-weight: 400; }
.cr-arrow { font-size: 1.1rem; color: rgba(255,255,255,0.45); transition: var(--tr); }
a.contact-row:hover .cr-arrow { color: var(--accent-2); transform: translate(3px, -3px); }


/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.footer { padding: 50px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { font-family: var(--disp); font-size: 1.16rem; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.footer-tag { color: var(--ink-2); font-size: 0.92rem; }
.footer-copy { font-size: 0.76rem; color: var(--ink-3); }


/* ══════════════════════════════════════════════════════
   REVEAL ANİMASYONU
══════════════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; }
    .reveal, .hero-title .line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
}


/* ══════════════════════════════════════════════════════
   RESPONSİVE
══════════════════════════════════════════════════════ */
@media (max-width: 980px) {
    .hero-content  { padding-top: calc(var(--nav-h) + 40px); }
    .hero-tag      { right: 24px; bottom: 24px; }
    .about         { padding: 110px 0; }
    .about-grid    { grid-template-columns: 1fr; gap: 44px; }
    .about-media   { order: 2; }
    .about-media .media { aspect-ratio: 16 / 10; }
    .services, .branches, .contact { padding-bottom: 110px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .branches-layout { grid-template-columns: 1fr; }
    .contact-card  { grid-template-columns: 1fr; padding: 52px 40px; gap: 36px; }
}

@media (max-width: 680px) {
    :root { --nav-h: 66px; }
    .container { padding: 0 24px; }

    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; inset: 0; height: 100dvh; flex-direction: column; justify-content: center; gap: 30px;
        background: rgba(237,238,240,0.97); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
        opacity: 0; visibility: hidden; transition: opacity 0.34s, visibility 0.34s;
    }
    .nav-links.open { opacity: 1; visibility: visible; }
    .nav-links a { font-size: 1.4rem; font-family: var(--disp); color: var(--ink); }
    .nav-links a.nav-cta { color: #fff !important; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero-bg       { animation: none; transform: scale(1.03); }
    .hero-slide    { background-position: 28% center; }
    .hero-content  { padding-left: 24px; padding-right: 24px; }
    .hero-tag      { right: 16px; bottom: 16px; padding: 10px 16px; font-size: 0.76rem; }
    .services-grid { grid-template-columns: 1fr; }
    .stats         { gap: 10px; }
    .contact-card  { padding: 40px 26px; }
    .footer-inner  { flex-direction: column; text-align: center; }
}
