/*
Theme Name: Son Hukuk
Theme URI: https://son.av.tr
Author: Son Hukuk Bürosu
Description: Son Hukuk Bürosu için hazırlanmış sade, hızlı blok teması. Kurumsal renkler, Manrope yazı tipi ve makale odaklı şablonlar içerir.
Requires at least: 6.6
Tested up to: 7.2
Requires PHP: 7.4
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sonhukuk
*/

/* ---------- Genel ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
::selection { background: #D9774E; color: #fff; }
:focus-visible { outline: 2px solid #B4532A; outline-offset: 2px; }
.sh-main { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.sh-main.sh-main--flush { padding-block: 0; }
.sh-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #B4532A; margin-bottom: 0.5rem; }
.sh-kicker a { color: inherit; text-decoration: none; }
.sh-lead { font-size: 1.2rem; line-height: 1.6; color: #4A5058; }
.sh-muted { color: #4A5058; font-size: 0.9rem; }
.wp-block-post-content h2 { margin-top: 2.4rem; }
.wp-block-post-content h3 { margin-top: 1.8rem; }
.wp-block-post-content li { margin-bottom: 0.35rem; }

/* ---------- Üst alan ---------- */
.sh-header { background: #fff; border-bottom: 1px solid #C9C4BC; padding-block: 0.9rem; position: relative; z-index: 20; }
.sh-header__inner { align-items: center; gap: 1.5rem; }
.sh-brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.sh-brand img { display: block; }
.sh-brand__mark { width: 40px; height: 40px; }
.sh-brand__logo { width: 170px; height: auto; }
.sh-nav .wp-block-navigation-item__content { color: #1E2226; text-decoration: none; padding-block: 0.35rem; border-bottom: 2px solid transparent; }
.sh-nav .wp-block-navigation-item__content:hover,
.sh-nav .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: #B4532A; color: #1E2226; }
.sh-nav .wp-block-navigation__container { gap: 1.75rem; }
.sh-nav .wp-block-navigation__responsive-container.is-menu-open { background: #1E2226; color: #F4F1EC; padding: 2rem; }
.sh-nav .is-menu-open .wp-block-navigation-item__content { color: #F4F1EC; font-size: 1.25rem; }
.sh-nav .wp-block-navigation__responsive-container-open svg,
.sh-nav .wp-block-navigation__responsive-container-close svg { fill: currentColor; }
@media (max-width: 480px) {
	.sh-brand__logo { width: 140px; }
	.sh-brand__mark { width: 34px; height: 34px; }
}

/* ---------- Ana sayfa ---------- */
.sh-hero { background: #1E2226; color: #F4F1EC; padding-block: clamp(3.5rem, 9vw, 7rem); position: relative; }
.sh-hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(33%, 380px); height: 6px; background: #B4532A; }
.sh-hero__inner { max-width: 860px; }
.sh-hero .sh-kicker { color: #D9774E; }
.sh-hero__title { color: #F4F1EC !important; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.12; margin-block: 0.25rem 1.25rem; }
.sh-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #F4F1EC; opacity: 0.88; max-width: 44rem; }
.sh-hero__name { color: #D9774E; font-weight: 600; margin-top: 0.25rem; }
.sh-hero__buttons { margin-top: 2rem; gap: 0.75rem; }
.sh-btn-light .wp-block-button__link { background: #F4F1EC; color: #1E2226; }
.sh-btn-light .wp-block-button__link:hover { background: #D9774E; color: #1E2226; }
.sh-btn-ghost .wp-block-button__link { background: transparent; color: #F4F1EC; border: 1px solid rgba(244,241,236,0.5); }
.sh-btn-ghost .wp-block-button__link:hover { background: transparent; border-color: #D9774E; color: #D9774E; }

.sh-section { padding-block: clamp(3rem, 7vw, 5rem); }
.sh-section--white { background: #fff; border-top: 1px solid #C9C4BC; border-bottom: 1px solid #C9C4BC; }
.sh-section__title { font-size: 1.6rem; margin-bottom: 2rem; }
.sh-section__title::before { content: ""; display: block; width: 44px; height: 3px; background: #B4532A; margin-bottom: 0.9rem; }

.sh-cards { gap: 1.25rem; }
.sh-card { background: #fff; border: 1px solid #E4DFD7; border-top: 3px solid #B4532A; padding: 1.5rem 1.4rem 1.25rem; display: flex; flex-direction: column; }
.sh-card h3 { font-size: 1.15rem; margin: 0 0 0.6rem; }
.sh-card p { font-size: 0.95rem; color: #4A5058; margin: 0; }
.sh-card .sh-card__link { margin-top: auto; padding-top: 1rem; font-weight: 600; font-size: 0.9rem; }
.sh-card__link a { text-decoration: none; }
.sh-card__link a::after { content: " →"; }
.sh-section .sh-muted { margin-top: 1.75rem; }

.sh-latest .wp-block-post-template { gap: 2rem 1.75rem; }
.sh-latest .wp-block-post { border-top: 1px solid #C9C4BC; padding-top: 1.1rem; }
.sh-latest .wp-block-post-title { font-size: 1.15rem; line-height: 1.35; margin: 0.35rem 0 0.5rem; }
.sh-latest .wp-block-post-title a, .sh-postlist__title a { color: #1E2226; text-decoration: none; }
.sh-latest .wp-block-post-title a:hover, .sh-postlist__title a:hover { color: #B4532A; }
.sh-latest .wp-block-post-excerpt { font-size: 0.95rem; color: #4A5058; margin: 0; }
.sh-latest .wp-block-post-excerpt__excerpt { margin: 0; }
.sh-more { margin-top: 2rem; font-weight: 600; }
.sh-more a { text-decoration: none; }

/* ---------- Kategori ve liste ---------- */
.sh-meta-cat, .sh-meta-cat a { color: #B4532A; text-decoration: none; font-size: 0.72rem !important; }
.sh-catlist { list-style: none; padding: 0; margin: 1.5rem 0 2.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sh-catlist li { margin: 0; }
.sh-catlist a { display: inline-block; padding: 0.35rem 0.8rem; border: 1px solid #C9C4BC; border-radius: 99px; font-size: 0.85rem; font-weight: 600; color: #1E2226; text-decoration: none; background: #fff; }
.sh-catlist a:hover { border-color: #B4532A; color: #B4532A; }
.sh-postlist .wp-block-post-template { list-style: none; padding: 0; margin: 0; }
.sh-postlist .wp-block-post { border-top: 1px solid #C9C4BC; padding-block: 1.6rem; margin: 0; }
.sh-postlist .wp-block-post:last-child { border-bottom: 1px solid #C9C4BC; }
.sh-postlist__title { font-size: 1.45rem !important; margin: 0.35rem 0 0.6rem; }
.sh-postlist .wp-block-post-excerpt__excerpt { margin: 0 0 0.5rem; color: #4A5058; }
.wp-block-query-pagination { margin-top: 2rem; font-weight: 600; }
.wp-block-query-pagination a { text-decoration: none; }

/* ---------- Makale ---------- */
.sh-article-head { margin-bottom: 2rem; }
.sh-article-head .wp-block-post-title { margin-top: 0.4rem; }
.sh-byline { gap: 0.4rem 1rem; color: #4A5058; font-size: 0.9rem; border-bottom: 1px solid #C9C4BC; padding-bottom: 1.25rem; }
.sh-byline p { margin: 0; font-weight: 600; color: #1E2226; }
.sh-byline p::after { content: "·"; margin-left: 1rem; color: #B4532A; }
.sh-featured img { width: 100%; height: auto; }
.sh-note { background: #fff; border-left: 3px solid #B4532A; padding: 1rem 1.25rem; font-size: 0.9rem; color: #4A5058; margin-top: 2.5rem; }
.sh-note p { margin: 0; }
.sh-summary { background: #fff; border: 1px solid #E4DFD7; padding: 1.25rem 1.5rem; margin-block: 1.75rem; }
.sh-summary__title { font-size: 0.8rem !important; letter-spacing: 0.14em; text-transform: uppercase; color: #B4532A !important; margin: 0 0 0.5rem !important; }
.sh-summary ul { margin: 0; }
.sh-deadline { background: #1E2226; color: #F4F1EC; padding: 1rem 1.25rem; margin-block: 1.75rem; }
.sh-deadline p { margin: 0; }
.sh-deadline strong { color: #D9774E; }
.sh-basis { font-size: 0.85rem; color: #4A5058; border-top: 1px solid #C9C4BC; padding-top: 0.9rem; margin-top: 2rem; }
.sh-tags { font-size: 0.85rem; color: #4A5058; margin-top: 1.5rem; }
.sh-postnav { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #C9C4BC; font-size: 0.9rem; gap: 1rem; }
.sh-postnav a { text-decoration: none; font-weight: 600; }

/* ---------- İletişim ---------- */
.sh-contact { gap: 1.25rem; margin-block: 1.5rem; }
.sh-contact .sh-card p { font-size: 1.1rem; font-weight: 600; }
.sh-contact .sh-card a { color: #1E2226; text-decoration: none; }
.sh-contact .sh-card a:hover { color: #B4532A; }

/* ---------- Alt alan ---------- */
.sh-footer { background: #1E2226; color: #C9C4BC; padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; font-size: 0.92rem; }
.sh-footer a { color: #F4F1EC; text-decoration: none; }
.sh-footer a:hover { color: #D9774E; }
.sh-footer__brand img { width: 190px; height: auto; display: block; }
.sh-footer__small { margin-top: 0.75rem; color: #C9C4BC; }
.sh-footer__title { font-size: 0.72rem !important; letter-spacing: 0.16em; text-transform: uppercase; color: #D9774E !important; font-weight: 700 !important; margin-bottom: 0.75rem; }
.sh-footer p { line-height: 1.9; margin: 0; }
.sh-footer__sep { border-color: rgba(201,196,188,0.25) !important; margin-block: 2rem 1.25rem !important; opacity: 1; }
.sh-footer__legal p { font-size: 0.78rem; color: #9A968F; line-height: 1.6; }

/* ---------- Arama ---------- */
.wp-block-search__input { border: 1px solid #C9C4BC; padding: 0.7rem 0.9rem; font: inherit; }
.wp-block-search__button { background: #1E2226; color: #F4F1EC; border: 0; padding-inline: 1.2rem; font-weight: 600; }
.sh-footer .sh-footer__sep { width: 100% !important; max-width: var(--wp--style--global--wide-size) !important; }
.sh-footer .sh-footer__small { margin-top: 0.9rem; }

/* ---------- Çalışma alanı kutuları ---------- */
.sh-tiles { gap: 0.75rem !important; }
.sh-tiles .sh-tile { margin: 0; }
.sh-tile a { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; height: 100%; box-sizing: border-box; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid #E4DFD7; border-left: 3px solid #B4532A; color: #1E2226; font-weight: 700; font-size: 1rem; line-height: 1.35; text-decoration: none; transition: background .15s, color .15s; }
.sh-tile a::after { content: "→"; color: #B4532A; font-weight: 400; transition: transform .15s; }
.sh-tile a:hover { background: #1E2226; color: #F4F1EC; border-color: #1E2226; border-left-color: #D9774E; }
.sh-tile a:hover::after { color: #D9774E; transform: translateX(3px); }
.wp-block-post-content .sh-tiles { margin-block: 1.5rem; }
.sh-arealist .wp-block-post-template { list-style: none; padding: 0; margin: 0; }
.sh-arealist .wp-block-post { border-top: 1px solid #C9C4BC; padding-block: 0.9rem; margin: 0; }
.sh-arealist .wp-block-post-title { font-size: 1.1rem; margin: 0 0 0.25rem; }
.sh-arealist .wp-block-post-title a { color: #1E2226; text-decoration: none; }
.sh-arealist .wp-block-post-title a:hover { color: #B4532A; }
.sh-back { margin-top: 2.5rem; font-weight: 600; font-size: 0.95rem; }
.sh-back a { text-decoration: none; }

/* ---------- Online danışma formu ---------- */
.sh-steps { color: #4A5058; }
.sh-formwrap { background: #fff; border: 1px solid #E4DFD7; border-top: 3px solid #B4532A; padding: clamp(1.25rem, 3vw, 2rem); margin-top: 2rem; scroll-margin-top: 1rem; }
.sh-form { display: grid; gap: 1rem; }
.sh-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.sh-form__field { margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.sh-form label, .sh-form legend { font-size: 0.85rem; font-weight: 600; color: #1E2226; }
.sh-form input[type=text], .sh-form input[type=email], .sh-form input[type=tel], .sh-form select, .sh-form textarea { font: inherit; font-size: 1rem; color: #1E2226; background: #F7F5F1; border: 1px solid #C9C4BC; border-radius: 2px; padding: 0.7rem 0.8rem; width: 100%; box-sizing: border-box; }
.sh-form input:focus, .sh-form select:focus, .sh-form textarea:focus { outline: 2px solid #B4532A; outline-offset: 0; border-color: #B4532A; background: #fff; }
.sh-form small { font-size: 0.8rem; color: #4A5058; line-height: 1.5; }
.sh-form__choices { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.sh-form__choices legend { margin-bottom: 0.4rem; width: 100%; }
.sh-form__choices label, .sh-form__check label { font-weight: 400; font-size: 0.95rem; display: inline-flex; gap: 0.45rem; align-items: center; }
.sh-form__check { margin: 0; }
.sh-form__check input { accent-color: #B4532A; }
.sh-form__choices input { accent-color: #B4532A; }
.sh-form__submit { margin: 0; }
.sh-form__submit button { cursor: pointer; border: 0; }
.sh-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sh-form-msg { padding: 1rem 1.25rem; margin-bottom: 1.25rem; font-size: 0.95rem; }
.sh-form-msg--ok { background: #1E2226; color: #F4F1EC; border-left: 3px solid #D9774E; }
.sh-form-msg--err { background: #FBEDE6; color: #1E2226; border-left: 3px solid #B4532A; }
.sh-form .sh-form__choices { flex-direction: row; }
.sh-form__check label { display: block; }
.sh-form__check input { margin-right: 0.45rem; vertical-align: -1px; }
.sh-process { padding-left: 1.3rem; }
.sh-process li { margin-bottom: 0.8rem; padding-left: 0.3rem; }
.sh-process li::marker { color: #B4532A; font-weight: 800; }
.wp-block-post-content #talep-formu { scroll-margin-top: 1rem; }

/* Orta genişlikte (tablet / dar pencere) menü tek satırda kalsın */
.sh-nav .wp-block-navigation__container { flex-wrap: nowrap; }
@media (min-width: 600px) and (max-width: 1100px) {
	.sh-header__inner { gap: 1rem; }
	.sh-nav .wp-block-navigation__container { gap: 1rem; }
	.sh-nav .wp-block-navigation-item__content { font-size: 0.8rem; }
	.sh-brand__logo { width: 130px; }
	.sh-brand__mark { width: 32px; height: 32px; }
}
@media (min-width: 600px) and (max-width: 760px) {
	.sh-brand__mark { display: none; }
	.sh-nav .wp-block-navigation__container { gap: 0.75rem; }
}

/* Mobil menü: koyu zemin, okunaklı yazı */
.sh-nav .wp-block-navigation__responsive-container.is-menu-open { background-color: #1E2226 !important; color: #F4F1EC !important; }
.sh-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { color: #F4F1EC !important; font-size: 1.35rem; font-weight: 700; border-bottom: 0; padding-block: 0.5rem; }
.sh-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover { color: #D9774E !important; }
.sh-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0.9rem; }
.sh-nav .wp-block-navigation__responsive-container-close { color: #F4F1EC !important; }
.sh-nav .wp-block-navigation__responsive-container-open { color: #1E2226; }
.sh-hero__title { margin-top: 0 !important; }
