/*
Theme Name: Altunezen
Description: Altunezen Hukuk Bürosu — bilingual (Polylang) informational theme. Attorneys, practice areas and offices are managed in wp-admin.
Version: 1.1.0
Requires PHP: 8.0
Text Domain: altunezen
*/

:root {
	--charcoal: #4e4f4f;
	--ink: #2d2e2e;
	--coral: #ed4737;
	--coral-dark: #c73a2c;
	--muted: #6b6c6c;
	--line: #e4e1df;
	--tint: #f4f1ef;
	--bg: #ffffff;
	--radius: 4px;
	--wrap: 1140px;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) { --ink: #ecebea; --muted: #b0aeac; --line: #3a3b3b; --tint: #232424; --bg: #1a1b1b; --charcoal: #d8d6d4; }
}
:root[data-theme="dark"] { --ink: #ecebea; --muted: #b0aeac; --line: #3a3b3b; --tint: #232424; --bg: #1a1b1b; --charcoal: #d8d6d4; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 300 17px/1.75 Roboto, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-dark); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: Lora, Georgia, serif; font-weight: 400; line-height: 1.25; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.3rem; }
strong { font-weight: 500; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: var(--bg); padding: 8px 12px; }

.btn { display: inline-block; padding: .85em 1.9em; border: 1px solid var(--coral); background: var(--coral); color: #fff; font: 500 .82rem/1 Roboto, sans-serif; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; border-radius: var(--radius); transition: background .15s; }
.btn:hover { background: var(--coral-dark); border-color: var(--coral-dark); }
.btn--light { background: transparent; border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: #2d2e2e; }

/* header */
.header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 1rem; }
.brand__logo { width: 170px; height: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand__logo { background: #fff; padding: 4px 8px; border-radius: 3px; } }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--charcoal); text-decoration: none; font-size: .82rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: .4em 0; border-bottom: 2px solid transparent; }
.nav__list a:hover { border-color: var(--coral); color: var(--ink); }
.lang { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 1px solid var(--line); }
.lang a { display: block; padding: .3em .5em; font-size: .78rem; font-weight: 500; letter-spacing: .1em; color: var(--muted); text-decoration: none; }
.lang a[aria-current] { color: var(--coral-dark); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; cursor: pointer; }
.nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--charcoal); content: ""; }
.nav-toggle span:first-child { top: 21px; } .nav-toggle span:first-child::before { top: -7px; left: 0; } .nav-toggle span:first-child::after { top: 7px; left: 0; }

/* hero */
.hero { position: relative; color: #fff; background: #2d2e2e; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, #3b3c3c 0 38%, transparent 38%), linear-gradient(118deg, transparent 58%, rgba(237,71,55,.92) 58% 64%, transparent 64%); }
.hero__inner { position: relative; padding: clamp(5rem, 14vw, 9rem) 16px; text-align: center; }
.hero h1 { color: #fff; margin-bottom: 1.4rem; letter-spacing: .02em; }
.kicker { font-size: .78rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: #f2b8b1; margin: 0 0 1rem; }

/* sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tint { background: var(--tint); }
.title { text-align: center; margin-bottom: 2.4rem; }
.title::after { content: ""; display: block; width: 48px; height: 2px; background: var(--coral); margin: .9rem auto 0; }
.lead { color: var(--muted); max-width: 720px; margin: -1rem auto 2.6rem; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: .6rem .5rem; vertical-align: top; }
.page-head { background: var(--tint); padding: 3rem 0 2rem; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.crumbs { font-size: .9rem; margin-bottom: 2rem; }

/* practices */
.practices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.practices li { background: var(--bg); padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .25rem; }
.practices__name { font-family: Lora, Georgia, serif; font-size: 1.1rem; position: relative; padding-left: 1.1rem; }
.practices__name::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; background: var(--coral); transform: rotate(45deg); }
.practices__desc { color: var(--muted); font-size: .92rem; padding-left: 1.1rem; }

/* lawyers */
.lawyers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
.lawyer__photo { aspect-ratio: 4 / 5; background: var(--tint); overflow: hidden; margin-bottom: 1.2rem; filter: grayscale(1); }
.lawyer__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lawyer__initials { display: grid; place-items: center; height: 100%; font: 3rem Lora, serif; color: var(--muted); }
.lawyer__name { margin-bottom: .1rem; }
.lawyer__role { color: var(--coral-dark); font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1rem; }
.lawyer__bio { font-size: .97rem; }
.lawyer__bio p { margin: 0 0 1em; }
.lawyer__h { font-size: .8rem; font-family: Roboto, sans-serif; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 1.2rem 0 .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.lawyer__edu { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.lawyer__edu li { padding: .25rem 0 .25rem 1rem; position: relative; }
.lawyer__edu li::before { content: "–"; position: absolute; left: 0; color: var(--coral); }
.lawyer__pubs { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.lawyer__pubs li { padding: .35rem 0 .35rem 1rem; position: relative; line-height: 1.5; }
.lawyer__pubs li::before { content: "–"; position: absolute; left: 0; color: var(--coral); }
.lawyer__pubs a { color: var(--ink); text-decoration-color: var(--coral); }
.lawyer__pubs a:hover { color: var(--coral-dark); }
.lawyer--full { display: grid; grid-template-columns: 280px 1fr; gap: 2.4rem; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3rem; align-items: start; }
.offices { display: grid; gap: 1.6rem; }
.office { background: var(--bg); border-left: 3px solid var(--coral); padding: 1.4rem 1.6rem; }
.office h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.office__addr, .office__lines { margin: 0 0 .8rem; font-size: .96rem; }
.office__lines a { color: var(--ink); text-decoration: none; }
.office__lines a:hover { color: var(--coral-dark); }
.office__map { font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.form { display: grid; gap: 1rem; background: var(--bg); padding: 1.8rem; border: 1px solid var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 500; }
.form input, .form textarea { font: 300 1rem Roboto, sans-serif; color: var(--ink); background: var(--bg); padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--coral); outline-offset: 1px; border-color: transparent; }
.form__check { display: flex !important; align-items: flex-start; gap: .6rem !important; font-weight: 300 !important; }
.form__check input { width: auto; margin-top: .35em; }
.form__note { font-size: .82rem; color: var(--muted); margin: 0; }
.form__hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.notice { padding: .9rem 1.1rem; margin-bottom: 1rem; border-radius: var(--radius); }
.notice--ok { background: #e7f5ea; color: #1d5a2c; }
.notice--error { background: #fbe9e7; color: #8a2419; }

/* footer */
.footer { background: #2d2e2e; color: #c9c7c5; font-size: .9rem; padding-top: 2.6rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: #f2b8b1; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.6rem; align-items: center; padding-bottom: 2rem; }
.footer__brand { display: grid; }
.footer__brand strong { font-family: Lora, serif; font-weight: 400; font-size: 1.15rem; color: #fff; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.footer__social { display: flex; gap: 1.2rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; border-top: 1px solid #454646; padding-top: 1.2rem; padding-bottom: 1.6rem; font-size: .8rem; color: #9a9896; }

@media (max-width: 900px) {
	.practices { grid-template-columns: repeat(2, 1fr); }
	.lawyers { grid-template-columns: 1fr 1fr; }
	.contact, .lawyer__pubs { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.lawyer__pubs li { padding: .35rem 0 .35rem 1rem; position: relative; line-height: 1.5; }
.lawyer__pubs li::before { content: "–"; position: absolute; left: 0; color: var(--coral); }
.lawyer__pubs a { color: var(--ink); text-decoration-color: var(--coral); }
.lawyer__pubs a:hover { color: var(--coral-dark); }
.lawyer--full { grid-template-columns: 1fr; }
	.nav-toggle { display: block; }
	.nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 16px 1rem; border-bottom: 1px solid var(--line); display: none; }
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); }
	.lang { border: 0; padding: .8rem 0 0; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.practices, .lawyers, .form__row { grid-template-columns: 1fr; }
	.brand__logo { width: 140px; }
	.form { padding: 1.2rem; }
}
