/* ==========================================================================
   HAK-Pİ LTD. ŞTİ. — Kurumsal Site
   Tasarım sistemi: "Ölçü Hattı" (dimension line) motifi — teknik çizimlerdeki
   ölçülendirme çizgilerinden esinlenilmiştir; parçaların hassas ölçülerle
   üretildiği gerçeğini görsel bir imza haline getirir.
   ========================================================================== */

:root{
  --ink:        #0E161F;
  --steel:      #17212C;
  --steel-2:    #24313D;
  --line:       #34424F;
  --teal:       #14B8B0;
  --teal-dark:  #0C8B85;
  --ember:      #FF6A2B;
  --paper:      #F5F6F2;
  --paper-2:    #EAECE6;
  --graphite:   #2B333A;
  --graphite-soft: #5B6670;
  --silver:     #AEB8BE;
  --white:      #FFFFFF;

  --font-display: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, Segoe UI, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --container: 1200px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--graphite);
  background: var(--paper);
  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;
  letter-spacing: 0.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
p{ margin: 0 0 1em; }
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
:focus-visible{
  outline: 3px solid var(--ember);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ----- Eyebrow / etiket ----- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content:"";
  width: 22px;
  height: 2px;
  background: var(--ember);
  display:inline-block;
}
.on-dark .eyebrow{ color: var(--teal); }

/* ----- Ölçü hattı (dimension line) — imza öğe ----- */
.dim-line{
  position: relative;
  height: 34px;
  display:flex;
  align-items:center;
}
.dim-line::before{
  content:"";
  position:absolute;
  left:0; right:0; top:50%;
  height:1px;
  background: var(--line);
}
.dim-line span{
  position: relative;
  background: var(--ink);
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--silver);
  margin: 0 auto;
}
.on-light .dim-line span{ background: var(--paper); color: var(--graphite-soft); }
.on-light .dim-line::before{ background: var(--paper-2); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(14,22,31,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  height: 78px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height: 42px; width:auto; }
.brand-text{ font-family: var(--font-display); color: var(--white); font-size: 20px; letter-spacing: .04em; }
.brand-text small{ display:block; font-family: var(--font-mono); font-size: 10px; letter-spacing:.12em; color: var(--teal); font-weight: 400; }

.main-nav{ display:flex; align-items:center; gap: 2px; }
.main-nav a{
  color: var(--silver);
  font-size: 14.5px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 3px;
  transition: color .15s ease, background .15s ease;
  position: relative;
}
.main-nav a:hover, .main-nav a.active{ color: var(--white); background: var(--steel-2); }
.main-nav .has-dropdown{ position: relative; }
.dropdown{
  position:absolute; top: calc(100% + 10px); left: 0;
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 260px;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  opacity:0; visibility:hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  max-height: 70vh;
  overflow-y:auto;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown{
  opacity:1; visibility:visible; transform: translateY(0);
}
.dropdown a{ font-size: 13px; padding: 8px 10px; color: var(--silver); }
.dropdown a:hover{ background: var(--steel-2); color: var(--white); }

.header-cta{
  display:flex; align-items:center; gap:10px;
}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 11px 20px; border-radius: 3px; border: 1px solid transparent;
  cursor:pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--teal); color: var(--ink); }
