/* Dosya: assets/css/style.css
   Pnomasyon Mekatronik - site stilleri */

:root {
  --blue: #1a8fe3;
  --blue-600: #1279c6;
  --navy: #0b3a8f;
  --navy-900: #071f4d;
  --ink: #0f1b2d;
  --text: #3d4a5c;
  --muted: #6b7789;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,27,45,.06), 0 8px 24px rgba(15,27,45,.06);
  --head: "Poppins", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.eyebrow { display: inline-block; font-family: var(--head); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--text); }

/* Butonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--head); font-weight: 600; font-size: .95rem; padding: 14px 24px; border-radius: 10px; background: var(--blue); color: #fff; border: 2px solid var(--blue); transition: background .2s, border-color .2s, color .2s, transform .2s; cursor: pointer; }
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--navy); border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--bg-alt); border-color: var(--bg-alt); color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-block { width: 100%; }
.text-link { font-family: var(--head); font-weight: 600; color: var(--blue); }
.text-link:hover { color: var(--navy); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-color: var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-word { font-family: var(--head); font-weight: 800; font-size: 1.7rem; color: var(--blue); letter-spacing: -.03em; }
.logo-sub { font-family: var(--head); font-weight: 600; font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--navy); margin-top: 3px; padding-left: 2px; }
.logo-light .logo-word { color: #fff; }
.logo-light .logo-sub { color: #9fc6ff; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) { font-family: var(--head); font-weight: 500; font-size: .93rem; color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.main-nav a:not(.btn):hover { background: var(--bg-alt); }
.main-nav a.active { color: var(--blue); }
.main-nav .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 48px 0 0; background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -10%; top: -20%; width: 60%; height: 120%; background: var(--blue); transform: skewX(-12deg); opacity: .07; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-text h1 { margin-bottom: 20px; }
.hero-text h1::after { content: ""; display: block; width: 72px; height: 6px; margin-top: 22px; background: var(--blue); transform: skewX(-20deg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media { position: relative; }
.hero-media::before { content: ""; position: absolute; inset: 8% -8% 8% 12%; background: var(--navy); transform: skewX(-8deg); border-radius: 6px; }
.hero-media img { position: relative; width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(7,31,77,.25); }
.stats { position: relative; list-style: none; margin: 56px 0 0; padding: 28px 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stats li { padding: 0 20px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats strong { display: block; font-family: var(--head); font-weight: 800; font-size: 2rem; color: var(--navy); line-height: 1.1; }
.stats span { font-size: .88rem; color: var(--muted); }

/* Bölümler */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.row-head { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.row-head h2 { margin: 0; }

/* Hizmetler */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service { position: relative; display: flex; flex-direction: column; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, transform .2s, box-shadow .2s; overflow: hidden; }
.service::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--blue); transition: width .3s; }
.service:hover { border-color: transparent; transform: translateY(-3px); box-shadow: var(--shadow); }
.service:hover::after { width: 100%; }
.service-no { font-family: var(--head); font-weight: 700; font-size: .85rem; color: var(--blue); margin-bottom: 18px; }
.service p { font-size: .93rem; color: var(--muted); flex: 1; }
.service-link { font-family: var(--head); font-weight: 600; font-size: .85rem; color: var(--navy); }
.services .service:first-child { grid-column: span 2; background: var(--navy); border-color: var(--navy); }
.services .service:first-child h3 { color: #fff; font-size: 1.4rem; }
.services .service:first-child p { color: #c7d6f2; }
.services .service:first-child .service-no, .services .service:first-child .service-link { color: #7cc0ff; }

/* Proje kartları */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .project-img img { transform: scale(1.04); }
.project-body { padding: 20px 22px 24px; }
.project-meta { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.tag { font-family: var(--head); font-weight: 600; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); background: #e8f3fd; padding: 4px 10px; border-radius: 99px; }
.project-body h3 { margin-bottom: 2px; }
.project-body .client { font-family: var(--head); font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: 8px; }
.project-body p:last-child { font-size: .92rem; color: var(--muted); margin: 0; }

/* Süreç */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.process li { position: relative; padding: 0 28px 0 0; }
.process li span { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #e8f3fd; color: var(--blue); font-family: var(--head); font-weight: 700; margin-bottom: 18px; position: relative; z-index: 1; }
.process li:not(:last-child)::before { content: ""; position: absolute; top: 26px; left: 52px; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.process p { font-size: .93rem; color: var(--muted); }

/* Referanslar */
.refs { padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.refs ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 56px; }
.refs li { font-family: var(--head); font-weight: 700; font-size: 1.35rem; color: #9aa6b8; letter-spacing: -.01em; }

/* CTA */
.cta { position: relative; background: var(--navy); color: #fff; padding: 72px 0; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -5%; top: 0; bottom: 0; width: 40%; background: var(--blue); transform: skewX(-15deg); opacity: .35; }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: #c7d6f2; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* Sayfa başlığı */
.page-head { position: relative; background: var(--navy); color: #fff; padding: 72px 0 64px; overflow: hidden; }
.page-head::before { content: ""; position: absolute; right: -8%; top: 0; bottom: 0; width: 38%; background: var(--blue); transform: skewX(-15deg); opacity: .35; }
.page-head .container { position: relative; }
.page-head h1 { color: #fff; max-width: 800px; }
.page-head p { color: #c7d6f2; max-width: 640px; font-size: 1.08rem; margin: 0; }
.page-head .eyebrow { color: #7cc0ff; }

/* Filtreler */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters a { font-family: var(--head); font-weight: 500; font-size: .88rem; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); }
.filters a:hover { border-color: var(--blue); color: var(--blue); }
.filters a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty p { color: var(--muted); }

/* Proje detay */
.project-hero { padding: 56px 0 64px; background: var(--bg-alt); }
.project-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.back { display: inline-block; font-family: var(--head); font-weight: 500; font-size: .88rem; color: var(--blue); margin-bottom: 18px; }
.project-hero h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.project-facts { display: flex; flex-wrap: wrap; gap: 28px; padding: 18px 0; margin: 18px 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-facts span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.project-facts strong { font-family: var(--head); font-weight: 600; color: var(--ink); }
.highlights { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.highlights li { font-family: var(--head); font-weight: 600; font-size: .85rem; color: var(--navy); background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 8px; }
.highlights li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--blue); margin-right: 8px; transform: skewX(-20deg); }
.project-hero-img img { width: 100%; max-height: 520px; object-fit: contain; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: start; }
.detail-body h2 { font-size: 1.3rem; margin-top: 32px; padding-left: 14px; border-left: 4px solid var(--blue); }
.detail-body h2:first-child { margin-top: 0; }
.detail-body ul { padding-left: 20px; }
.detail-body li { margin-bottom: 8px; }
.detail-body li::marker { color: var(--blue); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.gallery img { border-radius: var(--radius); border: 1px solid var(--line); }
.detail-side { position: sticky; top: 100px; }
.side-card { padding: 28px; border-radius: var(--radius); background: var(--navy); color: #c7d6f2; display: flex; flex-direction: column; gap: 10px; }
.side-card h3 { color: #fff; }
.side-card .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.side-card .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

/* Hakkımızda */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: start; }
.about-text h2 { margin-top: 36px; font-size: 1.5rem; }
.about-img { margin: 0; position: sticky; top: 100px; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.values div { padding: 24px; background: #fff; border-radius: var(--radius); border-top: 4px solid var(--blue); }
.values p { font-size: .93rem; color: var(--muted); margin: 0; }

/* İletişim */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: block; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
a.contact-item:hover { border-color: var(--blue); }
.ci-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-item strong { font-family: var(--head); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.contact-img { border-radius: var(--radius); margin-top: 8px; }
.form-card { padding: 36px; border-radius: var(--radius); background: var(--bg-alt); }
.form-card label { display: block; font-family: var(--head); font-weight: 500; font-size: .88rem; color: var(--ink); margin-bottom: 16px; }
.form-card input, .form-card textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,143,227,.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: .95rem; }
.alert-ok { background: #e6f6ec; color: #17633a; }
.alert-err { background: #fdeceb; color: #9b2c22; }

/* Footer */
.site-footer { background: var(--navy-900); color: #9fb0cc; padding: 64px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-text { margin-top: 16px; max-width: 340px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 18px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:not(.btn):hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.wa-btn { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); transition: transform .2s; }
.wa-btn:hover { transform: scale(1.08); }

/* Duyarlı tasarım */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail-side { position: static; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15,27,45,.08); display: none; }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .btn { margin: 14px 0 0; }
  .hero-grid, .project-hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { max-width: 480px; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .process li::before { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .about-img { position: static; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .services, .projects, .values, .process { grid-template-columns: 1fr; }
  .services .service:first-child { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 24px 18px; }
  .row-head { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .stats strong { font-size: 1.6rem; }
  .hero-actions .btn { flex: 1; }
}
@media (max-width: 860px) {
  .hero-media::before { display: none; }
  .hero-media img { max-height: 380px; object-fit: contain; background: #fff; }
  .stats span br { display: none; }
}

/* Gizlilik: görselleri bulanıklaştır (inc/config.php > gorsel_bulanik) */
.gizli-gorsel main img, img.bulanik {
  filter: blur(14px) saturate(.9);
  clip-path: inset(0 round var(--radius));
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.gizli-gorsel .project-card:hover .project-img img, .project-card:hover .project-img img.bulanik { transform: none; }

/* --- SEO / içerik sayfaları eklemeleri --- */
.atla { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; }
.atla:focus { left: 10px; top: 10px; }
.breadcrumb { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.breadcrumb .container { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose h3, .h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.4em; }
.values .h3 { margin-top: 0; }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--blue); }
.prose a { color: var(--blue); text-decoration: underline; }
.prose > :first-child { margin-top: 0; }
.kategori-metin { max-width: 820px; margin-bottom: 40px; font-size: 1.05rem; }
.liste-baslik { font-size: 1.3rem; margin: 8px 0 20px; }
.about-grid.tek { grid-template-columns: 1fr; max-width: 820px; }
.empty h2 { font-size: 1.2rem; }
.side-card h2 { font-size: 1.15rem; color: #fff; }
.refs h2.eyebrow { font-size: .78rem; }
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-baslik { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.sosyal { display: flex; gap: 14px; margin-top: 14px; }
.sosyal a { color: #fff; font-weight: 600; font-size: .88rem; }
.harita iframe { display: block; width: 100%; height: 420px; border: 0; }
.btn-row-site { display: flex; gap: 12px; flex-wrap: wrap; }
.project-facts a:hover { color: var(--blue); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .harita iframe { height: 300px; } }
