/* ============================================================
   Akdeniz Elektronik Mühendislik, Antalya
   Theme: "engineering bench" : paper-white surfaces, navy ink,
   one electric-cyan accent, circuit-trace details.
   Fonts: Chakra Petch (display) / IBM Plex Sans (body) / IBM Plex Mono (tech)
   ============================================================ */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #16224e;        /* deep navy, body text on light: 13.7:1 */
  --ink-soft: #3c4979;   /* 7.5:1 on white */
  --navy: #131f4d;       /* dark section background */
  --navy-2: #1b2a66;
  --accent: #14a9d6;     /* electric cyan, graphics + accents only */
  --accent-deep: #0b7fa5;/* 4.6:1 on white, usable for small text */
  --line: #dde4f0;
  --line-navy: #2c3a78;
  --radius: 10px;
  --font-display: "Chakra Petch", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: min(1140px, 92%); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.96); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.15; letter-spacing: .01em; }
.brand-name small { display: block; font-family: var(--font-mono); font-size: .62rem; font-weight: 400; color: var(--accent-deep); letter-spacing: .12em; }

.main-nav { display: flex; align-items: center; gap: 1.7rem; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--ink-soft); transition: color .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"] { box-shadow: 0 2px 0 0 var(--accent); }

.header-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--navy); color: #fff; text-decoration: none;
  padding: .6rem 1.1rem; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  transition: background .2s, transform .2s;
}
.header-cta:hover { background: var(--navy-2); transform: translateY(-1px); }

.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang-toggle button {
  border: 0; background: transparent; padding: .35rem .6rem; cursor: pointer;
  font-family: var(--font-mono); font-size: .78rem; color: var(--ink-soft);
}
.lang-toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.nav-burger { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; transition: transform .25s, opacity .25s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 150px 0 70px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: -.01em;
}
.hero h1 .accent-line { color: var(--accent-deep); }
.hero-lead { margin-top: 1.2rem; font-size: 1.13rem; color: var(--ink-soft); max-width: 34rem; }

.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: var(--radius); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(19,31,77,.22); }
.btn-ghost { border: 1.5px solid var(--line-navy); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent-deep); color: var(--accent-deep); transform: translateY(-2px); }
.btn-whatsapp { background: #128c4a; color: #fff; }
.btn-whatsapp:hover { background: #0f7a40; transform: translateY(-2px); }

.hero-rating { margin-top: 2rem; display: flex; align-items: center; gap: .8rem; font-size: .95rem; color: var(--ink-soft); }
.hero-rating .stars { color: #e8a008; letter-spacing: .1em; font-size: 1.05rem; }
.hero-rating strong { color: var(--ink); font-family: var(--font-display); }

.hero-media { position: relative; }
.hero-media .frame {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 60px rgba(19,31,77,.18);
  border: 1px solid var(--line);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-chip {
  position: absolute; left: -14px; bottom: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .7rem 1rem; box-shadow: 0 12px 30px rgba(19,31,77,.14);
  font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft);
}
.hero-chip strong { display: block; color: var(--ink); font-size: 1rem; font-family: var(--font-display); }

/* circuit trace decoration */
.trace { position: absolute; pointer-events: none; opacity: .5; }
.trace-hero { top: 90px; right: -120px; width: 460px; }

/* ---------- stats strip ---------- */
.stats { background: var(--navy); color: #fff; padding: 2.6rem 0; position: relative; overflow: hidden; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; position: relative; }
.stat b { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; display: block; }
.stat b .unit { color: var(--accent); }
.stat span { font-size: .92rem; color: #c2cdee; }

/* ---------- sections ---------- */
.section { padding: 5.5rem 0; }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head .kicker {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-deep); display: block; margin-bottom: .6rem;
}
.section-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; }
.section-head p { margin-top: .9rem; color: var(--ink-soft); }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.svc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.svc-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(19,31,77,.12); border-color: var(--accent); }
.svc-card .svc-icon { width: 46px; height: 46px; margin-bottom: 1.1rem; color: var(--accent-deep); }
.svc-card h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; margin-bottom: .55rem; }
.svc-card p { font-size: .96rem; color: var(--ink-soft); }
.svc-card .svc-no {
  position: absolute; top: 1.1rem; right: 1.2rem;
  font-family: var(--font-mono); font-size: .75rem; color: var(--accent-deep);
}

/* media rows */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.media-row + .media-row { margin-top: 4.5rem; }
.media-row .frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(19,31,77,.14); }
.media-row h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: .9rem; }
.media-row p { color: var(--ink-soft); }
.media-row ul { margin: 1.1rem 0 0 1.2rem; color: var(--ink-soft); }
.media-row li { margin-bottom: .45rem; }
.media-row li::marker { color: var(--accent-deep); }

