/* ========================================
   CREATIF — LAYOUT.CSS
   Header + footer (components/header.html ve
   components/footer.html içindeki stillerin
   ortak dosyası — tüm sayfalar kullanır)
   ======================================== */

/* === HEADER === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(248, 248, 248, 0.68);
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid rgba(16, 32, 56, 0.08);
  box-shadow: 0 8px 32px rgba(16, 32, 56, 0.06);
  z-index: var(--z-nav);
  transition: all var(--duration-normal) var(--ease-out);
}
.site-header.scrolled {
  background: rgba(248, 248, 248, 0.88);
  box-shadow: var(--shadow-soft);
}
@media (max-width: 767px) {
  .site-header { height: var(--nav-height-mobile); }
}
.nav-wrapper {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: var(--space-8);
}
.site-logo { flex-shrink: 0; display: flex; align-items: center; z-index: var(--z-nav); }
.site-logo img { display: block; height: 48px; width: auto; transition: opacity var(--duration-fast) var(--ease-out); }
@media (max-width: 767px) { .site-logo img { height: 40px; } }
.site-logo:hover img { opacity: .7; }
.nav-primary {
  display: none; align-items: center; gap: 6px; list-style: none; margin: 0;
  padding: 10px 12px;
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: var(--glass-blur-sm); backdrop-filter: var(--glass-blur-sm);
  border: 1px solid rgba(16, 32, 56, 0.1);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(16, 32, 56, 0.08), var(--glass-highlight);
}
@media (min-width: 1024px) { .nav-primary { display: flex; } }
.nav-link {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--text-base); font-weight: 600; color: var(--fg-secondary);
  padding: 12px 20px; border-radius: var(--radius-pill);
  transition: all var(--duration-fast) var(--ease-out); position: relative; white-space: nowrap;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 4px; left: 50%;
  width: 0; height: 2px; background: var(--color-red-600);
  transform: translateX(-50%); transition: width var(--duration-normal) var(--ease-out);
}
.nav-link:hover { color: var(--color-red-600); }
.nav-link:hover::after { width: 80%; }
.nav-link.is-active { color: var(--color-red-600); }
.nav-link.is-active::after { width: 80%; }
.nav-link-cta {
  background: linear-gradient(135deg, var(--color-navy-900), var(--color-navy-700)); color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: var(--shadow-tint-blue);
  padding: var(--space-3) var(--space-6);
}
.nav-link-cta::after { display: none; }
.nav-link-cta:hover { background: linear-gradient(135deg, var(--color-red-600), var(--color-orange-600)); border-color: rgba(255,255,255,.3); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-tint-red); }
.nav-link-cta:active { transform: translateY(0); }
.nav-link-arrow { flex-shrink: 0; transition: transform var(--duration-fast) var(--ease-spring); }
.nav-link-cta:hover .nav-link-arrow { transform: translateX(4px); }

/* ---------- HİZMETLER MEGA DROPDOWN (click-to-toggle + hover) ---------- */
.nav-primary { position: relative; }
.has-drop { position: relative; }
.has-drop::after {
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 20px; z-index: 1;
}
.nav-link .chev { transition: transform .25s var(--ease-out); }
.has-drop.open .nav-link .chev, .has-drop:hover .nav-link .chev, .has-drop:focus-within .nav-link .chev { transform: rotate(180deg); }
.nav-drop {
  position: absolute; top: calc(100% + 6px); left: 0;
  width: min(340px, calc(100vw - 32px));
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: 24px;
  box-shadow: var(--glass-highlight), var(--shadow-soft-lg);
  padding: var(--space-4);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), visibility .18s;
  z-index: var(--z-dropdown, 100);
}
.has-drop.open .nav-drop, .has-drop:hover .nav-drop, .has-drop:focus-within .nav-drop {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.nav-drop::before {
  content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; background: transparent;
}
.nav-drop-label {
  display: block; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--color-red-700);
  margin-bottom: 10px; padding: 0 12px;
}
.nav-drop-link {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--text-base); font-weight: 500; color: var(--fg-primary);
  padding: 9px 12px; border-radius: 14px; white-space: nowrap;
  transition: background .15s, color .15s, transform .2s var(--ease-spring);
}
.nav-drop-link b { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-red-700); font-weight: 700; }
.nav-drop-link:hover { background: rgba(16, 32, 56, 0.06); color: var(--color-red-600); transform: translateX(3px); }
.nav-drop-all {
  display: block; margin-top: 8px; padding: 10px 12px; border-radius: 14px;
  font-weight: 700; color: var(--color-navy-900);
  background: rgba(16, 32, 56, 0.05);
  transition: background .2s, color .2s;
}
.nav-drop-all:hover { background: var(--color-navy-900); color: #fff; }

/* 3 seviyeli: disiplin hover flyout */
.disc-item { position: relative; }
.disc-item::after {
  content: ''; position: absolute; top: -8px; left: 100%; width: 20px; height: calc(100% + 16px); z-index: 1;
}
.disc-btn { width: 100%; justify-content: flex-start; }
.disc-btn.is-sel { background: rgba(16, 32, 56, 0.07); color: var(--color-red-600); }
.disc-fly {
  position: absolute; left: calc(100% + 8px); top: -12px; width: 240px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: 20px;
  box-shadow: var(--glass-highlight), var(--shadow-soft-lg);
  padding: 10px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-8px);
  transition: opacity .15s var(--ease-out), transform .15s var(--ease-out), visibility .15s;
  z-index: calc(var(--z-dropdown, 100) + 1);
}
.disc-item:last-child .disc-fly, .disc-item:nth-last-child(2) .disc-fly {
  top: auto; bottom: -12px;
}
.disc-item:hover > .disc-fly, .disc-item.is-hover > .disc-fly, .disc-item:focus-within > .disc-fly {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0);
}
.disc-fly .nav-drop-link { font-size: var(--text-sm); padding: 8px 12px; white-space: normal; }

