/*
Theme Name: Yasli Hukuk
Theme URI: https://www.yasli.av.tr
Author: Yasli Hukuk
Description: Arb. Av. Zafer YASLI icin ana sayfa, iletisim sayfasi ve makale sayfalari bulunan yazi odakli hukuk burosu temasi.
Version: 1.2.0
Requires at least: 6.0
Text Domain: yasli-hukuk
*/

:root {
  --bg: #f5f6f4;
  --paper: #ffffff;
  --paper-soft: #eef3f1;
  --green-soft: #dfeee7;
  --green-wash: #f0f7f3;
  --ink: #182127;
  --muted: #687178;
  --line: #d9dfdc;
  --accent: #7f2336;
  --accent-strong: #5f1828;
  --secondary: #24785c;
  --secondary-strong: #155444;
  --shadow: 0 22px 60px rgba(24, 33, 39, 0.08);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(36, 120, 92, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 33, 39, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 68px 68px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  color: var(--muted);
  font-size: 1rem;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 223, 220, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

body.admin-bar .site-header {
  top: 32px;
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--secondary);
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--secondary-strong);
  font-size: 0.82rem;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-name {
  color: var(--ink);
  font-size: 1rem;
  white-space: nowrap;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav-links ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #3c454b;
  font-size: 0.92rem;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  outline: none;
  background: var(--paper-soft);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(127, 35, 54, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-strong);
}

.btn-secondary {
  color: var(--ink);
  background: var(--green-wash);
  border-color: var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--secondary);
  background: var(--green-soft);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: 64px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 4.6vw, 4.05rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--secondary-strong);
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 30px;
  color: #4b555b;
  font-size: clamp(1.05rem, 2vw, 1.26rem);
}

.hero-note {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.metric {
  position: relative;
  min-height: 116px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
}

.metric::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: var(--secondary);
}

.metric:nth-child(2)::before {
  background: var(--accent);
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.2;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.statement-panel {
  position: relative;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(223, 238, 231, 0.92), transparent 58%),
    var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.statement-panel::before {
  content: "AV";
  position: absolute;
  right: -8px;
  bottom: -34px;
  color: rgba(127, 35, 54, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(7rem, 16vw, 13rem);
  line-height: 1;
  font-weight: 700;
}

.statement-panel blockquote {
  position: relative;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.16;
  color: var(--ink);
}

.statement-panel p {
  position: relative;
  margin: 28px 0 0;
  color: #505a60;
}

.section {
  padding: clamp(68px, 9vw, 108px) 0;
  border-top: 1px solid rgba(217, 223, 220, 0.8);
}

.page-hero {
  padding: clamp(72px, 10vw, 132px) 0 clamp(34px, 6vw, 70px);
}

.page-hero h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: 0;
}

.page-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: #4b555b;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.content-section {
  padding: clamp(42px, 7vw, 78px) 0 clamp(78px, 10vw, 120px);
  border-top: 1px solid rgba(217, 223, 220, 0.8);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.28fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
}

.content-body {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.content-body h2,
.content-body h3 {
  margin: 1.45em 0 0.45em;
  color: var(--ink);
  line-height: 1.2;
}

.content-body h2:first-child,
.content-body h3:first-child {
  margin-top: 0;
}

.content-body p,
.content-body li {
  color: #4b555b;
  font-size: 1.02rem;
}

.content-body a {
  color: var(--secondary-strong);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.content-body ul,
.content-body ol {
  padding-left: 1.25rem;
}

.content-side {
  display: grid;
  gap: 14px;
}

.side-box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--green-wash);
}

.side-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.02rem;
}

.side-box p {
  margin-bottom: 14px;
  font-size: 0.94rem;
}

.post-list {
  display: grid;
  gap: 14px;
}

.post-list article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.post-list h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.section-alt {
  background: rgba(255, 255, 255, 0.58);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 0.9fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: end;
  margin-bottom: 34px;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: 0;
}

.section-head p {
  margin-bottom: 0;
  font-size: 1.04rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.48fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.lead-box {
  padding: clamp(24px, 4vw, 34px);
  border-left: 4px solid var(--secondary);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.lead-box p {
  margin: 0;
  color: #3d474d;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.principles {
  display: grid;
  gap: 14px;
}

.principle {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.principle:first-child {
  padding-top: 0;
}

.principle strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 1.02rem;
}

.principle p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.practice-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.practice-card:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 120, 92, 0.52);
  box-shadow: var(--shadow);
}

.card-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--secondary-strong);
  font-weight: 800;
  font-size: 0.86rem;
}

.practice-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.practice-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.process-step {
  min-height: 230px;
  padding: 26px;
  border-right: 1px solid var(--line);
  counter-increment: step;
}

.process-step:last-child {
  border-right: 0;
}

.process-step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 38px;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.process-step h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.process-step p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.writing-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
  gap: 22px;
}

.feature-note {
  min-height: 100%;
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--secondary-strong), var(--ink) 62%);
  color: #fff;
}

.feature-note .section-kicker {
  color: #9fc9c4;
}

.feature-note h2 {
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.feature-note p {
  color: rgba(255, 255, 255, 0.72);
}

.article-list {
  display: grid;
  gap: 12px;
}

.article-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.article-date {
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-card h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  line-height: 1.28;
}

.article-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

summary {
  cursor: pointer;
  min-height: 74px;
  padding: 22px 24px;
  color: var(--ink);
  font-weight: 750;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}

details[open] summary::after {
  content: "-";
}

details p {
  margin: 0;
  padding: 0 24px 24px;
  font-size: 0.95rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.58fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: stretch;
}

.contact-info {
  padding: clamp(26px, 5vw, 42px);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-list span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-list a,
.contact-list strong {
  color: var(--ink);
  font-size: 1.06rem;
  overflow-wrap: anywhere;
}

.map-view {
  margin: -6px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--green-wash);
  overflow: hidden;
}

.map-view iframe {
  display: block;
  width: 100%;
  min-height: 280px;
  border: 0;
}

.map-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-top: 1px solid var(--line);
  color: var(--secondary-strong);
  font-size: 0.92rem;
  font-weight: 800;
}

.notice {
  margin: 0;
  padding: 18px;
  border-left: 4px solid var(--secondary);
  border-radius: 6px;
  background: var(--paper-soft);
  color: #445056;
  font-size: 0.92rem;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.field {
  display: grid;
  gap: 7px;
}

label {
  color: #3b464c;
  font-size: 0.88rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
  padding: 13px 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  min-height: 126px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(36, 120, 92, 0.12);
}

.form-hint {
  margin-bottom: 0;
  font-size: 0.86rem;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-content strong {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.92rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .section-head,
  .two-column,
  .writing-layout,
  .contact-panel,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-step {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .process-step:nth-child(2n) {
    border-right: 0;
  }

  .process-step:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .container {
    width: min(calc(100% - 24px), var(--max));
  }

  .nav {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links ul {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a {
    padding: 13px 14px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    padding: 48px 0 26px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 9.4vw, 3.15rem);
    line-height: 1.04;
  }

  .hero-note,
  .practice-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: auto;
  }

  .process {
    grid-template-columns: 1fr;
  }

  .process-step,
  .process-step:nth-child(2n),
  .process-step:nth-last-child(-n + 2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .process-step::before {
    margin-bottom: 22px;
  }

  .article-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .button-row .btn {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .brand-name {
    font-size: 0.93rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .statement-panel,
  .practice-card,
  .article-card,
  .contact-form,
  .contact-info,
  .feature-note {
    padding: 22px;
  }
}
