/* SENAYECIHAZ — contact page (W10)
   Idea: your request and our offer are the two pieces of the billet. The request sheet beside the form
   fills in as you type and its two halves close along the kerf; they lock when the request is complete. */

/* ---------- HERO ---------- */
.page-contact main { padding-top: 0; }
.ct-hero { position: relative; display: grid; min-height: max(40rem, 100svh); overflow: hidden; isolation: isolate; }
.ct-hero__media { position: absolute; inset: 0; z-index: -1; }
.ct-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
/* neutral scrim under the text (the one permitted gradient: legibility on a photo) */
.ct-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 36, 39, 0.86) 0%, rgba(11, 36, 39, 0.62) 44%, rgba(11, 36, 39, 0) 68%),
    linear-gradient(0deg, rgba(11, 36, 39, 0.9) 0%, rgba(11, 36, 39, 0) 30%);
}
.ct-hero__inner {
  display: grid; grid-template-rows: 1fr auto; gap: var(--sp-8);
  padding-top: calc(var(--header-h) + var(--sp-9)); padding-bottom: clamp(1.75rem, 1rem + 2vw, 3rem);
}
.ct-hero__text { align-self: center; max-width: 46rem; }
.ct-hero h1 { font-size: clamp(2.5rem, 1.05rem + 4.1vw, 5.25rem); line-height: 0.98; letter-spacing: -0.03em; max-width: 12.5em; }
.ct-hero__sub { margin-top: var(--sp-6); max-width: 36ch; color: var(--c-cream); }
.ct-hero .btn-row { margin-top: var(--sp-7); }
.ct-hero__facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; gap: var(--sp-3) clamp(1.5rem, 1rem + 3vw, 4.5rem);
  font-size: var(--fs-sm);
}
.ct-hero__facts li { display: flex; align-items: center; gap: 0.6rem; }
.ct-hero__facts .icon { width: 1.25rem; height: 1.25rem; flex: none; color: var(--c-copper-lt); }
.js:not(.reduce-motion) .ct-hero__facts li { animation: ct-rise 800ms var(--ease-out) both; }
.js:not(.reduce-motion) .ct-hero__facts li:nth-child(1) { animation-delay: 700ms; }
.js:not(.reduce-motion) .ct-hero__facts li:nth-child(2) { animation-delay: 770ms; }
.js:not(.reduce-motion) .ct-hero__facts li:nth-child(3) { animation-delay: 840ms; }
.js:not(.reduce-motion) .ct-hero__facts li:nth-child(4) { animation-delay: 910ms; }
@keyframes ct-rise { from { opacity: 0; transform: translateY(16px); } }
.ct-hero__k { color: var(--ink-2); margin-right: 0.25em; }