/* video */
.video-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(19,31,77,.14); background: #000; }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.video-caption { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft); margin-top: .6rem; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery-grid figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; aspect-ratio: 4 / 3; background: var(--surface); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem .9rem .7rem;
  background: linear-gradient(transparent, rgba(12,18,45,.82));
  color: #fff; font-size: .85rem; font-family: var(--font-mono);
}

/* review */
.review-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.review-band .section-head h2, .review-band h2 { color: #fff; }
.review-card { max-width: 46rem; position: relative; }
.review-card blockquote { font-size: 1.35rem; line-height: 1.55; font-weight: 500; }
.review-card cite { display: block; margin-top: 1.3rem; font-style: normal; font-family: var(--font-mono); font-size: .88rem; color: #c2cdee; }
.review-card .stars { color: #ffc83d; font-size: 1.1rem; letter-spacing: .12em; margin-bottom: 1rem; display: block; }
.review-link { color: #fff; }
.review-link:hover { color: var(--accent); }

/* brands */
.brand-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.brand-pill {
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: .5rem 1.25rem; color: var(--ink-soft);
}

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--accent-deep); margin-top: .2rem; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--accent-deep); }
.contact-list .label { display: block; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; color: var(--ink-soft); }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.hours-table td:last-child { text-align: right; font-family: var(--font-mono); font-size: .9rem; }
.hours-table .closed td { color: var(--ink-soft); }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(19,31,77,.12); }
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* form */
.demo-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.demo-form label { display: block; font-weight: 600; font-size: .92rem; margin: 1.1rem 0 .35rem; }
.demo-form label:first-of-type { margin-top: 0; }
.demo-form input, .demo-form textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-body); font-size: .98rem; background: var(--bg); color: var(--ink);
}
.demo-form input:focus, .demo-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.demo-form .form-note { font-size: .85rem; color: var(--ink-soft); margin-top: 1rem; }
.demo-form button { margin-top: 1.4rem; border: 0; cursor: pointer; width: 100%; justify-content: center; }
.form-status { margin-top: .9rem; font-weight: 600; color: var(--accent-deep); }

/* cta band */
.cta-band { background: var(--navy); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; max-width: 36rem; margin-inline: auto; }
.cta-band p { color: #c2cdee; margin-top: 1rem; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-ghost { border-color: #56639c; color: #fff; }
.cta-band .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* page hero (inner pages) */
.page-hero { padding: 150px 0 60px; }
.page-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); }
.page-hero p { margin-top: 1rem; color: var(--ink-soft); max-width: 38rem; font-size: 1.1rem; }

/* footer */
.site-footer { background: #0d1535; color: #aab4d9; padding: 3.5rem 0 2rem; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #aab4d9; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-disclaimer {
  border-top: 1px solid #232f63; padding-top: 1.4rem;
  font-size: .82rem; color: #8893bd; line-height: 1.6;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .media-row, .contact-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .main-nav {
    position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 1.4rem 5%; gap: 1.1rem; display: none;
  }
  .main-nav.open { display: flex; }
  .nav-burger { display: block; }
  .header-cta .cta-text { display: none; }
  .header-cta { padding: .6rem .8rem; }
}
@media (max-width: 600px) {
  .svc-grid, .gallery-grid { grid-template-columns: 1fr; }
  .hero-chip { left: 8px; }
}
