/*
Theme Name: HSK İsviçre
Description: İsviçre Türkçe ve Türk Kültürü Dersleri için hafif, erişilebilir tema. "HSK Okul Rehberi" eklentisiyle birlikte kullanılır.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Author: T.C. Bern Büyükelçiliği Eğitim Müşavirliği
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hsk-isvicre
*/

:root {
	--hsk-navy: #0b2545;
	--hsk-navy-2: #163a6b;
	--hsk-red: #c8102e;
	--hsk-ink: #1b2433;
	--hsk-muted: #5b6879;
	--hsk-line: #e4dfd6;
	--hsk-cream: #faf7f1;
	--hsk-cream-2: #f3eee4;
	--hsk-radius: 14px;
	--hsk-max: 1180px;
	--hsk-font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--hsk-ink); font-family: var(--hsk-font); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--hsk-navy-2); text-underline-offset: .15em; }
a:hover { color: var(--hsk-red); }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--hsk-navy); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.screen-reader-text { 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; left: 12px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--hsk-navy); color: #fff; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: var(--hsk-max); margin: 0 auto; padding: 0 22px; }

/* ---------- Üst bilgi ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--hsk-line); backdrop-filter: saturate(160%) blur(8px); -webkit-backdrop-filter: saturate(160%) blur(8px); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--hsk-navy); text-decoration: none; }
.brand:hover { color: var(--hsk-navy); }
.brand .flags { display: flex; gap: 5px; flex: none; }
.brand .flag-tr { width: 33px; height: 22px; }
.brand .flag-ch { width: 22px; height: 22px; }
.flag { display: block; border-radius: 3px; box-shadow: 0 0 0 1px rgba(11, 37, 69, .1); }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-top { font-size: .78rem; font-weight: 800; letter-spacing: .2em; color: var(--hsk-red); }
.brand-main { font-size: .98rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-nav .menu { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-nav a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--hsk-ink); font-size: .95rem; font-weight: 550; text-decoration: none; }
.main-nav a:hover { background: var(--hsk-cream); color: var(--hsk-navy); }
.main-nav .current-menu-item > a, .main-nav [aria-current="page"] { color: var(--hsk-navy); box-shadow: inset 0 -2px 0 var(--hsk-red); border-radius: 0; }
.main-nav .sub-menu { list-style: none; margin: 0; padding: 0 0 0 12px; }
.nav-toggle { display: none; position: relative; flex: none; width: 46px; height: 46px; border: 1px solid var(--hsk-line); border-radius: 10px; background: #fff; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px; background: var(--hsk-navy); content: ""; transition: transform .2s; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -6px; left: 0; }
.nav-toggle-bar::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Kapak ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: linear-gradient(160deg, #0b2545 0%, #12335f 55%, #1d4a80 100%); }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(11, 37, 69, .94) 0%, rgba(11, 37, 69, .8) 40%, rgba(11, 37, 69, .25) 100%); }
.hero-scene { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; width: 100%; height: 62%; }
.hero.has-img .hero-scene { display: none; }
.hero-in { position: relative; padding: clamp(56px, 9vw, 120px) 22px clamp(110px, 14vw, 170px); }
.hero .flags { display: flex; gap: 10px; margin-bottom: 26px; }
.hero .flag-tr { width: 60px; height: 40px; }
.hero .flag-ch { width: 40px; height: 40px; }
.hero .flag { box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.hero-title { margin: 0; color: #fff; font-weight: inherit; }
.hero-top { display: block; font-size: clamp(2.4rem, 1.2rem + 5.5vw, 4.6rem); font-weight: 800; letter-spacing: .14em; line-height: 1; }
.hero-top::after { content: ""; display: block; width: 72px; height: 4px; margin: 18px 0 16px; border-radius: 2px; background: var(--hsk-red); }
.hero-main { display: block; max-width: 22ch; font-size: clamp(1.35rem, 1rem + 1.9vw, 2.35rem); font-weight: 600; line-height: 1.2; letter-spacing: -.005em; }
.hero-inst { margin: 14px 0 0; color: #c9d6ea; font-size: clamp(.95rem, .9rem + .3vw, 1.1rem); font-weight: 500; letter-spacing: .01em; }
.hero-text { max-width: 56ch; margin: 18px 0 0; color: #e6ecf6; font-size: 1.05rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 50px; padding: .75em 1.5em; border-radius: 999px; border: 1.5px solid transparent; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--hsk-red); color: #fff; }
.btn-red:hover { background: #a50d26; color: #fff; }
.btn-light { border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn-light:hover { background: #fff; color: var(--hsk-navy); }
.btn-navy { background: var(--hsk-navy); color: #fff; }
.btn-navy:hover { background: var(--hsk-navy-2); color: #fff; }
.btn-ghost { border-color: var(--hsk-navy); color: var(--hsk-navy); background: #fff; }
.btn-ghost:hover { background: var(--hsk-cream); color: var(--hsk-navy); }

/* ---------- Kanton bulucu (kapağın üzerine taşan kart) ---------- */
.finder { position: relative; z-index: 2; margin-top: -72px; }
.finder-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 22px 32px; align-items: center; padding: 26px 28px; background: #fff; border: 1px solid var(--hsk-line); border-radius: 18px; box-shadow: 0 24px 50px -30px rgba(11, 37, 69, .45); }
.finder-card h2 { margin: 0 0 4px; font-size: 1.35rem; }
.finder-card p { margin: 0; color: var(--hsk-muted); font-size: .97rem; }
.finder-form { display: flex; gap: 10px; }
.finder-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.finder-form select { flex: 1; min-width: 0; min-height: 50px; padding: 10px 40px 10px 14px; border: 1px solid #b8c1cf; border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b2545' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--hsk-ink); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; }
.finder-form .btn { flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; margin: 0; padding: 0; list-style: none; }
.chips a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--hsk-line); border-radius: 999px; background: var(--hsk-cream); color: var(--hsk-ink); font-size: .9rem; text-decoration: none; transition: border-color .15s, background .15s; }
.chips a:hover { border-color: var(--hsk-navy-2); background: #fff; color: var(--hsk-navy); }
.chips .code { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--hsk-navy); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .04em; }
.chips small { color: var(--hsk-muted); font-variant-numeric: tabular-nums; }

