/* =========================================================
   Psk. Şirin Akpınar — Çocuk ve Ergen Psikoloğu
   style.css
   ========================================================= */

/* ---------- Değişkenler ---------- */
:root {
  --cream: #FAF6F0;          /* ana arka plan */
  --cream-soft: #F4EEE4;     /* panel arka planı */
  --white: #FFFFFF;
  --sage: #7E8C6B;           /* ana yeşil */
  --sage-dark: #66755A;      /* koyu yeşil (footer, hover) */
  --sage-light: #E8ECDF;
  --peach: #F2C9A8;          /* şeftali vurgusu */
  --peach-soft: #F8E3D2;
  --ink: #2F2E2A;            /* koyu metin */
  --ink-soft: #6B6A64;       /* ikincil metin */
  --line: #E7E0D4;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 8px 30px rgba(70, 65, 50, .07);
  --shadow-card: 0 4px 18px rgba(70, 65, 50, .06);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
  --header-h: 78px;
}

/* ---------- Reset & Taban ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- Başlıklar ---------- */
.section { padding: 72px 0; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 44px;
  color: var(--ink);
}
.section-title-left { text-align: left; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: background .25s, color .25s, transform .2s, box-shadow .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-icon { width: 19px; height: 19px; flex-shrink: 0; }

.btn-primary {
  background: var(--sage);
  color: #fff;
  box-shadow: 0 6px 18px rgba(126, 140, 107, .35);
}
.btn-primary:hover { background: var(--sage-dark); box-shadow: 0 8px 22px rgba(126, 140, 107, .45); }

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--sage); color: var(--sage-dark); }

.btn-sm { padding: 10px 22px; font-size: 14px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-soft); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 42px; height: 42px; color: var(--sage); flex-shrink: 0; }
.brand-logo svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.brand-text small { font-size: 12px; color: var(--ink-soft); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 6px 2px;
  position: relative;
  transition: color .2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--sage);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .25s;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }

.btn-nav-mobile { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 3px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 64px 0 80px;
  overflow: hidden;
}

.hero-deco {
  position: absolute;
  color: #D8D2BE;
  opacity: .8;
  pointer-events: none;
}
.hero-deco-left { left: -20px; bottom: 40px; width: 110px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 10px;
}
.hero-subtitle {
  font-size: 19px;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 18px;
}
.hero-text {
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 420px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
}
.hero-feature-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--sage);
  box-shadow: var(--shadow-card);
}
.hero-feature-icon svg { width: 24px; height: 24px; }

.hero-media { position: relative; }
.hero-photo {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 120px 32px 32px 32px;
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   HİZMETLERİM
   ========================================================= */
.services { padding-top: 24px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 920px;
  margin-inline: auto;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 18px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--sage-light);
}
.service-icon {
  display: inline-grid;
  place-items: center;
  font-size: 34px;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--peach-soft);
  margin-bottom: 16px;
}
.service-card h3 {
  font-size: 14.5px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.35;
}
.service-card p {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* =========================================================
   EĞİTİMLERİM
   ========================================================= */
.trainings { padding-top: 8px; }

.trainings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin-inline: auto;
}
.training-card {
  min-height: 160px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 26px 20px;
  text-align: center;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.training-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: var(--sage-light);
}
.training-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  font-size: 28px;
  box-shadow: var(--shadow-card);
}
.training-card h3 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

/* =========================================================
   HANGİ KONULARDA DESTEK
   ========================================================= */
.topics-section { padding-top: 8px; }

.topics-panel {
  position: relative;
  background: var(--cream-soft);
  border-radius: 60px;
  padding: 56px 64px;
  overflow: hidden;
}
.topics-panel .section-title { margin-bottom: 40px; }

.topics-deco { position: absolute; pointer-events: none; }
.topics-deco-tl {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--peach-soft);
  left: 36px; top: 110px;
  opacity: .8;
}
.topics-deco-tl::after {
  content: '';
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--peach);
  left: -14px; top: 50%;
  opacity: .7;
}
.topics-deco-br {
  right: 20px; bottom: 20px;
  width: 110px;
  color: #B9C2A4;
}

.topics-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px 20px;
}
.topic-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
}
.topic-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

/* =========================================================
   TERAPİ SÜRECİ + HAKKIMDA
   ========================================================= */
.process-about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

/* --- Süreç --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 12%; right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}
.process-step { text-align: center; position: relative; }
.process-num {
  display: inline-grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 14px;
  border: 2px solid transparent;
  position: relative;
  background: var(--white);
}
.process-num-1 { background: var(--sage); color: #fff; }
.process-num-2 { background: var(--peach-soft); color: var(--ink); border-color: var(--peach); }
.process-num-3 { background: var(--cream-soft); color: var(--ink); border-color: var(--line); }
.process-num-4 { background: var(--peach-soft); color: var(--ink); border-color: var(--peach); }
.process-step h3 { font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.process-step p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; }

/* --- Hakkımda --- */
.about-inner {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  align-items: start;
}
.about-photo-wrap {
  width: 190px; height: 190px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-soft);
  background: var(--cream-soft);
}
.about-photo { width: 100%; height: 100%; object-fit: cover; }
.about-greeting { font-weight: 800; font-size: 16.5px; margin-bottom: 10px; }
.about-text p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; }
.about-text strong { color: var(--ink); font-weight: 700; }

