/* ==========================================================================
   Terapi Alanı — Psikolojik Danışmanlık Merkezi
   style.css — design tokens, reset, typography, layout, header, footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   Tema özelleştirmesi için yalnızca bu blok değiştirilmesi yeterlidir.
   -------------------------------------------------------------------------- */
:root {
  /* Brand
     --primary marka rengidir; simge, çizgi ve küçük vurgularda kullanılır.
     Üzerine beyaz metin gelen yüzeylerde WCAG AA (4.5:1) için --primary-cta
     kullanılır; ikisi aynı renk ailesindendir. */
  --primary: #738C82;
  --primary-cta: #647A71;
  --primary-dark: #536A61;
  --primary-darker: #3F534B;
  --accent: #A98D7C;
  --accent-dark: #7C6356;

  /* Surfaces */
  --bg: #FAF9F7;
  --bg-soft: #F4F2EE;
  --bg-warm: #EFE8E2;
  --bg-tint: #E7ECE8;
  --surface: #FFFFFF;
  --dark: #24302D;
  --dark-soft: #35413D;

  /* Text */
  --text: #252C29;
  --text-strong: #17201D;
  /* Muted tonları, en koyu açık yüzeyde (--bg-tint) bile 4.5:1 kontrastı
     sağlayacak biçimde belirlenmiştir. */
  --muted: #5A615D;
  --muted-light: #646966;
  --on-dark: #F2F1ED;
  --on-dark-muted: #AFB8B3;

  /* Lines */
  --border: #E3E2DD;
  --border-strong: #D2D1CA;
  --border-dark: rgba(255, 255, 255, .14);

  /* Status */
  --success: #48775D;
  --success-bg: #EDF3EF;
  --danger: #9C5B4E;
  --danger-bg: #F8EFEC;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Layout */
  --container: 1320px;
  --gutter: 24px;
  --header-gap: 20px;
  --section-y: 104px;
  --section-y-sm: 72px;
  --header-h: 84px;
  --header-h-sticky: 68px;

  /* Type */
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: .18s var(--ease);
  --t: .28s var(--ease);

  /* Elevation — çok sınırlı kullanılır */
  --shadow-header: 0 1px 20px rgba(36, 48, 45, .05);
  --shadow-pop: 0 12px 40px -18px rgba(36, 48, 45, .28);
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-sticky) + 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--primary-darker); }

ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .35rem; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
  opacity: 1;
}

::selection {
  background: var(--bg-tint);
  color: var(--text-strong);
}

/* Focus — klavye kullanıcıları için her zaman görünür */
:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}
:focus:not(:focus-visible) { outline: none; }

/* Ekran okuyucu */
.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;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 2000;
  background: var(--dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: top var(--t);
}
.skip-link:focus { top: 16px; color: #fff; }

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--text-strong);
}

h1, .h1 { font-size: clamp(2.35rem, 1.5rem + 3.4vw, 3.9rem); letter-spacing: -.032em; line-height: 1.1; }
h2, .h2 { font-size: clamp(1.95rem, 1.35rem + 2.2vw, 2.8rem); letter-spacing: -.028em; line-height: 1.14; }
h3, .h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem); line-height: 1.28; }
h4, .h4 { font-size: 1.16rem; line-height: 1.4; }
h5, .h5 { font-size: 1.02rem; line-height: 1.45; }
h6, .h6 { font-size: .93rem; line-height: 1.5; }

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; color: var(--text-strong); }

.lead {
  font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem);
  line-height: 1.7;
  color: var(--muted);
  font-weight: 400;
}

.text-muted-soft { color: var(--muted) !important; }
.text-accent { color: var(--accent-dark) !important; }
.text-primary-dark { color: var(--primary-dark) !important; }

