/* ZAİM TUR kurumsal web sitesi — kırmızı tema */
:root {
  --primary: #C0141E;
  --dark: #8A0F16;
  --accent: #E23A2E;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --bg: #ffffff;
  --soft: #f7f7f8;
  --border: #e6e6e9;
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 15px; border: 2px solid transparent; cursor: pointer; transition: .18s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #ffeaea; }

/* Header */
header.site { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 1px 12px rgba(0,0,0,.04); }
.hdr { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.hdr .logo img { height: 64px; }
.hdr nav { display: flex; gap: 26px; align-items: center; }
.hdr nav > a, .hdr nav .sub-toggle { font-weight: 600; color: #333; font-size: 15px; }
.hdr nav > a:hover, .hdr nav .sub-toggle:hover { color: var(--primary); }
/* Açılır alt menü (dropdown) */
.has-sub { position: relative; }
.has-sub .caret { font-size: 11px; opacity: .6; }
.has-sub .submenu { position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.12); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .16s; z-index: 120; }
.has-sub:hover .submenu, .has-sub.open .submenu { opacity: 1; visibility: visible; transform: translateY(4px); }
.has-sub .submenu a { display: block; padding: 10px 14px; border-radius: 8px; color: #333; font-size: 14.5px; font-weight: 500; }
.has-sub .submenu a:hover { background: var(--soft); color: var(--primary); }
.hdr .right { display: flex; align-items: center; gap: 14px; }
.hdr .phone { font-weight: 700; color: var(--primary); font-size: 15px; }
.menu-toggle { display: none; background: none; border: none; color: var(--primary); cursor: pointer; padding: 6px; line-height: 0; }
.menu-toggle svg { width: 28px; height: 28px; display: block; }
.menu-toggle .ic-close { display: none; }
.menu-toggle.on .ic-open { display: none; }
.menu-toggle.on .ic-close { display: block; }

/* Hero slider — responsive, dikeyde ortalı */
.hero { position: relative; color: #fff; overflow: hidden; }
.slides { position: relative; min-height: clamp(420px, 68vh, 660px); background: linear-gradient(135deg, #7a0f14 0%, #C0141E 55%, #E23A2E 100%); }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity .8s; pointer-events: none;
  background: linear-gradient(135deg, #7a0f14 0%, #C0141E 55%, #E23A2E 100%); }
.slide.active { opacity: 1; pointer-events: auto; }
.slide .container { display: flex; }
.slide-inner { max-width: 640px; position: relative; z-index: 2; padding: 30px 0; width: 100%; }
/* Yazı hizası (admin ayarı): sola / ortaya / sağa — tüm slaytlar tutarlı */
.slide[data-align="left"]   .slide-inner { margin-right: auto; text-align: left; }
.slide[data-align="center"] .slide-inner { margin: 0 auto; text-align: center; }
.slide[data-align="right"]  .slide-inner { margin-left: auto; text-align: right; }
.slide h1 { font-size: clamp(28px, 4.4vw, 48px); line-height: 1.15; margin-bottom: 16px; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.slide p { font-size: clamp(15px, 2vw, 19px); opacity: .96; margin-bottom: 26px; text-shadow: 0 1px 8px rgba(0,0,0,.2); }
.dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.dots span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.dots span.on { background: #fff; }

/* Stats */
.stats { background: var(--dark); color: #fff; }
.stats .row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; padding: 28px 0; text-align: center; }
.stats .value { font-size: 34px; font-weight: 800; }
.stats .label { font-size: 14px; opacity: .85; }

/* Sections */
section { padding: 70px 0; }
/* Sayfa banner şeridi (tema rengi veya görsel) */
.page-banner { background: linear-gradient(135deg, #7a0f14 0%, var(--primary) 58%, var(--accent) 100%); color: #fff; padding: 60px 0; position: relative; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 82% 25%, rgba(255,255,255,.10), transparent 45%); pointer-events: none; }
.page-banner .container { position: relative; z-index: 2; }
.page-banner .pb-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 800; opacity: .9; }
.page-banner h1 { font-size: clamp(28px, 4vw, 42px); margin-top: 8px; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.page-view { padding: 48px 0 64px; min-height: 30vh; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.sec-head .kicker { color: var(--primary); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.sec-head h2 { font-size: 34px; margin: 8px 0 12px; }
.sec-head p { color: var(--muted); font-size: 16px; }

.services { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.svc { background: var(--soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: .2s; }
.svc:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(192,20,30,.12); border-color: var(--primary); }
.svc .ic { width: 54px; height: 54px; border-radius: 12px; background: #ffe9e9; color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.svc h3 { font-size: 18px; margin-bottom: 8px; }
.svc p { color: var(--muted); font-size: 14.5px; }

.about { background: var(--soft); }
.about .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.about h2 { font-size: 32px; margin-bottom: 16px; }
.about p { color: #444; margin-bottom: 14px; }
.about .visual { background: linear-gradient(135deg, var(--primary), var(--dark)); border-radius: 18px; min-height: 320px; display: flex; align-items: center; justify-content: center; padding: 30px; }
.about .visual img { max-height: 130px; filter: brightness(0) invert(1); opacity: .95; }
.about .visual-photo { background-size: cover; background-position: center; padding: 0; }
.page-image { width: 100%; max-height: 380px; object-fit: cover; border-radius: 14px; margin-bottom: 22px; }
.map-wrap { grid-column: 1 / -1; margin-top: 12px; }
.map-link { display: inline-block; margin-top: 8px; color: var(--primary); font-weight: 600; font-size: 14px; }
/* Galeri */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 30px; }
.gitem { display: block; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--soft); box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,.05)); transition: .2s; }
.gitem:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(192,20,30,.14); }
.gitem img { width: 100%; height: 240px; object-fit: contain; background: #fff; padding: 8px; }
/* Başvuru formu */
.apply-form .af-field { margin-bottom: 4px; }
.apply-form label { display: block; font-size: 13px; font-weight: 600; color: #444; margin: 12px 0 5px; }
.apply-form input, .apply-form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 9px; font-family: inherit; font-size: 14px; outline: none; }
.apply-form input:focus, .apply-form textarea:focus { border-color: var(--primary); }

/* İletişim */
.contact .grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
.info-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.info-card .ic { width: 44px; height: 44px; border-radius: 10px; background: #ffe9e9; color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-card b { display: block; font-size: 15px; }
.info-card span { color: var(--muted); font-size: 14px; }
.cform { background: var(--soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.cform label { font-size: 13px; font-weight: 600; color: #444; display: block; margin: 10px 0 5px; }
.cform input, .cform textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 9px; font-family: inherit; font-size: 14px; outline: none; }
.cform input:focus, .cform textarea:focus { border-color: var(--primary); }

/* Footer */
footer.site { background: #17181c; color: #cbd0d8; padding: 50px 0 20px; }
footer.site .grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 34px; }
.foot-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 10px; }
.foot-logo img { display: block; }
footer.site .page-view img, footer.site .visual img { }
footer.site h4 { color: #fff; margin-bottom: 14px; font-size: 16px; }
footer.site a { color: #cbd0d8; display: block; padding: 4px 0; font-size: 14px; }
footer.site a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid #2a2c33; margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; font-size: 13px; color: #8a909b; flex-wrap: wrap; gap: 8px; }
.foot-bottom a { color: #8a909b; display: inline; }

/* Footer mobil uygulama indirme butonları */
.foot-apps { margin-top: 34px; border-top: 1px solid #2a2c33; padding-top: 24px; }
.foot-apps h4 { color: #fff; margin-bottom: 16px; font-size: 16px; }
footer.site .app-btns { display: flex; flex-wrap: wrap; gap: 16px; }
footer.site .app-btn { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary, #C0141E), var(--accent, #E23A2E));
  color: #fff; text-decoration: none; min-width: 240px; transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 18px rgba(192,20,30,.3); }
footer.site .app-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(192,20,30,.42); color: #fff; }
footer.site .app-btn svg { width: 34px; height: 34px; flex: 0 0 auto; stroke: #fff; }
footer.site .app-btn span { display: flex; flex-direction: column; line-height: 1.3; padding: 0; }
footer.site .app-btn b { font-size: 15.5px; font-weight: 700; color: #fff; }
footer.site .app-btn small { font-size: 12.5px; opacity: .88; color: #fff; }
@media (max-width: 560px) { footer.site .app-btn { flex: 1 1 100%; min-width: 0; } }

/* Login modal */
.mdl { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none; align-items: center; justify-content: center; z-index: 300; padding: 20px; }
.mdl.open { display: flex; }
.mdl-box { background: #fff; border-radius: 16px; padding: 26px 28px; width: 100%; max-width: 400px; max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mdl-box .logo { text-align: center; margin-bottom: 6px; }
.mdl-box .logo img { height: 40px; margin: 0 auto; }
.mdl-box h3 { text-align: center; margin-bottom: 4px; }
.mdl-box .sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.mdl-box label { font-size: 12px; font-weight: 600; color: #444; display: block; margin: 11px 0 5px; }
.mdl-box input, .mdl-box select, .mdl-box textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 9px; font-size: 14px; outline: none; font-family: inherit; background: #fff; color: inherit; box-sizing: border-box; }
.mdl-box select { height: 42px; }
.mdl-box textarea { resize: vertical; min-height: 60px; }
.mdl-box input:focus, .mdl-box select:focus, .mdl-box textarea:focus { border-color: var(--primary); }
.reg-steps { position: sticky; top: -26px; background: #fff; padding-top: 4px; z-index: 2; }
@media (max-width: 560px) {
  .mdl { padding: 0; align-items: stretch; }
  .mdl-box { max-width: 100%; border-radius: 0; min-height: 100vh; max-height: 100vh; padding: 20px 16px 30px; }
  .reg-steps { top: 0; }
}
.mdl-err { background: #fef2f2; color: var(--primary); border-radius: 8px; padding: 9px 12px; font-size: 13px; margin-bottom: 10px; display: none; }
.mdl-close { float: right; cursor: pointer; color: var(--muted); font-size: 22px; margin-top: -10px; }

@media (max-width: 900px) {
  .hdr nav, .hdr .phone { display: none; }
  .menu-toggle { display: block; }
  .services, .stats .row { grid-template-columns: 1fr 1fr; }
  .about .grid, .contact .grid, footer.site .grid { grid-template-columns: 1fr; }
  .slide h1 { font-size: 34px; }
  .mobile-nav { display: none; flex-direction: column; background: #fff; border-top: 1px solid var(--border);
    max-height: calc(100vh - 76px); overflow-y: auto; box-shadow: 0 16px 30px rgba(0,0,0,.14); }
  .mobile-nav.open { display: flex; }
  /* Doğrudan bağlantılar (Ana Sayfa, İletişim, Veli Girişi) */
  .mobile-nav > a { display: block; color: #222; text-decoration: none; padding: 15px 22px;
    border-bottom: 1px solid var(--border); font-weight: 600; font-size: 15.5px; }
  .mobile-nav > a:last-child { color: var(--primary); font-weight: 700; }
  /* Akordeon gruplar (varsayılan kapalı) */
  .m-acc { border-bottom: 1px solid var(--border); }
  .m-acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between;
    background: none; border: 0; padding: 15px 22px; font-weight: 600; font-size: 15.5px; color: #222;
    cursor: pointer; text-align: left; }
  .m-acc-caret { width: 20px; height: 20px; flex: 0 0 auto; color: var(--muted); transition: transform .2s ease; }
  .m-acc.open .m-acc-head { color: var(--primary); }
  .m-acc.open .m-acc-caret { transform: rotate(180deg); color: var(--primary); }
  .m-acc-body { display: none; padding: 2px 0 8px; background: var(--soft); }
  .m-acc.open .m-acc-body { display: block; }
  .m-acc-body a { display: block; color: #333; text-decoration: none; padding: 11px 22px 11px 34px; font-size: 14.5px; font-weight: 500; }
  .m-acc-body a:active { background: #eef1f5; color: var(--primary); }
}
@media (min-width: 901px) { .mobile-nav { display: none; } }
