/* style.css (güncelleme: mobil kırpma, stagger hız, header/bg, nav focus iyileştirmeleri) */
:root {
    --primary: #222;
    --muted: #6b7280;
    --panel: #fbfbfc;
    --surface: #f7f7f8;
    --accent: #111;
    --header-h: 72px;
    --max-width: 1400px;
    --wp-green: #25D366;
    --insta-pink: #E1306C;
    --accent-red: #c62828;
}

/* reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html,
body {
    height: 100%
}

body {
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
    color: var(--primary);
    background: #fff;
    line-height: 1.6;
    padding-top: var(--header-h);
    -webkit-font-smoothing: antialiased;
}

/* Header (sabit) */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 1100;
    transition: box-shadow .25s;
}

header:hover {
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.14);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.psi-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px
}

.brand-text {
    line-height: 1
}

.brand-name {
    font-weight: 700;
    font-size: 1rem
}

.brand-sub {
    font-size: 0.78rem;
    color: var(--muted)
}

/* nav center - center nav on desktop */
.main-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 12px;
}

/* keep list inline */
.main-nav ul {
    display: flex;
    gap: 18px;
    list-style: none;
    align-items: center;
}

/* NAV items: padding increased so focus area daha geniş */
.main-nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    transition: transform .15s, color .15s, background .15s;
    padding: 10px 12px;
    /* büyütülmüş hit area */
    border-radius: 8px;
}

/* Görünür focus / keyboard outline */
.main-nav a:focus-visible {
    outline: 3px solid rgba(11, 99, 201, 0.12);
    outline-offset: 3px;
    background: rgba(11, 99, 201, 0.06);
}

/* NAV HOVER: büyüme + gri renk */
.main-nav a:hover,
.main-nav a:focus {
    transform: scale(1.06);
    color: #8b8b8b;
    background: rgba(0, 0, 0, 0.03);
}

/* ACTIVE (scroll-spy) - bulunduğun bölümdeki link */
.main-nav a.active {
    color: #8b8b8b;
    background: rgba(0, 0, 0, 0.05);
    transform: none;
}

/* right */
.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

/* SOCIALS */
.socials {
    display: flex;
    gap: 10px;
    align-items: center;
}

.desktop-socials {
    display: flex;
}

.mobile-socials {
    display: none;
}

.socials a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: transform .12s;
}

.social-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    top: 100%;
    font-size: 12px;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s, transform .14s;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.whatsapp-label {
    color: var(--wp-green);
}

.insta-label {
    color: var(--insta-pink);
}

.socials a:hover .social-label,
.socials a:focus .social-label {
    opacity: 1;
    transform: translateX(-50%) translateY(10px);
}

/* menu + mobile */
.menu-and-mobile {
    display: flex;
    gap: 8px;
    align-items: center
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 22px;
    color: var(--primary)
}

/* Responsive nav */
@media (max-width:900px) {
    .main-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        padding: 0 12px;
        overflow: hidden;
        max-height: 0;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        justify-content: flex-start;
    }

    .main-nav.open {
        max-height: 420px
    }

    .main-nav ul {
        flex-direction: column;
        padding: 12px 0;
        gap: 12px
    }

    .menu-toggle {
        display: block
    }

    .desktop-socials {
        display: none;
    }

    .mobile-socials {
        display: flex;
    }

    .social-label {
        font-size: 11px;
        left: 50%;
        transform: translateX(-50%) translateY(8px);
    }
}

/* ============================
   HERO
   ============================ */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: none;
    align-items: stretch;
    gap: 0;
}

/* HERO SOL: fotoğraf yüksekliği sabit: viewport yüksekliğinin tamamına yakın */
.hero-left {
    overflow: hidden;
    display: block;
    position: relative;
    height: calc(100vh - var(--header-h));
    min-height: 320px;
}

/* Masaüstü için object-position yüz/tam kompozisyon */
.hero-left img#heroPhoto {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 18%;
    transition: transform 1.0s ease;
}

/* HERO SAĞ: -- burayı beyaz yaptık (istek) */
.hero-right {
    background: #ffffff;
    /* beyaz olarak ayarlandı */
    padding: 48px 64px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.about-in-hero {
    max-width: 720px;
}

.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 6px;
    color: var(--primary)
}

