﻿/*
Theme Name: MKL Otomasyon Premium
Theme URI: https://mklotomasyon.com
Author: MKL Otomasyon
Description: Premium industrial automation theme for MKL Otomasyon.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: mkl-otomasyon
*/
:root {
  --mkl-bg: #f7f8f6;
  --mkl-white: #ffffff;
  --mkl-graphite: #050607;
  --mkl-graphite-2: #0b0d0f;
  --mkl-graphite-3: #171b20;
  --mkl-muted: #5b636d;
  --mkl-green: #0e7a5f;
  --mkl-bright: #18c99a;
  --mkl-yellow: #f5c84b;
  --mkl-border: rgba(5, 6, 7, 0.1);
  --mkl-shadow: 0 24px 80px rgba(5, 6, 7, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mkl-bg);
  color: var(--mkl-graphite);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 6, 7, 0.28);
  color: white;
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-color: var(--mkl-border);
  background: rgba(255, 255, 255, 0.86);
  color: var(--mkl-graphite);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, 1280px);
  height: 80px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark,
.custom-logo-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
}

.custom-logo-link img {
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
}

.brand__text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  gap: 32px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 600;
}

.site-header.is-scrolled .desktop-nav {
  color: #242a31;
}

.desktop-nav a:hover {
  color: var(--mkl-bright);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(24, 201, 154, 0.4);
  background: var(--mkl-bright);
  color: var(--mkl-graphite);
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.header-cta:hover,
.button--primary:hover {
  background: var(--mkl-yellow);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.mobile-nav {
  display: none;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 160px 20px 80px;
  background:
    radial-gradient(circle at 50% 0%, rgba(24, 201, 154, 0.18), transparent 34%),
    radial-gradient(circle at 78% 20%, rgba(245, 200, 75, 0.1), transparent 26%),
    var(--mkl-graphite);
  color: white;
}

.hero-section::before,
.section--dark::before,
.render-slot::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  pointer-events: none;
}

.hero-section__grid,
.metrics,
.section > *,
.site-footer__grid,
.site-footer__bottom {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  margin-right: auto;
  margin-left: auto;
}

.hero-section__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: end;
  gap: 56px;
}

.eyebrow,
.section-eyebrow {
  margin: 0 0 22px;
  color: var(--mkl-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-copy h1,
.section h2 {
  margin: 0;
  font-size: clamp(46px, 7vw, 104px);
  font-weight: 750;
  line-height: 0.95;
  letter-spacing: 0;
  text-wrap: balance;
}

.section h2 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
}

.hero-copy__body,
.section-body {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 19px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: transparent;
  color: white;
}

.button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.button--dark {
  border-color: var(--mkl-graphite);
  background: var(--mkl-graphite);
  color: white;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 56px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
}

.metrics div {
  padding: 26px;
  background: rgba(5, 6, 7, 0.66);
}

.metrics strong {
  display: block;
  font-size: 34px;
}

.metrics span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.render-slot {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--mkl-graphite);
  color: white;
  box-shadow: var(--mkl-shadow);
  isolation: isolate;
}

.render-slot__image {
  position: absolute;
  inset: -40px 0;
  width: 100%;
  height: calc(100% + 80px);
  max-width: none;
  object-fit: cover;
  will-change: transform;
}

.render-slot__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 6, 7, 0.96), rgba(5, 6, 7, 0.54), rgba(5, 6, 7, 0.2)),
    radial-gradient(circle at 50% 0%, rgba(24, 201, 154, 0.22), transparent 40%);
}

.render-slot__drawing {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78%;
  max-width: 680px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 0 44px rgba(24, 201, 154, 0.18);
  transform: translate(-50%, -50%) translateY(24px) rotateZ(-8deg);
  will-change: transform;
}

.render-slot__axis {
  position: absolute;
  top: 50%;
  right: 24px;
  left: 24px;
  height: 1px;
  background: rgba(24, 201, 154, 0.45);
}

.render-slot__columns {
  display: grid;
  height: 100%;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 24px;
}

.render-slot__columns span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.render-slot__icons {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  gap: 8px;
}

