/* ==========================================================================
   Seraş Servis Organizasyonları A.Ş. — statik site stilleri
   Harici bağımlılık yok: font, CDN, script kütüphanesi kullanılmaz.
   ========================================================================== */

:root {
  --bg:            #ffffff;
  --bg-alt:        #f6f7f9;
  --bg-sunken:     #eceef1;
  --text:          #1a2230;
  --text-muted:    #5a6675;
  --border:        #dde1e7;
  --brand:         #1b3874;
  --brand-soft:    #e9eefa;
  --accent:        #c2703a;
  --accent-hover:  #a85c2b;
  --on-brand:      #ffffff;
  --shadow:        0 1px 2px rgba(16, 32, 52, .06), 0 8px 24px rgba(16, 32, 52, .07);
  --shadow-lg:     0 2px 4px rgba(16, 32, 52, .08), 0 16px 48px rgba(16, 32, 52, .12);
  --radius:        10px;
  --radius-lg:     16px;
  --maxw:          1160px;
  --gutter:        16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:           #10151d;
    --bg-alt:       #161d27;
    --bg-sunken:    #1d2632;
    --text:         #e8ecf2;
    --text-muted:   #a3aebd;
    --border:       #2a3542;
    --brand:        #7fa8e8;
    --brand-soft:   #17263f;
    --accent:       #e08d54;
    --accent-hover: #f0a068;
    --on-brand:     #0b1016;
    --shadow:       0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg:    0 2px 4px rgba(0, 0, 0, .5), 0 16px 48px rgba(0, 0, 0, .45);
  }
}

:root[data-theme="dark"] {
  --bg:           #10151d;
  --bg-alt:       #161d27;
  --bg-sunken:    #1d2632;
  --text:         #e8ecf2;
  --text-muted:   #a3aebd;
  --border:       #2a3542;
  --brand:        #7fa8e8;
  --brand-soft:   #17263f;
  --accent:       #e08d54;
  --accent-hover: #f0a068;
  --on-brand:     #0b1016;
  --shadow:       0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-lg:    0 2px 4px rgba(0, 0, 0, .5), 0 16px 48px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 2rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1.1em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Üst bar ---------- */

/* Üst bar her iki temada da --brand üzerine --on-brand kullanır:
   açık temada koyu lacivert üzerine beyaz, koyu temada açık mavi üzerine
   neredeyse siyah. Böylece kontrast tema değişiminden etkilenmez. */
.topbar {
  background: var(--brand);
  color: var(--on-brand);
  font-size: .86rem;
  font-weight: 500;
}

.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  align-items: center; justify-content: flex-end;
  min-height: 40px;
}
.topbar a { color: inherit; text-decoration: none; opacity: .92; }
.topbar a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Başlık / menü ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--bg); } }

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 70px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-logo {
  width: auto; height: 40px; flex: none;
}
/* Logo koyu zeminde biraz sönük kaldığı için hafifçe açılır */
:root[data-theme="dark"] .brand-logo,
:root[data-theme="dark"] .footer-logo { filter: brightness(1.28) saturate(1.05); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo,
  :root:not([data-theme="light"]) .footer-logo { filter: brightness(1.28) saturate(1.05); }
}

.footer-logo { width: auto; height: 38px; margin-bottom: 14px; }

@media (max-width: 560px) {
  .brand-logo { height: 34px; }
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 11px; cursor: pointer; color: inherit;
}
.nav-toggle svg { display: block; width: 22px; height: 22px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: block; padding: 9px 13px; border-radius: 8px;
  text-decoration: none; color: var(--text); font-size: .95rem; font-weight: 500;
}
.nav a:hover { background: var(--bg-alt); color: var(--text); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--brand-soft); font-weight: 600; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 14px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; border-radius: 8px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate;
  background: var(--brand); color: #fff;
  padding: clamp(56px, 4vw + 36px, 104px) 0;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1000px 420px at 82% -10%, rgba(194, 112, 58, .28), transparent 62%),
    radial-gradient(760px 380px at 8% 110%, rgba(64, 110, 205, .38), transparent 60%),
    linear-gradient(160deg, #1b3874 0%, #0e1f45 100%);
  background-color: #1b3874;
}
.hero h1 { color: #fff; max-width: 17ch; margin-bottom: .35em; }
.hero p { color: rgba(255, 255, 255, .88); font-size: 1.12rem; max-width: 56ch; margin-bottom: 1.6em; }
.hero-eyebrow {
  display: inline-block; margin-bottom: 18px;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: #f0b78c;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 9px;
  font-weight: 600; font-size: .97rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .42); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Sayfa başlığı (iç sayfalar) ---------- */

.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 44px 0 38px; }
.page-head h1 { margin-bottom: .2em; }
.page-head p  { color: var(--text-muted); margin: 0; max-width: 62ch; }

