/*
Theme Name: A. Bilge Çelebi Smit — Professional Practice
Author: A. Bilge Çelebi Smit
Description: The approved restrained single-page professional presence, with domain-email enquiries and a copy-address fallback.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bilge-celebi-smit
*/
:root {
  --paper: #f2efe8;
  --ink: #182022;
  --muted: #5e6766;
  --accent: #123d43;
  --line: rgba(24, 32, 34, .18);
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 100;
  background: var(--ink); color: white; padding: .8rem 1rem;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid #0b6d78; outline-offset: 4px; }
.email-help[hidden] { display: none; }
.email-help {
  position: fixed; z-index: 100; right: 1rem; bottom: 1rem;
  width: min(25rem, calc(100% - 2rem)); max-height: calc(100svh - 2rem); overflow: auto;
  padding: 1.5rem; background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink); box-shadow: 0 8px 32px #0003;
  font-family: var(--sans); font-size: 1rem;
}
.email-help p { margin: 0 1rem 1rem 0; }
.email-help label { display: block; margin-bottom: .4rem; }
.email-help input { width: 100%; padding: .65rem; font: inherit; background: white; color: var(--ink); border: 1px solid var(--muted); }
.email-help button { font: inherit; cursor: pointer; }
.email-help-close { position: absolute; right: .3rem; top: .3rem; width: 2.75rem; height: 2.75rem; background: transparent; border: 0; color: var(--ink); }
.email-copy { margin-top: .75rem; padding: .65rem 1rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
.email-help .email-copy-status { margin: .75rem 0 0; }

.site-header {
  min-height: 92px;
  padding: 0 clamp(1.5rem, 5vw, 4.5rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 10;
}
.identity { display: flex; align-items: center; gap: 1rem; text-decoration: none; min-width: 0; }
.identity-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--ink); border-radius: 50%;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; flex: 0 0 auto;
}
.identity-name { font-size: .9rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
nav { display: flex; align-items: center; flex: 0 0 auto; }
nav a { font-size: .875rem; font-weight: 500; text-decoration: none; }
nav a:not(.nav-enquiry):hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-enquiry {
  border: 1px solid var(--ink); padding: .7rem 1rem; min-width: 88px;
  text-align: center; transition: .2s ease;
}
.nav-enquiry:hover { background: var(--ink); color: var(--paper); }

.hero {
  min-height: calc(100svh - 92px);
  padding: clamp(3rem, 8vh, 7rem) clamp(1.5rem, 5vw, 4.5rem) 3rem;
  display: grid;
  grid-template-columns: minmax(40px, 1fr) minmax(0, 8fr) minmax(250px, 3fr);
  grid-template-rows: 1fr auto;
  column-gap: 2rem;
  position: relative; overflow: hidden;
}
.hero-index {
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; justify-content: flex-end; gap: 2rem;
  color: var(--muted); font-size: .8rem; text-transform: uppercase;
  letter-spacing: .17em; padding-bottom: .7rem;
}
.hero-content { align-self: center; min-width: 0; position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 1.5rem; color: var(--accent); font-size: .875rem;
  font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
h1 {
  margin: 0; max-width: 1000px;
  font-size: clamp(4.1rem, 8.4vw, 8.5rem);
  line-height: .82;
}
.name-line { display: block; }
.surname-line { white-space: nowrap; }
.positioning {
  margin: clamp(2rem, 4vh, 3.5rem) 0 0;
  font-family: var(--serif); font-size: clamp(1.55rem, 2.5vw, 2.7rem);
  line-height: 1.06; color: var(--accent); letter-spacing: -.025em;
}
.positioning span { display: inline; }
.hero-statement {
  align-self: end; border-top: 1px solid var(--ink);
  padding-top: 1.3rem; margin-left: 0; min-width: 0; position: relative; z-index: 2;
}
.hero-statement p { margin: 0 0 2rem; font-size: clamp(1.05rem, 1.25vw, 1.18rem); line-height: 1.6; }
.text-link {
  display: inline-flex; justify-content: space-between; gap: 2rem;
  min-height: 44px; align-items: center; font-size: .875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.monogram {
  position: absolute; right: -1.5vw; top: 50%; transform: translateY(-54%);
  color: rgba(18,61,67,.045); font-family: var(--serif);
  font-size: min(69vw, 860px); line-height: .7; pointer-events: none;
}

.practice, .perspective {
  padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
}
.practice { background: var(--accent); color: #f3f0e8; }
.practice .eyebrow { color: #a9c2c2; }
.section-intro {
  display: grid; grid-template-columns: 1fr 11fr; gap: 2rem;
  margin-bottom: clamp(4rem, 8vw, 8rem);
}
.section-number { margin: .45rem 0 0; font-size: .8rem; letter-spacing: .15em; }
h2 { margin: 0; font-size: clamp(2.9rem, 6.5vw, 7rem); line-height: .92; }
.practice-grid {
  margin-left: calc((100% + 2rem) / 12);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(243,240,232,.38);
}
.practice article {
  min-height: 310px; padding: 1.4rem 1.5rem 2rem 0;
  border-right: 1px solid rgba(243,240,232,.25);
  display: flex; flex-direction: column;
}
.practice article:not(:first-child) { padding-left: 1.5rem; }
.practice article:last-child { border-right: 0; }
.article-number { font-size: .78rem; letter-spacing: .15em; color: #a9c2c2; }
h3 {
  margin: clamp(2.25rem, 5vw, 3.25rem) 0 1.4rem; font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 2vw, 2.25rem); line-height: 1.03;
}
.practice article p { margin: 0; color: #cfdbd9; font-size: 1rem; line-height: 1.55; }

.perspective { background: #e7e3da; }
.perspective-content {
  margin-left: calc((100% + 2rem) / 12);
  display: grid; grid-template-columns: 7fr 4fr; gap: clamp(3rem, 8vw, 8rem);
}
.perspective-content p { margin: 0; color: var(--muted); font-size: 1.0625rem; line-height: 1.72; }
.perspective-content .lead {
  font-family: var(--serif); color: var(--ink); font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1.12; letter-spacing: -.025em;
}
.evidence {
  margin: clamp(5rem, 9vw, 9rem) 0 0 calc((100% + 2rem) / 12);
  border-top: 1px solid var(--line); display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(1.25rem, 2.4vw, 2.75rem);
}
.evidence-item {
  padding: 1.8rem 0 0; min-width: 0;
  display: flex; flex-direction: column; gap: .55rem;
}
.evidence-heading { display: flex; align-items: flex-start; gap: .8rem; flex-wrap: wrap; }
.evidence strong {
  font-family: var(--serif); font-size: clamp(1.65rem, 2.25vw, 2.1rem);
  font-weight: 400; line-height: 1.03; text-wrap: balance;
}
.evidence-title {
  max-width: 8.5rem; padding-top: .18rem; color: var(--ink);
  font-size: .88rem; font-weight: 600; line-height: 1.35;
  letter-spacing: .06em; text-transform: uppercase;
}
.evidence-detail {
  margin: 0; color: var(--muted); font-size: 1rem;
  line-height: 1.55; letter-spacing: .015em;
}
.sector-focus { color: var(--accent); font-weight: 600; }

.contact {
  padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 5vw, 4.5rem);
  background: var(--ink); color: var(--paper);
}
.contact .eyebrow { color: #8eb4b5; }
.contact h2 { max-width: 1100px; }
.contact > p:not(.eyebrow) { max-width: 600px; margin: 3rem 0 4rem; color: #bdc3c1; font-size: 1.05rem; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(242,239,232,.32); }
.contact-actions a {
  min-height: 100px; display: flex; justify-content: space-between; align-items: center;
  padding: 0 1.5rem 0 0; text-decoration: none; font-size: .875rem;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.contact-actions a:first-child { border-right: 1px solid rgba(242,239,232,.32); padding-right: 2rem; }
.contact-actions a:last-child { padding-left: 2rem; }
.contact-actions a:hover { color: #9fc8c8; }
.contact :focus-visible { outline-color: #9fc8c8; }

footer {
  min-height: 86px; padding: 0 clamp(1.5rem, 5vw, 4.5rem);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--ink); color: #8d9694; border-top: 1px solid rgba(242,239,232,.13);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
}

@media (max-width: 1100px) {
  .practice-grid { grid-template-columns: 1fr 1fr; margin-left: 0; }
  .practice article { border-bottom: 1px solid rgba(243,240,232,.25); min-height: 270px; }
  .practice article:nth-child(2) { border-right: 0; }
  .practice article:nth-child(3), .practice article:nth-child(4) { border-bottom: 0; }
  .evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.25rem; }
}

@media (min-width: 601px) and (max-width: 1100px) {
  .practice article:nth-child(odd) { padding-left: 0; }
}

@media (min-width: 1201px) {
  .hero { grid-template-columns: minmax(40px, 1fr) minmax(0, 7.5fr) minmax(290px, 3.5fr); }
  .hero-statement { margin-left: 0; }
}

@media (max-width: 1200px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto; gap: 3rem; min-height: auto; }
  .hero-index { display: none; }
  .hero-content { padding: 3rem 0 1rem; }
  .hero-statement { max-width: none; margin-left: 0; }
  .perspective-content, .evidence { margin-left: 0; }
}

@media (max-width: 600px) {
  .site-header { min-height: 76px; }
  .identity-name { display: block; max-width: none; line-height: 1.2; }
  .hero { padding-top: 2rem; padding-bottom: 4rem; }
  h1 { font-size: clamp(3.05rem, 15vw, 5rem); line-height: .86; }
  .positioning span { display: inline; }
  .section-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-number { display: none; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice article, .practice article:not(:first-child) {
    padding: 1.3rem 0 1.7rem; min-height: 230px; border-right: 0;
    border-bottom: 1px solid rgba(243,240,232,.25);
  }
  .practice article:last-child { border-bottom: 0; }
  .perspective-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; row-gap: 2rem; }
  .evidence-item { padding-top: 1.4rem; }
  .evidence-detail { font-size: 1rem; }
  .contact h2 br { display: none; }
  .contact-actions { grid-template-columns: 1fr; }
  .contact-actions a:first-child { border-right: 0; border-bottom: 1px solid rgba(242,239,232,.32); padding-right: 0; }
  .contact-actions a:last-child { padding-left: 0; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: .5rem; }
}

@media (max-width: 380px) {
  .site-header { padding-left: 1rem; padding-right: 1rem; gap: .75rem; }
  .identity { gap: .7rem; }
  .identity-mark { width: 38px; height: 38px; font-size: .7rem; flex: 0 0 auto; }
  .identity-name { max-width: none; font-size: .76rem; }
  .nav-enquiry { min-width: 80px; padding: .65rem .7rem; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
