/* layout-public.css — public-site chrome (header + footer). Loaded by
   the layout-public Component (see domain/data_seeds/component_seed.c).
   Mostly element selectors — page fragments live inside `<main>` so
   `body > header` / `body > footer` target only the layout chrome.
   `.menu-toggle` / `.menu-close` / `.header-left` are responsive
   chrome additions and intentionally carry classes so the shared
   `menu-toggle.js` script can attach across panel + public layouts. */

/* Sticky footer — kısa içerikte footer viewport tabanına yapışır, uzun
   içerikte doğal akışta aşağı iner. body flex column, main flex:1 ile
   kalan dikey alanı doldurur. */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > footer { flex-shrink: 0; }

body > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 5rem;
  background: #fff;
}
body > header img {
  width: 260px;
  height: auto;
  display: block;
}
body > header nav a {
  margin-left: 1rem;
  color: var(--fg);
  text-decoration: underline;
}
body > header nav a.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: .5rem 1.5rem;
  border-radius: 50rem;
  text-decoration: none;
  font-weight: 600;
}

/* Vertical breathing room is owned by <main>, not by header/footer or by
   individual section paddings — keeps the gap consistent on every page
   that uses this layout (document-style, accordion, custom hero, etc.). */
body > main {
  padding: 0;
  margin: 2.5rem 0;
}

/* Document-style pages (KVKK, Bize Ulaşın, FAQ) — full-width section
   layouts on the home page use their own `.section-2col` padding, so
   the page-level padding only targets unclassed root-level content. */
body > main > h1,
body > main > p,
body > main > ul,
body > main > ol,
body > main > section:not([class]),
body > main > details {
  padding-left: 5rem;
  padding-right: 5rem;
}

/* FAQ alt başlığı — h1 altında bağlam paragrafı. */
body > main > p.faq-intro {
  margin: .25rem 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* FAQ accordion — her madde bir kart. Kart çerçevesi/zemini details'te;
   summary saydam zeminde flex ile +/− göstergesini sağa yaslar. Açık
   maddede tüm kart accent-soft (şeftali) zemine + accent çerçeveye döner. */
body > main > details {
  margin: 0 5rem .75rem;
  padding: 0;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  overflow: hidden;
}
body > main > details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  color: #1a1a1a;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
}
body > main > details > summary::-webkit-details-marker { display: none; }
body > main > details > summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
}
body > main > details[open] {
  background: var(--accent-soft);
  border-color: var(--accent);
}
body > main > details[open] > summary { color: var(--accent); }
body > main > details[open] > summary::after { content: "−"; color: var(--accent); }
body > main > details > p {
  margin: 0;
  padding: 0 1.5rem 1.25rem;
  line-height: 1.6;
  color: var(--fg);
}

/* "Hala sorularınız mı var?" iletişim kartı — sol metin, sağ pill buton. */
body > main > section.faq-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 2.5rem 5rem 0;
  padding: 2rem 2.5rem;
  background: var(--bg-soft);
  border-radius: 1rem;
}
body > main > section.faq-contact .faq-contact-text h2 {
  margin: 0 0 .35rem;
  font-size: 1.35rem;
}
body > main > section.faq-contact .faq-contact-text p {
  margin: 0;
  color: var(--muted);
}
body > main > section.faq-contact .faq-contact-cta {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  padding: .9rem 2rem;
  border-radius: 50rem;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
body > main > section.faq-contact .faq-contact-cta::after { content: " →"; }

@media (max-width: 768px) {
  body > main > h1,
  body > main > p,
  body > main > ul,
  body > main > ol,
  body > main > section:not([class]),
  body > main > details {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  body > main > details { margin: 0 1.5rem .75rem; }
  body > main > section.faq-contact {
    flex-direction: column;
    align-items: stretch;
    margin: 1.75rem 1.5rem 0;
    padding: 1.5rem;
  }
  body > main > section.faq-contact .faq-contact-cta { text-align: center; }
}

body > footer {
  background: var(--accent);
  color: #fff;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 5rem;
  gap: 2rem;
}
.footer-name {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.footer-brand p { margin: 0; font-size: 13px; opacity: .85; }
.footer-logo-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
}
.footer-logo-card img { width: 280px; height: auto; display: block; }
.footer-bar {
  background: #000;
  color: #fff;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  padding: .75rem 5rem;
}
.footer-bar a { color: #fff; }

body > header > .header-left {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.menu-toggle,
.menu-close {
  display: none;
  background: transparent;
  border: none;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  padding: .2rem .4rem;
  cursor: pointer;
  color: var(--fg);
}

@media (max-width: 768px) {
  body > header { padding: 1rem 1.5rem; }
  body > header img { width: 190px; }

  body > header nav {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: #fff;
    overflow-y: auto;
    padding: 3.5rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    transform: translateY(-100%);
    transition: transform .2s ease;
    visibility: hidden;
  }
  body > header nav a {
    margin-left: 0;
    padding: .75rem .5rem;
    border-bottom: 1px solid var(--border-soft);
    font-size: 1rem;
  }
  body.menu-open > header nav {
    transform: translateY(0);
    visibility: visible;
  }
  body.menu-open { overflow: hidden; }

  body > header .menu-toggle { display: inline-flex; }
  body.menu-open .menu-close {
    display: inline-flex;
    position: fixed;
    top: .75rem;
    right: 1rem;
    z-index: 51;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
  }
  .footer-logo-card { margin-left: 0; width: 100%; justify-content: center; }
  .footer-logo-card img { width: 220px; }
  .footer-bar { padding: 1rem 1.5rem; flex-direction: column; gap: .4rem; }
}