.btn-primary:hover{ background: var(--white); transform: translateY(-1px); }
.btn-ghost{ border-color: var(--line); color: var(--white); }
.btn-ghost:hover{ border-color: var(--teal); color: var(--teal); }
.btn-ember{ background: var(--ember); color: var(--white); }
.btn-ember:hover{ background: #E85A1D; transform: translateY(-1px); }
.btn-outline-dark{ border: 1px solid var(--graphite); color: var(--graphite); }
.btn-outline-dark:hover{ border-color: var(--teal-dark); color: var(--teal-dark); }
.btn-sm{ padding: 8px 14px; font-size: 13px; }

.nav-toggle{ display:none; background:none; border:none; color:var(--white); font-size:26px; cursor:pointer; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: 96px 0 0;
}
.hero-bg{
  position:absolute; inset:0;
  background-size: cover; background-position: center;
  opacity: .34;
}
.hero-gradient{
  position:absolute; inset:0;
  background: linear-gradient(100deg, rgba(14,22,31,.98) 30%, rgba(14,22,31,.65) 65%, rgba(14,22,31,.35) 100%);
}
.hero-inner{ position:relative; z-index:2; padding-bottom: 64px; }
.hero h1{
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  max-width: 820px;
  white-space: pre-line;
}
.hero h1 em{ font-style: normal; color: var(--teal); }
.hero p.lead{
  color: var(--silver);
  font-size: 17.5px;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions{ display:flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

/* Ölçü çubuğu - istatistikler */
.stat-strip{
  position: relative; z-index:2;
  background: var(--steel);
  border-top: 1px solid var(--line);
}
.stat-strip .container{
  display:grid; grid-template-columns: repeat(4, 1fr);
}
.stat{
  padding: 26px 24px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child{ border-right:none; }
.stat::before{
  content:"";
  position:absolute; top:0; left:0;
  width:1px; height:8px; background: var(--teal);
}
.stat .num{
  font-family: var(--font-mono);
  font-size: 26px; color: var(--white); font-weight: 600;
  display:block;
}
.stat .label{
  font-size: 12.5px; color: var(--silver); letter-spacing:.03em;
}

/* ==========================================================================
   Genel section stilleri
   ========================================================================== */
section{ padding: 88px 0; }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head h2{ font-size: clamp(26px, 3.4vw, 38px); }
.section-head p{ color: var(--graphite-soft); font-size: 16px; }
.on-dark{ background: var(--ink); color: var(--silver); }
.on-dark h2, .on-dark h3{ color: var(--white); }
.on-dark p{ color: var(--silver); }
.section-alt{ background: var(--paper-2); }

/* ----- Kategori grid (Anasayfa + Ürünler) ----- */
.cat-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.cat-card{
  background: var(--white);
  border: 1px solid var(--paper-2);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display:flex; flex-direction:column;
}
.cat-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(14,22,31,.10);
  border-color: var(--teal);
}
.cat-card .thumb{
  aspect-ratio: 4/3; overflow:hidden; background: var(--steel);
  position: relative;
}
.cat-card .thumb img{ width:100%; height:100%; object-fit:cover; transition: transform .35s ease; }
.cat-card:hover .thumb img{ transform: scale(1.06); }
.cat-card .thumb .tag{
  position:absolute; top:12px; left:12px;
  background: rgba(14,22,31,.82); color: var(--teal);
  font-family: var(--font-mono); font-size: 11px; letter-spacing:.08em;
  padding: 4px 9px; border-radius: 3px;
}
.cat-card .body{ padding: 18px 20px 22px; flex:1; display:flex; flex-direction:column; }
.cat-card h3{ font-size: 18.5px; margin-bottom: 8px; }
.cat-card p{ font-size: 14px; color: var(--graphite-soft); flex:1; margin-bottom: 14px; }
.cat-card .more{ font-family: var(--font-mono); font-size: 12.5px; color: var(--teal-dark); font-weight:600; letter-spacing:.04em; }
.cat-card .more::after{ content:" →"; }

/* ----- Ürün grid ----- */
.product-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.product-card{
  background: var(--white); border:1px solid var(--paper-2); border-radius: 6px; overflow:hidden;
}
.product-card .thumb{ aspect-ratio: 1/1; background: var(--steel-2); }
.product-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.product-card .body{ padding: 14px 16px 18px; }
.product-card h4{ font-size:15.5px; margin-bottom:4px; }
.product-card .spec{ font-family: var(--font-mono); font-size:11.5px; color: var(--graphite-soft); }

/* ----- Neden Biz / özellik listesi ----- */
.feature-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature{
  background: var(--ink); padding: 32px 26px;
}
.feature .idx{ font-family: var(--font-mono); color: var(--ember); font-size: 13px; margin-bottom: 14px; display:block; }
.feature h3{ color: var(--white); font-size: 18px; }
.feature p{ color: var(--silver); font-size: 14px; margin:0; }

/* ----- İki kolon (Hakkımızda özet) ----- */
.split{
  display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items:center;
}
.split .media{ position:relative; }
.split .media img{ border-radius: 6px; width:100%; aspect-ratio: 4/3.4; object-fit:cover; }
.split .media .frame{
  position:absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--teal); border-radius:6px; z-index:-1;
}
.split .content h2{ font-size: clamp(26px,3.2vw,36px); }

/* ----- Belgeler ----- */
.cert-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px;
}
.cert-card{
  background: var(--white); border:1px solid var(--paper-2); border-radius:6px;
  padding: 26px 22px; text-align:center;
}
.cert-card .mark{
  width:56px; height:56px; border-radius:50%; margin: 0 auto 16px;
  background: var(--paper-2); color: var(--teal-dark);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono); font-weight:700; font-size:13px;
}
.cert-card h3{ font-size:17px; margin-bottom:6px; }
.cert-card p{ font-size:13.5px; color: var(--graphite-soft); margin:0; }

