/* =========================================================
   Tuğrulhan Dip — Avukatlık Bürosu
   Tasarım dili: resmî hukuk evrakı — lacivert cilt, pirinç
   yaldız, mühür kırmızısı ve krem dosya kağıdı.
   ========================================================= */

:root{
  --ink:        #16212C;   /* koyu lacivert - ana zemin */
  --ink-2:      #1D2E3D;   /* ikincil lacivert panel */
  --ink-3:      #263B4E;   /* açık lacivert - kenarlık */
  --paper:      #F1EAD9;   /* dosya kağıdı */
  --paper-2:    #E9DFC8;   /* koyu dosya kağıdı */
  --brass:      #A9823C;   /* pirinç / yaldız */
  --brass-light:#C9A15E;
  --seal:       #7A2331;   /* mühür kırmızısı */
  --seal-dark:  #5C1A25;
  --text-dark:  #211B12;
  --text-mute:  #55503f;
  --text-light: #EFE7D6;
  --text-light-mute: #b9c2ca;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;

  --rule: 1px solid rgba(169,130,60,0.45);
  --rule-dark: 1px solid rgba(239,231,214,0.18);
  --container: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--text-dark);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
.wrap{ max-width:var(--container); margin:0 auto; padding:0 32px; }

h1,h2,h3,h4{
  font-family:var(--serif);
  font-weight:600;
  margin:0;
  color:inherit;
  letter-spacing:0.1px;
}

.brass-label{
  font-family:var(--sans);
  font-size:13px;
  font-weight:600;
  color:var(--brass);
  letter-spacing:0.02em;
}

.lede{ max-width:62ch; color:var(--text-mute); font-size:18px; }

/* ---------------- skip link / focus ---------------- */
.skip-link{
  position:absolute; left:-999px; top:0; background:var(--seal);
  color:#fff; padding:10px 16px; z-index:200; border-radius:0 0 4px 0;
}
.skip-link:focus{ left:0; }
:focus-visible{ outline:2px solid var(--seal); outline-offset:3px; }

