/* ============================================
   Eray Madeni Eşya — Kurumsal Site Stili
   Renkler logodan: Lacivert #232B7C, Kırmızı #D31F26
   ============================================ */
:root {
  --navy: #232B7C;
  --navy-dark: #181e5c;
  --red: #D31F26;
  --red-dark: #a8181e;
  --gray-bg: #f4f5f7;
  --gray-line: #e2e4e9;
  --text: #26282e;
  --text-light: #5c6068;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 4px 18px rgba(20, 25, 60, 0.10);
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
}

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

a { color: var(--navy); text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Üst bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,.85);
  font-size: 13px;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 34px; flex-wrap: wrap; gap: 4px;
}
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }
.topbar .contact-mini span { margin-right: 18px; }
.lang-switch a {
  display: inline-block; padding: 2px 10px; border: 1px solid rgba(255,255,255,.3);
  border-radius: 3px; font-weight: 600; letter-spacing: .5px;
}
.lang-switch a:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 104px; gap: 20px;
}
.logo img { height: 78px; width: auto; }

.main-nav ul { display: flex; list-style: none; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px; font-size: 15px; font-weight: 600;
  color: var(--navy); border-radius: 4px; white-space: nowrap;
}
.main-nav a:hover { background: var(--gray-bg); color: var(--red); }
.main-nav a.active { color: var(--red); border-bottom: 3px solid var(--red); border-radius: 0; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 28px; color: var(--navy); line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(rgba(24,30,92,.78), rgba(24,30,92,.78)),
              url("../img/hero.jpg") center/cover no-repeat;
  padding: 110px 0 120px;
}
.hero h1 { font-size: clamp(30px, 4.5vw, 52px); line-height: 1.15; max-width: 780px; }
.hero h1 span { color: #ff5a60; }
.hero p { margin-top: 18px; font-size: clamp(16px, 2vw, 20px); max-width: 640px; color: rgba(255,255,255,.9); }
.hero .btn-row { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 30px; border-radius: 4px;
  font-weight: 700; font-size: 15px; letter-spacing: .3px; transition: .2s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }

/* ---------- Bölüm başlıkları ---------- */
.section { padding: 72px 0; }
.section.gray { background: var(--gray-bg); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head .kicker {
  color: var(--red); font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; font-size: 13px; display: block; margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(24px, 3vw, 36px); color: var(--navy); line-height: 1.2; }
.section-head p { margin-top: 12px; color: var(--text-light); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Kartlar (hizmetler) ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s;
}
.card:hover { transform: translateY(-5px); }
.card img { height: 210px; object-fit: cover; width: 100%; }
.card .card-body { padding: 22px 24px 26px; flex: 1; }
.card h3 { color: var(--navy); font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: 14.5px; }
.card .card-link { margin-top: 14px; display: inline-block; color: var(--red); font-weight: 700; font-size: 14px; }

/* ---------- Sayı bandı ---------- */
.stats { background: var(--navy); color: #fff; padding: 56px 0; }
.stats .grid-4 { text-align: center; }
.stat .num { font-size: 42px; font-weight: 800; color: #fff; }
.stat .num em { color: #ff5a60; font-style: normal; }
.stat .label { margin-top: 6px; color: rgba(255,255,255,.75); font-size: 14px; letter-spacing: .5px; }

/* ---------- 1987 banner (ana sayfa) ---------- */
.banner-1987 {
  background: linear-gradient(rgba(24,30,92,.74), rgba(24,30,92,.74)),
              url("../img/banner-1987.jpg") center/cover no-repeat;
  color: #fff; padding: 96px 0; text-align: center;
}
.banner-1987 .kicker {
  color: #ff5a60; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; font-size: 13px; display: block; margin-bottom: 10px;
}
.banner-1987 h2 { font-size: clamp(26px, 4vw, 42px); line-height: 1.2; }
.banner-1987 p { max-width: 720px; margin: 18px auto 0; color: rgba(255,255,255,.9); font-size: 17px; }
.banner-1987 .btn { margin-top: 28px; }

/* ---------- Sayfa başlığı (iç sayfalar) ---------- */
.page-title {
  background: linear-gradient(rgba(24,30,92,.85), rgba(24,30,92,.85)),
              url("../img/hero.jpg") center/cover no-repeat;
  color: #fff; padding: 64px 0;
}
.page-title h1 { font-size: clamp(26px, 3.5vw, 42px); }
.page-title .crumbs { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.75); }
.page-title .crumbs a { color: rgba(255,255,255,.9); }

/* ---------- Hakkımızda ---------- */
.about-flex { display: flex; gap: 48px; align-items: center; }
.about-flex > div { flex: 1; }
.about-flex img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-flex h2 { color: var(--navy); font-size: 30px; margin-bottom: 16px; }
.about-flex p { margin-bottom: 14px; color: var(--text-light); }
.checklist { list-style: none; margin-top: 10px; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 9px; font-weight: 600; color: var(--text); }
.checklist li::before { content: "✔"; color: var(--red); position: absolute; left: 0; font-weight: 800; }

/* ---------- Süreç adımları ---------- */
.steps { counter-reset: step; }
.step {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 24px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 34px; font-weight: 800; color: var(--red); display: block; margin-bottom: 8px;
}
.step h3 { color: var(--navy); font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-light); }

/* ---------- Makine parkuru tablosu ---------- */
.machine-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.machine-table th, .machine-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--gray-line); font-size: 15px; }
.machine-table th { background: var(--navy); color: #fff; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; }
.machine-table tr:hover td { background: var(--gray-bg); }

/* ---------- Referans logoları ---------- */
.ref-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ref-item {
  background: #fff; border: 1px solid var(--gray-line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; padding: 26px;
  min-height: 120px; filter: grayscale(1); opacity: .8; transition: .25s;
}
.ref-item:hover { filter: none; opacity: 1; box-shadow: var(--shadow); }
.ref-item img { max-height: 60px; width: auto; }

/* ---------- Kalite belgeleri ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cert {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; text-align: center;
}
.cert img { border: 1px solid var(--gray-line); border-radius: 4px; margin-bottom: 14px; width: 100%; }
.cert h3 { color: var(--navy); font-size: 16px; }

/* ---------- CTA bandı ---------- */
.cta-band { background: var(--red); color: #fff; padding: 56px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); max-width: 640px; }
.cta-band .btn { background: #fff; color: var(--red); }
.cta-band .btn:hover { background: var(--navy); color: #fff; }

/* ---------- İletişim ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info .item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info .ico {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}
.contact-info h3 { color: var(--navy); font-size: 16px; margin-bottom: 2px; }
.contact-info p { color: var(--text-light); font-size: 15px; }

.contact-form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.contact-form label { font-weight: 600; font-size: 14px; color: var(--navy); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-line); border-radius: 4px;
  font: inherit; margin-bottom: 18px; background: var(--gray-bg);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--navy); background: #fff; }
.map-frame { width: 100%; height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 48px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.8); padding: 60px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; letter-spacing: .5px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: #fff; }
.footer-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.footer-logo img { height: 58px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 18px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }

/* ---------- Duyarlı (responsive) ---------- */
@media (max-width: 1020px) {
  .grid-4, .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 3px solid var(--navy); box-shadow: 0 12px 20px rgba(0,0,0,.12);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 20px 20px; }
  .main-nav a.active { border-bottom: none; border-left: 3px solid var(--red); }
  .about-flex { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 90px; }
}
@media (max-width: 560px) {
  .logo img { height: 60px; }
  .site-header .container { min-height: 84px; }
  .grid-3, .grid-2, .cert-grid { grid-template-columns: 1fr; }
  .grid-4, .ref-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .machine-table { font-size: 13px; }
  .machine-table th, .machine-table td { padding: 10px 10px; }
  .topbar .contact-mini span { margin-right: 10px; display: inline-block; }
}
