/* ===== Türkiye Psikologlar Platformu ===== */
:root {
  --navy: #093b6d;
  --navy-deep: #062a4f;
  --blue: #2e6db2;
  --blue-soft: #e9f1fb;
  --blue-mist: #f5f9fe;
  --ink: #12233a;
  --muted: #5b6b80;
  --line: #e2e9f2;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 50px -24px rgba(9, 59, 109, .28);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--navy); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--blue); }
p { margin: 0 0 1em; }

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

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: #9cc3ee; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -12px rgba(9,59,109,.7); }
.btn--primary:hover { background: var(--blue); }
.btn--ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--ghost:hover { border-color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 30px -20px rgba(9,59,109,.35); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { height: 46px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--sans); text-transform: uppercase; }
.brand__top { font-size: .62rem; letter-spacing: .42em; color: var(--navy); }
.brand__main { font-size: .98rem; font-weight: 700; letter-spacing: .16em; color: var(--navy); }
.brand__sub { font-size: .62rem; letter-spacing: .5em; color: var(--blue); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) {
  font-weight: 600; font-size: .95rem; color: var(--ink); position: relative; padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--navy); }
.nav__cta { padding: 11px 22px; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, top .25s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 70px 0 60px; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 30%, #e6f0fb 0%, rgba(230,240,251,0) 70%),
    radial-gradient(40% 40% at 10% 90%, #f1f6fd 0%, rgba(241,246,253,0) 70%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; min-height: 520px; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); margin-bottom: 22px; }
.hero .lead { max-width: 30em; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__logo { position: relative; display: grid; place-items: center; }
.hero__halo {
  position: absolute; width: min(500px, 92%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fff 45%, #eaf2fc 100%);
  box-shadow: inset 0 0 0 1px #e3ecf7, 0 40px 80px -40px rgba(9,59,109,.35);
}
.hero__halo::after {
  content: ""; position: absolute; inset: -22px; border-radius: 50%;
  border: 1px dashed #c8d9ee; animation: spin 60s linear infinite;
}
.hero__logo img { position: relative; width: min(380px, 72%); height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.values {
  list-style: none; padding: 0; margin: 70px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.values li { display: flex; gap: 14px; align-items: flex-start; padding: 26px 24px; }
.values li + li { border-left: 1px solid var(--line); }
.values strong { display: block; font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.1rem; }
.values span:not(.values__icon) { font-size: .9rem; color: var(--muted); }
.values__icon, .channels__icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
}
.values__icon svg, .channels__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Sections ===== */
.section { padding: 110px 0; }
.section--tint { background: var(--blue-mist); }
.section__head { max-width: 720px; margin-bottom: 54px; }
.section__head h2, .membership h2, .contact h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.section__head--row > div:first-child { max-width: 640px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.about__text p:not(.lead) { color: var(--muted); }
.mv { display: grid; gap: 18px; }
.mv__card { padding: 28px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: box-shadow .3s, transform .3s; }
.mv__card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.mv__card p { margin: 0; color: var(--ink); }
.mv__label { display: inline-block; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--blue); margin-bottom: 8px; }

.focus { margin-top: 90px; }
.focus__title { font-size: 1.7rem; margin-bottom: 30px; }
.focus__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.focus__grid li { padding: 28px 24px; border-radius: var(--radius); background: var(--blue-mist); border: 1px solid transparent; transition: border-color .3s, background .3s; }
.focus__grid li:hover { background: #fff; border-color: var(--line); }
.focus__grid span { font-family: var(--serif); font-size: 2rem; color: #b6cde8; display: block; margin-bottom: 14px; }
.focus__grid h4 { font-size: 1.2rem; margin-bottom: 8px; }
.focus__grid p { color: var(--muted); font-size: .93rem; margin: 0; }

.president {
  margin-top: 90px; display: grid; grid-template-columns: 380px 1fr; overflow: hidden;
  border-radius: 26px; background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, #11508f);
  color: #dbe7f5; box-shadow: var(--shadow);
}
.president__photo { margin: 0; background: #eef3fa; }
.president__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.president__text { padding: 60px 60px; align-self: center; }
.president h3 { color: #fff; font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 24px; }
.president blockquote { margin: 0 0 28px; font-size: 1.15rem; line-height: 1.7; border-left: 2px solid #5c95d6; padding-left: 20px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 8px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; }

/* Membership */
.membership, .contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.membership__info, .contact__info { position: sticky; top: calc(var(--header-h) + 30px); }
.benefits { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 4px; }
.benefits li { padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); position: relative; }
.benefits li::before {
  content: ""; position: absolute; left: 0; top: 21px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e6db2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/11px no-repeat;
}
.benefits strong { display: block; color: var(--navy); }
.benefits span { color: var(--muted); font-size: .93rem; }

/* Forms */
.form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.form__title { font-size: 1.6rem; margin-bottom: 6px; }
.form__note { color: var(--muted); font-size: .93rem; margin-bottom: 26px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.form__title + .form__grid { margin-top: 22px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: .84rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfdff;
  transition: border-color .2s, box-shadow .2s, background .2s; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23093b6d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(46,109,178,.12); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #c94a4a; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 24px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.check a { color: var(--blue); text-decoration: underline; }
.check.is-invalid span { color: #c94a4a; }
.form__status { margin: 16px 0 0; font-size: .93rem; font-weight: 600; min-height: 1.2em; text-align: center; }
.form__status.ok { color: #1f7a4d; }
.form__status.err { color: #c94a4a; }

/* Events */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { font: inherit; font-size: .88rem; font-weight: 600; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: all .2s; }
.filter:hover { color: var(--navy); border-color: var(--navy); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.events { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.event {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.event:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.event.is-hidden { display: none; }
.event__date { width: 72px; height: 80px; border-radius: 14px; background: var(--blue-mist); display: grid; place-content: center; text-align: center; }
.event__date strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; color: var(--navy); line-height: 1; }
.event__date span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); }
.event__tag { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.event h3 { font-size: 1.22rem; margin: 6px 0 6px; }
.event p { margin: 0; font-size: .92rem; color: var(--muted); }
.event__link { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); color: var(--navy); font-size: 1.1rem; transition: all .2s; }
.event:hover .event__link { background: var(--navy); color: #fff; border-color: var(--navy); }

.cycle { list-style: none; padding: 0; margin: 70px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: c; position: relative; }
.cycle::before { content: ""; position: absolute; top: 22px; left: 12%; right: 12%; height: 1px; background: repeating-linear-gradient(90deg, #b6cde8 0 6px, transparent 6px 12px); }
.cycle li { text-align: center; font-family: var(--serif); font-size: 1.25rem; color: var(--navy); display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.cycle span { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1.5px solid var(--blue); color: var(--blue); display: grid; place-items: center; font-family: var(--sans); font-size: .8rem; font-weight: 700; margin-bottom: 10px; }
.cycle small { font-family: var(--sans); font-size: .85rem; color: var(--muted); }

/* Contact */
.channels { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.channels li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.channels small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.channels a { font-weight: 600; color: var(--navy); word-break: break-word; }
.channels a:hover { color: var(--blue); }

/* CTA */
.cta { padding: 0 0 110px; }
.cta__inner {
  border-radius: 28px; padding: 70px 40px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(80% 120% at 50% 0%, #1a5aa0 0%, var(--navy) 55%, var(--navy-deep) 100%);
}
.cta__mark { width: 90px; margin: 0 auto 24px; filter: brightness(0) invert(1); opacity: .95; }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 30px; }
.cta h2 em { color: #9cc3ee; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 50px 0 40px; }
.footer__inner { display: grid; justify-items: center; gap: 24px; text-align: center; }
.footer__logo { width: 140px; }
.footer__nav { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer__nav a { font-weight: 600; font-size: .92rem; color: var(--muted); }
.footer__nav a:hover { color: var(--navy); }
.footer__copy { font-size: .82rem; color: var(--muted); margin: 0; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__halo::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .values, .focus__grid { grid-template-columns: repeat(2, 1fr); }
  .values li:nth-child(3) { border-left: 0; }
  .values li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .events { grid-template-columns: 1fr; }
  .president { grid-template-columns: 300px 1fr; }
  .president__text { padding: 44px; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px 20px 24px; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(9,59,109,.3);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .25s ease;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 16px; }
  .brand__mark { height: 40px; }

  .hero { padding: 40px 0 50px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; min-height: 0; text-align: center; }
  .hero__logo { order: -1; }
  .hero__halo { width: min(340px, 86%); }
  .hero__logo img { width: min(260px, 60%); }
  .hero .lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero .eyebrow::before { display: none; }

  .section { padding: 80px 0; }
  .about, .membership, .contact { grid-template-columns: 1fr; gap: 40px; }
  .membership__info, .contact__info { position: static; }
  .president { grid-template-columns: 1fr; }
  .president__photo { aspect-ratio: 4/3.4; }
  .president__text { padding: 36px 28px; }
  .cycle { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .cycle::before { display: none; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .values, .focus__grid, .form__grid { grid-template-columns: 1fr; }
  .values li + li { border-left: 0; border-top: 1px solid var(--line); }
  .form { padding: 28px 22px; }
  .event { grid-template-columns: auto 1fr; padding: 20px; gap: 16px; }
  .event__link { display: none; }
  .brand__text { display: none; }
  .cta__inner { padding: 54px 24px; }
}