/* ---------- Bölümler ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-cream { background: var(--hsk-cream); }
.eyebrow { display: inline-block; margin: 0 0 10px; color: var(--hsk-red); font-size: .8rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px 64px; align-items: start; }
.intro-text { color: #33405a; font-size: 1.06rem; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.service { position: relative; display: flex; flex-direction: column; padding: 26px; background: #fff; border: 1px solid var(--hsk-line); border-radius: var(--hsk-radius); box-shadow: 0 1px 2px rgba(11, 37, 69, .04); transition: box-shadow .2s, transform .2s; }
.service:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(11, 37, 69, .5); }
.service-num { margin-bottom: 14px; color: var(--hsk-red); font-size: .85rem; font-weight: 800; letter-spacing: .1em; }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--hsk-muted); }
.service a.more { margin-top: auto; font-weight: 650; text-decoration: none; }
.service a.more::after { content: " →"; }
.service a.more::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.reg-band { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 20px 40px; align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: 20px; background: linear-gradient(120deg, var(--hsk-navy) 0%, var(--hsk-navy-2) 100%); color: #e6ecf6; }
.reg-band h2 { color: #fff; }
.reg-band p { margin: 0; max-width: 62ch; }
.contact-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 64px; align-items: start; }
.contact-list { display: grid; gap: 16px; margin: 0; }
.contact-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--hsk-line); }
.contact-row dt { color: var(--hsk-muted); font-size: .9rem; font-weight: 600; }
.contact-row dd { margin: 0; overflow-wrap: anywhere; font-weight: 550; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 14px; border: 1px solid #c3cbd8; border-radius: 999px; background: #fff; color: var(--hsk-navy); font-size: .92rem; font-weight: 600; text-decoration: none; }
.social-link:hover { border-color: var(--hsk-navy); background: var(--hsk-cream); color: var(--hsk-navy); }
.social-link::after { content: "↗"; font-size: .85em; opacity: .7; }
.social-icon { width: 20px; height: 20px; border-radius: 4px; }

/* ---------- Sayfa içerikleri ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); background: var(--hsk-cream); border-bottom: 1px solid var(--hsk-line); }
.page-head h1 { margin: 0; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem); }
.page-head .lead { max-width: 60ch; margin: 10px 0 0; color: var(--hsk-muted); }
.page-body { padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 7vw, 88px); }
.entry-content > * { max-width: 760px; }
.entry-content > .wp-block-shortcode, .entry-content > .hsk-dir, .entry-content > .hsk-posters, .entry-content > .alignwide, .entry-content > .alignfull { max-width: none; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content ul:not([class]), .entry-content ol:not([class]), .entry-content .wp-block-list { padding-left: 1.3em; }
.entry-content img { border-radius: 10px; }
.entry-content blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 4px solid var(--hsk-red); color: #33405a; }
.post-meta { color: var(--hsk-muted); font-size: .95rem; }
.single-poster { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.single-poster figure { margin: 0; }
.single-poster img { display: block; width: 100%; border-radius: var(--hsk-radius); box-shadow: 0 20px 40px -28px rgba(11, 37, 69, .6); }
.post-list { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.post-list article { padding-bottom: 24px; border-bottom: 1px solid var(--hsk-line); }
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--hsk-line); border-radius: 8px; text-decoration: none; }
.pagination .current { background: var(--hsk-navy); color: #fff; border-color: var(--hsk-navy); }

/* ---------- Alt bilgi ---------- */
.site-footer { background: var(--hsk-navy); color: #c9d6ea; font-size: .95rem; }
.footer-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px 48px; padding: 52px 22px 36px; }
.footer-brand .flags { display: flex; gap: 6px; margin-bottom: 14px; }
.footer-brand .flag-tr { width: 36px; height: 24px; }
.footer-brand .flag-ch { width: 24px; height: 24px; }
.footer-title { margin: 0 0 4px; color: #fff; font-size: 1.05rem; font-weight: 700; }
.footer-title span { display: block; color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .2em; }
.site-footer h2 { margin: 0 0 12px; color: #fff; font-size: .82rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul.links { margin: 0; padding: 0; list-style: none; }
.site-footer ul.links li { margin: 0 0 6px; }
.site-footer a { color: #e6ecf6; }
.site-footer a:hover { color: #fff; }
.site-footer .social-link { border-color: rgba(255, 255, 255, .3); background: transparent; color: #fff; min-height: 36px; padding: 5px 12px; font-size: .88rem; }
.site-footer .social-link:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 22px; font-size: .85rem; color: #9fb0c9; }
.footer-bottom ul { display: flex; gap: 16px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1040px) {
	.nav-toggle { display: block; }
	.main-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; padding: 8px 22px 18px; background: #fff; border-bottom: 1px solid var(--hsk-line); box-shadow: 0 18px 30px -24px rgba(11, 37, 69, .45); }
	.main-nav.is-open { display: block; }
	.main-nav .menu { flex-direction: column; }
	.main-nav a { padding: 13px 10px; font-size: 1.02rem; }
	.main-nav .current-menu-item > a, .main-nav [aria-current="page"] { box-shadow: inset 3px 0 0 var(--hsk-red); }
	.no-js .main-nav { position: static; display: block; box-shadow: none; }
}
@media (max-width: 900px) {
	.finder-card, .intro, .contact-wrap, .reg-band, .single-poster { grid-template-columns: minmax(0, 1fr); }
	.services { grid-template-columns: minmax(0, 1fr); }
	.footer-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.footer-brand { grid-column: 1 / -1; }
	.hero.has-img::after { background: linear-gradient(180deg, rgba(11, 37, 69, .92) 0%, rgba(11, 37, 69, .82) 55%, rgba(11, 37, 69, .55) 100%); }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.container, .hero-in { padding-left: 18px; padding-right: 18px; }
	.header-in { min-height: 64px; }
	.brand-main { font-size: .9rem; white-space: normal; }
	.brand .flag-ch { display: none; }
	.hero-in { padding-top: 40px; padding-bottom: 104px; }
	.hero .flags { margin-bottom: 20px; }
	.hero .flag-tr { width: 48px; height: 32px; }
	.hero .flag-ch { width: 32px; height: 32px; }
	.hero-scene { height: 40%; }
	.hero-cta .btn { flex: 1 1 100%; }
	.finder { margin-top: -64px; }
	.finder-card { padding: 20px 18px; }
	.finder-form { flex-direction: column; }
	.contact-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.footer-in { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn, .service, .chips a { transition: none; }
	.btn:hover, .service:hover { transform: none; }
}
