/*
Theme Name: Ekener Fam.
Description: Ekener ailesinin web sitesi. Tam ekran kapak, aile bireyleri, galeri, blog ve iletişim.
Version: 1.2.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: ekener-fam
*/

:root {
	--stone-50: #fafaf9;
	--stone-100: #f5f5f4;
	--stone-200: #e7e5e4;
	--stone-300: #d6d3d1;
	--stone-400: #a8a29e;
	--stone-500: #78716c;
	--stone-600: #57534e;
	--stone-800: #292524;
	--stone-900: #1c1917;
	--amber-50: #fffbeb;
	--amber-100: #fef3c7;
	--amber-300: #fcd34d;
	--amber-600: #d97706;
	--amber-700: #b45309;
	--rose: #fb7185;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: #fff; color: var(--stone-800); font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, figure { margin: 0; padding: 0; }
.heart { color: var(--rose); }
.container { max-width: 1152px; margin: 0 auto; }
.empty { text-align: center; color: var(--stone-400); padding: 48px 0; }

/* Resim uyarlama */
.fit { position: relative; overflow: hidden; background: var(--stone-200); }
.fit__backdrop, .fit__image { position: absolute; inset: 0; width: 100%; height: 100%; }
.fit__backdrop { display: none; object-fit: cover; transform: scale(1.1); filter: blur(24px); opacity: .7; }
.fit__image { object-fit: cover; object-position: center 30%; }
.fit.is-contained .fit__backdrop { display: block; }
.fit.is-contained .fit__image { object-fit: contain; object-position: center; }

/* Menü */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; transition: background-color .3s; }
.admin-bar .site-nav { top: 32px; }
.site-nav.is-solid { background: rgba(255, 255, 255, .95); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); backdrop-filter: blur(10px); }
.site-nav__inner { max-width: 1280px; margin: 0 auto; min-height: 64px; padding: 8px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.site-nav__brand { display: flex; align-items: center; min-width: 0; text-decoration: none; }
.site-nav__brand img { width: auto; max-width: 60vw; object-fit: contain; }
.site-nav__name { font-size: 18px; font-weight: 700; color: var(--stone-800); opacity: 0; transition: opacity .3s; }
.site-nav.is-solid .site-nav__name { opacity: 1; }
.site-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.site-nav__list a { display: block; padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; text-decoration: none; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 3px rgba(0, 0, 0, .5); transition: background-color .2s, color .2s; }
.site-nav__list a:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.site-nav__list a.is-active { background: rgba(255, 255, 255, .2); color: #fff; }
.site-nav.is-solid .site-nav__list a { color: var(--stone-600); text-shadow: none; }
.site-nav.is-solid .site-nav__list a:hover { background: var(--stone-100); color: var(--stone-900); }
.site-nav.is-solid .site-nav__list a.is-active { background: var(--amber-50); color: var(--amber-700); }
.site-nav__toggle { display: none; flex-direction: column; gap: 4px; padding: 10px 9px; margin-left: auto; border: 0; border-radius: 8px; background: rgba(0, 0, 0, .25); cursor: pointer; }
.site-nav__toggle span { display: block; width: 22px; height: 2px; background: #fff; }
.site-nav.is-solid .site-nav__toggle { background: var(--stone-100); }
.site-nav.is-solid .site-nav__toggle span { background: var(--stone-800); }

/* Kapak */
.cover { position: relative; height: 100vh; height: 100svh; min-height: 420px; background: var(--stone-900); overflow: hidden; }
.cover__image { position: absolute; inset: 0; background: var(--stone-900); }
.cover__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(28, 25, 23, .5), transparent 45%, transparent 55%, rgba(28, 25, 23, .7)); }
.cover__text { position: absolute; left: 0; right: 0; bottom: 40px; max-width: 1280px; margin: 0 auto; padding: 0 24px; color: #fff; }
.cover__text h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.cover__text p { margin-top: 8px; font-size: 18px; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }

/* Ana sayfa */
.welcome { padding-top: 64px; background: #fff; }
.welcome__hero { position: relative; height: 60vh; min-height: 400px; overflow: hidden; background: var(--stone-800); }
.welcome__image { position: absolute; inset: 0; background: var(--stone-800); }
.welcome__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(28, 25, 23, .4), rgba(28, 25, 23, .5), rgba(28, 25, 23, .7)); }
.welcome__text { position: relative; height: 100%; padding: 0 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; }
.welcome__eyebrow { color: var(--amber-300); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.welcome__text h2 { font-size: clamp(36px, 6vw, 60px); line-height: 1.15; font-weight: 700; margin-bottom: 16px; }
.welcome__lead { max-width: 576px; font-size: clamp(18px, 2.2vw, 20px); color: rgba(255, 255, 255, .85); margin-bottom: 32px; }
.welcome__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.welcome__buttons a { padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color .2s; }
.welcome__buttons a:hover { background: rgba(255, 255, 255, .2); }
.banner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px 16px; background: var(--amber-50); border-top: 1px solid var(--amber-100); border-bottom: 1px solid var(--amber-100); color: var(--stone-600); text-align: center; }

/* Bölümler */
.section { padding: 80px 16px; }
.section--tint { background: var(--stone-50); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head__eyebrow { color: var(--amber-600); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(30px, 4vw, 36px); line-height: 1.2; font-weight: 700; color: var(--stone-800); margin-bottom: 16px; }
.section-head__text { max-width: 672px; margin: 0 auto; color: var(--stone-500); line-height: 1.65; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 64px; }
.stat { padding: 24px; text-align: center; background: #fff; border: 1px solid var(--stone-100); border-radius: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.stat__value { font-size: 24px; font-weight: 700; color: var(--stone-800); }
.stat__label { font-size: 14px; color: var(--stone-500); margin-top: 4px; }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-bottom: 64px; }
.story__image { aspect-ratio: 4 / 3; border-radius: 24px; box-shadow: 0 10px 15px rgba(0, 0, 0, .1); }
.story h3 { font-size: 24px; font-weight: 700; margin-bottom: 16px; color: var(--stone-800); }
.story__text { color: var(--stone-600); line-height: 1.65; white-space: pre-line; }

.members-title { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 32px; color: var(--stone-800); }
.members { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member { background: #fff; border: 1px solid var(--stone-100); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); transition: transform .3s, box-shadow .3s; }
.member:hover { transform: translateY(-4px); box-shadow: 0 10px 15px rgba(0, 0, 0, .1); }
.member__image { aspect-ratio: 1; }
.member__image--empty { background: var(--stone-100); }
.member__body { padding: 20px; }
.member__body h4 { font-size: 16px; font-weight: 700; color: var(--stone-800); }
.member__role { font-size: 14px; font-weight: 500; color: var(--amber-600); margin-bottom: 8px; }
.member__bio { font-size: 14px; line-height: 1.6; color: var(--stone-500); }

/* Galeri */
.gallery-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.gallery-filter button { padding: 8px 16px; border: 0; border-radius: 999px; background: var(--stone-100); color: var(--stone-600); font-size: 14px; font-weight: 500; cursor: pointer; }
.gallery-filter button.is-active { background: var(--amber-600); color: #fff; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photo-grid__item { position: relative; padding: 0; border: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--stone-100); cursor: pointer; }
.photo-grid__item[hidden] { display: none; }
.photo-grid__image { position: absolute; inset: 0; }
.photo-grid__image .fit__image { transition: transform .5s; }
.photo-grid__item:hover .fit__image { transform: scale(1.08); }
.photo-grid__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 12px; text-align: left; color: #fff; font-size: 14px; font-weight: 500; background: linear-gradient(to top, rgba(28, 25, 23, .6), transparent); opacity: 0; transition: opacity .2s; }
.photo-grid__item:hover .photo-grid__caption, .photo-grid__item:focus-visible .photo-grid__caption { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .9); }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: 100%; }
.lightbox img { max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 8px; object-fit: contain; }
.lightbox figcaption { margin-top: 16px; text-align: center; color: #fff; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; border-radius: 999px; width: 44px; height: 44px; font-size: 28px; line-height: 1; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__arrow--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__arrow--next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--stone-100); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px rgba(0, 0, 0, .1); }
.post-card a { display: block; height: 100%; text-decoration: none; }
.post-card__image { aspect-ratio: 16 / 10; }
.post-card__body { padding: 20px; }
.post-card time { display: block; font-size: 12px; color: var(--stone-400); margin-bottom: 12px; }
.post-card h3 { font-size: 18px; font-weight: 700; color: var(--stone-800); margin-bottom: 8px; }
.post-card p { font-size: 14px; line-height: 1.6; color: var(--stone-500); }
.post-card__more { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--amber-600); }

/* İletişim */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact__side { display: flex; flex-direction: column; gap: 24px; }
.contact__info { padding: 24px; background: var(--amber-50); border: 1px solid var(--amber-100); border-radius: 16px; }
.contact__info h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--stone-800); }
.contact__info ul { list-style: none; display: grid; gap: 16px; }
.contact__label { display: block; font-size: 12px; color: var(--stone-400); }
.contact__value { display: block; font-size: 14px; font-weight: 500; color: var(--stone-600); }
.contact__image { height: 192px; border-radius: 16px; box-shadow: 0 10px 15px rgba(0, 0, 0, .1); }
.contact__form { padding: 32px; background: var(--stone-50); border: 1px solid var(--stone-100); border-radius: 16px; display: grid; gap: 6px; align-content: start; }
.contact__form label { font-size: 14px; font-weight: 500; color: var(--stone-600); margin-top: 12px; }
.contact__form input, .contact__form textarea { width: 100%; padding: 10px 16px; border: 1px solid var(--stone-200); border-radius: 8px; background: #fff; color: var(--stone-800); font: inherit; resize: vertical; }
.contact__form input:focus, .contact__form textarea:focus { outline: 2px solid var(--amber-600); outline-offset: 0; border-color: transparent; }
.contact__form button { margin-top: 18px; padding: 12px 24px; border: 0; border-radius: 8px; background: var(--amber-600); color: #fff; font: inherit; font-weight: 500; cursor: pointer; }
.contact__form button:hover { background: var(--amber-700); }
.contact__form button:disabled { opacity: .6; cursor: not-allowed; }
.contact__trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.contact__status { min-height: 20px; margin-top: 8px; font-size: 14px; }
.contact__status.is-ok { color: #15803d; }
.contact__status.is-error { color: #b91c1c; }

/* Alt bilgi */
.site-footer { padding: 48px 16px; background: var(--stone-800); color: var(--stone-300); text-align: center; }
.site-footer__inner { max-width: 1152px; margin: 0 auto; }
.site-footer h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.site-footer p { max-width: 448px; margin: 0 auto 24px; font-size: 14px; color: var(--stone-400); }
.site-footer__copy { padding-top: 24px; border-top: 1px solid var(--stone-600); font-size: 14px; color: var(--stone-400); }

/* Yazı ve sayfa */
.article { max-width: 768px; margin: 0 auto; padding: 112px 16px 64px; }
.article--page { max-width: 1152px; }
.article__back { display: inline-block; margin-bottom: 24px; color: var(--stone-500); text-decoration: none; }
.article__image { height: 320px; margin-bottom: 32px; border-radius: 16px; }
.article h1 { font-size: clamp(30px, 4vw, 36px); line-height: 1.2; color: var(--stone-800); margin-bottom: 16px; }
.article__meta { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--stone-200); font-size: 14px; color: var(--stone-500); }
.article__body { font-size: 18px; line-height: 1.7; color: var(--stone-600); }
.article__body p { margin-bottom: 1.2em; }

@keyframes ekener-menu { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
	.stats { grid-template-columns: repeat(2, 1fr); }
	.members, .photo-grid { grid-template-columns: repeat(2, 1fr); }
	.posts, .story, .contact { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
	.admin-bar .site-nav { top: 46px; }
	.site-nav__inner { padding: 8px 16px; }
	.site-nav__toggle { display: flex; justify-content: center; width: 44px; height: 44px; }
	/* Açılır menü: sağ üstte küçük, yarı saydam ve bulanık zeminli. */
	.site-nav__list { display: none; position: absolute; top: calc(100% - 4px); right: 16px; left: auto; min-width: 170px; max-width: calc(100vw - 32px); flex-direction: column; align-items: stretch; gap: 2px; padding: 6px; background: rgba(28, 25, 23, .55); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border: 1px solid rgba(255, 255, 255, .15); border-radius: 14px; box-shadow: 0 12px 28px rgba(0, 0, 0, .25); }
	.site-nav__list.is-open { display: flex; animation: ekener-menu .18s ease-out; }
	.site-nav__list a, .site-nav.is-solid .site-nav__list a { color: #fff; text-align: right; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); padding: 10px 14px; border-radius: 10px; }
	.site-nav__list a:hover, .site-nav.is-solid .site-nav__list a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
	.site-nav__list a.is-active, .site-nav.is-solid .site-nav__list a.is-active { background: rgba(217, 119, 6, .85); color: #fff; text-shadow: none; }
	/* Üst şeritteki bulanıklık, menünün kendi bulanıklığını engellemesin. */
	.site-nav.is-solid { background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: none; backdrop-filter: none; }
	.site-nav.is-solid .site-nav__list { background: rgba(255, 255, 255, .72); border-color: rgba(41, 37, 36, .08); }
	.site-nav.is-solid .site-nav__list a { color: var(--stone-800); text-shadow: none; }
	.site-nav.is-solid .site-nav__list a:hover { background: rgba(41, 37, 36, .06); color: var(--stone-900); }
	.welcome { padding-top: 40px; }
	.section { padding: 56px 16px; }
	.contact__form { padding: 24px; }
}

/* Dikey telefon: kapak fotoğrafının tamamı görünür, yazı altında durur. */
@media (max-width: 782px) and (orientation: portrait) {
	.cover { height: auto; min-height: 0; display: flex; flex-direction: column; }
	.cover__image { position: relative; inset: auto; width: 100%; aspect-ratio: var(--ratio, 1.6); max-height: 80svh; }
	.cover__image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(28, 25, 23, .45), transparent 30%, transparent 75%, var(--stone-900)); }
	.cover__shade { display: none; }
	.cover__text { position: relative; bottom: auto; width: 100%; padding: 4px 16px 28px; background: var(--stone-900); }
	.cover__text h1 { font-size: clamp(30px, 9vw, 40px); }
	.cover__text p { font-size: 16px; }
	.welcome { padding-top: 24px; }
	.welcome__hero { height: auto; min-height: 460px; }
	.welcome__text { min-height: 460px; padding: 48px 16px; }
	.welcome__eyebrow { font-size: 12px; }
	.welcome__buttons a { padding: 10px 16px; }
}

@media (max-width: 600px) {
	.section { padding: 48px 16px; }
	.section-head { margin-bottom: 32px; }
	.section-head h2 { font-size: 28px; }
	.stats { gap: 10px; margin-bottom: 40px; }
	.stat { padding: 16px 8px; border-radius: 12px; }
	.story { gap: 20px; margin-bottom: 40px; }
	.story h3, .members-title { font-size: 22px; }
	.members { gap: 12px; }
	.member { border-radius: 12px; }
	.member:hover { transform: none; }
	.member__body { padding: 12px; }
	.member__body h4 { font-size: 15px; }
	.member__role, .member__bio { font-size: 13px; }
	.photo-grid { gap: 10px; }
	.photo-grid__caption { opacity: 1; font-size: 13px; padding: 20px 8px 8px; }
	.posts { gap: 16px; }
	.contact { gap: 20px; }
	.contact__form { padding: 20px; }
	.banner { padding: 18px 16px; font-size: 15px; }
	.lightbox__arrow--prev, .lightbox__arrow--next { top: auto; bottom: 20px; transform: none; }
	.lightbox__arrow--prev { left: calc(50% - 56px); }
	.lightbox__arrow--next { right: calc(50% - 56px); }
	.article { padding: 88px 16px 48px; }
	.article__image { height: 220px; }
	.article__body { font-size: 17px; }
	.site-footer { padding: 40px 16px; }
	/* Küçük kutularda resim kırpılarak doldurulur; tamamı büyük görünümde açılır. */
	.welcome__image.is-contained .fit__image, .member__image.is-contained .fit__image, .photo-grid__image.is-contained .fit__image { object-fit: cover; object-position: center 30%; }
	.welcome__image.is-contained .fit__backdrop, .member__image.is-contained .fit__backdrop, .photo-grid__image.is-contained .fit__backdrop { display: none; }
}
