/* ==========================================================================
   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-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;
}

/* ---------- 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);
}

.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;
}

/* ==========================================================================
   maden-makina subsite additions
   ========================================================================== */

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

.mm-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.mm-nav a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
}
.mm-nav a:hover { color: var(--brand-dark); }
.mm-nav a.nav-active { color: var(--brand-dark); }

@media (max-width: 980px) {
  .mm-nav { display: none; }
}

.hero-photo {
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-photo-overlay {
  background: linear-gradient(180deg, rgba(31,36,48,0.55), rgba(31,36,48,0.78));
  padding: 90px 0 60px;
  color: white;
}
.hero-photo-overlay .eyebrow { background: rgba(255,255,255,0.15); color: white; }
.hero-photo-overlay h1 { color: white; }
.hero-photo-overlay p { color: #e7e4de; max-width: 640px; }

.route-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.route-icon { overflow: hidden; }

.about-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.about-photo { width: 100%; border-radius: 10px; }
@media (max-width: 780px) { .about-block { grid-template-columns: 1fr; } }

.cat-block { margin-bottom: 40px; }
.cat-block h3 { font-size: 17px; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 10px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.mini-icon { width: 34px; height: 34px; color: var(--brand-dark); }
.mini-icon svg { width: 100%; height: 100%; }
.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; }
.mini-name { font-size: 12.5px; font-weight: 600; line-height: 1.3; }

.product-detail-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
}
@media (max-width: 780px) { .product-detail-grid { grid-template-columns: 1fr; } }

.side-nav {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 90px;
}
.side-nav h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--steel); margin: 0 0 10px; }
.side-link {
  display: block;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 0;
  border-bottom: 1px solid var(--paper-dim);
}
.side-link:hover { color: var(--brand-dark); }

.product-main {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.product-icon-hero { width: 64px; height: 64px; color: var(--brand-dark); margin-bottom: 16px; }
.product-icon-hero svg { width: 100%; height: 100%; }
.product-photo-hero {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-dim);
  margin-bottom: 22px;
}
.product-desc { color: var(--ink-soft); font-size: 15px; max-width: 720px; }

.spec-wrap { overflow-x: auto; margin: 22px 0; }
.spec-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.spec-table th {
  background: var(--ink);
  color: white;
  text-align: left;
  padding: 10px 12px;
  font-size: 11.5px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.spec-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.spec-table tr:nth-child(even) td { background: var(--paper-dim); }

.product-icon-sm { width: 40px; height: 40px; color: var(--steel); }
.product-icon-sm svg { width: 100%; height: 100%; }

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  max-width: 520px;
}
.contact-card p { margin: 0 0 12px; }

/* ---------- real spare-parts galleries (yedek-parca.html) ---------- */
.spare-section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.spare-section:last-child { border-bottom: none; }
.spare-section h3 {
  font-size: 17px;
  margin: 0 0 14px;
}
.spare-diagram {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
  text-align: center;
}
.spare-diagram img { max-width: 100%; max-height: 340px; margin: 0 auto; }
.spare-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.spare-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 6px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.spare-thumb:hover { box-shadow: var(--shadow); border-color: var(--brand); }
.spare-thumb img {
  width: 100%;
  height: 56px;
  object-fit: contain;
}
.spare-thumb span { font-size: 10.5px; line-height: 1.25; }