/* ----- İletişim ----- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:56px; }
.contact-card{
  background: var(--white); border:1px solid var(--paper-2); border-radius:6px; padding:22px 24px; margin-bottom:14px;
  display:flex; gap:16px; align-items:flex-start;
}
.contact-card .icon{
  width:42px; height:42px; border-radius:50%; background: var(--paper-2); color: var(--teal-dark);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:18px;
}
.contact-card h4{ font-size:15px; margin-bottom:4px; }
.contact-card a, .contact-card div{ font-size:14px; color: var(--graphite-soft); }
.contact-card a:hover{ color: var(--teal-dark); }

.form-field{ margin-bottom:16px; }
.form-field label{ display:block; font-size:13px; font-weight:600; color: var(--graphite); margin-bottom:6px; }
.form-field input, .form-field textarea, .form-field select{
  width:100%; padding: 12px 14px; border:1px solid var(--paper-2); border-radius:4px;
  font-family: var(--font-body); font-size:14.5px; background: var(--white); color: var(--graphite);
}
.form-field input:focus, .form-field textarea:focus{ outline: none; border-color: var(--teal); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.alert{ padding: 14px 18px; border-radius:4px; font-size:14px; margin-bottom:20px; }
.alert-success{ background:#E6F7F5; color: var(--teal-dark); border:1px solid var(--teal); }
.alert-error{ background:#FFECE5; color:#B8410F; border:1px solid var(--ember); }

/* ----- Breadcrumb ----- */
.breadcrumb{
  background: var(--steel); color: var(--silver); padding: 16px 0;
  font-size: 13px; font-family: var(--font-mono);
}
.breadcrumb a{ color: var(--silver); }
.breadcrumb a:hover{ color: var(--teal); }
.breadcrumb .sep{ margin: 0 8px; color: var(--line); }
.page-hero{ background: var(--ink); padding: 52px 0; }
.page-hero h1{ color: var(--white); font-size: clamp(28px,4vw,42px); margin-bottom:8px; }
.page-hero p{ color: var(--silver); max-width:620px; margin:0; }

/* ----- CTA band ----- */
.cta-band{
  background: linear-gradient(120deg, var(--teal-dark), var(--teal));
  color: var(--ink);
  padding: 56px 0;
}
.cta-band .container{ display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.cta-band h2{ color: var(--ink); font-size: clamp(22px,3vw,30px); margin:0; }
.cta-band p{ margin:4px 0 0; color: rgba(14,22,31,.75); }
.cta-actions{ display:flex; gap:12px; flex-wrap:wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--ink); color: var(--silver); padding-top: 64px; }
.footer-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid var(--line);
}
.footer-grid h5{ color: var(--white); font-family: var(--font-mono); font-size: 12.5px; letter-spacing:.1em; text-transform:uppercase; margin-bottom:18px; }
.footer-grid li{ margin-bottom: 10px; font-size: 14px; }
.footer-grid a:hover{ color: var(--teal); }
.footer-brand img{ height:38px; margin-bottom:14px; }
.footer-brand p{ font-size:14px; color: var(--silver); max-width:280px; }
.footer-bottom{
  padding: 22px 0; display:flex; justify-content:space-between; align-items:center;
  font-size: 12.5px; color: var(--graphite-soft); flex-wrap:wrap; gap:10px;
}
.footer-bottom a{ color: var(--silver); }

/* Floating WhatsApp */
.wa-float{
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  font-size: 26px;
  transition: transform .15s ease;
}
.wa-float:hover{ transform: scale(1.08); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px){
  .split{ grid-template-columns: 1fr; }
  .split .media{ order:2; }
  .feature-grid{ grid-template-columns: repeat(2,1fr); }
  .stat-strip .container{ grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2){ border-right:none; }
  .contact-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px){
  .main-nav, .header-cta .btn-ghost{ display:none; }
  .nav-toggle{ display:block; }
  .feature-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns:1fr; }
  section{ padding: 56px 0; }
  .footer-grid{ grid-template-columns: 1fr; }
}

/* Mobil menü (JS ile açılır) */
.mobile-nav{
  display:none;
  position: fixed; inset: 78px 0 0 0; z-index: 99;
  background: var(--ink); padding: 20px 24px; overflow-y:auto;
}
.mobile-nav.open{ display:block; }
.mobile-nav a{ display:block; padding: 13px 4px; color: var(--white); border-bottom: 1px solid var(--line); font-size:15px; }
.mobile-nav .sub{ padding-left: 14px; }
.mobile-nav .sub a{ color: var(--silver); font-size:14px; border-bottom:none; padding:9px 4px; }
