/* =========================================================
   Alptekin Demir Çelik Metal İşleme - Ana Stil Dosyası
   ========================================================= */

:root {
  --color-red: #c8202f;
  --color-red-dark: #8f1620;
  --color-red-light: #e5394a;
  --color-ink: #191919;
  --color-ink-soft: #2b2b2b;
  --color-steel: #4d5257;
  --color-gray-100: #f6f6f7;
  --color-gray-200: #ececec;
  --color-gray-300: #dadada;
  --color-white: #ffffff;
  --font-heading: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --radius: 6px;
  --shadow-soft: 0 10px 30px rgba(25, 25, 25, 0.08);
  --shadow-hard: 0 18px 40px rgba(25, 25, 25, 0.16);
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink-soft);
  background: var(--color-white);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-ink);
  margin: 0 0 16px;
  line-height: 1.2;
}
p { margin: 0 0 16px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}
.section--gray { background: var(--color-gray-100); }
.section--dark {
  background: linear-gradient(135deg, var(--color-ink) 0%, #302020 100%);
  color: var(--color-gray-200);
}
.section--dark h2, .section--dark h3 { color: var(--color-white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--color-red);
  font-weight: 600;
  margin-bottom: 12px;
  position: relative;
  padding-left: 34px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 3px;
  background: var(--color-red);
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--color-steel); font-size: 17px; }
.section--dark .section-head p { color: #c9c3c3; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}
.btn-primary:hover { background: var(--color-red-dark); border-color: var(--color-red-dark); }
.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn-outline:hover { background: var(--color-ink); color: var(--color-white); }
.hero .btn-outline {
  color: var(--color-white);
  border-color: var(--color-white);
}
.hero .btn-outline:hover { background: var(--color-white); color: var(--color-ink); }
.section--dark .btn-outline { color: var(--color-white); border-color: var(--color-white); }
.section--dark .btn-outline:hover { background: var(--color-white); color: var(--color-ink); }

/* ---------- Header / Nav ---------- */
.topbar {
  background: var(--color-ink);
  color: #cfcfcf;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #cfcfcf; }
.topbar a:hover { color: var(--color-red-light); }
.topbar__contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__contacts span, .topbar__contacts a { display: inline-flex; align-items: center; gap: 6px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 58px; width: auto; }
.brand__text { display: none; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav a.nav-link {
  display: block;
  padding: 14px 16px;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}
.main-nav a.nav-link:hover,
.main-nav li.active a.nav-link {
  color: var(--color-red);
  border-color: var(--color-red);
}
.main-nav .btn { margin-left: 12px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  padding: 6px 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  border: 1.5px solid var(--color-gray-200);
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.lang-switch:hover {
  color: var(--color-red);
  border-color: var(--color-red);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-ink);
  border-radius: 4px;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-ink);
  position: relative;
  transition: all 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, rgba(20,20,20,0.92), rgba(50,20,22,0.86)), url('../img/cnc-parca-flans-seti.jpg') center/cover no-repeat;
  color: var(--color-white);
  padding: 110px 0 100px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  color: var(--color-white);
  font-size: clamp(32px, 4.2vw, 54px);
  margin-bottom: 18px;
}
.hero h1 span { color: var(--color-red-light); }
.hero p.lead { font-size: 18px; color: #ddd6d6; max-width: 560px; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(3px);
}
.hero-card ul li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 15px;
}
.hero-card ul li:last-child { border-bottom: none; }
.hero-card ul li strong { color: var(--color-red-light); }

/* ---------- Stats ---------- */
.stats {
  background: var(--color-ink);
  color: var(--color-white);
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.stat { text-align: center; border-right: 1px solid rgba(255,255,255,0.12); }
.stat:last-child { border-right: none; }
.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--color-red-light);
}
.stat span { font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: #c7c1c1; }

/* ---------- Cards / Grids ---------- */
.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: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hard);
  border-color: var(--color-red);
}
.card__icon {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: rgba(200, 32, 47, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--color-red);
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--color-steel); font-size: 14.5px; margin-bottom: 12px; }
.card__link { font-size: 13px; font-weight: 700; color: var(--color-red); text-transform: uppercase; letter-spacing: 0.05em; }
.card__link:hover { color: var(--color-red-dark); }

.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.feature__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature h3 { font-size: 16.5px; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--color-steel); margin: 0; }
.section--dark .feature p { color: #cabdbd; }

.pill-list { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  padding: 10px 20px;
  border: 1px solid var(--color-gray-300);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-ink-soft);
  background: var(--color-white);
}
.pill:hover { border-color: var(--color-red); color: var(--color-red); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step { position: relative; padding-top: 8px; }
.step__num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--color-red);
  color: var(--color-red);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 16px; }
