/* =========================================================================
   [FİRMA ADI] — Kurumsal Site Stilleri
   Renk paleti / logo netleştiğinde sadece :root içindeki değişkenleri
   güncellemeniz site genelini otomatik günceller.
   ========================================================================= */

:root {
  /* Yangın güvenliği temalı marka renkleri (TODO: gerçek logo/marka rengiyle değiştirin) */
  --color-primary: #b3211a;       /* ana kırmızı */
  --color-primary-dark: #8a1913;
  --color-accent: #f2994a;        /* alev turuncusu — CTA vurguları */
  --color-dark: #12181f;          /* lacivert-siyah, header/footer */
  --color-dark-2: #1c242e;
  --color-text: #23282f;
  --color-muted: #6a7480;
  --color-border: #e6e8eb;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f7f9;
  --color-success: #1f8a4c;

  --font-base: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(18, 24, 31, 0.08);
  --shadow-lg: 0 20px 45px rgba(18, 24, 31, 0.16);
  --container: 1180px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--color-muted); }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-primary);
  color: #fff; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline { border-color: #fff; color: #fff; }
.btn--outline:hover { background: #fff; color: var(--color-dark); }
.btn--dark { background: var(--color-dark); color: #fff; }
.btn--block { width: 100%; }

/* ---------- Splash / açılış animasyonu ---------- */
.splash {
  position: fixed; inset: 0; z-index: 9999; background: var(--color-dark);
  display: flex; align-items: center; justify-content: center;
  animation: splash-hide .6s ease 1.5s forwards;
}
.splash__mark { display: flex; flex-direction: column; align-items: center; gap: 14px; color: #fff; }
.splash__flame {
  width: 56px; height: 56px; color: var(--color-primary);
  animation: splash-flame 1.1s ease-in-out infinite alternate;
}
.splash__title {
  font-weight: 800; letter-spacing: .04em; font-size: 1.1rem; text-transform: uppercase;
  opacity: 0; animation: splash-text .5s ease .3s forwards;
}
@keyframes splash-flame { from { transform: scale(1); opacity: .85; } to { transform: scale(1.15); opacity: 1; } }
@keyframes splash-text { to { opacity: 1; } }
@keyframes splash-hide { to { opacity: 0; visibility: hidden; pointer-events: none; } }
body.has-splash { overflow: hidden; }
body.has-splash.splash-done { overflow: auto; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500; background: rgba(18,24,31,.97);
  backdrop-filter: blur(6px); height: var(--header-h);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.05rem; }
.brand__logo { height: 38px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > ul { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: #dfe3e8; font-weight: 500; font-size: .95rem; padding: 8px 2px; }
.site-nav > ul > li > a:hover { color: #fff; }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; background: #fff; min-width: 240px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { color: var(--color-text); padding: 10px 12px; display: block; border-radius: 6px; font-size: .9rem; }
.dropdown a:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.nav-cta { background: var(--color-primary); color: #fff !important; padding: 10px 20px; border-radius: 999px; font-weight: 600; }
.nav-cta:hover { background: var(--color-primary-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--color-dark); flex-direction: column; align-items: stretch;
    padding: 24px 20px; transform: translateX(100%); transition: transform .25s ease;
    overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: var(--color-dark-2); display: none; }
  .has-dropdown.is-open .dropdown { display: block; }
  .nav-cta { margin-top: 16px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-2) 60%, #2a1613 100%);
  color: #fff; padding: 90px 0 70px; position: relative; overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero__eyebrow { color: var(--color-accent); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
.hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 12px 0 18px; }
.hero p.lead { color: #cfd5db; font-size: 1.05rem; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero__badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hero__badge { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); padding: 8px 14px; border-radius: 999px; font-size: .8rem; color: #e7eaee; }
.hero__panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 24px; }

@media (max-width: 860px) { .hero__inner { grid-template-columns: 1fr; } }

/* ---------- İstatistik şeridi ---------- */
.stats { background: var(--color-primary); color: #fff; padding: 34px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stats__num { font-size: 2.1rem; font-weight: 800; }
.stats__label { font-size: .85rem; opacity: .9; }

/* ---------- Genel bölüm düzeni ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--color-bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section__eyebrow { color: var(--color-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- Hizmet kartları ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .18s ease, box-shadow .18s ease; display: block;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card__icon {
  width: 52px; height: 52px; border-radius: 14px; background: #fbeceb; color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.service-card p { font-size: .92rem; margin-bottom: 0; }
.service-card__more { display: inline-block; margin-top: 14px; color: var(--color-primary); font-weight: 600; font-size: .88rem; }

/* ---------- Hizmet detay sayfası ---------- */
.service-hero { background: var(--color-bg-alt); padding: 50px 0; border-bottom: 1px solid var(--color-border); }
.breadcrumb { font-size: .85rem; color: var(--color-muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--color-primary); }
.service-detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .service-detail { grid-template-columns: 1fr; } }
.offer-form {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 20px);
}
.offer-form h3 { margin-bottom: 4px; }
.offer-form p { font-size: .88rem; }
.related-posts { margin-top: 20px; }
.related-posts a { color: var(--color-primary); font-weight: 600; }

/* ---------- Form ---------- */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.form-note { font-size: .78rem; color: var(--color-muted); margin-top: 10px; }
.form-success { background: #e9f7ee; color: var(--color-success); padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .9rem; }
.form-error { background: #fdeceb; color: var(--color-primary-dark); padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .9rem; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.post-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.post-card__img { aspect-ratio: 16/10; background: var(--color-bg-alt); }
.post-card__body { padding: 20px; }
.post-card__meta { font-size: .78rem; color: var(--color-muted); margin-bottom: 8px; }
.post-card h3 { font-size: 1.05rem; }
.post-article { max-width: 760px; margin: 0 auto; }
.post-article__cover { border-radius: var(--radius); aspect-ratio: 16/8; background: var(--color-bg-alt); margin-bottom: 28px; }
.post-article__body { font-size: 1.02rem; }
.post-article__body h2 { margin-top: 1.6em; font-size: 1.35rem; }
.post-article__body p { color: var(--color-text); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.testi-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; }
.testi-card__stars { color: var(--color-accent); margin-bottom: 10px; font-size: .95rem; }
.testi-card__name { font-weight: 700; margin-top: 12px; }
.testi-card__source { font-size: .8rem; color: var(--color-muted); }
.testi-empty { text-align: center; color: var(--color-muted); padding: 40px 20px; border: 1px dashed var(--color-border); border-radius: var(--radius); }

/* ---------- Galeri ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-grid figure { margin: 0; aspect-ratio: 4/3; background: var(--color-bg-alt); border-radius: var(--radius-sm); overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-grid a:hover img { transform: scale(1.05); }

/* ---------- Şube Bulucu (il/ilçe seçici + dekoratif harita) ---------- */
#sube-bul { scroll-margin-top: calc(var(--header-h) + 16px); }
.branch-finder { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .branch-finder { grid-template-columns: 1fr; } }
.branch-finder__controls { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 26px; }
.branch-finder__placeholder { font-size: .88rem; color: var(--color-muted); margin-top: 6px; margin-bottom: 0; }
.branch-finder__result { background: var(--color-bg-alt); border-radius: var(--radius-sm); padding: 18px; margin-top: 18px; }
.branch-finder__result-eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-primary); font-weight: 700; margin-bottom: 4px; }
.branch-finder__result h3 { margin-bottom: 6px; font-size: 1.05rem; }
.branch-finder__result p { margin-bottom: 4px; font-size: .9rem; }
.branch-finder__map { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 18px; }
.branch-finder__map svg { width: 100%; height: auto; display: block; }
.branch-finder__map-note { font-size: .76rem; color: var(--color-muted); margin: 10px 0 0; text-align: center; }
.turkiye-harita__outline { fill: var(--color-bg-alt); stroke: var(--color-border); stroke-width: 1.4; }
.sube-pin circle { fill: var(--color-primary); stroke: #fff; stroke-width: 1.5; }
.sube-pin text { font-size: 9px; font-weight: 700; fill: var(--color-dark); font-family: var(--font-base); }
.secili-il-pin circle { fill: var(--color-accent); }
.secili-il-pin__halo { fill: none; stroke: var(--color-accent); stroke-width: 2; opacity: .55; animation: pin-pulse 1.6s ease-out infinite; }
@keyframes pin-pulse { from { r: 6; opacity: .6; } to { r: 16; opacity: 0; } }

/* ---------- İletişim ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.branch-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; scroll-margin-top: calc(var(--header-h) + 16px); }
.branch-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.branch-card .map-embed { margin-top: 14px; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16/9; background: var(--color-bg-alt); }
.branch-card .map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Kurumsal / yasal ---------- */
.legal-block { border-top: 1px solid var(--color-border); padding-top: 24px; margin-top: 24px; }
.legal-block h3 { font-size: 1.1rem; }
.doc-list a { display: inline-flex; align-items: center; gap: 8px; color: var(--color-primary); font-weight: 600; margin: 6px 14px 6px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-dark); color: #c6ccd3; padding: 56px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__col h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer__links li { margin-bottom: 8px; }
.footer__links a:hover { color: #fff; }
.brand--footer { margin-bottom: 12px; }
.footer__branch { font-style: normal; font-size: .88rem; margin-bottom: 14px; display: block; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 20px 0; font-size: .8rem; }

/* ---------- Hızlı erişim (sol) + yukarı çık (sağ) ---------- */
.quick-access { position: fixed; left: 22px; bottom: 22px; z-index: 600; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
.quick-access__main {
  width: 58px; height: 58px; border-radius: 50%; background: var(--color-primary); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  transition: transform .2s ease, background .2s ease;
}
.quick-access__main:hover { transform: scale(1.06); }
.quick-access__main .icon { width: 24px; height: 24px; }
.quick-access__main .icon--close { display: none; }
.quick-access.is-open .quick-access__main .icon--chat { display: none; }
.quick-access.is-open .quick-access__main .icon--close { display: block; }
.quick-access__menu {
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s ease;
}
.quick-access.is-open .quick-access__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.quick-access__item {
  display: flex; align-items: center; gap: 10px; background: #fff; color: var(--color-text);
  padding: 10px 16px 10px 10px; border-radius: 999px; box-shadow: var(--shadow); font-size: .85rem; font-weight: 600;
}
.quick-access__item svg { width: 20px; height: 20px; flex-shrink: 0; }
.quick-access__item--whatsapp svg { color: #25d366; }
.quick-access__item--phone svg { color: var(--color-primary); }
.quick-access__item--mail svg { color: var(--color-dark); }

.scroll-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 600;
  width: 48px; height: 48px; border-radius: 50%; background: var(--color-dark); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .2s ease;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top svg { width: 20px; height: 20px; }

/* ---------- Scroll-reveal animasyonu ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