/* Mobil iç akordeon (disiplin > alt hizmet) */
.m-sub-btn {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px var(--space-2); font-size: var(--text-base); font-weight: 600; color: var(--fg-primary);
  border-bottom: 1px solid var(--border-light); text-align: left;
}
.m-sub-btn .chev { transition: transform .25s var(--ease-out); flex-shrink: 0; }
.m-sub-btn[aria-expanded="true"] { color: var(--color-red-600); }
.m-sub-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.m-sub-panel { list-style: none; margin: 0; padding: 0 0 0 var(--space-3); }
.m-sub-panel[hidden] { display: none; }
.m-sub-panel a { display: block; padding: 9px var(--space-2); font-size: var(--text-sm); color: var(--fg-secondary); border-bottom: 1px solid var(--border-light); }
.m-sub-panel a:hover { color: var(--color-red-600); padding-left: var(--space-4); }
.m-sub-panel a.all-link { font-weight: 700; color: var(--color-navy-900); }

/* ---------- MOBİL AKORDEON ---------- */
.m-acc-btn { width: 100%; background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.m-acc-btn .chev { transition: transform .25s var(--ease-out); }
.m-acc-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.m-acc-btn[aria-expanded="true"] { color: var(--color-red-600); }
.m-acc-panel { list-style: none; margin: 0; padding: 0 0 0 var(--space-2); overflow: hidden; }
.m-acc-panel[hidden] { display: none; }
.m-acc-panel a {
  display: block; padding: 10px var(--space-2);
  font-size: var(--text-base); color: var(--fg-secondary);
  border-bottom: 1px solid var(--border-light);
}
.m-acc-panel a:hover { color: var(--color-red-600); padding-left: var(--space-4); }
.m-acc-label {
  display: block; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--color-red-700);
  padding: 12px var(--space-2) 2px;
}
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: transparent; border: none;
  cursor: pointer; padding: var(--space-2); border-radius: var(--radius-md); z-index: var(--z-nav);
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle-bar { display: block; width: 24px; height: 2px; background: var(--color-navy-900); border-radius: 2px; transition: all var(--duration-normal) var(--ease-out); transform-origin: center; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  /* .site-header has backdrop-filter, which makes it the containing block for
     fixed-position descendants (Safari/Chrome behavior) — top/right/bottom:0
     then resolves against the header's own ~64px box, not the viewport, and
     the panel collapses to header height. height:100vh sidesteps that since
     vh is always viewport-relative regardless of containing block. */
  position: fixed; top: 0; right: 0; height: 100vh; width: 100%; max-width: 400px;
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-left: 1px solid rgba(16,32,56,.1); box-shadow: var(--shadow-xl);
  z-index: calc(var(--z-nav) - 1);
  padding: calc(var(--nav-height-mobile) + var(--space-8)) var(--space-6) var(--space-8);
  overflow-y: auto; transform: translateX(100%);
  transition: transform var(--duration-slower) var(--ease-expo);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile.is-open { transform: translateX(0); }
.nav-mobile-inner { display: flex; flex-direction: column; height: 100%; }
.nav-mobile-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.nav-mobile-link {
  display: block; font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: 600;
  color: var(--fg-primary); padding: var(--space-4) var(--space-2);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--duration-fast) var(--ease-out);
}
.nav-mobile-link:hover { color: var(--color-red-600); padding-left: var(--space-4); border-color: var(--color-red-600); }
.nav-mobile-cta { margin-top: var(--space-4); width: 100%; justify-content: center; }
.nav-mobile-contact { display: flex; flex-direction: column; gap: var(--space-4); padding-top: var(--space-6); border-top: 1px solid var(--border-light); }
.contact-link { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-base); color: var(--fg-secondary); transition: color var(--duration-fast) var(--ease-out); }
.contact-link:hover { color: var(--color-red-600); }
.contact-link svg { flex-shrink: 0; color: var(--color-red-600); }
.scroll-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--border-light); overflow: hidden; }
.scroll-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--color-red-600), var(--color-orange-600)); transform-origin: left; transition: width .1s linear; }

