/* ==========================================================================
   AGREGA GROUP - shared stylesheet
   Static, framework-free CSS.
   ========================================================================== */

:root {
  --ink: #1f2430;
  --ink-soft: #4a5163;
  --paper: #f7f5f2;
  --paper-dim: #efece6;
  --line: #e3ddd3;
  --brand: #d9622a;
  --brand-dark: #b34e1e;
  --brand-tint: #fbe9df;
  --steel: #6b7280;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 36, 48, 0.08);
  --shadow-hover: 0 18px 40px rgba(31, 36, 48, 0.14);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

a { color: inherit; }

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

/* ---------- language toggle ---------- */
body.lang-en .lang-tr { display: none; }
body.lang-tr .lang-en { display: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: white;
  border: 1px solid var(--line);
}

.brand-text .name {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.5px;
}

.brand-text .tag {
  font-size: 11.5px;
  color: var(--steel);
  letter-spacing: 0.3px;
}

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

.crumb {
  font-size: 14px;
  color: var(--steel);
  text-decoration: none;
}
.crumb:hover { color: var(--brand-dark); }

.lang-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.lang-toggle button {
  border: none;
  background: transparent;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  color: var(--steel);
}

.lang-toggle button.active {
  background: var(--brand);
  color: white;
}

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}

.hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 17px;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- route cards ---------- */
.routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 12px 0 64px;
}

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

.route-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.route-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.route-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--brand-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.route-icon svg { width: 28px; height: 28px; stroke: var(--brand-dark); }

.route-card h3 {
  font-size: 19px;
  margin: 0 0 10px;
  letter-spacing: -0.2px;
  line-height: 1.3;
  min-height: 2.6em; /* reserve two lines so body text aligns across cards */
}

@media (max-width: 880px) {
  .route-card h3 { min-height: 0; }
}

.route-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  flex-grow: 1;
  margin: 0 0 22px;
}

.route-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.route-card .tags span {
  font-size: 11.5px;
  background: var(--paper-dim);
  color: var(--ink-soft);
  padding: 4px 9px;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: white;
}
.btn-primary:hover { background: var(--brand-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: white; }

.route-card .note {
  font-size: 12px;
  color: var(--steel);
  margin-top: 10px;
  min-height: 3.2em; /* reserve two lines so a wrapped note can't shift the buttons */
}

@media (max-width: 880px) {
  .route-card .note { min-height: 0; }
}

/* ---------- generic section ---------- */
.section {
  padding: 56px 0;
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: 26px;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}

.section-head p {
  color: var(--ink-soft);
  max-width: 680px;
}

.divider {
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0;
}

/* ---------- supplier blocks (alloy materials page) ---------- */
.supplier-block {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.supplier-block:last-of-type { border-bottom: none; }

.supplier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.supplier-head h2 {
  font-size: 22px;
  margin: 0;
}

.supplier-head a.site-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-dark);
  text-decoration: none;
}
.supplier-head a.site-link:hover { text-decoration: underline; }

.supplier-blurb {
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 760px;
  margin: 6px 0 26px;
}

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

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

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-figure {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef0f3, #dfe3e8);
}

.product-body {
  padding: 20px 22px 24px;
}

.product-body h4 {
  margin: 0 0 8px;
  font-size: 16.5px;
}

.product-body p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.product-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-meta span {
  font-size: 11px;
  background: var(--paper-dim);
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--ink-soft);
}

/* ---------- compact alloy cards (route 3 - small thumbnails only) ---------- */
.alloy-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 720px) {
  .alloy-card-grid { grid-template-columns: 1fr; }
}
.alloy-card-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
}
.alloy-card-thumb {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.alloy-card-thumb svg { width: 100%; height: 100%; }
.alloy-card-body h4 {
  margin: 0 0 3px;
  font-size: 13.5px;
}
.alloy-card-body p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* ---------- material photo cards (route 3 group 2 - image above name,
   matching the real zapp.com Materials nav layout) ---------- */
.material-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 880px) {
  .material-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .material-grid { grid-template-columns: 1fr; }
}
.material-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 10px 16px;
  box-shadow: var(--shadow);
  text-align: center;
}
.material-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}
.material-photo-svg { width: 100%; height: 100%; display: block; }
.material-name {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.placeholder-note {
  font-size: 12px;
  color: var(--steel);
  font-style: italic;
  margin-top: 10px;
}

/* ---------- callout / contact ---------- */
.callout {
  background: var(--ink);
  color: white;
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.callout h3 { margin: 0 0 6px; font-size: 21px; }
.callout p { margin: 0; color: #c7cad3; max-width: 480px; font-size: 14.5px; }

.callout .btn-primary {
  background: var(--brand);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 34px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}

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

.site-footer h5 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--steel);
  margin: 0 0 12px;
}

.site-footer p, .site-footer a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  margin: 0 0 8px;
}
.site-footer a:hover { color: var(--brand-dark); }

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--steel);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- alloy category grid (ozel-alasim-malzemeler.html) ---------- */
.letter-head {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-dark);
  margin: 22px 0 10px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--brand-tint);
}
.alloy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 6px;
}
.alloy-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
}
.alloy-item-icon { width: 24px; height: 24px; color: var(--brand-dark); flex-shrink: 0; }
.alloy-item-icon svg { width: 100%; height: 100%; }
.alloy-item-name { font-size: 12.5px; font-weight: 600; line-height: 1.3; }

/* ---------- product photo thumbnails (maden-makina) ---------- */
.mini-icon.has-photo {
  width: 100%;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-icon.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.product-photo-hero {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-dim);
  margin-bottom: 22px;
}
