/* =========================================================
   BOZKURT HUKUK — Tasarım Sistemi
   Konsept: Resmî Gazete / Kanun metni estetiği.
   Palet   : Lacivert (ink), kâğıt tonları, bordo mühür, pirinç/altın çizgi.
   Tipografi: Newsreader (başlık) + IBM Plex Sans (gövde) + IBM Plex Mono (madde/etiket)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,500&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  --ink: #14213D;
  --ink-2: #1E2E52;
  --paper: #EFEDE6;
  --paper-dark: #E3E0D3;
  --paper-line: #CFCABA;
  --burgundy: #7A1F2B;
  --burgundy-dark: #5E1520;
  --gold: #A9822E;
  --charcoal: #23262B;
  --muted: #5B5748;
  --white: #FBFAF6;

  --font-display: 'Newsreader', 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
  --radius: 2px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight:600; margin:0; color: var(--ink); }
p{ margin:0 0 1em 0; }
.container{ max-width: var(--container); margin:0 auto; padding: 0 28px; }

:focus-visible{ outline: 2px solid var(--burgundy); outline-offset: 3px; }

/* ---------- Eyebrow / Mono labels ---------- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--burgundy);
  display:flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width: 22px; height:1px;
  background: var(--burgundy);
  display:inline-block;
}

/* ---------- Masthead / Header ---------- */
.masthead-top{
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
}
.masthead-top .container{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:8px; padding-bottom:8px;
  flex-wrap: wrap; gap:6px;
}
.masthead-top a:hover{ color: var(--gold); }

.site-header{
  background: var(--white);
  border-bottom: 3px double var(--ink);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 20px; padding-bottom: 18px;
  gap: 24px;
}
.brand{ display:flex; align-items:center; gap:14px; }
.brand-name{
  font-family: var(--font-display);
  font-size: 27px;
  font-weight:700;
  color: var(--ink);
  letter-spacing: .01em;
}
.brand-tagline{
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing:.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top:2px;
}

.main-nav ul{ display:flex; gap: 26px; align-items:center; flex-wrap:wrap; }
.main-nav a{
  font-size: 14.5px;
  font-weight:500;
  color: var(--ink);
  position:relative;
  padding: 4px 0;
}
.main-nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:1px;
  background: var(--burgundy); transform: scaleX(0); transform-origin:left;
  transition: transform .2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after{ transform: scaleX(1); }
.main-nav a.active{ color: var(--burgundy); }

.nav-toggle{ display:none; }

