/* ==========================================================================
   Bordomet — Service detail pages (e.g. Kum Döküm)
   Built on the editorial theme + about.css hero. Adds application chips,
   advantage cards, a navy process note and material category cards.
   ========================================================================== */

/* Near-white soft grey section background */
.ed-bg-soft { background: #f3f5f9; }

/* Intro media (image in the label column) */
.ed-intro__img {
  display: block; width: 100%; margin-top: clamp(20px, 2.4vw, 32px);
  aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--ed-r);
}
@media (max-width: 991px) {
  .ed-intro__img { max-width: 460px; aspect-ratio: 16 / 10; margin-top: 6px; }
}

/* ---- Application chips ---- */
.svc-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--title-font); font-weight: 600; font-size: 13.5px; color: var(--ed-ink);
  padding: 11px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--ed-line);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.svc-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-color); flex-shrink: 0; }
.svc-tag:hover { transform: translateY(-3px); border-color: var(--theme-color); box-shadow: 0 12px 26px rgba(10, 27, 61, 0.08); }

/* ---- Navy process note ---- */
.svc-note {
  margin-top: clamp(24px, 3vw, 40px);
  position: relative; overflow: hidden; color: #c7d2e6;
  border-radius: var(--ed-r); padding: clamp(26px, 3vw, 40px); max-width: 920px;
  background:
    radial-gradient(90% 160% at 100% 0%, rgba(191, 10, 48, 0.22) 0%, transparent 55%),
    linear-gradient(150deg, #0a2350 0%, #061229 100%);
  border-left: 3px solid var(--accent-color);
  line-height: 1.72; font-size: 0.99rem;
}
.svc-note strong { color: #fff; }

/* Note + image side by side — empty bg-image div stretches to the note height */
.svc-note-row {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(16px, 2vw, 28px);
  align-items: stretch; margin-top: clamp(26px, 3vw, 42px);
}
@media (max-width: 760px) { .svc-note-row { grid-template-columns: 1fr; } }
.svc-note-row .svc-note { margin: 0; max-width: none; }
.svc-note-imgwrap {
  background-size: cover; background-position: center; background-repeat: no-repeat;
  border-radius: var(--ed-r);
}
@media (max-width: 760px) { .svc-note-imgwrap { aspect-ratio: 16 / 10; } }

/* ---- Advantage cards ---- */
.svc-adv { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.8vw, 24px); }
@media (max-width: 760px) { .svc-adv { grid-template-columns: 1fr; } }
.svc-advcard {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  border: 1px solid var(--ed-line); border-radius: var(--ed-r);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: 0 10px 30px rgba(10, 27, 61, 0.05);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.svc-advcard::before {
  content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--theme-color), var(--accent-color));
  transform: scaleY(0); transform-origin: top; transition: transform 0.45s var(--ease);
}
.svc-advcard:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0, 40, 104, 0.12); border-color: transparent; }
.svc-advcard:hover::before { transform: scaleY(1); }
.svc-advcard__no { display: inline-block; font-family: var(--title-font); font-weight: 800; color: var(--accent-color); font-size: 0.85rem; letter-spacing: 0.1em; }
.svc-advcard h3 { font-family: var(--title-font); color: var(--ed-ink); font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); margin: 10px 0 10px; line-height: 1.2; }
.svc-advcard p { color: var(--ed-ink-soft); font-size: 0.97rem; line-height: 1.65; margin: 0; }

/* ---- Quality control / laboratory capability cards ---- */
.qc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 22px); }
@media (max-width: 900px) { .qc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .qc-grid { grid-template-columns: 1fr; } }
.qc-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  border: 1px solid var(--ed-line); border-radius: var(--ed-r);
  padding: clamp(24px, 2.4vw, 34px);
  box-shadow: 0 10px 30px rgba(10, 27, 61, 0.05);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.qc-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--theme-color), var(--accent-color));
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.qc-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0, 40, 104, 0.12); border-color: transparent; }
.qc-card:hover::before { transform: scaleX(1); }
.qc-card__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 18px;
  background: var(--theme-color); color: #fff; font-size: 22px;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.qc-card:hover .qc-card__ic { background: var(--accent-color); transform: translateY(-3px); }