.hero-sub {
    color: var(--muted);
    margin-bottom: 12px;
}

.about-brief p {
    color: var(--primary);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* about-headeralti ortalanması (masaüstü) - yükseklik hizalaması için max-height verildi */
.about-headeralti {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
}

.about-headeralti img {
    width: auto;
    max-width: 62%;
    height: auto;
    max-height: calc(100vh - var(--header-h) - 120px);
    /* masaüstünde hero ile daha yakın alt kenar hizası */
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* daha küçük ekranlarda headeraltı görseli biraz küçülür */
@media (max-width: 1100px) {
    .about-headeralti img {
        max-width: 78%;
        max-height: 44vh;
    }
}

@media (max-width: 800px) {
    .about-headeralti img {
        max-width: 92%;
        max-height: 38vh;
    }
}

/* =========================
   STAGGERED LOAD ANIMATIONS (hızlı ardışık yükleme)
   ========================= */
.stagger-hide {
    opacity: 0;
    transform: translateY(6px) scale(0.997);
    transition: opacity .34s ease, transform .34s cubic-bezier(.16, .9, .45, 1);
}

.stagger-show {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* MOBILE: mobilde fotoğraf kırpma - yüz + üniforma görünür (ölçeği değiştirmiyoruz) */
@media (max-width:800px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .hero-left {
        height: 46vh;
        /* mobil için yeterli alan - yüz+üst vücut görünür */
        order: -1;
    }

    /* Mobilde object-position ile yüz ve üniforma kısmını öne çıkar */
    .hero-left img#heroPhoto {
        object-position: 50% 30%;
        /* yüz + göğüs / üniforma bölgesini görünür tutar */
        object-fit: cover;
    }

    .hero-right {
        padding: 20px;
    }

    .about-headeralti {
        display: flex;
        justify-content: center;
        margin-top: 12px
    }
}

/* content-section */
section.content-section {
    padding: 60px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    background: transparent
}

/* SERVICES */
.section-title-center {
    text-align: center;
    margin-bottom: 12px;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
}

.services-intro {
    text-align: center;
    color: var(--muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 12px;
}

/* Hover efektleri daha güçlü */
.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    min-height: 220px;
    transition: transform .18s, box-shadow .18s;
    will-change: transform;
}

.service-card:hover {
    transform: translateY(-14px);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.14);
}

.service-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
    transition: color .18s, transform .18s;
}

.service-icon {
    display: inline-block;
    font-size: 1.55rem;
    transition: transform .18s;
}

.service-title-text {
    font-size: 1.06rem;
    transition: transform .18s, color .18s;
}

.service-card:hover .service-icon {
    transform: scale(1.45);
}

.service-card:hover .service-title-text {
    transform: scale(1.12);
    color: var(--accent-red);
}

.service-list {
    margin-top: 8px;
    list-style: disc;
    padding-left: 18px;
    color: var(--primary);
    font-size: 1.08rem;
    line-height: 1.5;
}

@media (max-width:900px) {
    .services-grid {
        grid-template-columns: 1fr
    }

    .service-card {
        min-height: auto
    }
}

/* NEDEN TERAPI - FONT BÜYÜTME (monitor için) */
.neden-terapi {
    background: #f3f4f5;
    border-radius: 12px;
    padding: 26px;
    margin-top: 10px;
}

.center-on-desktop {
    margin-left: auto;
    margin-right: auto;
    max-width: 980px;
}

@media (min-width: 900px) {
    .center-on-desktop {
        text-align: center;
    }
}

.neden-content p {
    color: var(--primary);
    line-height: 1.55;
    max-width: 980px;
    font-size: 1.12rem;
}

@media (min-width: 1100px) {
    .neden-content p {
        font-size: 1.26rem;
    }
}

.neden-quote {
    margin-top: 12px;
    font-style: italic;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.18rem;
}

