:root {
  --red: #d0021b;
  --red-dark: #a80016;
  --navy: #1a2340;
  --navy-light: #243058;
  --gray: #f5f6f8;
  --text: #222831;
  --muted: #6b7280;
  --white: #ffffff;
  --border: #e2e5ec;
  --transition: 0.3s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: 'Barlow', sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* TOPBAR */
.topbar { background: var(--navy); color: rgba(255,255,255,0.75); font-size: 13px; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: rgba(255,255,255,0.75); transition: color var(--transition); }
.topbar a:hover { color: var(--red); }
.topbar-left, .topbar-right { display: flex; gap: 20px; align-items: center; }
.topbar i { margin-right: 5px; color: var(--red); }

/* HEADER */
header { background: var(--white); box-shadow: 0 2px 20px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 52px; }
nav { display: flex; align-items: center; gap: 6px; }
nav > a {
  font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 15px;
  color: var(--navy); padding: 8px 16px; border-radius: 4px;
  transition: all var(--transition); position: relative;
}
nav > a:hover, nav > a.active { color: var(--red); }
nav > a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 16px; right: 16px;
  height: 2px; background: var(--red); border-radius: 2px;
}
.nav-cta { background: var(--red); color: var(--white) !important; padding: 10px 22px; border-radius: 4px; font-weight: 700; margin-left: 8px; }
.nav-cta:hover { background: var(--red-dark) !important; }
.hamburger { display: none; background: none; border: none; cursor: pointer; font-size: 22px; color: var(--navy); }
.mobile-menu { display: none; flex-direction: column; background: var(--white); padding: 16px 20px; border-top: 1px solid var(--border); }
.mobile-menu > a { padding: 10px 0; font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 15px; color: var(--navy); border-bottom: 1px solid var(--border); }
.mobile-menu > a:hover { color: var(--red); }
.mobile-menu.open { display: flex; }

/* MEGA MENU */
.nav-hizmetler { position: relative; }
.nav-hizmetler > a { display: flex; align-items: center; gap: 5px; cursor: pointer; font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 15px; color: var(--navy); padding: 8px 16px; border-radius: 4px; transition: all var(--transition); position: relative; }
.nav-hizmetler > a:hover, .nav-hizmetler > a.active { color: var(--red); }
.nav-hizmetler > a.active::after { content: ''; position: absolute; bottom: -2px; left: 16px; right: 16px; height: 2px; background: var(--red); border-radius: 2px; }
.nav-arrow { font-size: 10px; transition: transform 0.3s ease; display: inline-block; }
.nav-hizmetler:hover > a .nav-arrow { transform: rotate(180deg); }
.mega-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 820px; background: var(--white); border-radius: 12px;
  box-shadow: 0 24px 80px rgba(26,35,64,0.18), 0 4px 16px rgba(0,0,0,0.06);
  padding: 28px 28px 28px 28px;
  padding-top: 36px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 9999; border-top: 3px solid var(--red);
}
/* köprü köprü — fare boşlukta kaybolmasın */
.mega-menu::after {
  content: ''; position: absolute; top: -18px; left: 0; right: 0; height: 18px;
}
.mega-menu::before {
  content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 8px solid var(--red);
}
.nav-hizmetler:hover .mega-menu { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.mega-col-title {
  font-family: 'Barlow', sans-serif; font-size: 11px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; color: var(--red);
  padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.mega-col-title i { display: none; }
.mega-items { display: flex; flex-direction: column; gap: 2px; }
.mega-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 7px; font-size: 13.5px; font-weight: 500; color: var(--text);
  transition: background 0.18s ease, color 0.18s ease;
}
.mega-item::before {
  content: '–'; color: var(--muted); font-size: 13px; flex-shrink: 0;
  transition: color 0.18s ease;
}
.mega-item:hover { background: rgba(208,2,27,0.06); color: var(--red); }
.mega-item:hover::before { color: var(--red); }
.mega-item i { display: none; }

/* MOBILE SUB MENU */
.mobile-menu-section { border-bottom: 1px solid var(--border); }
.mobile-menu-section-title {
  padding: 10px 0; font-family: 'Barlow', sans-serif; font-weight: 700;
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red);
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu-section-title i { font-size: 11px; transition: transform 0.3s; }
.mobile-menu-section-title.open i { transform: rotate(180deg); }
.mobile-sub-items { display: none; flex-direction: column; padding: 0 0 8px 12px; }
.mobile-sub-items.open { display: flex; }
.mobile-sub-items > a { padding: 8px 0; font-size: 13px; color: var(--muted); border-bottom: none; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.mobile-sub-items > a i { display: none; }
.mobile-sub-items > a::before { content: '–'; color: var(--muted); flex-shrink: 0; }
.mobile-sub-items > a:hover { color: var(--red); }
.mobile-sub-items > a:hover::before { color: var(--red); }

/* Level 2 accordion (kategori başlıkları) */
.mobile-sub-section { margin: 4px 0; border-bottom: none; }
.mobile-sub-section-title {
  font-size: 12px !important;
  letter-spacing: 0.5px !important;
  color: var(--navy) !important;
  background: var(--gray);
  border-radius: 6px;
  padding: 9px 12px !important;
  margin-bottom: 2px;
  gap: 8px;
}
.mobile-sub-section-title i { display: none; }
.mobile-sub-section-title::before { content: ''; }
.mobile-sub-section-title.open { background: rgba(208,2,27,0.06); color: var(--red) !important; }
.mobile-sub-sub-items { padding: 4px 0 8px 16px !important; }
.mobile-sub-sub-items a { padding: 7px 0; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.mobile-sub-sub-items a i { display: none; }
.mobile-sub-sub-items a::before { content: '–'; color: var(--muted); flex-shrink: 0; font-size: 12px; }
.mobile-sub-sub-items a:hover { color: var(--red); }
.mobile-sub-sub-items a:hover::before { color: var(--red); }

/* FOOTER */
footer { background: var(--navy); color: rgba(255,255,255,0.7); }
.footer-top { padding: 70px 0 50px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-brand img { height: 46px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; line-height: 1.75; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 36px; height: 36px; background: rgba(255,255,255,0.08); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); transition: all var(--transition); }
.footer-socials a:hover { background: var(--red); color: var(--white); }
.footer-col h4 { font-family: 'Barlow', sans-serif; font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color var(--transition); display: flex; align-items: center; gap: 8px; }
.footer-col ul li a:hover { color: var(--red); }
.footer-col ul li a i { font-size: 12px; color: var(--red); }
.contact-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.contact-item i { color: var(--red); font-size: 15px; margin-top: 2px; flex-shrink: 0; }
.contact-item span { font-size: 14px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.45); }

/* ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: block; }
  .topbar-left { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}