/* Myhak Makina — site
   Font: Titillium Web (Google Fonts)
   Renkler: koyu #383739, marka kırmızısı #CF1219, whatsapp yeşili #43B91E
*/
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,300;0,400;0,600;0,700;0,900;1,400&display=swap');

:root {
  --dark: #383739;
  --maroon: #CF1219;
  --white: #ffffff;
  --gray-text: #666666;
  --gray-light: #cccccc;
  --bg-light: #f3f3f3;
  --green: #43b91e;
  --black: #000000;
  --container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Titillium Web', sans-serif;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- TOP BAR ---------- */
.top-bar {
  background: var(--dark);
  color: var(--white);
  font-size: 13px;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}
.top-bar-contact { display: flex; gap: 24px; }
.top-bar-contact a { color: var(--white); }
.top-bar-contact a:hover { color: var(--maroon); }
.top-bar-social { display: flex; gap: 14px; }
.top-bar-social a {
  color: var(--white);
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.top-bar-social a:hover { background: var(--maroon); border-color: var(--maroon); }
.top-bar-social a img { width: 13px; height: 13px; }

/* ---------- HEADER ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo img { height: 48px; }
.main-nav { display: flex; }
.main-nav > ul { display: flex; gap: 26px; align-items: center; }
.main-nav > ul > li > a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  color: #444;
  padding: 8px 0;
  display: block;
  cursor: pointer;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { color: var(--maroon); }
.main-nav li { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  padding: 24px;
  min-width: 620px;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 40px;
}
.main-nav li:hover .dropdown { display: grid; }
.dropdown-col strong,
.dropdown-col .dropdown-cat {
  display: block;
  font-size: 12px;
  color: var(--maroon);
  margin-bottom: 10px;
  letter-spacing: .3px;
}
.dropdown-col .dropdown-cat { font-weight: 700; text-decoration: none; }
.dropdown-col .dropdown-cat:hover { text-decoration: underline; }
.dropdown-col a { display: block; font-size: 13px; color: #444; padding: 4px 0; }
.dropdown-col a:hover { color: var(--maroon); }
.langs { display: flex; gap: 10px; align-items: center; }
.langs .lang-flag {
  display: block;
  width: 24px; height: 16px;
  border-radius: 2px;
  border: 1px solid #ddd;
  object-fit: cover;
  cursor: pointer;
}
.burger { display: none; font-size: 26px; background: none; border: none; cursor: pointer; color: var(--dark); }

/* ---------- HERO SLIDER ---------- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  background: var(--dark);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .6s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.05) 100%);
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-left: 80px;
  padding-left: 24px;
  border-left: 4px solid var(--maroon);
  color: var(--white);
}
.hero-slide-content h2 {
  font-size: 40px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 14px;
  line-height: 1.15;
}
.hero-slide-content p {
  font-size: 15px;
  font-weight: 600;
  margin: 4px 0;
}
.hero-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 5;
  background: rgba(0,0,0,.25);
  color: var(--white);
  border: none;
  width: 46px; height: 46px;
  font-size: 26px;
  cursor: pointer;
  border-radius: 50%;
}
.hero-nav:hover { background: var(--maroon); }
.hero-nav.prev { left: 24px; }
.hero-nav.next { right: 24px; }
.hero-dots {
  position: absolute;
  bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 5;
  display: flex; gap: 8px;
}
.hero-dots button {
  width: 26px; height: 4px;
  background: rgba(255,255,255,.6);
  border: none; cursor: pointer; padding: 0;
}
.hero-dots button.active { background: var(--dark); }

/* ---------- ZENGİN İÇERİK (admin panelindeki editörden gelen HTML) ---------- */
.page-content { line-height: 1.75; color: var(--dark); }
.page-content p { margin: 0 0 16px; }
.page-content h2 { font-size: 24px; font-weight: 700; margin: 28px 0 14px; }
.page-content h3 { font-size: 19px; font-weight: 700; margin: 22px 0 12px; }
.page-content ul, .page-content ol { margin: 0 0 16px; padding-left: 22px; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--maroon); text-decoration: underline; }
.page-content img { border-radius: 4px; margin: 10px 0; }
.page-content > *:first-child { margin-top: 0; }
.page-content > *:last-child { margin-bottom: 0; }

/* ---------- SECTION GENERIC ---------- */
.section { padding: 60px 0; }
.section.bg-light { background: var(--bg-light); }
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.section-title-row h2 { font-size: 26px; font-weight: 700; margin: 0; }
.section-link { color: var(--maroon); font-weight: 600; font-size: 14px; }
.section-link:hover { text-decoration: underline; }

/* ---------- CATEGORY CIRCLES (home) ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.category-item { text-align: center; }
.category-item .circle {
  width: 200px; height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  background-size: cover;
  background-position: center;
}
.category-item span { font-weight: 600; font-size: 15px; }

/* ---------- VIDEO SECTION ---------- */
.video-section {
  position: relative;
  height: 420px;
  background-size: cover;
  background-position: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--white);
}
.video-section::before { content:''; position:absolute; inset:0; background: rgba(0,0,0,.35); }
.play-btn {
  position: relative; z-index: 2;
  width: 70px; height: 70px; border-radius: 50%;
  border: 2px solid var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
  cursor: pointer; background: rgba(0,0,0,.2);
}
.video-section h3 { position: relative; z-index: 2; font-weight: 600; font-size: 22px; margin: 0; }