/* === FOOTER === */
.site-footer { background: var(--color-navy-950); color: var(--fg-on-dark); padding: var(--space-40) 0 var(--space-16); position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120%; height: 1px; background: linear-gradient(90deg, transparent, var(--color-navy-700), transparent); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-12); margin-bottom: var(--space-24); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr repeat(4, 1fr); gap: var(--space-16); } }
@media (min-width: 1280px) { .footer-grid { grid-template-columns: 2.5fr 1fr 1fr 1fr 1fr 1.2fr; } }
.footer-brand { max-width: 360px; }
.footer-logo { display: inline-block; margin-bottom: var(--space-6); }
.footer-logo img { display: block; height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .9; transition: opacity var(--duration-fast) var(--ease-out); }
.footer-logo:hover img { opacity: 1; }
.footer-tagline { font-size: var(--text-base); line-height: var(--leading-loose); color: var(--color-gray-400); margin-bottom: var(--space-6); max-width: 280px; }
.footer-social { display: flex; gap: var(--space-3); }
.social-link { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--color-navy-700); border-radius: var(--radius-md); color: var(--color-gray-400); transition: all var(--duration-fast) var(--ease-out); }
.social-link:hover { border-color: var(--color-red-600); color: var(--color-red-600); background: rgba(224,32,32,.1); transform: translateY(-2px); }
.footer-nav { display: flex; flex-direction: column; }
.footer-heading { font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--color-white); margin-bottom: var(--space-5); }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-list a { font-size: var(--text-base); color: var(--color-gray-400); transition: all var(--duration-fast) var(--ease-out); position: relative; padding-left: 0; }
.footer-list a::before { content: ''; position: absolute; left: -12px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--color-red-600); opacity: 0; transform: translateY(-50%) scale(0); transition: all var(--duration-fast) var(--ease-spring); }
.footer-list a:hover { color: var(--color-red-600); padding-left: var(--space-4); }
.footer-list a:hover::before { opacity: 1; transform: translateY(-50%) scale(1); left: 0; }
.footer-contact { display: flex; flex-direction: column; }
.footer-address { display: flex; flex-direction: column; gap: var(--space-5); }
.contact-item { display: flex; gap: var(--space-3); align-items: flex-start; }
.contact-item svg { flex-shrink: 0; color: var(--color-red-600); margin-top: 2px; }
.contact-label { display: block; font-size: var(--text-xs); font-weight: 500; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--color-gray-500); margin-bottom: 2px; }
.contact-item a { color: var(--color-gray-300); transition: color var(--duration-fast) var(--ease-out); }
.contact-item a:hover { color: var(--color-red-600); }
.footer-cta { justify-content: center; text-align: center; }
.footer-bottom { display: flex; flex-direction: column; gap: var(--space-6); padding-top: var(--space-12); border-top: 1px solid var(--color-navy-800); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-legal { display: flex; flex-direction: column; gap: var(--space-4); text-align: center; }
@media (min-width: 768px) { .footer-legal { text-align: left; } }
.footer-legal p { font-size: var(--text-sm); color: var(--color-gray-500); margin: 0; }
.footer-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .footer-legal-links { justify-content: flex-start; } }
.footer-legal-links a { font-size: var(--text-sm); color: var(--color-gray-500); transition: color var(--duration-fast) var(--ease-out); }
.footer-legal-links a:hover { color: var(--color-red-600); }
.footer-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
@media (min-width: 768px) { .footer-badges { justify-content: flex-end; } }
.badge-item { font-size: var(--text-xs); font-weight: 500; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--color-gray-500); transition: color var(--duration-fast) var(--ease-out); }
.badge-item:hover { color: var(--color-gray-300); }
.badge-item + .badge-item::before { content: '·'; margin-right: var(--space-3); opacity: .5; }