/* CTA button */
.btn-primary {
    background: linear-gradient(90deg, #111 0%, #333 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-size: 1.05rem;
    transition: transform .12s, box-shadow .12s, color .12s;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.btn-primary.btn-cta:hover,
.btn-primary.btn-cta:focus {
    transform: scale(1.06);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
    color: var(--wp-green);
}

.btn-primary.btn-cta:hover svg path,
.btn-primary.btn-cta:focus svg path {
    fill: var(--wp-green) !important;
}

/* psikoterapi toggle */
.psikoterapi-toggle-row {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.psikoterapi-toggle {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--panel);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform .14s, box-shadow .14s, background .14s;
}

.psikoterapi-toggle:hover,
.psikoterapi-toggle:focus {
    transform: scale(1.04);
    background: #e9e9eb;
}

.psikoterapi-h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.psikoterapi-content p {
    font-size: 1.08rem;
    line-height: 1.7;
}

/* ID selector (kopyalandığı şekilde bırakıldı) */
#psikoterapi-uzerine {
    background: linear-gradient(180deg, rgba(125, 170, 163, 0.03), rgba(44, 62, 80, 0.01));
    border-radius: 10px;
    padding: 14px 20px;
    margin-top: 10px;
}

/* PSİKOTERAPİ PANEL - geçiş + mobil erişilebilirlik güncellemesi */
/* Desktop: mevcut davranışı koru (smooth expand) */
.psikoterapi-panel {
    margin-top: 12px;
    background: var(--panel);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: max-height .36s ease, opacity .28s ease, padding .28s ease;
    max-height: 1400px;
    /* desktop için yüksek bir limit (korundu) */
}

/* gizli hal (kapalı) */
.psikoterapi-panel.hidden {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
}

/* açık hal: JS tarafı da inline maxHeight atayacak, ama yedek sınıf olsun */
.psikoterapi-panel.open {
    opacity: 1;
    pointer-events: auto;
    /* overflow:auto yapılınca içerik panel içinde kaydırılabilir olur */
    overflow: auto;
}

/* CONTACT */
.contact-inner.contact-wix-like {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px
}

.combined-contact {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04)
}

.contact-top-two {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.contact-left-title,
.contact-right-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0;
}

.contact-right-title {
    text-align: right;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch
}

.contact-map {
    min-height: 220px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    position: relative;
}

@media (max-width:900px) {
    .contact-grid {
        grid-template-columns: 1fr
    }

    .contact-top-two {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .contact-right-title {
        text-align: left;
    }
}

/* modal and others unchanged */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(4px)
}

.modal {
    width: 92%;
    max-width: 520px;
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25)
}

.field input,
.field textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    background: #fbfbfb
}

.appointment-modal .appointment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: center;
    margin-top: 8px;
}

.appointment-image img {
    width: 100%;
    height: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06)
}

.appointment-form-area {
    padding: 4px;
}

@media (max-width:760px) {
    .modal {
        max-width: 640px;
        padding: 12px;
    }

    .appointment-modal .appointment-grid {
        grid-template-columns: 1fr;
    }

    .appointment-image img {
        max-height: 260px;
        object-position: center top;
    }
}

/* footer */
footer {
    background: #111;
    color: #fff;
    padding: 18px;
    text-align: center;
    margin-top: 40px
}

.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap
}

/* --- MOBIL İYİLEŞTİRMELER: psikoterapi panelin mobilde tam okunması --- */
@media (max-width: 800px) {

    /* panel açıldığında pencereyi komple kaplayıp taşırmasındansa
       panelin kendisi içinde kaydırılabilir olması daha sağlıklı.
       Bu kural mobilde panelin maksimum yüksekliğini viewport'a göre sınırlayıp
       overflow:auto sağlar. */
    .psikoterapi-panel {
        max-height: calc(100vh - var(--header-h) - 56px);
        /* header ve biraz boşluk için */
        padding: 14px;
    }

    .psikoterapi-panel.open {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Ayrıca panel açıldığında alt/üst padding animasyonu daha yumuşak olsun */
    .psikoterapi-panel,
    .psikoterapi-panel.hidden {
        transition: max-height .36s ease, opacity .28s ease, padding .28s ease;
    }
}

/* Eğer başka mobil kısıtlama varsa üstteki kurallar öncelikli çalışır */