@media (max-width: 899px) {
  .ct-hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* tablet: the text column covers more of the picture, so the scrim runs further right */
@media (min-width: 768px) and (max-width: 1099px) {
  .ct-hero::after { background: linear-gradient(90deg, rgba(11, 36, 39, 0.9) 0 55%, rgba(11, 36, 39, 0) 85%), linear-gradient(0deg, rgba(11, 36, 39, 0.9) 0%, rgba(11, 36, 39, 0) 30%); }
  .ct-hero__media img { object-position: 78% 50%; }
}
@media (max-width: 767px) {
  .ct-hero { min-height: 0; grid-template-rows: auto auto; background: var(--c-night); }
  .ct-hero::after { display: none; }
  .ct-hero__media { position: relative; inset: auto; z-index: 0; order: 2; aspect-ratio: 4 / 4.4; }
  .ct-hero__inner { order: 1; padding-top: calc(var(--header-h) + var(--sp-7)); padding-bottom: var(--sp-7); gap: var(--sp-7); }
  .ct-hero h1 { font-size: clamp(2.25rem, 1.2rem + 5.2vw, 3rem); }
  .ct-hero .btn-row .btn { width: 100%; justify-content: center; }
  .ct-hero__facts { grid-template-columns: 1fr; gap: var(--sp-3); }
}

/* ---------- two-column sections (own grid: the shared lg-start-N + lg-N combination collapses to one column) ---------- */
.ct-cols { display: grid; gap: var(--sp-7) var(--gap); }
@media (min-width: 1100px) {
  .ct-cols { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: var(--sp-8); }
  .ct-cols__head { grid-column: 1 / -1; }
  .ct-cols--include .ct-cols__a { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
  .ct-cols--include .ct-cols__b { grid-column: 6 / span 7; }
  .ct-cols--details .ct-cols__a { grid-column: 1 / span 6; }
  .ct-cols--details .ct-cols__b { grid-column: 8 / span 5; }
  .ct-cols--faq .ct-cols__a { grid-column: 1 / span 4; }
  .ct-cols--faq .ct-cols__b { grid-column: 6 / span 7; }
}

/* ---------- WHAT TO INCLUDE ---------- */
.ct-include h2 { max-width: 13em; }
.ct-include__body { font-size: var(--fs-lead); line-height: 1.5; max-width: 34ch; }
.ct-include .link-arrow { display: inline-flex; }
.ct-include__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-7) var(--gap); align-content: start; }
.ct-include__list > div { display: grid; gap: var(--sp-3); align-content: start; }
.ct-include__list dt {
  position: relative; padding-top: calc(var(--m) * 1.2);
  font-family: var(--font-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 760;
  font-size: var(--fs-h3); line-height: 1.08; letter-spacing: -0.015em;
}
/* a small billet with one 45° corner — the mark's cut, used as the list marker */
.ct-include__list dt::before {
  content: ""; position: absolute; left: 0; top: 0; width: calc(var(--m) * 2.2); height: var(--kerf);
  background: var(--accent); clip-path: polygon(0 0, calc(100% - var(--kerf)) 0, 100% 100%, 0 100%);
}
.ct-include__list dd { color: var(--ink); max-width: 36ch; }
@media (max-width: 699px) { .ct-include__list { grid-template-columns: 1fr; gap: var(--sp-6); } }

/* ---------- RFQ ---------- */
.ct-rfq__head .lead { max-width: 44ch; }
.ct-rfq__grid { display: grid; gap: var(--sp-7) clamp(2rem, 1rem + 3vw, 5rem); align-items: start; }
@media (min-width: 1100px) { .ct-rfq__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr); } }

.ct-rfq__card {
  --bg: var(--c-sand); --surface: var(--c-sand-2); --field-bg: var(--c-white);
  background: var(--c-sand); padding: clamp(1.25rem, 0.6rem + 2.8vw, 3.5rem);
}
.rfq { gap: var(--sp-6); }
.rfq__top { display: grid; gap: var(--sp-4); }
.rfq__title { font-size: var(--fs-h3); }
.rfq__intro { color: var(--ink-2); max-width: 60ch; }
.rfq__noscript { padding: 1rem 1.25rem; background: var(--surface); font-weight: 550; }