.small-caps {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* Bölüm etiketi */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .755rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  flex: none;
}
.eyebrow--plain::before { display: none; }
.eyebrow--light { color: #C7B4A6; }
.eyebrow--light::before { background: rgba(199, 180, 166, .55); }
.eyebrow--center { justify-content: center; }

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.container,
.container-xl,
.container-lg {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--sm { padding-block: calc(var(--section-y) * .68); }
.section--lg { padding-block: calc(var(--section-y) * 1.16); }
.section--top-0 { padding-top: 0; }
.section--bottom-0 { padding-bottom: 0; }

.bg-soft { background-color: var(--bg-soft); }
.bg-warm { background-color: var(--bg-warm); }
.bg-tint { background-color: var(--bg-tint); }
.bg-surface { background-color: var(--surface); }
.bg-dark-calm { background-color: var(--dark); color: var(--on-dark); }
.bg-dark-calm h1, .bg-dark-calm h2, .bg-dark-calm h3, .bg-dark-calm h4 { color: #fff; }
.bg-dark-calm .lead { color: var(--on-dark-muted); }
.bg-dark-calm p { color: var(--on-dark-muted); }

/* Bölüm başlığı bloğu */
.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--wide { max-width: 780px; }
.section-head p:last-child { margin-bottom: 0; }

/* Başlık solda, açıklama sağda düzeni */
.section-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .78fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: 56px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.section-head-split h2 { margin-bottom: 0; }
.section-head-split p { color: var(--muted); margin-bottom: 0; }

.divider-line { height: 1px; background: var(--border); border: 0; }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-h: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: var(--btn-h);
  padding: 0 24px;
  font-family: var(--font);
  font-size: .945rem;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.2;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn i { font-size: 1.05em; line-height: 1; }

.btn-primary {
  background-color: var(--primary-cta);
  border-color: var(--primary-cta);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.btn-dark-calm {
  background-color: var(--dark);
  border-color: var(--dark);
  color: #fff;
}
.btn-dark-calm:hover { background-color: #17201D; border-color: #17201D; color: #fff; }

.btn-outline {
  background-color: transparent;
  border-color: var(--border-strong);
  color: var(--text-strong);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background-color: transparent;
}

.btn-outline-light {
  background-color: transparent;
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}
.btn-outline-light:hover {
  border-color: rgba(255, 255, 255, .6);
  background-color: rgba(255, 255, 255, .07);
  color: #fff;
}

.btn-light-solid {
  background-color: #fff;
  border-color: #fff;
  color: var(--dark);
}
.btn-light-solid:hover { background-color: var(--bg-warm); border-color: var(--bg-warm); color: var(--dark); }

/* 44px: dokunmatik hedef alt sınırı (tabletlerde de geçerli) */
.btn-sm { --btn-h: 44px; padding: 0 18px; font-size: .875rem; }
.btn-lg { --btn-h: 56px; padding: 0 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Metin bağlantısı — ok ile */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary-dark);
}
.link-arrow i,
.link-arrow .arw {
  transition: transform var(--t-fast);
  font-size: 1.05em;
}
.link-arrow:hover i,
.link-arrow:hover .arw { transform: translateX(4px); }
.link-arrow--muted { color: var(--muted); }
.link-arrow--muted:hover { color: var(--primary-dark); }

/* --------------------------------------------------------------------------
   6. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: rgba(250, 249, 247, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t), border-color var(--t), box-shadow var(--t);
}
.site-header.is-stuck {
  background-color: rgba(255, 255, 255, .97);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-header);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--header-gap);
  height: var(--header-h);
  transition: height var(--t);
}
.site-header.is-stuck .header-inner { height: var(--header-h-sticky); }

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: var(--text-strong);
}
.brand:hover { color: var(--text-strong); }
.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background-color var(--t-fast);
}
.brand__mark svg { width: 19px; height: 19px; }
.brand:hover .brand__mark { background: var(--primary-dark); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-size: 1.075rem;
  font-weight: 700;
  letter-spacing: -.028em;
  color: var(--text-strong);
}
.site-header .brand__tag { display: none; }
.brand__tag {
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-top: 3px;
}

/* Ana menü */
/* Menü marka ile birlikte solda gruplanır; eylemler sağa sabitlenir.
   Daha önce hem .main-nav (margin-inline:auto) hem .header-actions
   (margin-left:auto) boşluğu paylaşıyor, menü viewport genişliğine göre
   kayıyordu. Tek bir otomatik kenar boşluğu bırakıldı. */
.main-nav { flex: 0 0 auto; margin-left: 16px; }
.main-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.main-nav__list > li { margin: 0; }
.main-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 8px;
  font-size: .885rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background-color var(--t-fast);
  white-space: nowrap;
}
.main-nav__link:hover { color: var(--primary-dark); background-color: rgba(115, 140, 130, .09); }
.main-nav__link.is-active { color: var(--primary-dark); font-weight: 600; }
.main-nav__link .bi-chevron-down { font-size: .62rem; opacity: .55; margin-top: 1px; }

/* Açılır menü */
.nav-dropdown { position: relative; }
.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 262px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}
.nav-dropdown:hover .nav-dropdown__panel,
.nav-dropdown:focus-within .nav-dropdown__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown__panel li { margin: 0; }
.nav-dropdown__panel a {
  display: block;
  padding: 9px 13px;
  font-size: .89rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
}
.nav-dropdown__panel a:hover { background: var(--bg-soft); color: var(--primary-dark); }

/* Header sağ blok */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
  margin-left: auto;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
  padding-left: 10px;
  margin-left: 4px;
  border-left: 1px solid var(--border);
}
.header-phone i { color: var(--primary); font-size: .95rem; }
.header-phone:hover { color: var(--primary-dark); }

/* Header randevu butonu — genişliğe göre etiket değişir */
.header-cta__short { display: none; }
.header-cta > i { display: none; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-strong);
  font-size: 1.32rem;
  cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.nav-toggle:hover { border-color: var(--primary); }

/* --------------------------------------------------------------------------
   7. MOBİL MENÜ (offcanvas)
   -------------------------------------------------------------------------- */
.offcanvas.mobile-menu {
  width: min(400px, 88vw);
  background: var(--bg);
  border-left: 1px solid var(--border);
}
.mobile-menu .offcanvas-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn-close {
  --bs-btn-close-color: var(--text);
  opacity: .6;
  box-shadow: none;
}
.mobile-menu .offcanvas-body { padding: 8px 24px 28px; display: flex; flex-direction: column; }

.mobile-nav { list-style: none; margin: 0 0 26px; padding: 0; }
.mobile-nav li { margin: 0; border-bottom: 1px solid var(--border); }
.mobile-nav > li:last-child { border-bottom: 0; }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 2px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-strong);
}
.mobile-nav a.is-active { color: var(--primary-dark); font-weight: 600; }
.mobile-nav__sub { list-style: none; margin: 0 0 10px; padding: 0 0 4px 14px; }
.mobile-nav__sub li { border-bottom: 0; }
.mobile-nav__sub a { padding: 8px 2px; font-size: .92rem; color: var(--muted); font-weight: 400; }

