/* Keskin home: hero with the drawing, rating band, services bento, how it works, reviews, areas, request form. */

.section { padding-block: clamp(64px, 8vw, 112px); }
.section__head { margin-bottom: clamp(28px, 4vw, 44px); }
.section__head--centre { text-align: center; }
.section__title { font-size: clamp(1.75rem, 1.15rem + 2.2vw, 2.625rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.section__title .tbc { font-size: 0.42em; vertical-align: 0.35em; letter-spacing: 0; }
.section__lede { max-width: 56ch; margin-top: 12px; color: var(--ink-2); text-wrap: pretty; }

/* ------------------------------------------------------------------ Drawings */
.drawing { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.drawing text { fill: var(--ink-2); stroke: none; font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; }
.dwg__slab { fill: var(--tint); }
.dwg__hatch, .dwg__courses { stroke-width: 0.9; stroke: color-mix(in srgb, var(--ink) 45%, transparent); }
.drawing rect { fill: var(--surface); }
.drawing .dwg__slab { fill: var(--tint); }
.dwg__floor { stroke-width: 1.4; }
.dwg__beam rect { fill: var(--surface); stroke: var(--accent); stroke-width: 2.4; }
.dwg__beam path { stroke: var(--accent); stroke-width: 1.2; }
.dwg__beam text { fill: var(--accent); font-size: 10.5px; letter-spacing: 0.14em; }
.dwg__pads rect { fill: var(--tint); }
.dwg__pads path { stroke-width: 1; }
.dwg__notes path { stroke: var(--ink-2); stroke-width: 1; }
.drawing .dwg__big { fill: var(--ink); font-size: 15px; letter-spacing: 0.16em; }
.dwg__red { stroke: var(--accent); stroke-width: 2.2; }
.drawing rect.dwg__red { fill: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.dwg__thin { stroke-width: 1; stroke: var(--ink-2); }

/* The beam and its padstones are lowered into place once, on load (transform and opacity only). */
@media (prefers-reduced-motion: no-preference) {
  .js .dwg__loads { animation: dwg-fade 0.5s ease-out 0.1s both; }
  .js .dwg__steel { animation: dwg-lower 0.9s var(--ease) 0.3s both; }
  .js .dwg__notes { animation: dwg-fade 0.6s ease-out 1s both; }
}
@keyframes dwg-lower { from { opacity: 0; transform: translateY(-48px); } }
@keyframes dwg-fade { from { opacity: 0; } }

/* ------------------------------------------------------------------ Hero */
/* A faint blueprint grid (28px, with a stronger line every fifth) fading out towards the bottom. */
.hero { position: relative; isolation: isolate; padding-block: clamp(32px, 5vw, 80px) clamp(28px, 4vw, 64px); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px), linear-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1px); background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px; background-position: center top; mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.25rem, 1.5rem + 2.9vw, 3.625rem); font-weight: 800; line-height: 1.03; letter-spacing: -0.03em; text-wrap: balance; }
.hero__lede { max-width: 34ch; margin-top: 20px; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--ink-2); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__drawing { justify-self: center; width: 100%; max-width: 560px; padding: clamp(12px, 2vw, 24px); border: 1px solid var(--line); border-radius: var(--r-card); background: color-mix(in srgb, var(--surface) 80%, transparent); box-shadow: var(--shadow); }
@media (max-width: 61.99rem) {
  .hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 28px; }
  .hero__title { font-size: clamp(2.25rem, 1rem + 3.4vw, 3rem); }
}
@media (max-width: 47.99rem) {
  .hero { padding-top: 28px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__drawing { justify-self: center; }
  .hero__lede { margin-top: 14px; }
  .hero__actions { display: grid; margin-top: 24px; }
  .hero__actions .btn { width: 100%; }
  /* Small on phones, so the rating band below still lands on the first screen. */
  .hero__drawing { max-width: 270px; padding: 10px; }
}

/* ------------------------------------------------------------------ Rating band */
.proof { background: var(--surface); border-block: 1px solid var(--line); }
.proof__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 18px; }
.proof__score { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-weight: 600; }
.proof__num { font-size: 1.625rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.proof__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; }

/* ------------------------------------------------------------------ Services (bento, five cells) */
/* Desktop: wall removal tall on the start side, steel calculations wide and dark, surveys and extensions
   beneath it, building-control plans as a strip across the bottom. */