/* progress: five billet segments, the current one copper */
.rfq-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.375rem; margin-top: var(--sp-3); }
.rfq-steps li { display: grid; gap: 0.6rem; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.rfq-steps li::before {
  content: ""; height: var(--kerf); background: color-mix(in srgb, var(--ink) 16%, transparent);
  clip-path: polygon(0 0, calc(100% - var(--kerf)) 0, 100% 100%, var(--kerf) 100%);
  transition: background-color var(--dur-2) ease;
}
.rfq-steps li.is-done::before { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.rfq-steps li[aria-current="step"]::before { background: var(--accent); }
.rfq-steps li[aria-current="step"] { color: var(--ink); }
.rfq__count { color: var(--ink-2); }
@media (min-width: 700px) { .rfq__count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (max-width: 699px) { .rfq-steps li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

.rfq-step { display: grid; gap: var(--sp-6); }
.js .rfq-step:not(.is-current) { display: none; }
.rfq-step__title { font-family: var(--font-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 760; font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.015em; outline: none; }
.rfq-step.is-entering { animation: rfq-in 420ms var(--ease-out) both; }
.rfq-step.is-entering.from-back { animation-name: rfq-in-back; }
@keyframes rfq-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes rfq-in-back { from { opacity: 0; transform: translateX(-28px); } }
.form-summary ul { margin-top: 0.5rem; padding-left: 1.1rem; font-weight: 500; }
.form-summary a { color: inherit; }

/* request type tiles */
.rfq-types__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.25rem; }
@media (max-width: 599px) { .rfq-types__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rfq-type { position: relative; display: block; }
.rfq-type input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rfq-type span {
  display: flex; align-items: flex-end; min-height: 5.25rem; padding: 0.9rem 1rem;
  background: var(--field-bg); box-shadow: inset 0 0 0 1.5px var(--line);
  font-family: var(--font-display); font-stretch: 112%; font-variation-settings: "wdth" 112; font-weight: 680; font-size: var(--fs-base); line-height: 1.15;
  transition: background-color var(--dur-1) ease, color var(--dur-1) ease, box-shadow var(--dur-1) ease, clip-path var(--dur-2) var(--ease-out);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
}
@media (hover: hover) and (pointer: fine) { .rfq-type input:hover + span { box-shadow: inset 0 0 0 1.5px var(--ink-2); } }
.rfq-type input:checked + span {
  background: var(--c-night); color: var(--c-cream); box-shadow: inset 0 calc(-1 * var(--kerf)) 0 var(--c-copper-lt);
  clip-path: polygon(0 0, calc(100% - 1.1rem) 0, 100% 1.1rem, 100% 100%, 0 100%);
}
.rfq-type input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.rfq-types.is-invalid .rfq-types__grid { outline: 2px solid var(--error); outline-offset: 4px; }
.rfq-type input:active + span { transform: scale(0.98); transition-duration: 100ms; }

.rfq-date input { max-width: 14rem; }

/* Incoterm route bar: who arranges each leg (we = SENAYECIHAZ as seller, you = buyer) */
.rfq-route { margin-top: var(--sp-3); padding: var(--sp-5); background: var(--surface); display: grid; gap: var(--sp-4); }
.rfq-route__name { font-weight: 650; }
.rfq-route__bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.375rem; }
.rfq-route__bar li { display: grid; gap: 0.5rem; align-content: start; font-size: var(--fs-xs); }
.rfq-route__bar li::before {
  content: ""; height: var(--kerf); background: color-mix(in srgb, var(--ink) 16%, transparent);
  transition: background-color var(--dur-2) ease;
}
.rfq-route__bar li[data-who="we"]::before { background: var(--c-copper); }
.rfq-route__bar li[data-who="you"]::before { background: var(--c-teal); }
.rfq-route__bar li:first-child::before { clip-path: polygon(var(--kerf) 0, 100% 0, 100% 100%, 0 100%); }
.rfq-route__bar li:last-child::before { clip-path: polygon(0 0, 100% 0, calc(100% - var(--kerf)) 100%, 0 100%); }
.rfq-route__leg { color: var(--ink-2); line-height: 1.35; }
.rfq-route__who { font-size: var(--fs-sm); font-weight: 650; color: var(--ink); min-height: 1.4em; }
@media (max-width: 599px) { .rfq-route__bar { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--sp-4); } }

.rfq-files { display: flex; gap: 0.75rem; align-items: flex-start; padding: var(--sp-4) var(--sp-5); background: var(--surface); }
.rfq-files .icon { width: 1.4rem; height: 1.4rem; flex: none; color: var(--accent); margin-top: 0.1rem; }

/* review */
.rfq-review__list { display: grid; gap: 0.5rem; }
.rfq-review__group { background: var(--surface); padding: var(--sp-5); display: grid; gap: var(--sp-4); }
.rfq-review__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.rfq-review__head h4 { font-size: var(--fs-base); }
.rfq-review__rows { display: grid; gap: 0.6rem; }
.rfq-review__rows > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; font-size: var(--fs-sm); }
.rfq-review__rows dt { color: var(--ink-2); }
.rfq-review__rows dd { font-weight: 550; white-space: pre-line; overflow-wrap: anywhere; }
.rfq-review__edit { font-size: var(--fs-sm); font-weight: 600; color: var(--accent); min-height: 2.75rem; padding-inline: 0.25rem; }
@media (max-width: 499px) { .rfq-review__rows > div { grid-template-columns: 1fr; gap: 0.15rem; } }

.rfq__nav { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding-top: var(--sp-2); }
.rfq__nav [data-back].is-hidden { visibility: hidden; }
.rfq__nav .btn--primary { margin-left: auto; }
.no-js .rfq__nav [data-back], .no-js .rfq__nav [data-next], .no-js .rfq-review { display: none; }
.no-js .rfq__nav [data-finish] { display: none !important; }

/* success: the request is ready to send (nothing has been sent) */
.rfq-done { display: grid; gap: var(--sp-5); outline: none; }
.rfq-done__title { font-size: var(--fs-h3); line-height: 1.12; max-width: 20em; }
.rfq-done__text {
  width: 100%; min-height: 16rem; padding: 1rem 1.25rem; resize: vertical; border: 0;
  background: var(--c-white); color: var(--ink); font-size: var(--fs-sm); line-height: 1.55; box-shadow: inset 0 0 0 1.5px var(--line);
}
.rfq-done__text:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.rfq-done__status { min-height: 1.5em; font-weight: 600; color: var(--c-teal); }
.rfq-done__more { --cluster: var(--sp-6); }
.rfq-done__more .linklike { text-decoration: none; min-height: 2.75rem; }
.rfq-done__more .link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.rfq-done.is-entering { animation: rfq-in 520ms var(--ease-out) both; }

/* ---------- LIVE REQUEST SHEET ---------- */
.ct-sheet {
  --ink: var(--c-cream); --ink-head: var(--c-cream); --ink-2: #B9C3BF; --accent: var(--c-copper-lt);
  --logo-u: var(--c-cream); --logo-l: var(--c-copper-lt);
  --p: 0;
  position: sticky; top: calc(var(--header-h) + 1.5rem);
  background: var(--c-night); color: var(--ink); padding: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  display: grid; gap: var(--sp-6);
}
.ct-sheet__head { display: flex; gap: var(--sp-5); align-items: center; }
.ct-sheet__mark { width: calc(var(--m) * 4.2); flex: none; overflow: visible; }
.ct-sheet__mark .sen-mark__u { fill: var(--logo-u); transform: translateX(calc((1 - var(--p)) * -56px)); transition: transform var(--dur-3) var(--ease-lock); }
.ct-sheet__mark .sen-mark__l { fill: var(--logo-l); transform: translateX(calc((1 - var(--p)) * 56px)); transition: transform var(--dur-3) var(--ease-lock); }
.ct-sheet.is-locked .ct-sheet__mark { animation: sheet-lock 600ms var(--ease-lock) 420ms both; }
@keyframes sheet-lock { 40% { transform: scale(1.06); } 100% { transform: none; } }
.ct-sheet__title { font-size: var(--fs-h3); line-height: 1.05; }
.ct-sheet__code { color: var(--ink-2); margin-top: 0.35rem; }
.ct-sheet__rows { display: grid; gap: 0.25rem; }
.ct-sheet__rows > div {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; padding: 0.7rem 0.9rem;
  background: rgba(233, 226, 211, 0.045); transition: background-color 700ms ease;
}
.ct-sheet__rows dt { font-size: var(--fs-xs); font-weight: 600; color: var(--c-copper-lt); padding-top: 0.15rem; }
.ct-sheet__rows dd { font-size: var(--fs-sm); font-weight: 550; overflow-wrap: anywhere; white-space: pre-line; }
.ct-sheet__rows dd.is-empty { color: var(--ink-2); font-weight: 400; }
.ct-sheet__rows > div.is-new { background: rgba(208, 138, 78, 0.2); transition-duration: 0ms; }
.ct-sheet__foot { display: grid; gap: 0.75rem; }
.ct-sheet__meter { height: var(--kerf); background: rgba(233, 226, 211, 0.14); overflow: hidden; }
.ct-sheet__meter span { display: block; height: 100%; background: var(--c-copper-lt); transform-origin: left; transform: scaleX(var(--p)); transition: transform var(--dur-3) var(--ease-lock); }
.ct-sheet__foot p { color: var(--ink-2); }
@media (max-width: 1099px) { .ct-sheet { position: relative; top: auto; } }

/* ---------- WHAT HAPPENS NEXT ---------- */
.ct-next h2 { max-width: 12em; }
.ct-next__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: var(--sp-9); }
.ct-next__list li { display: grid; gap: var(--sp-4); align-content: start; padding-right: var(--gap); }
.ct-next__seg {
  display: block; height: var(--kerf); margin-bottom: var(--sp-5); margin-right: calc(-1 * var(--gap) + 0.375rem);
  background: var(--c-copper-lt); transform-origin: left;
  clip-path: polygon(0 0, calc(100% - var(--kerf)) 0, 100% 100%, var(--kerf) 100%);
}
.ct-next__list li:first-child .ct-next__seg { clip-path: polygon(0 0, calc(100% - var(--kerf)) 0, 100% 100%, 0 100%); }
.ct-next__list h3 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); line-height: 1.05; max-width: 10em; }
.ct-next__list p { max-width: 30ch; color: var(--ink); }
@media (max-width: 899px) {
  .ct-next__list { grid-template-columns: 1fr; gap: var(--sp-7); margin-top: var(--sp-8); }
  .ct-next__seg { margin-right: 0; max-width: 8rem; }
}