.mobile-menu__foot { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--border); }
.mobile-menu__foot .btn { width: 100%; margin-bottom: 10px; }
.mobile-contact { list-style: none; margin: 18px 0 0; padding: 0; }
.mobile-contact li {
  display: flex;
  gap: 11px;
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 11px;
  line-height: 1.55;
}
.mobile-contact i { color: var(--primary); font-size: .95rem; margin-top: 4px; flex: none; }
.mobile-contact a { color: var(--muted); }
.mobile-contact a:hover { color: var(--primary-dark); }

/* --------------------------------------------------------------------------
   8. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--dark);
  color: var(--on-dark-muted);
  padding-top: 82px;
  font-size: .925rem;
}
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1fr 1.25fr;
  gap: 44px 40px;
  padding-bottom: 62px;
}

.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: rgba(175, 184, 179, .7); }
.footer-brand .brand__mark { background: var(--primary); }
.footer-about {
  margin-top: 20px;
  max-width: 300px;
  color: var(--on-dark-muted);
  font-size: .9rem;
  line-height: 1.7;
}

.footer-title {
  font-size: .755rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 11px; }
.footer-list a { font-size: .9rem; }

.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li {
  display: flex;
  gap: 11px;
  margin-bottom: 15px;
  font-size: .9rem;
  line-height: 1.6;
}
.footer-contact i { color: var(--primary); font-size: .95rem; margin-top: 4px; flex: none; }

.footer-social { display: flex; gap: 9px; margin-top: 22px; }
.footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: var(--on-dark-muted);
  font-size: .95rem;
  transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast);
}
.footer-social a:hover { border-color: var(--primary); color: #fff; background: rgba(115, 140, 130, .2); }

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding: 24px 0 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: .845rem;
  color: rgba(175, 184, 179, .8);
}
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.footer-bottom__links li { margin: 0; }
.footer-bottom__links a { font-size: .845rem; }

.footer-note {
  border-top: 1px solid var(--border-dark);
  padding: 18px 0 26px;
  font-size: .8rem;
  line-height: 1.65;
  color: rgba(175, 184, 179, .62);
  max-width: 880px;
}

/* --------------------------------------------------------------------------
   9. BOOTSTRAP DÜZELTMELERİ
   -------------------------------------------------------------------------- */
.btn:focus,
.btn:focus-visible { box-shadow: none; }

.accordion,
.accordion-item,
.accordion-button {
  background-color: transparent;
  border-radius: 0 !important;
}
.accordion-button:not(.collapsed) { box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: transparent; }

.form-control:focus,
.form-select:focus,
.form-check-input:focus { box-shadow: none; }

.offcanvas-backdrop.show { opacity: .45; }

.modal-content { border: 0; border-radius: var(--radius-md); }
.modal-backdrop.show { opacity: .5; }

/* --------------------------------------------------------------------------
   10. HAREKET TERCİHİ
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