.step p { font-size: 14px; color: var(--color-steel); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
}
.gallery img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery figure:hover img { transform: scale(1.08); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-left: 4px solid var(--color-red);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial p { font-style: italic; color: var(--color-ink-soft); }
.testimonial__who { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.testimonial__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700;
}
.testimonial__who strong { display: block; font-size: 14px; }
.testimonial__who span { font-size: 12.5px; color: var(--color-steel); }

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--color-red);
  color: var(--color-white);
  padding: 56px 0;
}
.cta-band .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--color-white); margin-bottom: 6px; }
.cta-band p { color: #ffe3e3; margin: 0; }
.cta-band .btn-outline { border-color: var(--color-white); color: var(--color-white); }
.cta-band .btn-outline:hover { background: var(--color-white); color: var(--color-red); }

/* ---------- Breadcrumb / Page header ---------- */
.page-header {
  background: var(--color-ink);
  color: var(--color-white);
  padding: 56px 0;
  text-align: center;
}
.page-header h1 { color: var(--color-white); margin-bottom: 10px; }
.breadcrumb { font-size: 13.5px; color: #c7c1c1; }
.breadcrumb a:hover { color: var(--color-red-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: #c7c1c1;
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 { color: var(--color-white); font-size: 15px; margin-bottom: 20px; }
.footer-grid ul li { margin-bottom: 10px; font-size: 14px; }
.footer-grid ul li a:hover { color: var(--color-red-light); }
.footer-brand .brand {
  background: var(--color-white);
  padding: 12px 18px;
  border-radius: var(--radius);
  display: inline-flex;
}
.footer-brand .brand img { height: 42px; }
.footer-brand p { font-size: 14px; margin-top: 14px; color: #b6adad; }
.footer-legal {
  font-size: 12.5px;
  color: #948d8d;
  line-height: 1.8;
}
.footer-bottom {
  text-align: center;
  padding: 22px 0;
  font-size: 13px;
  color: #948d8d;
}
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.social-row a:hover { background: var(--color-red); border-color: var(--color-red); }

/* ---------- Contact page ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.contact-info-card {
  background: var(--color-gray-100);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info-card li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-gray-300);
  font-size: 14.5px;
}
.contact-info-card li:last-child { border-bottom: none; }
.contact-info-card strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-red); margin-bottom: 3px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--color-gray-300);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14.5px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--color-red); }
.map-frame {
  border: 0;
  width: 100%;
  height: 340px;
  border-radius: var(--radius);
  margin-top: 32px;
}

/* ---------- Materials table style ---------- */
.material-tag { display: inline-flex; gap: 6px; font-size: 12.5px; color: var(--color-steel); margin-right: 14px; }
.material-tag::before { content: "✓"; color: var(--color-red); font-weight: 700; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Catalog Download Cards ---------- */
.catalog-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.catalog-card:hover { box-shadow: var(--shadow-hard); border-color: var(--color-red); }
.catalog-card__icon { font-size: 44px; line-height: 1; flex-shrink: 0; }
.catalog-card__body h3 { font-size: 20px; margin-bottom: 8px; }
.catalog-card__body p { color: var(--color-steel); font-size: 14.5px; margin-bottom: 20px; }
.catalog-card__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Floating CTA Buttons ---------- */
.float-btns {
  position: fixed;
  bottom: 28px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.float-btn svg { width: 26px; height: 26px; fill: #fff; flex-shrink: 0; }
.float-btn--phone { background: var(--color-red); }
.float-btn--wa { background: #25d366; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
}

@media (max-width: 900px) {
  .main-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: min(320px, 85%); background: var(--color-white); box-shadow: -10px 0 30px rgba(0,0,0,0.2); flex-direction: column; align-items: stretch; padding: 90px 20px 20px; transition: right 0.3s ease; overflow-y: auto; }
  .main-nav.open { right: 0; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main-nav a.nav-link { padding: 16px 6px; border-bottom: 1px solid var(--color-gray-200); }
  .main-nav .btn { margin: 16px 6px 0; justify-content: center; }
  .lang-switch { margin: 12px 6px 0; justify-content: center; }
  .nav-toggle { display: flex; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 16px; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .grid--4, .grid--3, .grid--2, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; }
  .topbar .container > div:last-child { display: none; } /* çalışma saati gizle */
  .topbar__contacts span { display: none; }              /* adres gizle */
  .topbar__contacts { justify-content: center; width: 100%; }
  .hero { padding: 80px 0 60px; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .brand__title { font-size: 15px; }
  .brand img { height: 40px; }
}