/* ---------- CONTACT DETAILS ---------- */
.ct-details__list { display: grid; gap: 0.5rem; margin-top: var(--sp-7); }
.ct-details__list > div { display: grid; grid-template-columns: minmax(9rem, 1fr) minmax(0, 2.6fr); gap: var(--sp-4); align-items: baseline; padding: var(--sp-5) 0; }
.ct-details__list dt { display: flex; align-items: center; gap: 0.6rem; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.ct-details__list dt .icon { width: 1.25rem; height: 1.25rem; color: var(--accent); }
.ct-details__list dd { font-family: var(--font-display); font-stretch: 112%; font-variation-settings: "wdth" 112; font-weight: 650; font-size: var(--fs-h4); line-height: 1.3; }
.ct-details__list dd a { text-decoration: none; }
.ct-details__list dd a:hover { color: var(--accent); }
.ct-details__list > div { padding-inline: var(--sp-5); }
.ct-details__list > div:nth-child(odd) { background: var(--surface); }
@media (max-width: 599px) { .ct-details__list > div { grid-template-columns: 1fr; gap: 0.35rem; padding-inline: var(--sp-4); } }
.ct-company { --ink-head: var(--c-copper-lt); margin-top: var(--sp-8); padding: var(--sp-6); background: var(--c-night); color: var(--c-cream); display: grid; gap: var(--sp-4); }
.ct-company h3 { font-size: var(--fs-h4); font-family: var(--font-text); font-weight: 650; color: var(--c-copper-lt); letter-spacing: 0; }
.ct-company p { font-size: var(--fs-lead); line-height: 1.45; max-width: 46ch; }
.ct-map__img { --frame-kerf: var(--c-sand); }
.ct-map__img { --kx: 86%; --ka: 18; }   /* keep the kerf at the frame edge, in the sky */
.ct-map h3 { font-size: var(--fs-h3); }
.ct-map__link .link-arrow { display: inline-flex; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.ct-faq h2 { max-width: 9em; }
.ct-faq__list { display: grid; gap: 0.5rem; }
.ct-faq__item { background: var(--surface); }
.ct-faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-5); list-style: none; cursor: pointer;
  padding: var(--sp-5) var(--sp-6); min-height: 4rem;
  font-family: var(--font-display); font-stretch: 112%; font-variation-settings: "wdth" 112; font-weight: 680; font-size: var(--fs-h4); line-height: 1.25;
}
.ct-faq__item summary::-webkit-details-marker { display: none; }
.ct-faq__item summary .icon { width: 1.4rem; height: 1.4rem; flex: none; color: var(--accent); transition: transform var(--dur-2) var(--ease-out); }
.ct-faq__item[open] summary .icon { transform: rotate(45deg); }
.ct-faq__item summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .ct-faq__item summary:hover { color: var(--accent); } }
.ct-faq__a { padding: 0 var(--sp-6) var(--sp-6); max-width: 62ch; }
.ct-faq__item[open] .ct-faq__a { animation: faq-open 320ms var(--ease-out) both; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .rfq-step.is-entering, .rfq-done.is-entering, .ct-faq__item[open] .ct-faq__a { animation: rfq-fade 200ms ease both; }
  .ct-sheet.is-locked .ct-sheet__mark { animation: none; }
  .ct-sheet__mark .sen-mark__u, .ct-sheet__mark .sen-mark__l, .ct-sheet__meter span { transition-duration: 0ms; }
}
@keyframes rfq-fade { from { opacity: 0; } }