.breadcrumb { font-size: .84rem; color: var(--text-muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb span { margin: 0 7px; opacity: .55; }

/* ---------- Bölümler ---------- */

section { padding: clamp(44px, 3vw + 28px, 78px) 0; }
section.tight { padding-block: clamp(32px, 2vw + 22px, 52px); }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head p { color: var(--text-muted); margin-bottom: 0; }

/* ---------- Hizmet kartları ---------- */

.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); color: inherit; }
.card-img { aspect-ratio: 16 / 10; background: var(--bg-sunken); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--text-muted); font-size: .95rem; margin-bottom: 1.1em; flex: 1; }
.card-more { font-weight: 600; font-size: .92rem; color: var(--accent); }

/* ---------- İçerik gövdesi ---------- */

.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--accent); }

.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .7em; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

.callout {
  background: var(--brand-soft); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin: 1.6em 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--text); }

.qa { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 18px; }
.qa h3 { color: var(--accent); font-size: 1rem; text-transform: none; margin-bottom: .3em; }
.qa p { margin-bottom: 0; color: var(--text-muted); }

/* ---------- İstatistik şeridi ---------- */

.stats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { text-align: center; padding: 22px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat-lbl { font-size: .88rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- Galeri ---------- */

.gallery {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.gallery button {
  padding: 0; border: 1px solid var(--border); background: var(--bg-sunken);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  aspect-ratio: 3 / 2; transition: transform .16s ease, border-color .16s ease;
}
.gallery button:hover { transform: scale(1.02); border-color: var(--accent); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

dialog.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 96vw; max-height: 96vh;
}
dialog.lightbox::backdrop { background: rgba(8, 12, 18, .88); }
dialog.lightbox img { max-width: 96vw; max-height: 86vh; width: auto; border-radius: var(--radius); }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 4px 0; color: #fff; font-size: .9rem; }
.lb-bar button {
  background: rgba(255, 255, 255, .14); color: #fff; border: 0;
  border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: .9rem; font-weight: 600;
}
.lb-bar button:hover { background: rgba(255, 255, 255, .26); }

/* ---------- İletişim ---------- */

.contact-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.info-list li:last-child { border-bottom: 0; }
.info-ico { flex: none; width: 22px; color: var(--accent); padding-top: 3px; }
.info-ico svg { width: 22px; height: 22px; display: block; }
.info-k { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.info-v { font-weight: 600; }
.info-v a { color: var(--text); text-decoration: none; }
.info-v a:hover { color: var(--accent); text-decoration: underline; }

.cta-panel {
  background: var(--brand); color: var(--on-brand);
  border-radius: var(--radius-lg); padding: 32px;
}
.cta-panel h2 { color: inherit; }
.cta-panel p  { color: inherit; opacity: .85; }
.cta-panel .btn-ghost { color: inherit; border-color: currentColor; opacity: .9; }
.cta-panel .btn-ghost:hover { color: inherit; background: rgba(127, 127, 127, .18); }

/* ---------- Alt bilgi ---------- */

.site-footer {
  background: var(--bg-sunken); border-top: 1px solid var(--border);
  padding: 46px 0 26px; font-size: .92rem;
}
.footer-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 30px; }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer p { color: var(--text-muted); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  color: var(--text-muted); font-size: .86rem;
}

/* ---------- Yardımcılar ---------- */

.theme-toggle {
  background: none; border: 1px solid var(--border); color: inherit;
  border-radius: 8px; width: 38px; height: 38px; cursor: pointer;
  display: grid; place-items: center; flex: none;
}
.theme-toggle:hover { background: var(--bg-alt); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media print {
  .site-header, .topbar, .site-footer, .nav-toggle, .theme-toggle, .btn-row { display: none !important; }
  body { font-size: 12pt; }
}