.qc-card h3 { font-family: var(--title-font); color: var(--ed-ink); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); margin: 0 0 8px; line-height: 1.2; }
.qc-card p { color: var(--ed-ink-soft); font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* ---- Quality management band (IATF) ---- */
.qc-band {
  margin-top: clamp(20px, 2.6vw, 38px);
  position: relative; overflow: hidden; color: #fff;
  border-radius: var(--ed-r-lg); padding: clamp(30px, 4vw, 54px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(22px, 3vw, 44px); align-items: center;
  background:
    radial-gradient(90% 160% at 100% 0%, rgba(191, 10, 48, 0.26) 0%, transparent 55%),
    linear-gradient(150deg, #0a2350 0%, #0a1b3d 55%, #061229 100%);
}
.qc-band__badge {
  width: clamp(76px, 8vw, 104px); height: clamp(76px, 8vw, 104px); border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: clamp(30px, 3.4vw, 44px);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
}
.qc-band__eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--title-font); font-weight: 700; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #ff6b81; margin-bottom: 12px; }
.qc-band h3 { font-family: var(--title-font); font-weight: 800; color: #fff; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); line-height: 1.16; margin: 0 0 12px; max-width: 720px; }
.qc-band p { color: #c7d2e6; line-height: 1.7; margin: 0; max-width: 760px; font-size: 0.98rem; }
@media (max-width: 700px) { .qc-band { grid-template-columns: 1fr; } }

/* Production-flow steps — 3-up grid so 9 steps form a clean 3×3 */
#uretim-akisi .ed-steps { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) { #uretim-akisi .ed-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { #uretim-akisi .ed-steps { grid-template-columns: 1fr; } }

/* ---- Material category cards (masonry via CSS columns) ---- */
.svc-mats { columns: 2; column-gap: clamp(14px, 1.8vw, 22px); }
@media (max-width: 820px) { .svc-mats { columns: 1; } }
.svc-mat {
  break-inside: avoid; margin-bottom: clamp(14px, 1.8vw, 22px);
  background: #fff; border: 1px solid var(--ed-line); border-radius: var(--ed-r);
  padding: clamp(24px, 2.6vw, 32px);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.svc-mat:hover { box-shadow: 0 20px 44px rgba(10, 27, 61, 0.08); border-color: #cfd8e8; }
.svc-mat__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.svc-mat__ic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--theme-color); color: #fff; font-size: 18px;
}
.svc-mat__head h3 { font-family: var(--title-font); color: var(--ed-ink); font-size: 1.16rem; margin: 0; line-height: 1.2; }
.svc-mat__pills { display: flex; flex-wrap: wrap; gap: 7px; }
.svc-mat__pills span {
  font-size: 12.5px; font-weight: 500; color: var(--ed-ink-soft);
  padding: 6px 11px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.svc-mat__pills span:hover { background: rgba(0, 40, 104, 0.07); color: var(--theme-color); border-color: rgba(0, 40, 104, 0.18); }

.svc-mat-note { margin-top: clamp(22px, 2.6vw, 32px); max-width: 900px; }

/* ---- FAQ-style material accordion (native <details>; alloy lists stay in the DOM for SEO) ---- */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: clamp(22px, 4vw, 38px); } }
.faq-intro .ed-eyebrow { margin-bottom: 16px; }
.faq-intro .ed-h2 { margin-bottom: 18px; }
.faq-intro .ed-lead { margin-top: 0; }
@media (min-width: 901px) { .faq-intro { position: sticky; top: 96px; } }

/* Clean editorial list — hairline dividers, flat (no box, no shadow) */
.faq-list { border-top: 1px solid var(--ed-line); }
.faq-item { border-bottom: 1px solid var(--ed-line); }
.faq-item > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: clamp(18px, 2vw, 26px) clamp(4px, 1vw, 14px);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:focus-visible { outline: 3px solid rgba(0, 40, 104, 0.3); outline-offset: 3px; border-radius: 6px; }
.faq-q {
  margin: 0;
  font-family: var(--title-font); font-weight: 600; color: var(--ed-ink);
  font-size: clamp(0.92rem, 0.88rem + 0.2vw, 1.05rem); line-height: 1.4;
  transition: color 0.25s var(--ease);
}
.faq-item > summary:hover .faq-q, .faq-item[open] .faq-q { color: var(--theme-color); }
.faq-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--ed-line); display: grid; place-items: center;
  color: var(--theme-color); font-size: 12px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.faq-item > summary:hover .faq-icon { border-color: var(--theme-color); }
.faq-item[open] .faq-icon { background: var(--theme-color); border-color: var(--theme-color); color: #fff; }
.faq-icon i { transition: transform 0.4s var(--ease); }
.faq-item[open] .faq-icon i { transform: rotate(45deg); }

/* Smooth + creative collapse — silky height ease (grid-rows 0fr→1fr) with the
   padding synced (fully collapses), and the alloy pills spring in as a cascade.
   Content stays in the DOM (clipped) so it remains crawlable for SEO. */
.faq-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.52s cubic-bezier(0.33, 1, 0.68, 1);
}
.faq-item[open] > .faq-body { grid-template-rows: 1fr; }
.faq-body > .svc-mat__pills {
  overflow: hidden; min-height: 0; margin: 0;
  padding: 0 clamp(4px, 1vw, 14px);
  transition: padding 0.52s cubic-bezier(0.33, 1, 0.68, 1);
}
.faq-item[open] > .faq-body > .svc-mat__pills { padding-bottom: clamp(20px, 2.2vw, 28px); }

/* Cascade — each alloy pill springs into place when the panel opens */
.faq-item[open] .svc-mat__pills span { animation: faqPillIn 0.45s cubic-bezier(0.34, 1.45, 0.5, 1) backwards; }
@keyframes faqPillIn {
  0%   { opacity: 0; transform: translateY(9px) scale(0.92); }
  100% { opacity: 1; transform: none; }
}
.faq-item[open] .svc-mat__pills span:nth-child(1)  { animation-delay: 0.10s; }
.faq-item[open] .svc-mat__pills span:nth-child(2)  { animation-delay: 0.14s; }
.faq-item[open] .svc-mat__pills span:nth-child(3)  { animation-delay: 0.18s; }
.faq-item[open] .svc-mat__pills span:nth-child(4)  { animation-delay: 0.22s; }
.faq-item[open] .svc-mat__pills span:nth-child(5)  { animation-delay: 0.26s; }
.faq-item[open] .svc-mat__pills span:nth-child(6)  { animation-delay: 0.30s; }
.faq-item[open] .svc-mat__pills span:nth-child(7)  { animation-delay: 0.34s; }
.faq-item[open] .svc-mat__pills span:nth-child(8)  { animation-delay: 0.38s; }
.faq-item[open] .svc-mat__pills span:nth-child(9)  { animation-delay: 0.42s; }
.faq-item[open] .svc-mat__pills span:nth-child(10) { animation-delay: 0.46s; }
.faq-item[open] .svc-mat__pills span:nth-child(11) { animation-delay: 0.50s; }
.faq-item[open] .svc-mat__pills span:nth-child(12) { animation-delay: 0.54s; }
.faq-item[open] .svc-mat__pills span:nth-child(n+13) { animation-delay: 0.58s; }

@media (prefers-reduced-motion: reduce) {
  .faq-q, .faq-icon, .faq-icon i, .faq-body, .faq-body > .svc-mat__pills { transition: none !important; }
  .faq-item[open] .svc-mat__pills span { animation: none !important; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.ct-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(18px, 3vw, 40px); align-items: start; }
@media (max-width: 880px) { .ct-layout { grid-template-columns: 1fr; } }

.ct-info { display: grid; gap: clamp(12px, 1.4vw, 16px); }
.ct-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: #fff; border: 1px solid var(--ed-line); border-radius: var(--ed-r);
  padding: clamp(20px, 2.2vw, 26px);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.ct-item:hover { box-shadow: 0 18px 40px rgba(10, 27, 61, 0.08); border-color: #cfd8e8; }
.ct-item__ic {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--theme-color); color: #fff; font-size: 19px;
}
.ct-item h3 { font-family: var(--title-font); font-weight: 700; color: var(--muted); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 2px 0 6px; }
.ct-item p, .ct-item a { color: var(--ed-ink); font-size: 1.02rem; margin: 0; text-decoration: none; line-height: 1.5; font-weight: 500; }
.ct-item a:hover { color: var(--accent-color); }
.ct-item small { display: block; color: var(--ed-ink-soft); font-size: 0.88rem; margin-top: 4px; font-weight: 400; }

/* Form — premium card with a header, filled inputs */
.ct-form {
  background: #fff; border: 1px solid var(--ed-line); border-radius: var(--ed-r-lg);
  padding: clamp(26px, 3.2vw, 46px);
  box-shadow: 0 30px 70px rgba(10, 27, 61, 0.08);
}
.ct-form__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ct-form__head .ic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--theme-color), #0a3a86); color: #fff; font-size: 18px;
  box-shadow: 0 10px 22px rgba(0, 40, 104, 0.25);
}
.ct-form h2 { font-family: var(--title-font); color: var(--ed-ink); font-weight: 800; font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); margin: 0; line-height: 1.12; }
.ct-form > p { color: var(--ed-ink-soft); margin: 0 0 28px; line-height: 1.6; font-size: 0.97rem; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .ct-row { grid-template-columns: 1fr; } }
.ct-field { margin-bottom: 17px; }
.ct-field label, .ct-grouplabel { display: block; font-family: var(--title-font); font-weight: 600; font-size: 12px; color: var(--ed-ink-soft); margin-bottom: 8px; }