/* ---------- ABOUT + FUARLAR ---------- */
.about-fuar-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-fuar-grid img { width: 100%; border-radius: 4px; }
.fuar-title { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.fuar-title h3 { font-size: 20px; margin: 0; }
.fuar-item { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.fuar-item img { width: 90px; height: 70px; object-fit: cover; border-radius: 3px; }
.fuar-item strong { display: block; font-size: 15px; }
.fuar-item .detay { color: var(--maroon); font-size: 12px; font-style: italic; }

/* ---------- UYGULAMALAR ---------- */
.uygulama-scroller {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.uygulama-card { position: relative; }
.uygulama-card .thumb {
  position: relative;
  height: 260px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}
.uygulama-card .thumb::before { content:''; position:absolute; inset:0; background: rgba(0,0,0,.15); }
.uygulama-card .play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; font-size: 16px; margin: 0; }
.uygulama-card p { font-weight: 600; font-size: 14px; margin: 0; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--dark); color: var(--gray-light); padding: 50px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.footer-grid h4 { color: var(--white); font-size: 16px; font-weight: 600; margin: 0 0 10px; }
.footer-grid h4::after { content:''; display:block; width:40px; height:2px; background: var(--maroon); margin-top: 10px; }
.footer-grid p { font-size: 12px; margin: 6px 0; line-height: 1.5; }
.footer-grid p a, .footer-grid a { color: var(--gray-light); text-decoration: none; }
.footer-grid p a:hover, .footer-grid a:hover { color: var(--white); }
.footer-logo { display: inline-block; margin-bottom: 14px; }
.footer-logo img { height: 40px; }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
}
.footer-social a:hover { background: var(--maroon); border-color: var(--maroon); }
.footer-social a img { width: 16px; height: 16px; }
.footer-bottom {
  background: var(--black);
  color: #888;
  font-size: 12px;
  padding: 16px 0;
}
.footer-bottom .container { display: flex; justify-content: center; text-align: center; }

/* ---------- FLOATING WHATSAPP BUTTON ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 56px; height: 56px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  z-index: 250;
  text-decoration: none;
}
.whatsapp-float:hover { filter: brightness(1.08); }
@media (max-width: 992px) { .whatsapp-float { bottom: 100px; right: 14px; width: 50px; height: 50px; font-size: 24px; } }

/* ---------- FOOTER STICKY (mobile only) ---------- */
.footer-sticky {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark);
  border-top: 2px solid var(--maroon);
  z-index: 200;
  padding: 8px 10px;
  justify-content: space-between;
  align-items: center;
}
.footer-sticky a {
  color: var(--white);
  font-size: 9px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.footer-sticky .call-btn {
  width: 46px; height: 46px;
  background: var(--black);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-top: -20px;
  border: 3px solid var(--dark);
}

/* ---------- PAGE HEADER (breadcrumb) ---------- */
.page-banner {
  background: var(--dark);
  color: var(--white);
  padding: 34px 0;
}
.page-banner .container { display: flex; justify-content: space-between; align-items: center; }
.page-banner h1 { font-size: 26px; margin: 0; font-weight: 700; }
.breadcrumb { font-size: 13px; color: var(--gray-light); display: flex; gap: 8px; }
.breadcrumb b { color: var(--white); font-weight: 600; }

/* ---------- ÜRÜN GRUPLARI CARDS ---------- */
.product-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 60px 0;
}
.product-card { border: 1px solid #eee; }
.product-card .img { height: 320px; background-size: cover; background-position: center; }
.product-card .title-bar { text-align: center; padding: 18px; font-weight: 600; font-size: 17px; }

/* ---------- STOKLAR CARDS ---------- */
.stok-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 60px 0;
}
.stok-card .img { height: 320px; background-size: cover; background-position: center; background-color: #1a1a1a; }
.stok-card .title-bar { text-align: center; padding: 18px; font-weight: 600; font-size: 18px; }

/* ---------- E-KATALOG CARDS ---------- */
.katalog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  padding: 60px 0;
  justify-items: center;
}
.katalog-card { text-align: center; max-width: 280px; }
.katalog-card .cover { width: 100%; margin-bottom: 14px; border: 1px solid #eee; }
.katalog-card .lang { font-size: 18px; color: #555; margin-bottom: 14px; }
.katalog-card .btn-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 10px; }
.btn {
  background: var(--maroon);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 2px;
  cursor: pointer;
  border: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { background: #7a1019; }
.katalog-card .pdf-label { font-size: 11px; color: #999; }

/* ---------- GÖRSEL PLACEHOLDER (müşteri onayı için — gerçek görsel yüklenene kadar) ---------- */
.img-placeholder {
  background: repeating-linear-gradient(45deg, #e3e3e3, #e3e3e3 12px, #ececec 12px, #ececec 24px) !important;
}
/* Yalnızca zaten kendi position değeri olmayan öğelere uygulanır (hero-slide ve video-section
   kendi position:absolute/relative kuralını korur — burada ezilmemesi için tekrar yazılmaz) */
.category-item .circle,
.product-card .img,
.stok-card .img {
  position: relative;
}
.img-placeholder::after {
  content: 'Resim Yüklenecek';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  color: #8a8a8a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  background: rgba(255,255,255,.45);
}
.img-placeholder.about-img { position: relative; width: 100%; height: 320px; border-radius: 4px; }
.img-placeholder.katalog-cover { position: relative; width: 100%; height: 360px; margin-bottom: 14px; border: 1px solid #eee; }
/* Koyu zemin bekleyen alanlar (üzerinde beyaz yazı/buton olanlar: hero banner, tanıtım videosu) */
.img-placeholder-dark {
  background: repeating-linear-gradient(45deg, #4b4b4d, #4b4b4d 12px, #58585a 12px, #58585a 24px) !important;
}
.img-placeholder-dark::after { color: #e2e2e2; background: rgba(0,0,0,.3); }
.img-placeholder-nolabel::after { content: none; }
.img-placeholder-sm {
  width: 90px; height: 70px; border-radius: 3px; flex: none;
  background: repeating-linear-gradient(45deg, #e3e3e3, #e3e3e3 8px, #ececec 8px, #ececec 16px);
}
.img-placeholder-video {
  display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: repeating-linear-gradient(45deg, #d8d8d8, #d8d8d8 12px, #e2e2e2 12px, #e2e2e2 24px) !important;
}
.img-placeholder-video .play-btn { position: relative; top: auto; left: auto; transform: none; border-color: #999; color: #777; background: rgba(255,255,255,.5); }
.img-placeholder-video .ph-label { color: #7a7a7a; font-size: 12px; font-weight: 700; }
.img-placeholder-video::before { display: none; }

/* ---------- MOBILE MENU OVERLAY ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 300;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px; color: var(--white);
}
.mobile-menu-top .home { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; }
.mobile-menu-close { position: absolute; top: 18px; right: 20px; color: var(--white); font-size: 24px; background: none; border: none; cursor: pointer; }
.mobile-contact-btn { display: block; text-align: center; background: var(--maroon); color: var(--white); padding: 12px; font-weight: 600; }
.mobile-social { display: flex; justify-content: center; gap: 16px; padding: 16px; }
.mobile-social a { color: var(--white); width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; display:flex; align-items:center; justify-content:center; }
.mobile-social a img { width: 14px; height: 14px; }
.mobile-menu ul.accordion > li { border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu ul.accordion > li > a,
.mobile-menu ul.accordion > li > button {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; background: none; border: none; text-align: left;
  color: var(--white); font-size: 14px; font-weight: 600;
  padding: 14px 20px; cursor: pointer;
}
.mobile-submenu { display: none; background: rgba(0,0,0,.2); }
.mobile-submenu.open { display: block; }
.mobile-submenu a { display: block; padding: 10px 34px; font-size: 13px; color: #ccc; }

/* =====================================================
   RESPONSIVE — breakpoints match the live site (992 / 767)
   ===================================================== */
@media (max-width: 992px) {
  .main-nav, .langs { display: none; }
  .burger { display: block; }
  .top-bar-contact { font-size: 11px; gap: 12px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .about-fuar-grid { grid-template-columns: 1fr; gap: 30px; }
  .uygulama-scroller { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-sticky { display: flex; }
  .site-footer { padding-bottom: 90px; }
}

@media (max-width: 767px) {
  .hero-slider { height: 460px; }
  .hero-slide-content { margin: 0 auto; padding: 0 24px; text-align: center; border-left: none; max-width: 100%; }
  .hero-slide-content h2 { font-size: 22px; text-align: center; }
  .hero-slide-content p { text-align: center; }
  .hero-nav { display: none; }
  .hero-dots { bottom: 18px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-item .circle { width: 240px; height: 240px; }
  .section { padding: 36px 0; }
  .section-title-row { flex-direction: row; }
  .about-fuar-grid { grid-template-columns: 1fr; }
  .uygulama-scroller { grid-template-columns: 1fr 1fr; overflow-x: auto; grid-auto-flow: column; grid-auto-columns: 70%; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom .container { flex-direction: column; gap: 6px; text-align: center; }
  .product-cards, .stok-cards { grid-template-columns: 1fr; padding: 30px 0; gap: 20px; }
  .katalog-cards { grid-template-columns: 1fr; padding: 30px 0; gap: 40px; }
  .page-banner { padding: 24px 0; }
  .page-banner .container { flex-direction: column; align-items: flex-start; gap: 8px; }
  .logo img { height: 38px; }
}

@media (max-width: 355px) {
  .footer-sticky a { font-size: 8px; }
}
