/* =========================================================
   Mutsan Elektrik — ortak yapı stilleri
   Tasarım 1/2/3 bu dosyanın üzerine kendi tema değişkenlerini
   ve bölüm stillerini ekler.
   ========================================================= */

:root {
  --container: 1180px;
  --radius-btn: 10px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: var(--font-body);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper, #fff);
  color: var(--ink, #111);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

@media (max-width: 768px) {
  body { padding-bottom: 76px; }
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill { fill: currentColor; stroke: none; }

::selection { background: var(--accent, #ffd400); color: var(--accent-ink, #111); }

:focus-visible {
  outline: 3px solid var(--focus, #1d4ed8);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
}

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--ink, #111);
  color: var(--paper, #fff);
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { left: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Tipografi ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent-strong, var(--accent));
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin-top: 12px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}

.section-head .lead { max-width: 44ch; margin-top: 14px; }

.lead {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--muted);
  max-width: 62ch;
}

.muted { color: var(--muted); }
.text-center { text-align: center; }
.hidden { display: none !important; }

@media (max-width: 800px) {
  .section-head { display: block; }
  .section-head .lead { max-width: 60ch; }
}

/* ---------- Butonlar ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.1;
  text-align: center;
  transition: transform .2s ease, background .2s ease, color .2s ease,
              border-color .2s ease, box-shadow .2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

.btn--dark { background: var(--ink); color: var(--on-ink, #fff); }
.btn--ghost { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--outline-light {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .05);
  color: #fff;
}
.btn--whatsapp { background: #1fa855; color: #fff; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--header-bg, rgba(255, 255, 255, .92));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .3s ease;
}

.site-header.is-scrolled { box-shadow: 0 12px 34px rgba(0, 0, 0, .08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  flex: none;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
}

.brand__mark svg { width: 22px; height: 22px; }

.brand__text { display: flex; flex-direction: column; gap: 5px; }
.brand__name { font-size: 19px; letter-spacing: .04em; }
.brand__sub {
  font-family: var(--font-body);
  font-size: 8.5px;
  letter-spacing: .3em;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
}

.nav a {
  position: relative;
  padding: 7px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-strong, var(--accent));
  transition: width .25s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.header-phone .icon { width: 17px; height: 17px; color: var(--accent-strong, var(--accent)); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
}

.nav-toggle .icon { width: 22px; height: 22px; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 76px 0 0;
  z-index: 70;
  padding: 24px;
  background: var(--surface, #fff);
  overflow-y: auto;
}

.mobile-menu.is-open { display: block; }

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 700;
}

.mobile-menu .btn { width: 100%; margin-top: 24px; }

@media (max-width: 980px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-phone span { display: none; }
}

@media (max-width: 560px) {
  .header-actions .btn { display: none; }
  .header-inner { min-height: 68px; }
  .mobile-menu { inset: 68px 0 0; }
}

/* ---------- Izgara ve kart yardımcıları ---------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Form ---------- */

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface, #fff);
  color: var(--ink);
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field textarea { min-height: 118px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-strong, var(--accent));
  box-shadow: 0 0 0 4px rgba(255, 196, 0, .18);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder, #98a2ad); }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

.checkbox-row input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--accent-strong, var(--accent));
  flex: none;
}

.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(31, 168, 85, .12);
  color: #16713a;
  font-size: 13px;
  font-weight: 600;
}

.form-status.is-visible { display: block; }

/* ---------- SSS ---------- */

.faq { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 700;
  line-height: 1.35;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary .faq-icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.faq summary .faq-icon .icon { width: 14px; height: 14px; }

.faq details[open] summary .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.faq .faq-body {
  max-width: 72ch;
  padding: 0 44px 24px 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Footer yapısı ---------- */

.site-footer { padding: 64px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr .8fr 1fr;
  gap: 40px;
}

.footer-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links li + li { margin-top: 10px; }
.footer-links a { font-size: 14px; opacity: .78; transition: opacity .2s ease; }
.footer-links a:hover { opacity: 1; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 52px;
  padding: 22px 0;
  border-top: 1px solid currentColor;
  font-size: 12px;
  opacity: .62;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Mobil arama çubuğu ---------- */

.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface, #fff);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .08);
}

.mobile-bar .btn { flex: 1; min-height: 48px; font-size: 14px; }

@media (max-width: 768px) {
  .mobile-bar { display: flex; }
}

/* ---------- Animasyon ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal.delay-1 { transition-delay: .08s; }
.js .reveal.delay-2 { transition-delay: .16s; }
.js .reveal.delay-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