/* =========================================================
   SSS + İLETİŞİM + RANDEVU
   ========================================================= */
.bottom-section { padding-top: 8px; padding-bottom: 96px; }

.bottom-grid {
  display: grid;
  grid-template-columns: 1.1fr .8fr 1.1fr;
  gap: 44px;
  align-items: start;
}

/* --- SSS --- */
.faq {
  background: var(--cream-soft);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.faq .section-title { text-align: center; margin-bottom: 24px; font-size: 22px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 700;
}
.faq-chevron { width: 18px; height: 18px; flex-shrink: 0; color: var(--sage); transition: transform .3s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-answer p {
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* --- İletişim --- */
.contact .section-title { font-size: 22px; margin-bottom: 24px; text-align: center; }
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 14.5px; font-weight: 600; }
.contact-list a:hover { color: var(--sage-dark); }
.contact-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--sage);
  box-shadow: var(--shadow-card);
}
.contact-icon svg { width: 21px; height: 21px; }
.contact-icon-ig { color: #C1694F; }

/* --- Randevu --- */
.appointment-card {
  position: relative;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 16px;
  align-items: center;
  overflow: hidden;
}
.appointment-content h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 12px;
}
.appointment-content p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.appointment-illustration svg { width: 100%; height: auto; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  background: var(--sage-dark);
  color: #F2F1EA;
  padding-top: 8px;
  margin-top: 40px;
}
.footer-wave {
  position: absolute;
  top: -38px;
  left: 0; right: 0;
  height: 40px;
  color: var(--sage-dark);
}
.footer-wave svg { width: 100%; height: 100%; display: block; }

.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 28px 0 18px;
}
.brand-footer .brand-logo { color: #F2F1EA; }
.brand-footer .brand-text small { color: rgba(242, 241, 234, .7); }

.footer-nav {
  display: flex;
  gap: 26px;
  margin-inline: auto;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(242, 241, 234, .85);
  transition: color .2s;
}
.footer-nav a:hover { color: #fff; }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(242, 241, 234, .4);
  transition: background .25s, border-color .25s;
}
.footer-social a:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.footer-social svg { width: 19px; height: 19px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 14px 0 20px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(242, 241, 234, .65);
}

/* =========================================================
   YUKARI DÖN
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s, background .25s;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--sage-dark); }
.back-to-top svg { width: 22px; height: 22px; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition-duration: .01ms !important; }
}

/* Klavye odağı */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); max-width: 620px; }
  .trainings-grid { grid-template-columns: repeat(2, 1fr); max-width: 620px; }
  .topics-grid { grid-template-columns: repeat(4, 1fr); }
  .bottom-grid { grid-template-columns: 1fr 1fr; }
  .appointment { grid-column: 1 / -1; }
  .main-nav { gap: 18px; }
  .nav-link { font-size: 13.5px; }
}

@media (max-width: 900px) {
  .process-about-grid { grid-template-columns: 1fr; gap: 56px; }
  .topics-panel { padding: 44px 36px; border-radius: 44px; }
  .topics-deco-tl, .topics-deco-br { display: none; }

  /* Mobil menü */
  .btn-nav-desktop { display: none; }
  .btn-nav-mobile { display: inline-flex; margin-top: 6px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 26px;
    gap: 14px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s, opacity .3s, visibility .3s;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }

  .hero { padding: 40px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; }
  .hero-photo { border-radius: 80px 24px 24px 24px; }
  .hero-deco-left { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .container { width: min(1180px, 100% - 36px); }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .service-card { padding: 22px 14px 20px; }
  .trainings-grid { grid-template-columns: 1fr; gap: 14px; }
  .training-card { min-height: 132px; }

  .topics-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .topics-panel { padding: 36px 24px; border-radius: 32px; }

  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .process-steps::before { display: none; }

  .about-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .about .section-title-left { text-align: center; }
  .process .section-title-left { text-align: center; }

  .bottom-grid { grid-template-columns: 1fr; gap: 32px; }
  .appointment-card { grid-template-columns: 1fr; text-align: center; }
  .appointment-illustration { max-width: 150px; margin-inline: auto; }

  .footer-inner { flex-direction: column; text-align: center; gap: 20px; }
  .footer-nav { margin-inline: 0; justify-content: center; }

  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-features { gap: 18px; justify-content: space-between; }
  .hero-feature { flex-direction: column; text-align: center; gap: 8px; flex: 1; font-size: 12px; }
}