/* ---------------- header ---------------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--ink);
  border-bottom:var(--rule);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:78px;
}
.brand{
  display:flex; align-items:center; gap:14px;
  text-decoration:none; color:var(--text-light);
}
.brand-seal{ width:44px; height:44px; flex:none; }
.brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.brand-name{ font-family:var(--serif); font-size:20px; font-weight:600; }
.brand-sub{ font-size:12px; color:var(--text-light-mute); }

nav.main-nav{ display:flex; align-items:center; gap:30px; }
nav.main-nav a{
  text-decoration:none; color:var(--text-light-mute);
  font-size:14.5px; font-weight:500; position:relative;
  padding:6px 0;
}
nav.main-nav a:hover, nav.main-nav a.active{ color:var(--text-light); }
nav.main-nav a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px;
  height:2px; background:var(--brass);
}
.nav-cta{
  border:1px solid var(--brass); color:var(--text-light)!important;
  padding:9px 18px!important; border-radius:2px;
}
.nav-cta:hover{ background:var(--brass); color:var(--ink)!important; }

.menu-toggle{
  display:none; background:none; border:0; color:var(--text-light);
  width:40px; height:40px; cursor:pointer;
}
.menu-toggle svg{ width:24px; height:24px; }

/* ---------------- hero ---------------- */
.hero{
  background:var(--ink);
  color:var(--text-light);
  position:relative;
  border-bottom:4px solid var(--brass);
}
.hero .wrap{
  display:grid;
  grid-template-columns:6px 1.3fr 0.8fr;
  gap:44px;
  padding-top:76px; padding-bottom:76px;
  align-items:center;
}
.hero-spine{ align-self:stretch; background:var(--brass); opacity:0.55; }
.hero-eyebrow{ margin-bottom:18px; }
.hero h1{
  font-size:clamp(34px,4.6vw,54px);
  line-height:1.08;
  color:#fff;
}
.hero h1 em{ font-style:italic; color:var(--brass); }
.hero-role{
  margin-top:16px; font-size:17px; color:var(--text-light-mute);
}
.hero p.lede{ color:var(--text-light-mute); margin-top:22px; }
.hero-actions{ display:flex; gap:14px; margin-top:34px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--sans); font-weight:600; font-size:15px;
  padding:14px 24px; text-decoration:none; border-radius:2px;
  border:1px solid transparent; cursor:pointer;
}
.btn-seal{ background:var(--seal); color:#fff; }
.btn-seal:hover{ background:var(--seal-dark); }
.btn-outline{ border-color:rgba(239,231,214,0.4); color:var(--text-light); }
.btn-outline:hover{ border-color:var(--text-light); }
.btn svg{ width:18px; height:18px; }

.hero-photo{
  position:relative; padding:14px;
  border:1px solid rgba(169,130,60,0.6);
}
.hero-photo::before,.hero-photo::after,
.hero-photo b::before,.hero-photo b::after{
  content:""; position:absolute; width:16px; height:16px;
  border:2px solid var(--brass);
}
.hero-photo::before{ top:-1px; left:-1px; border-right:0; border-bottom:0; }
.hero-photo::after{ top:-1px; right:-1px; border-left:0; border-bottom:0; }
.hero-photo b{ position:static; display:block; }
.hero-photo b::before{ bottom:-1px; left:-1px; border-right:0; border-top:0; }
.hero-photo b::after{ bottom:-1px; right:-1px; border-left:0; border-top:0; }
.hero-photo img{ width:100%; aspect-ratio:3/4; object-fit:cover; background:var(--ink-3); }
.hero-photo figcaption{
  margin-top:12px; font-size:12.5px; text-align:center; color:var(--text-light-mute);
}

/* ---------------- sections ---------------- */
section{ padding:88px 0; }
.section-head{
  display:grid; grid-template-columns:1fr 1fr; gap:40px;
  margin-bottom:56px; align-items:end;
}
.section-head h2{ font-size:clamp(28px,3.4vw,38px); }
.section-head .lede{ margin:0; }
.rule-top{ border-top:var(--rule); }

/* hakkımızda */
.about{ background:var(--paper); }
.about-grid{
  display:grid; grid-template-columns:1.4fr 1fr; gap:60px;
}
.about-copy p{ margin:0 0 18px; color:var(--text-dark); }
.about-copy p:last-child{ margin-bottom:0; }

.dossier{
  border:var(--rule); background:var(--paper-2);
  padding:28px 30px;
}
.dossier h3{
  font-size:14px; font-family:var(--sans); font-weight:700;
  text-transform:none; color:var(--seal); margin-bottom:18px;
}
.dossier dl{ margin:0; }
.dossier .row{
  display:grid; grid-template-columns:120px 1fr; gap:10px;
  padding:11px 0; border-top:1px solid rgba(122,35,49,0.14);
}
.dossier .row:first-of-type{ border-top:none; }
.dossier dt{ font-size:13px; color:var(--text-mute); }
.dossier dd{ margin:0; font-size:14.5px; font-weight:600; }

/* faaliyet alanları — "madde" listesi */
.practice{ background:var(--ink); color:var(--text-light); }
.practice .section-head h2{ color:#fff; }
.practice .section-head .lede{ color:var(--text-light-mute); }
.madde-list{ border-top:var(--rule-dark); }
.madde{
  display:grid; grid-template-columns:110px 1fr; gap:32px;
  padding:34px 0; border-bottom:var(--rule-dark);
}
.madde-no{
  font-family:var(--serif); font-style:italic; font-weight:500;
  font-size:34px; color:var(--brass);
}
.madde h3{ font-size:22px; color:#fff; margin-bottom:10px; }
.madde p{ margin:0; color:var(--text-light-mute); max-width:62ch; }

/* tevkil360 tanıtım */
.tevkil{
  background:var(--paper-2);
  border-top:3px solid var(--seal);
  border-bottom:3px solid var(--seal);
}
.tevkil .wrap{
  display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;
}
.tevkil-mark{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--serif); font-size:26px; font-weight:600; color:var(--seal);
  margin-bottom:18px;
}
.tevkil-mark span{ color:var(--text-dark); font-family:var(--sans); font-weight:400; font-size:14px; }
.tevkil-panel{
  border:var(--rule); background:var(--paper); padding:30px;
}
.tevkil-panel ul{ margin:0; padding-left:20px; color:var(--text-mute); }
.tevkil-panel li{ margin-bottom:10px; }

/* generic article/list rows (makaleler & dilekçeler) */
.page-hero{
  background:var(--ink); color:var(--text-light);
  padding:64px 0 52px; border-bottom:4px solid var(--brass);
}
.page-hero h1{ color:#fff; font-size:clamp(30px,4vw,44px); }
.page-hero .lede{ color:var(--text-light-mute); margin-top:14px; }
.breadcrumb{ font-size:13px; color:var(--text-light-mute); margin-bottom:18px; }
.breadcrumb a{ text-decoration:none; color:var(--text-light-mute); }
.breadcrumb a:hover{ color:var(--text-light); }

.entry-list{ border-top:var(--rule); }
.entry{
  padding:36px 0; border-bottom:var(--rule);
  display:grid; grid-template-columns:150px 1fr; gap:30px;
}
.entry-date{ font-size:13px; color:var(--brass); font-weight:600; }
.entry h2, .entry h3{ font-size:23px; margin-bottom:10px; }
.entry .lede{ margin-bottom:0; }
.entry-tag{
  display:inline-block; font-size:12px; color:var(--seal);
  border:1px solid rgba(122,35,49,0.4); padding:3px 9px; margin-top:14px;
}

details.template{
  border-top:var(--rule); padding:26px 0;
}
details.template:last-child{ border-bottom:var(--rule); }
details.template summary{
  cursor:pointer; list-style:none; display:flex; justify-content:space-between;
  align-items:center; gap:20px; font-family:var(--serif); font-size:21px; font-weight:600;
}
details.template summary::-webkit-details-marker{ display:none; }
details.template summary .plus{
  font-family:var(--sans); font-size:22px; color:var(--brass); flex:none;
  transition:transform .18s ease;
}
details.template[open] summary .plus{ transform:rotate(45deg); }
.template-body{ margin-top:18px; color:var(--text-mute); }
.template-body pre{
  background:var(--ink); color:var(--text-light);
  padding:22px 24px; overflow-x:auto; font-family:var(--sans); font-size:14px;
  line-height:1.7; white-space:pre-wrap;
  border-left:3px solid var(--seal);
}
.template-note{ font-size:13.5px; margin-top:12px; color:var(--seal-dark); }

/* CTA band */
.cta-band{
  background:var(--seal); color:#fff; padding:60px 0; text-align:left;
}
.cta-band .wrap{ display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap; }
.cta-band h2{ color:#fff; font-size:clamp(24px,3vw,32px); }
.cta-band .btn-outline{ border-color:rgba(255,255,255,0.5); color:#fff; }
.cta-band .btn-outline:hover{ border-color:#fff; }

/* ---------------- footer ---------------- */
footer.site-footer{ background:var(--ink); color:var(--text-light-mute); padding:64px 0 30px; }
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:50px;
  padding-bottom:40px; border-bottom:var(--rule-dark);
}
.footer-grid h4{ color:var(--text-light); font-size:15px; margin-bottom:16px; font-family:var(--sans); font-weight:700; }
.footer-grid p{ margin:0 0 8px; font-size:14.5px; }
.footer-grid a{ text-decoration:none; color:var(--text-light-mute); font-size:14.5px; display:block; margin-bottom:10px; }
.footer-grid a:hover{ color:var(--text-light); }
.footer-bottom{
  display:flex; justify-content:space-between; padding-top:24px; font-size:12.5px; flex-wrap:wrap; gap:10px;
}

/* ---------------- whatsapp float ---------------- */
.wa-float{
  position:fixed; right:24px; bottom:24px; z-index:150;
  width:60px; height:60px; border-radius:50%;
  background:#25D366; display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,0.35);
  text-decoration:none; border:2px solid rgba(255,255,255,0.5);
}
.wa-float svg{ width:30px; height:30px; fill:#fff; }
.wa-float:hover{ background:#1ebe5a; }

/* ---------------- mobile ---------------- */
@media (max-width:900px){
  .hero .wrap{ grid-template-columns:1fr; }
  .hero-spine{ display:none; }
  .hero-photo{ max-width:280px; }
  .about-grid, .tevkil .wrap, .section-head, .entry{ grid-template-columns:1fr; }
  .entry-date{ margin-bottom:4px; }
  .madde{ grid-template-columns:1fr; gap:8px; }
}

@media (max-width:760px){
  .wrap{ padding:0 20px; }
  nav.main-nav{
    position:fixed; inset:78px 0 0 0; background:var(--ink);
    flex-direction:column; align-items:flex-start; padding:30px 24px;
    gap:6px; transform:translateX(100%); transition:transform .25s ease;
    overflow-y:auto;
  }
  nav.main-nav.open{ transform:translateX(0); }
  nav.main-nav a{ width:100%; padding:14px 0; border-bottom:var(--rule-dark); font-size:16px; }
  .nav-cta{ margin-top:10px; text-align:center; }
  .menu-toggle{ display:block; }
  section{ padding:60px 0; }
  .wa-float{ width:52px; height:52px; right:16px; bottom:16px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none!important; }
}
