/* Güler | Can Hukuk - Stil */

/* BASE SETTINGS */
body { 
    background-color: #F7F6F4; 
    color: #3A3A3C; 
    overflow-x: hidden; 
    font-family: 'Plus Jakarta Sans', sans-serif; 
}

/* FONTS */
h1, h2, h3, h4, h5, h6, .font-display { font-family: 'Comfortaa', system-ui, sans-serif; font-weight: 700; }
/* Comfortaa 700'de durur; ana başlıkları görsel olarak kalınlaştır (logo fontunu koruyarak) */
h1, h2, h3, .font-display.font-extrabold, .font-display.font-bold { -webkit-text-stroke: 0.45px currentColor; text-stroke: 0.45px currentColor; paint-order: stroke fill; }
.font-body { font-family: 'Plus Jakarta Sans', sans-serif; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F7F6F4; }
::-webkit-scrollbar-thumb { background: #990338; }
::-webkit-scrollbar-thumb:hover { background: #6B0226; }

/* NAV LINKS (DÜZELTİLDİ) */
.nav-link { 
    position: relative; 
    font-weight: 700; /* Daha kalın */
    color: #3A3A3C;   /* Varsayılan: Lacivert */
    transition: color 0.3s ease;
    padding-bottom: 4px;
}

/* Hover Durumu: Kırmızı */
.nav-link:hover {
    color: #990338; 
}

/* Aktif Durumu: Bordo ve Alt Çizgi */
.nav-link.active { 
    color: #6B0226 !important; 
}

.nav-link::before {
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 3px; /* Kalınlaştırıldı */
    background-color: #990338; 
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before { 
    width: 100%; 
}

/* BUTTON STYLES */
.btn-liquid {
    position: relative; overflow: hidden; transition: all 0.4s ease; z-index: 1; font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-liquid::after {
    content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    background-color: #3A3A3C; transform: scaleY(0); transform-origin: bottom center;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1); z-index: -1;
}
.btn-liquid:hover::after { transform: scaleY(1); }
.btn-liquid:hover { color: white; border-color: #3A3A3C; }

/* TEAM & GENERAL */
.team-grid-item { transition: all 0.5s ease; }
.team-grid-item:hover { transform: translateY(-10px); }
.clip-path-slant { clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* HEADER SCROLL STATE */
#header {
    background-color: transparent;
    transition: all 0.3s ease;
}

.header-scrolled {
    background-color: rgba(247, 246, 244, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 20px -5px rgba(58, 58, 60, 0.15) !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.header-scrolled .nav-link {
    color: #3A3A3C;
}

.header-scrolled #header-logo {
    color: #3A3A3C;
}

/* FALLBACK ANIMATION - GSAP yüklenmezse içerik görünür olsun */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-up:nth-child(1) { animation-delay: 0.5s; }
.animate-fade-up:nth-child(2) { animation-delay: 0.7s; }
.animate-fade-up:nth-child(3) { animation-delay: 0.9s; }
.animate-fade-up:nth-child(4) { animation-delay: 1.1s; }
/* list-bullet-fix */
.prose ul,.article-body ul{list-style-type:disc!important;padding-left:1.6em!important;margin:.6em 0!important;}
.prose ul ul,.article-body ul ul{list-style-type:circle!important;}
.prose ol,.article-body ol{list-style-type:decimal!important;padding-left:1.6em!important;margin:.6em 0!important;}
.prose li,.article-body li{display:list-item!important;}

/* sync-overflow-fix */
html, body { overflow-x: hidden !important; overflow-x: clip !important; max-width: 100% !important; overscroll-behavior-x: none; }
img, video, iframe, embed, object, svg { max-width: 100%; }
img, video { height: auto; }
.article-content img,
.article-content video,
.article-content iframe,
.article-content figure,
.article-content picture { max-width: 100%; height: auto; }
.article-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-content pre, .article-content code { max-width: 100%; word-wrap: break-word; overflow-wrap: break-word; }
.article-content { word-wrap: break-word; overflow-wrap: break-word; }

/* ============ LOGO (light/dark) ============ */
.logo-light { display: block; }
.logo-dark { display: none; }
html.dark .logo-light { display: none; }
html.dark .logo-dark { display: block; }

/* ============ THEME SWITCH BUTONU ============ */
.theme-switch { position: relative; height: 32px; width: 58px; border-radius: 9999px; background: #ECEAE7; border: 1px solid #DAD7D3; transition: background-color .3s, border-color .3s; flex-shrink: 0; cursor: pointer; }
.theme-switch .ts-ico { position: absolute; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: #9a9794; transition: opacity .3s; }
.theme-switch .ts-thumb { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 9999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; transition: transform .34s cubic-bezier(.16,1,.3,1), background-color .3s; }
.theme-switch .ts-sun { width: 14px; height: 14px; color: #990338; }
.theme-switch .ts-moon { display: none; width: 14px; height: 14px; color: #C45B79; }
html.dark .theme-switch { background: #47474A; border-color: #5A5A5D; }
html.dark .theme-switch .ts-thumb { transform: translateX(26px); background: #38383A; }
html.dark .theme-switch .ts-sun { display: none; }
html.dark .theme-switch .ts-moon { display: inline-block; }

/* Akıcı tema geçişi */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .42s ease, border-color .42s ease, color .42s ease, fill .42s ease !important; }

/* ============ DARK MODE (html.dark override katmanı) ============ */
html.dark body { background-color: #38383A; color: #ECEAE7; }
html.dark .bg-nx-cream { background-color: #38383A; }
html.dark .bg-white, html.dark .bg-nx-white { background-color: #47474A; }
html.dark .bg-gray-50, html.dark .bg-gray-100 { background-color: #404043; }
html.dark .bg-nx-blue { background-color: #2C2C2E; }
html.dark .text-nx-blue { color: #ECEAE7; }
html.dark .scale-dot { fill: #515152; } /* terazi orta nokta: dark'ta gri (beyaz terazide görünür) */
/* Opacity'li nx-blue metinler (text-nx-blue/80 vb.) — dark'ta açık renge çevir */
html.dark [class*="text-nx-blue/9"], html.dark [class*="text-nx-blue/8"], html.dark [class*="text-nx-blue/7"], html.dark [class*="text-nx-blue/6"], html.dark [class*="text-nx-blue/5"] { color: rgba(236,234,231,.82); }
html.dark .text-gray-900, html.dark .text-gray-800 { color: #F3F1EE; }
html.dark .text-gray-700, html.dark .text-gray-600 { color: #C7C4C0; }
html.dark .text-gray-500, html.dark .text-gray-400 { color: #A09D99; }
html.dark .text-nx-red { color: #C45B79; }
html.dark .border-gray-100, html.dark .border-gray-200, html.dark .border-gray-300 { border-color: #56565A; }
html.dark .border-nx-blue { border-color: #56565A; }
html.dark .header-scrolled { background-color: rgba(46,46,48,.96) !important; box-shadow: 0 4px 20px -5px rgba(0,0,0,.4) !important; }
html.dark .nav-link, html.dark .header-scrolled .nav-link { color: #D7D4D0; }
html.dark .nav-link:hover { color: #C45B79; }
html.dark input, html.dark textarea, html.dark select { background-color: #404043; border-color: #56565A; color: #ECEAE7; }
html.dark input::placeholder, html.dark textarea::placeholder { color: #8F8C88; }
html.dark ::-webkit-scrollbar-track { background: #38383A; }
html.dark .btn-liquid::after { background-color: #C45B79; }
html.dark .article-body, html.dark .article-body p, html.dark .article-body li { color: #C7C4C0; }
html.dark .article-body h2, html.dark .article-body h3, html.dark .article-body strong { color: #F3F1EE; }
html.dark .legal-content h3, html.dark .legal-content h4, html.dark .legal-content strong { color: #F3F1EE; }
html.dark .legal-content p, html.dark .legal-content li { color: #C7C4C0; }

/* ============ LOGO MARK FLIP (hover) ============ */
.logo-link { perspective: 650px; }
.logo-mark { transition: transform .8s cubic-bezier(.16,1,.3,1); transform-origin: center; transform-style: preserve-3d; will-change: transform; }
.logo-link:hover .logo-mark { transform: rotateY(360deg); }
@media (prefers-reduced-motion: reduce) { .logo-mark { transition: none; } .logo-link:hover .logo-mark { transform: none; } }

/* ============ HAKKIMIZDA INTRO (lead + 2-kolon gövde) ============ */
.about-lead p { font-size: 1.18rem; line-height: 1.7; color: #3A3A3C; margin-bottom: 1.1rem; }
.about-lead p:first-child { font-size: 1.32rem; line-height: 1.55; font-weight: 600; color: #3A3A3C; }
.about-lead p:last-child { margin-bottom: 0; }
.about-body { color: #6b6b6c; }
.about-body p { font-size: .98rem; line-height: 1.8; margin-bottom: 1rem; }
.about-body p:last-child { margin-bottom: 0; }
@media (min-width: 1024px) { .about-body { column-count: 2; column-gap: 2.5rem; } .about-body p { break-inside: avoid; } }
html.dark .about-lead p { color: #ECEAE7; }
html.dark .about-body { color: #B7B4B0; }

/* ============ UZMANLIK INTRO (editöryel lead + drop-cap) ============ */
.intro-lead > p { margin-bottom: 1.5rem; }
.intro-lead > p:last-child { margin-bottom: 0; }
.intro-lead > p:first-of-type { font-size: 1.2rem; line-height: 1.72; color: #3A3A3C; font-weight: 500; }
.intro-lead > p:first-of-type::first-letter {
    float: left; font-family: 'Comfortaa', system-ui, sans-serif; font-weight: 800;
    font-size: 4.4rem; line-height: .78; margin: .35rem .7rem 0 0; color: #990338;
}
.intro-lead strong { color: #3A3A3C; font-weight: 700; }
.intro-lead ul { list-style: disc; padding-left: 1.5rem; margin: 1rem 0; }
.intro-lead li { margin-bottom: .5rem; }
html.dark .intro-lead > p:first-of-type { color: #F3F1EE; }
html.dark .intro-lead > p:first-of-type::first-letter { color: #C45B79; }
html.dark .intro-lead strong { color: #F3F1EE; }
@media (max-width: 640px) { .intro-lead > p:first-of-type::first-letter { font-size: 3.4rem; margin-top: .3rem; } }

/* ===== Header KOYU hero üstünde (detay/koyu sayfalar): açık elemanlar ===== */
.hero-dark:not(.header-scrolled) .nav-link { color: rgba(255,255,255,.86); }
.hero-dark:not(.header-scrolled) .nav-link:hover { color: #fff; }
.hero-dark:not(.header-scrolled) #menu-btn span { background-color: #fff; }
.hero-dark:not(.header-scrolled) .theme-switch { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.30); }
.hero-dark:not(.header-scrolled) .theme-switch .ts-thumb { background: #fff; }
.hero-dark:not(.header-scrolled) .logo-light,
.dark-logo:not(.header-scrolled) .logo-light { display: none; }
.hero-dark:not(.header-scrolled) .logo-dark,
.dark-logo:not(.header-scrolled) .logo-dark { display: block; }

/* ===== Mobil menü AÇIKKEN — logo + hamburger rengi header arka planına göre =====
   SADECE header ŞEFFAF (kaydırılmamış → arkada bordo menü görünür) iken beyaz.
   header-scrolled (krem zemin) iken kural UYGULANMAZ → varsayılan koyu logo/hamburger görünür kalır. */
body.menu-open #header:not(.header-scrolled) #menu-btn span { background-color: #fff !important; }
body.menu-open #header:not(.header-scrolled) #header-logo img { filter: brightness(0) invert(1) !important; }
/* Kaydırılmış (krem) header'da menü açıkken hamburger koyu kalsın (hover kırmızısı da olmasın) */
body.menu-open #header.header-scrolled #menu-btn span { background-color: #3A3A3C !important; }

/* ============ HEADER MEGA-DROPDOWN ============ */
.nav-dd-wrap { position: relative; }
.nav-dd-trigger { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { transition: transform .25s ease; opacity: .65; }
.nav-dd-wrap:hover .nav-caret { transform: rotate(180deg); opacity: 1; }
/* görünmez köprü (panel kapanmasın) */
.nav-dd-wrap::after { content: ''; position: absolute; top: 100%; left: -20px; right: -20px; height: 24px; }
.nav-mega {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
    margin-top: 20px; width: 780px; max-width: 90vw;
    background: #fff; border: 1px solid rgba(58,58,60,.10);
    border-radius: 18px; box-shadow: 0 32px 70px -22px rgba(58,58,60,.4);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s; z-index: 100; overflow: hidden;
}
.nav-mega-sm { width: 470px; }
.nav-dd-wrap:hover .nav-mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-mega-inner { display: grid; grid-template-columns: 236px 1fr; }
.nav-mega-aside { background: linear-gradient(155deg,#990338,#6B0226); color: #fff; padding: 28px 24px; display: flex; flex-direction: column; min-width: 0; }
.nav-mega-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.nav-mega-title { font-family: 'Comfortaa', system-ui, sans-serif; font-weight: 800; font-size: 1.2rem; line-height: 1.14; margin-bottom: 14px; text-transform: none; letter-spacing: -.012em; color: #fff; white-space: nowrap; }
.nav-mega-lede { font-size: 12.5px; line-height: 1.65; color: rgba(255,255,255,.78); margin-bottom: auto; text-transform: none; font-weight: 400; letter-spacing: normal; }
.nav-mega-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #fff; transition: gap .25s ease; }
.nav-mega-cta:hover { gap: 13px; }
.nav-mega-grid { padding: 14px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px; max-height: 64vh; overflow-y: auto; }
.nav-mega-grid-1 { grid-template-columns: 1fr; }
.nav-mega-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: normal; color: #3A3A3C; transition: background-color .15s, color .15s; line-height: 1.25; }
.nav-mega-item:hover { background: #F7F6F4; color: #990338; }
.nav-mega-ic { width: 15px; height: 15px; color: #990338; flex-shrink: 0; }
html.dark .nav-mega { background: #2C2C2E; border-color: #4A4A4D; box-shadow: 0 32px 70px -22px rgba(0,0,0,.65); }
html.dark .nav-mega-item { color: #D7D4D0; }
html.dark .nav-mega-item:hover { background: #38383A; color: #fff; }
@media (max-width: 1023px) { .nav-mega { display: none; } }