.render-slot__icons span {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.render-slot__caption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.render-slot__caption p {
  margin: 0;
  color: var(--mkl-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.render-slot__caption span {
  display: block;
  max-width: 420px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.6;
}

.render-slot__caption strong {
  border: 1px solid rgba(245, 200, 75, 0.3);
  color: var(--mkl-yellow);
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section {
  position: relative;
  overflow: hidden;
  padding: 96px 20px;
}

.section--light {
  background: var(--mkl-bg);
}

.section--white {
  background: white;
}

.section--dark {
  background: var(--mkl-graphite);
  color: white;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 80px;
}

.section-body {
  color: var(--mkl-muted);
}

.section--dark .section-body {
  color: rgba(255, 255, 255, 0.64);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--mkl-border);
  background: var(--mkl-border);
}

.service-card {
  min-height: 170px;
  background: white;
  padding: 28px;
  transition: background 0.2s ease, color 0.2s ease;
}

.service-card:hover {
  background: var(--mkl-graphite);
  color: white;
}

.service-card__icon {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 36px;
  border: 2px solid var(--mkl-green);
}

.service-card h3 {
  max-width: 260px;
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.service-card__line {
  display: block;
  width: 48px;
  height: 1px;
  margin-top: 28px;
  background: var(--mkl-yellow);
  transition: width 0.2s ease;
}

.service-card:hover .service-card__line {
  width: 96px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: end;
  gap: 40px;
}

.section-heading .section-body {
  margin-left: auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 32px;
  margin-top: 64px;
}

.project-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--mkl-border);
  background: var(--mkl-border);
}

.project-card {
  background: var(--mkl-bg);
  padding: 34px;
  transition: background 0.2s ease, color 0.2s ease;
}

.project-card:hover {
  background: var(--mkl-graphite);
  color: white;
}

.project-card__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 34px;
}

.project-card__top p,
.project-card strong {
  color: var(--mkl-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.18;
}

.project-card > p {
  margin: 16px 0 0;
  color: var(--mkl-muted);
  line-height: 1.7;
}

.project-card:hover > p {
  color: rgba(255, 255, 255, 0.66);
}

.project-card strong {
  display: block;
  margin-top: 32px;
  border-top: 1px solid var(--mkl-border);
  padding-top: 18px;
  color: var(--mkl-muted);
}

.engineering-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 56px;
}

.section-eyebrow--bright {
  color: var(--mkl-bright);
}

.engineering-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.engineering-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 30px;
}

.engineering-card span {
  color: var(--mkl-yellow);
  font-size: 22px;
}

.engineering-card h3 {
  margin: 46px 0 0;
  font-size: 22px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  border: 1px solid var(--mkl-border);
  background: white;
  padding: clamp(32px, 5vw, 64px);
  box-shadow: var(--mkl-shadow);
}

.contact-card p {
  color: var(--mkl-muted);
  font-size: 18px;
  line-height: 1.7;
}

.contact-card .button {
  margin-top: 28px;
}

.site-footer {
  border-top: 1px solid var(--mkl-border);
  background: white;
  padding: 56px 20px 28px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 48px;
}

.brand--footer {
  margin-bottom: 24px;
}

.site-footer p {
  color: var(--mkl-muted);
  line-height: 1.7;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-columns h3 {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-columns p {
  margin: 9px 0;
  font-size: 14px;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  border-top: 1px solid var(--mkl-border);
  padding-top: 24px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav {
    display: none;
    width: min(100% - 40px, 1280px);
    margin: 0 auto;
    border-top: 1px solid var(--mkl-border);
    background: white;
    color: var(--mkl-graphite);
    padding: 12px 0 22px;
  }

  .mobile-nav.is-open {
    display: grid;
  }

  .mobile-nav a {
    border-bottom: 1px solid var(--mkl-border);
    padding: 16px 0;
    font-size: 18px;
    font-weight: 650;
  }

  .hero-section__grid,
  .section-grid,
  .section-heading,
  .projects-grid,
  .engineering-grid,
  .contact-card,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .section-heading .section-body {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    width: min(100% - 28px, 1280px);
  }

  .brand__text {
    font-size: 12px;
  }

  .hero-section {
    padding-top: 124px;
  }

  .hero-copy h1 {
    font-size: clamp(44px, 14vw, 68px);
  }

  .metrics,
  .service-grid,
  .engineering-points,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .render-slot {
    min-height: 390px;
  }

  .render-slot__caption {
    display: block;
  }

  .render-slot__caption strong {
    display: none;
  }

  .site-footer__bottom {
    flex-direction: column;
  }
}