.services__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "walls steels steels" "walls surveys extensions" "bc bc bc"; gap: 16px; }
.service { position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.5vw, 32px); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.service--walls { grid-area: walls; background-color: var(--tint); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.service--steels { grid-area: steels; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; column-gap: 28px; background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.service--surveys { grid-area: surveys; }
.service--extensions { grid-area: extensions; }
.service--building-control { grid-area: bc; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 20px; }
.service__visual { margin-bottom: 8px; }
.service--walls .service__visual { margin-block: auto 18px; }
.service--steels .service__visual { grid-column: 2; grid-row: 1 / -1; align-self: center; margin: 0; }
.service--building-control .service__visual { grid-row: 1 / 3; margin: 0; }
.service__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-ui); background: var(--tint); color: var(--accent); }
.service__icon .icon { width: 28px; height: 28px; }
.service__title { font-size: 1.25rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.service--walls .service__title, .service--steels .service__title { font-size: 1.5rem; }
.service__text { color: var(--ink-2); max-width: 46ch; }
.service--steels .service__text { color: var(--on-dark-2); }
.service__price { margin-top: auto; padding-top: 6px; }
.service--building-control .service__title { grid-column: 2; }
.service--building-control .service__text { grid-column: 2; }
.service--building-control .service__price { grid-column: 3; grid-row: 1 / 3; margin: 0; padding: 0; }
.service--steels .tbc { color: var(--on-dark); border-color: var(--on-dark-2); }
.drawing--wall { width: 100%; max-width: 380px; }
.drawing--beam { width: clamp(120px, 12vw, 170px); stroke: var(--on-dark-2); }
.service--steels .dwg__red { stroke: var(--on-dark); fill: var(--accent); }
.service--steels .dwg__thin { stroke: var(--on-dark-2); }
@media (max-width: 61.99rem) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "walls walls" "steels steels" "surveys extensions" "bc bc"; }
}
@media (max-width: 47.99rem) {
  .services__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "walls" "steels" "surveys" "extensions" "bc"; }
  .service--steels { grid-template-columns: minmax(0, 1fr); }
  .service--steels .service__visual { grid-column: 1; grid-row: auto; justify-self: start; }
  .drawing--beam { width: 110px; }
  .service--building-control { display: flex; align-items: stretch; }
  .service--building-control .service__price { margin-top: auto; padding-top: 6px; }
}

/* ------------------------------------------------------------------ How it works: steps on a beam */
.how__beam { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 14px; }
.how__beam::before { content: ""; position: absolute; inset-inline: calc(100% / 6 - 20px); top: 0; height: 14px; border-radius: 3px; background: var(--accent); box-shadow: inset 0 3px 0 rgb(255 255 255 / 0.18), inset 0 -3px 0 rgb(0 0 0 / 0.12); }
.step { display: grid; align-content: start; justify-items: center; text-align: center; }
.step__support { width: 40px; height: 28px; fill: var(--tint); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.step__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-top: 18px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--accent); }
.step__icon .icon { width: 26px; height: 26px; }
.step__title { max-width: 22ch; margin-top: 16px; font-size: 1.25rem; font-weight: 800; line-height: 1.3; text-wrap: balance; }
.step__text { max-width: 34ch; margin-top: 8px; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 61.99rem) {
  /* Vertical: the beam becomes a column on the start side, each step bearing on it. */
  .how__beam { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 0 0 0 34px; }
  .how__beam::before { inset: 4px auto 4px 0; width: 12px; height: auto; }
  .step { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; justify-items: start; text-align: start; }
  .step__support { display: none; }
  .step__icon { grid-row: 1 / 3; margin-top: 0; }
  .step__title { margin-top: 2px; max-width: none; }
  .step__text { max-width: 52ch; }
}