/* Filled inputs that outline + brighten on focus */
.ct-field input, .ct-field textarea, .ct-field select {
  width: 100%; font-family: inherit; font-size: 0.97rem; color: var(--ed-ink);
  padding: 14px 16px; border: 1.5px solid transparent; border-radius: 13px; background-color: #f2f4fa;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.ct-field input::placeholder, .ct-field textarea::placeholder { color: #9aa3b5; }
.ct-field input:hover, .ct-field textarea:hover, .ct-field select:hover { background-color: #eaeef6; }
.ct-field input:focus, .ct-field textarea:focus, .ct-field select:focus {
  outline: none; border-color: var(--theme-color); background-color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 40, 104, 0.10);
}
.ct-field textarea { resize: vertical; min-height: 128px; }
.ct-field select {
  padding-right: 42px; cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%230a1b3d' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 11px;
}
.ct-form .ac-btn { margin-top: 10px; width: 100%; }
.ct-form__note { text-align: center; color: var(--muted); font-size: 0.8rem; margin: 14px 0 0; }
.ct-form__note i { color: #16a34a; margin-right: 5px; }

/* Checkboxes */
.ct-grouplabel { margin-bottom: 10px; }
.ct-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .ct-checks { grid-template-columns: 1fr; } }
.ct-check {
  display: flex; align-items: center; gap: 11px; cursor: pointer; margin: 0;
  padding: 12px 14px; border: 1.5px solid transparent; border-radius: 12px; background: #f2f4fa;
  font-size: 0.92rem; color: var(--ed-ink-soft);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.ct-check input { width: 18px; height: 18px; accent-color: var(--theme-color); flex-shrink: 0; cursor: pointer; }
.ct-check:hover { background: #eaeef6; }
.ct-check:has(input:checked) { border-color: var(--theme-color); background: rgba(0, 40, 104, 0.06); color: var(--ed-ink); font-weight: 500; }

/* File upload */
.ct-file {
  position: relative; display: flex; align-items: center; gap: 13px; cursor: pointer; margin: 0;
  padding: 15px 16px; border: 1.5px dashed #cdd6e6; border-radius: 13px; background: #f2f4fa;
  color: var(--ed-ink-soft); font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.ct-file:hover { border-color: var(--theme-color); background: rgba(0, 40, 104, 0.04); }
.ct-file i { color: var(--theme-color); font-size: 16px; flex-shrink: 0; }
.ct-file__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-file input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.ct-hint { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 7px; }

/* Map — full-width band below the form */
.ct-map { margin-top: clamp(20px, 3vw, 38px); border-radius: var(--ed-r-lg); overflow: hidden; border: 1px solid var(--ed-line); }
.ct-map iframe { display: block; width: 100%; height: clamp(320px, 42vh, 460px); border: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .svc-tag, .svc-advcard, .svc-advcard::before, .svc-mat, .ct-item { transition: none !important; }
}