/* ---------- Seal (imza mührü) ---------- */
.seal{ flex-shrink:0; }
.seal circle.ring{ fill:none; stroke: var(--gold); }
.seal circle.ring2{ fill:none; stroke: var(--ink); }
.seal text{ font-family: var(--font-mono); fill: var(--ink); }
.seal path.mark{ fill: var(--burgundy); }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-bottom: 6px solid var(--gold);
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 44px);
  pointer-events:none;
}
.hero .container{
  position:relative;
  padding: 88px 28px 78px;
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero h1{
  color: var(--white);
  font-size: 52px;
  line-height:1.12;
  font-weight:600;
  max-width: 15ch;
}
.hero h1 em{
  font-style: italic;
  color: var(--gold);
}
.hero p.lead{
  color: #D9D6C9;
  font-size: 18px;
  max-width: 46ch;
  margin-top: 22px;
}
.hero-actions{ display:flex; gap:16px; margin-top:34px; flex-wrap:wrap; }
.hero-seal-wrap{ display:flex; justify-content:center; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-weight:600;
  font-size: 14.5px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor:pointer;
  transition: all .18s ease;
}
.btn-primary{ background: var(--burgundy); color: var(--white); }
.btn-primary:hover{ background: var(--burgundy-dark); }
.btn-outline{ border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline:hover{ background: rgba(255,255,255,.08); border-color: var(--gold); }
.btn-ink{ background: var(--ink); color: var(--paper); }
.btn-ink:hover{ background: var(--ink-2); }

/* ---------- Section basics ---------- */
.section{ padding: 84px 0; }
.section-alt{ background: var(--paper-dark); }
.section-head{ max-width: 640px; margin-bottom: 46px; }
.section-head h2{ font-size: 34px; margin-top: 12px; }
.section-head p{ color: var(--muted); margin-top: 14px; font-size: 16.5px; }
.rule{ border:0; border-top: 1px solid var(--paper-line); margin: 0; }
.rule-thick{ border-top: 3px double var(--ink); }

/* ---------- Services grid (Madde stili) ---------- */
.madde-list{ display:flex; flex-direction:column; }
.madde-item{
  display:grid;
  grid-template-columns: 110px 1fr auto;
  gap: 26px;
  align-items:center;
  padding: 30px 0;
  border-bottom: 1px solid var(--paper-line);
  transition: padding .18s ease, background .18s ease;
}
.madde-item:first-child{ border-top: 1px solid var(--paper-line); }
.madde-item:hover{ background: rgba(122,31,43,.035); padding-left:10px; padding-right:10px; }
.madde-num{
  font-family: var(--font-mono);
  color: var(--burgundy);
  font-size: 13px;
  letter-spacing:.06em;
}
.madde-num b{ display:block; font-size: 26px; color: var(--ink); font-weight:600; }
.madde-body h3{ font-size: 21px; margin-bottom:6px; }
.madde-body p{ color: var(--muted); margin:0; font-size:15px; max-width: 62ch; }
.madde-arrow{
  font-family: var(--font-mono);
  color: var(--ink);
  font-size: 22px;
  transition: transform .18s ease;
}
.madde-item:hover .madde-arrow{ transform: translateX(6px); color: var(--burgundy); }

/* ---------- Cards (why us) ---------- */
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-2{ display:grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.card{
  background: var(--white);
  border: 1px solid var(--paper-line);
  padding: 30px 26px;
  border-radius: var(--radius);
}
.card .num{
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 13px;
  letter-spacing: .1em;
}
.card h3{ font-size:19px; margin: 10px 0 8px; }
.card p{ color: var(--muted); font-size: 14.5px; margin:0; }

/* ---------- Stats strip ---------- */
.stats{ background: var(--ink); color: var(--paper); }
.stats .container{
  display:grid; grid-template-columns: repeat(4,1fr);
  gap: 20px; padding: 46px 28px;
}
.stat b{
  font-family: var(--font-display);
  font-size: 38px; color: var(--gold); display:block; font-weight:700;
}
.stat span{
  font-family: var(--font-mono); font-size:12px; letter-spacing:.08em;
  text-transform:uppercase; color: #C7C4B6;
}

/* ---------- Process steps ---------- */
.process{ counter-reset: step; display:grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.step{ position:relative; padding-left: 0; }
.step .step-num{
  font-family: var(--font-display); font-size:44px; color: var(--paper-line);
  -webkit-text-stroke: 1px var(--ink); color: transparent;
  font-weight:700; line-height:1;
}
.step h4{ font-size:18px; margin: 10px 0 8px; }
.step p{ color: var(--muted); font-size:14.5px; margin:0; }

/* ---------- FAQ ---------- */
.faq-item{ border-bottom:1px solid var(--paper-line); padding: 22px 0; }
.faq-item:first-child{ border-top:1px solid var(--paper-line); }
.faq-q{
  display:flex; justify-content:space-between; align-items:center;
  cursor:pointer; gap: 20px;
}
.faq-q h4{ font-size:16.5px; font-weight:600; }
.faq-q .plus{ font-family: var(--font-mono); font-size:20px; color: var(--burgundy); transition: transform .2s ease; }
.faq-item.open .faq-q .plus{ transform: rotate(45deg); }
.faq-a{
  max-height:0; overflow:hidden; transition: max-height .25s ease;
  color: var(--muted); font-size:14.5px;
}
.faq-item.open .faq-a{ max-height: 300px; padding-top: 12px; }

/* ---------- Page hero (service pages) ---------- */
.page-hero{
  background: var(--ink); color: var(--paper);
  padding: 56px 0 46px;
  border-bottom: 6px solid var(--gold);
  position:relative;
}
.breadcrumb{
  font-family: var(--font-mono); font-size:12px; letter-spacing:.06em;
  color: #B9B6A8; margin-bottom:18px;
}
.breadcrumb a:hover{ color: var(--gold); }
.page-hero h1{ color: var(--white); font-size:40px; max-width:22ch; }
.page-hero .lead{ color:#D9D6C9; max-width:60ch; margin-top:16px; font-size:16.5px; }
.stamp-corner{
  position:absolute; right: 28px; top: 30px; opacity:.9;
}

.service-body{ display:grid; grid-template-columns: 1fr 320px; gap: 54px; padding: 70px 0; }
.service-main h2{ font-size:24px; margin: 44px 0 16px; }
.service-main h2:first-child{ margin-top:0; }
.service-main ul.check li{
  display:flex; gap:12px; padding: 10px 0; border-bottom:1px dashed var(--paper-line);
  font-size:15px;
}
.service-main ul.check li:before{ content:"§"; color: var(--burgundy); font-family: var(--font-mono); font-weight:700; }
.service-main ul.check li:first-child{ padding-top:0; }

.side-card{
  background: var(--white); border:1px solid var(--paper-line);
  padding: 26px; position:sticky; top: 100px; height:max-content;
}
.side-card h3{ font-size:17px; margin-bottom:14px; }
.side-card p{ font-size:14px; color: var(--muted); }
.side-card .btn{ width:100%; justify-content:center; margin-top:10px; }
.side-list li{ font-family: var(--font-mono); font-size:12.5px; padding:8px 0; border-bottom:1px solid var(--paper-line); }
.side-list li:last-child{ border-bottom:0; }
.side-list a:hover{ color: var(--burgundy); }

/* ---------- Contact / CTA band ---------- */
.cta-band{
  background: var(--burgundy); color: var(--white);
  padding: 60px 0; text-align:center;
}
.cta-band h2{ color: var(--white); font-size:30px; }
.cta-band p{ color: #EBD4D6; max-width: 56ch; margin: 14px auto 26px; }

/* ---------- Contact page ---------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 70px 0; }
.info-row{ display:flex; gap:16px; padding: 18px 0; border-bottom:1px solid var(--paper-line); }
.info-row .lbl{ font-family: var(--font-mono); font-size:12px; color: var(--burgundy); width:110px; flex-shrink:0; letter-spacing:.06em; }
.info-row .val{ font-size:15px; }
.form-group{ margin-bottom: 18px; }
.form-group label{ display:block; font-size:13px; font-weight:600; margin-bottom:6px; color: var(--ink); }
.form-group input, .form-group textarea, .form-group select{
  width:100%; padding: 12px 14px; border:1px solid var(--paper-line);
  background: var(--white); font-family: var(--font-body); font-size:14.5px;
  border-radius: var(--radius);
}
.form-group textarea{ min-height:110px; resize:vertical; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus{ border-color: var(--burgundy); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: var(--paper); padding: 56px 0 0; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 40px; }
.site-footer h4{ color: var(--gold); font-size:13px; font-family: var(--font-mono); letter-spacing:.1em; text-transform:uppercase; margin-bottom:16px; }
.site-footer p{ color:#C7C4B6; font-size:14px; }
.site-footer ul li{ padding: 6px 0; }
.site-footer a{ color:#D9D6C9; font-size:14px; }
.site-footer a:hover{ color: var(--gold); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0; font-family: var(--font-mono); font-size:11.5px;
  color:#8D8A7C; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;
}

/* ---------- Chat Widget ---------- */
#bh-chat-launcher{
  position: fixed; right: 26px; bottom: 26px; z-index: 999;
  width: 62px; height:62px; border-radius: 50%;
  background: var(--burgundy); color:var(--white);
  border: 2px solid var(--gold);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; box-shadow: 0 8px 26px rgba(20,33,61,.35);
  transition: transform .18s ease;
}
#bh-chat-launcher:hover{ transform: scale(1.06); }
#bh-chat-launcher svg{ width:26px; height:26px; }
#bh-chat-launcher .badge{
  position:absolute; top:-4px; right:-4px; background: var(--gold); color: var(--ink);
  font-family: var(--font-mono); font-size:10px; font-weight:700;
  width:18px; height:18px; border-radius:50%; display:flex; align-items:center; justify-content:center;
}

#bh-chat-window{
  position: fixed; right: 26px; bottom: 100px; z-index: 999;
  width: 380px; max-width: calc(100vw - 40px);
  height: 560px; max-height: calc(100vh - 150px);
  background: var(--white); border: 1px solid var(--ink);
  border-radius: 4px; box-shadow: 0 20px 60px rgba(20,33,61,.3);
  display:none; flex-direction:column; overflow:hidden;
}
#bh-chat-window.open{ display:flex; }
.bh-chat-head{
  background: var(--ink); color: var(--paper); padding: 16px 18px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  border-bottom: 3px solid var(--gold);
}
.bh-chat-head .title{ display:flex; align-items:center; gap:10px; }
.bh-chat-head .title b{ font-family: var(--font-display); font-size:16px; }
.bh-chat-head .title span{ display:block; font-family: var(--font-mono); font-size:10px; color:#B9B6A8; letter-spacing:.05em; }
.bh-chat-head .status-dot{ width:8px; height:8px; border-radius:50%; background:#7CBF7C; box-shadow:0 0 0 2px rgba(124,191,124,.25); }
.bh-close{ background:none; border:none; color: var(--paper); font-size:20px; cursor:pointer; line-height:1; padding:2px 6px; }
.bh-close:hover{ color: var(--gold); }

.bh-chat-body{ flex:1; overflow-y:auto; padding: 18px; display:flex; flex-direction:column; gap:14px; background: var(--paper); }
.bh-msg{ max-width: 86%; font-size: 14px; line-height:1.5; }
.bh-msg.bot{ align-self:flex-start; }
.bh-msg.user{ align-self:flex-end; }
.bh-bubble{ padding: 11px 14px; border-radius: 3px; }
.bh-msg.bot .bh-bubble{ background: var(--white); border:1px solid var(--paper-line); color: var(--charcoal); border-top-left-radius:0; }
.bh-msg.user .bh-bubble{ background: var(--ink); color: var(--white); border-top-right-radius:0; }
.bh-msg .bh-tag{ font-family: var(--font-mono); font-size:10px; color: var(--muted); margin-bottom:4px; display:block; letter-spacing:.05em; }

.bh-quick{ display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
.bh-chip{
  font-family: var(--font-mono); font-size:12px; padding:7px 12px;
  border:1px solid var(--gold); color: var(--ink); background: var(--white);
  border-radius: 20px; cursor:pointer; transition: all .15s ease;
}
.bh-chip:hover{ background: var(--gold); color: var(--white); }

.bh-disclaimer{
  font-size:11px; color: var(--muted); background: var(--paper-dark);
  border-left: 3px solid var(--gold); padding: 8px 10px; border-radius:2px;
}

.bh-lead-form{ display:flex; flex-direction:column; gap:10px; background:var(--white); border:1px solid var(--paper-line); padding:14px; border-radius:3px; }
.bh-lead-form input, .bh-lead-form textarea{
  padding:10px 12px; border:1px solid var(--paper-line); font-family:var(--font-body); font-size:13.5px; border-radius:2px;
}
.bh-lead-form textarea{ min-height:60px; resize:vertical; }
.bh-lead-form label{ font-size:11.5px; font-weight:600; color:var(--ink); }

.bh-chat-input{
  border-top: 1px solid var(--paper-line); padding: 12px 14px; display:flex; gap:8px;
  background: var(--white);
}
.bh-chat-input input{
  flex:1; border:1px solid var(--paper-line); border-radius: 20px; padding: 10px 16px;
  font-family: var(--font-body); font-size:14px;
}
.bh-chat-input input:focus{ border-color: var(--burgundy); }
.bh-chat-input button{
  width:40px; height:40px; border-radius:50%; border:none; background: var(--burgundy);
  color:var(--white); cursor:pointer; display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.bh-chat-input button:hover{ background: var(--burgundy-dark); }
.bh-typing span{
  display:inline-block; width:6px; height:6px; background: var(--muted); border-radius:50%;
  margin-right:3px; animation: bh-blink 1.2s infinite ease-in-out;
}
.bh-typing span:nth-child(2){ animation-delay:.2s; }
.bh-typing span:nth-child(3){ animation-delay:.4s; }
@keyframes bh-blink{ 0%,80%,100%{ opacity:.25; } 40%{ opacity:1; } }

/* ---------- Utility / responsive ---------- */
.mt-0{ margin-top:0; }
@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-seal-wrap{ order:-1; }
  .hero h1{ font-size:38px; max-width:none; }
  .grid-3, .grid-2, .process, .footer-grid, .contact-grid{ grid-template-columns: 1fr; }
  .service-body{ grid-template-columns: 1fr; }
  .stats .container{ grid-template-columns: repeat(2,1fr); }
  .main-nav{ display:none; }
  .madde-item{ grid-template-columns: 60px 1fr auto; }
  #bh-chat-window{ width: calc(100vw - 24px); right:12px; bottom:88px; }
  #bh-chat-launcher{ right:16px; bottom:16px; }
}