/* ------------------------------------------------------------------ Reviews (centred) */
.reviews__inner { display: grid; justify-items: center; }
.reviews__score { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; margin-top: 14px; font-weight: 600; color: var(--ink-2); }
.reviews__num { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.reviews__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 960px; }
.quote figure { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; height: 100%; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); text-align: center; }
.quote blockquote { font-size: 1.25rem; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; text-wrap: balance; }
.quote--lead { grid-column: 1 / -1; }
.quote--lead figure { box-shadow: var(--shadow); }
.quote--lead blockquote { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); line-height: 1.3; }
.quote figcaption { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 0.9375rem; font-weight: 700; color: var(--ink-2); }
.stars--small .icon { width: 1em; height: 1em; }
.reviews__more { margin-top: 28px; }
@media (max-width: 47.99rem) {
  .reviews__list { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ Areas */
.areas__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.areas__map { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.areas__map img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.areas__map figcaption { inset: auto auto 8px 8px; }
.areas__text .section__head { margin-bottom: 20px; }
.areas__list { display: flex; flex-wrap: wrap; gap: 10px; }
.areas__list li { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-ui); background: var(--surface); font-weight: 700; }
.areas__note { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin-top: 22px; color: var(--ink-2); }
@media (max-width: 61.99rem) {
  .areas__inner { grid-template-columns: minmax(0, 1fr); }
  .areas__text { order: -1; }
}

/* ------------------------------------------------------------------ Request form */
.request__inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
/* On desktop the heading and the direct contacts stay in view beside the form while it is filled in. */
@media (min-width: 62rem) {
  .request__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}
.request__direct { display: grid; gap: 14px; margin-top: 28px; font-weight: 600; }
.request__direct li { display: flex; align-items: center; gap: 12px; }
.request__direct .icon { color: var(--accent); }
.request__card { padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 6px; align-content: start; }
.field__label { font-weight: 700; }
.field__opt { font-weight: 500; color: var(--ink-2); }
.field__hint { margin-top: -2px; font-size: 0.9375rem; color: var(--ink-2); }
.input { width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid #7a869e; border-radius: var(--r-ui); background: var(--surface); }
.input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 0; border-color: var(--accent); }
.select { appearance: none; padding-inline-end: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%2314213a' d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
/* The job-type dropdown. Where the browser supports a styleable native select (appearance: base-select,
   Chrome and Edge 135+), the closed field shows the chosen job with its icon and the list opens as a card:
   one row per job, icon, label, a red tick on the chosen one, rows highlighting under the finger or the
   keyboard. It stays a real <select> (keyboard, screen readers, autofill, form reset all native). Other
   browsers show the plain native select above, with its text only. */
@supports (appearance: base-select) {
  .select, .select::picker(select) { appearance: base-select; }
  .select { display: flex; align-items: stretch; padding: 0; background-image: none; cursor: pointer; }
  /* Taps go to the select itself (the button only draws the closed field), so the whole field is one target. */
  .select__button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 47px; padding: 0 14px; border: 0; background: transparent; font: inherit; font-weight: 600; color: inherit; text-align: start; pointer-events: none; }
  .select::picker-icon { display: none; }
  .select selectedcontent { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; white-space: nowrap; }
  .select selectedcontent span { overflow: hidden; text-overflow: ellipsis; }
  .select selectedcontent .icon { color: var(--accent); }
  .select:has(.select__placeholder:checked) selectedcontent { font-weight: 500; color: var(--ink-2); }
  .select__caret { margin-inline-start: auto; color: var(--ink); transition: rotate 0.2s var(--ease); }
  .select:open .select__caret { rotate: 180deg; }
  .select:open { border-color: var(--accent); }
  .select::picker(select) { margin-block: 6px; padding: 6px; max-height: min(430px, 60dvh); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--ink); box-shadow: 0 2px 4px rgb(20 33 58 / 0.08), 0 18px 44px rgb(20 33 58 / 0.18); opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top center; transition: opacity 0.18s ease-out, transform 0.22s var(--ease), display 0.22s allow-discrete, overlay 0.22s allow-discrete; }
  .select:open::picker(select) { opacity: 1; transform: none; }
  @starting-style { .select:open::picker(select) { opacity: 0; transform: translateY(-6px) scale(0.98); } }
  .select option { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: var(--r-ui); font-weight: 600; cursor: pointer; }
  .select option .icon { width: 22px; height: 22px; color: var(--ink-2); }
  .select option:hover, .select option:focus-visible { background: var(--tint); outline: none; }
  .select option:checked { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); color: var(--accent); }
  .select option:checked .icon { color: var(--accent); }
  .select option::checkmark { order: 3; margin-inline-start: auto; color: var(--accent); font-weight: 800; }
  .select option + option { margin-top: 2px; }
}
.field.is-invalid .input, .field.is-invalid .upload { border-color: var(--error); }
.field__error { display: flex; align-items: center; gap: 6px; font-size: 0.9375rem; font-weight: 700; color: var(--error); }
.field__error::before { content: "!"; display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--error); color: var(--on-accent); font-size: 0.75rem; }
.upload { display: inline-flex; align-items: center; justify-self: start; gap: 10px; min-height: 48px; padding: 10px 18px; border: 1.5px dashed #7a869e; border-radius: var(--r-ui); background: var(--paper); font-weight: 700; cursor: pointer; }
.upload:hover { border-color: var(--ink); }
.upload .icon { color: var(--accent); }
.upload__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.field--photos:has(.upload__input:focus-visible) .upload { outline: 3px solid var(--accent); outline-offset: 3px; }
.upload__list { display: grid; gap: 8px; }
.upload__list:empty { display: none; }
.upload__item { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: var(--r-ui); background: var(--paper); font-size: 0.9375rem; }
.upload__item .icon { color: var(--ink-2); }
.upload__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.upload__size { margin-inline-start: auto; color: var(--ink-2); white-space: nowrap; }
.upload__remove { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: var(--r-ui); background: transparent; }
.upload__remove:hover { background: var(--tint); }
.upload__empty { font-size: 0.9375rem; color: var(--ink-2); }
.form__fail { padding: 12px 16px; border-radius: var(--r-ui); background: color-mix(in srgb, var(--error) 8%, var(--surface)); border: 1.5px solid var(--error); color: var(--error); font-weight: 600; }
.form__submit { justify-self: start; }
.spinner { display: none; }
.form.is-sending .spinner { display: block; animation: spin 0.8s linear infinite; }
.form.is-sending .form__submit { pointer-events: none; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__privacy, .form__note { font-size: 0.875rem; color: var(--ink-2); }
.form__done { display: grid; justify-items: center; gap: 12px; padding-block: 32px; text-align: center; }
.form__done:focus { outline: none; }
.form__done-icon { width: 56px; height: 56px; color: var(--accent); }
.form__done-title { font-size: 1.5rem; font-weight: 800; }
.form__done p { max-width: 46ch; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .form__done:not([hidden]) { animation: dwg-fade 0.4s ease-out; }
}
@media (max-width: 61.99rem) {
  .request__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 47.99rem) {
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .form__submit { width: 100%; }
}
