/*
Theme Name: KAF Engineering
Theme URI: https://kafmuhendislik.com.tr/
Author: KAF Mühendislik
Description: Mekanik tasarım, SolidWorks makro ve mühendislik yazılımları için sade kurumsal tema.
Version: 1.0.0
Text Domain: kaf-engineering
*/

:root {
  --ink: #111827;
  --muted: #64706b;
  --line: #dfe7dc;
  --panel: #f5f8f3;
  --brand: #56d81d;
  --brand-dark: #071006;
  --accent: #56d81d;
  --accent-2: #9bf06d;
  --steel: #1f2a20;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(86,216,29,.035), transparent 280px),
    var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(17,24,39,.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(5, 8, 5, .05);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}
.brand-logo {
  width: 104px;
  height: 56px;
  object-fit: contain;
  background: #050505;
  border-radius: 0 22px 22px 0;
  padding: 6px 10px;
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 700; }
.nav-links a { color: var(--steel); }
.nav-links a:hover { color: var(--brand); }
.nav-cta {
  padding: 11px 16px;
  background: var(--brand);
  color: #061006 !important;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(86,216,29,.25);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 42%, rgba(86,216,29,.20), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, .96), rgba(0, 0, 0, .80) 52%, rgba(0,0,0,.34)),
    url("https://kafmuhendislik.com.tr/wp-content/uploads/2024/11/thisisengineering-jqD8bSQY6Ic-unsplash-scaled.jpg") center/cover;
  color: var(--white);
}
.hero:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.92));
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px) 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  color: var(--accent-2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
}
.hero h1 {
  margin: 16px 0 0;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}
.hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 19px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #061006; }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(86,216,29,.28); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); background: rgba(255,255,255,.06); }
.hero-metrics {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.metric { padding: 20px 22px 0 0; }
.metric strong { display: block; font-size: 28px; color: #fff; }
.metric span { color: rgba(255,255,255,.72); font-size: 13px; }

.section { padding: 84px 0; }
.section.alt {
  background:
    linear-gradient(135deg, rgba(86,216,29,.08), transparent 32%),
    var(--panel);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 34px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}
.section-head p { max-width: 560px; color: var(--muted); margin: 0; }

.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.service {
  min-height: 292px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(17,24,39,.06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.service:hover {
  transform: translateY(-5px);
  border-color: rgba(86,216,29,.55);
  box-shadow: 0 26px 58px rgba(17,24,39,.10);
}
.service-number { color: #35a80b; font-weight: 900; }
.service h3 { margin: 22px 0 12px; font-size: 22px; line-height: 1.2; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }

.split {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 54px;
  align-items: center;
}
.machine-photo {
  min-height: 520px;
  background: url("https://kafmuhendislik.com.tr/wp-content/uploads/2024/11/thisisengineering-SyRlD4s_amw-unsplash-scaled.jpg") center/cover;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(17,24,39,.18);
  position: relative;
  overflow: hidden;
}
.machine-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(86,216,29,.16), transparent 42%);
}
.checks { display: grid; gap: 14px; margin-top: 28px; }
.check {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}
.check b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #061006;
  border-radius: 50%;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(86,216,29,.24);
}
.check h3 { margin: 0 0 4px; font-size: 18px; }
.check p { margin: 0; color: var(--muted); }

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(17,24,39,.06);
}
.process-step {
  padding: 28px;
  border-right: 1px solid var(--line);
}
.process-step:last-child { border-right: 0; }
.process-step span { color: var(--accent); font-weight: 900; }
.process-step h3 { margin: 16px 0 8px; font-size: 20px; }
.process-step p { margin: 0; color: var(--muted); font-size: 15px; }

.contact-band {
  background:
    radial-gradient(circle at 20% 20%, rgba(86,216,29,.20), transparent 32%),
    linear-gradient(135deg, #050805, #0c180b 55%, #050805);
  color: var(--white);
  padding: 70px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.contact-band h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; }
.contact-band p { margin: 14px 0 0; color: rgba(255,255,255,.78); max-width: 720px; }
.contact-card {
  min-width: 300px;
  padding: 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.24);
}
.contact-card a { display: block; margin-top: 10px; color: var(--accent-2); font-weight: 800; }

.site-footer {
  padding: 30px 0;
  background: #050805;
  color: rgba(255,255,255,.68);
  font-size: 14px;
}
.footer-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; }

@media (max-width: 980px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 16px 0; }
  .nav-links { flex-wrap: wrap; gap: 12px; }
  .hero { min-height: auto; padding: 90px 0; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .services, .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-step { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero h1 { font-size: 32px; }
  .hero-metrics, .services, .process { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .machine-photo { min-height: 340px; }
  .contact-card { min-width: 0; }
  .footer-row { display: block; }
}

.showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.showcase-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(17,24,39,.07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.showcase-card:hover {
  transform: translateY(-5px);
  border-color: rgba(86,216,29,.5);
  box-shadow: 0 28px 64px rgba(17,24,39,.12);
}
.showcase-media {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(86,216,29,.10), transparent 46%),
    #eef3ec;
  display: grid;
  place-items: center;
}
.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform .2s ease;
}
.showcase-card:hover .showcase-media img { transform: scale(1.035); }
.showcase-body { padding: 20px; }
.showcase-body h3 { margin: 0 0 8px; font-size: 20px; }
.showcase-body p { margin: 0; color: var(--muted); font-size: 15px; }

.kaf-home-cad {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(101,216,29,.18), transparent 30%),
    linear-gradient(135deg, #111827 0%, #172033 58%, #0b1208 100%);
  color: #fff;
}
.kaf-home-cad-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(340px, .72fr);
  gap: 46px;
  align-items: center;
}
.kaf-home-cad h2 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.kaf-home-cad p {
  max-width: 700px;
  color: rgba(255,255,255,.75);
  font-size: 17px;
  line-height: 1.75;
}
.kaf-home-cad .btn-ghost {
  border-color: rgba(255,255,255,.24);
  color: #fff;
}
.kaf-home-cad-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
}
.kaf-home-cad-card span {
  display: inline-flex;
  width: max-content;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(101,216,29,.16);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}
.kaf-home-cad-card strong {
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
}
.kaf-home-cad-card i {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: rgba(255,255,255,.18);
}
.kaf-home-cad-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent-2);
  color: #081008;
  text-decoration: none;
  font-weight: 900;
}

@media (max-width: 980px) {
  .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kaf-home-cad-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand-logo { width: 74px; height: 42px; }
  .showcase { grid-template-columns: 1fr; }
  .kaf-home-cad { padding: 58px 0; }
}

.hero-copy { max-width: 760px; }
.hero-brief {
  align-self: end;
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
}
.hero-brief strong {
  color: #fff;
  font-size: 18px;
}
.hero-brief a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.82);
  font-weight: 800;
}
.hero-brief a:hover { color: var(--accent-2); }
.intro-strip {
  padding: 54px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0,.85fr) minmax(300px,.8fr);
  gap: 36px;
  align-items: end;
}
.intro-grid h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
}
.intro-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.mini-label {
  color: #35a80b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
.hero h1,
.section-head h2,
.kaf-home-cad h2,
.contact-band h2 {
  letter-spacing: 0;
}

@media (max-width: 980px) {
  .hero-grid, .intro-grid { grid-template-columns: 1fr; }
  .hero-brief { align-self: auto; }
}
