/* MFC — inner pages: page intro, service blocks, steps, forms, contact, legal, project detail, gallery.
   Follows the home page rules: one title size, one glass button, sharp corners, alternating section colours. */

/* ───────── Page intro (inner pages) ───────── */
.pg-intro { padding: calc(var(--hdr-row) + env(safe-area-inset-top) + clamp(48px, 7vw, 112px)) 0 var(--section); }
.pg-intro__in { display: grid; gap: 24px; }
.pg-intro h1 { font-size: clamp(44px, 5.6vw, 104px); line-height: .98; letter-spacing: var(--track-display); font-weight: 300; margin: 0; max-width: 14ch; }
:root[dir="rtl"] .pg-intro h1 { line-height: 1.2; }
.pg-intro .t-lead { max-width: 40ch; }
@media (min-width: 840px) {
  .pg-intro__in { grid-template-columns: 7fr 5fr; align-items: end; column-gap: var(--gutter); }
}
/* Wide photo under the intro */
.pg-hero-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
@media (min-width: 840px) { .pg-hero-media { aspect-ratio: 21 / 9; } }
.pg-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.pg-band { padding: var(--section) 0; }

/* ───────── Items with photo (What we deliver) ───────── */
.items { display: grid; gap: 40px var(--gutter); }
@media (min-width: 640px) { .items { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .items--4 { grid-template-columns: repeat(4, 1fr); } }
.item { display: grid; gap: 20px; align-content: start; }
.item__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.item__media img { width: 100%; height: 100%; object-fit: cover; }
.item h3 { margin: 0; }
.item p { margin: 8px 0 0; }

/* ───────── Numbered steps ───────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); column-gap: var(--gutter); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(var(--cols, 4), 1fr); } }
.steps li { display: grid; gap: 12px; align-content: start; padding: 28px 0 32px; border-bottom: 1px solid var(--line); }
.steps__n { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps h3 { margin: 0; }
.steps p { margin: 0; max-width: 32ch; }

/* ───────── Statement band ───────── */
.pg-statement { font-size: clamp(26px, 2.8vw, 48px); line-height: 1.2; letter-spacing: var(--track-h2); font-weight: 300; margin: 0; max-width: 26ch; color: var(--title); }
:root[dir="rtl"] .pg-statement { line-height: 1.5; }

/* ───────── Split: text + photo ───────── */
.split { display: grid; gap: 32px; align-items: center; }
.split__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.split__text { display: grid; gap: 24px; justify-items: start; }
@media (min-width: 840px) {
  .split { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }
  .split__text { grid-column: 1 / span 5; }
  .split__media { grid-column: 7 / span 6; }
  .split--rev .split__text { grid-column: 8 / span 5; grid-row: 1; }
  .split--rev .split__media { grid-column: 1 / span 6; grid-row: 1; }
}

/* ───────── Forms (design only; sending is connected in the code stage) ───────── */
.form { display: grid; gap: 24px; }
.form__grid { display: grid; gap: 24px var(--gutter); }
@media (min-width: 840px) { .form__grid { grid-template-columns: 1fr 1fr; } .form__full { grid-column: 1 / -1; } }
.field { display: grid; gap: 10px; }
.field > span, .fieldset > legend { font-size: 14px; line-height: 1.3; color: var(--ink); padding: 0; }
.field small, .fieldset small { font-size: 13px; color: var(--muted); }
.req { color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 52px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: 0;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); -webkit-appearance: none; appearance: none;
}
.alt .input, .alt .select, .alt .textarea { background: var(--bg); }
.textarea { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
:root[data-theme="dark"] .input:focus, :root[data-theme="dark"] .select:focus, :root[data-theme="dark"] .textarea:focus { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.select-wrap { position: relative; }
.select-wrap svg { position: absolute; inset-inline-end: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; pointer-events: none; }
/* File picker: upload icon, label at the start, light dashed frame */
.file { position: relative; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border: 1px dashed color-mix(in srgb, var(--ink) 24%, transparent); background: var(--bg); cursor: pointer; transition: border-color .2s; }
.file:hover { border-color: var(--ink); }
.field > .file { padding: 0 16px; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file > span { display: inline-flex; flex: none; }
.file svg { width: 20px; height: 20px; }
.file > span:last-child { flex: 1; min-width: 0; font-size: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check span { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; font-size: 14px; color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent); background: var(--bg); transition: background-color .2s, color .2s, box-shadow .2s; }
.check input:checked + span { background: var(--navy); color: #fff; box-shadow: inset 0 0 0 1px var(--navy); }
.check input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--body); }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); flex: none; }
.consent a { color: var(--ink); }
.form__note { font-size: 13px; color: var(--muted); }
.form__done { display: none; padding: 32px; background: var(--surface); }
.form.is-done .form__done { display: grid; gap: 12px; }
.form.is-done > :not(.form__done) { display: none; }

/* Proposal steps */
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.stepper button { display: grid; gap: 8px; text-align: start; padding-top: 12px; font-size: 14px; color: var(--muted); border-top: 2px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.stepper button[aria-current="step"] { color: var(--ink); border-top-color: var(--navy); }
:root[data-theme="dark"] .stepper button[aria-current="step"] { border-top-color: #fff; }
.form-step { display: none; }
.form-step.is-on { display: grid; gap: 24px; }
.form-step__nav { display: flex; flex-wrap: wrap; gap: 12px; }

/* ───────── Contact list ───────── */
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list svg { width: 22px; height: 22px; margin-top: 2px; }
.contact-list b { display: block; font-weight: 400; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.contact-list a, .contact-list span { font-size: 16px; color: var(--ink); text-decoration: none; }
.two-col { display: grid; gap: 56px; }
@media (min-width: 840px) { .two-col { grid-template-columns: 7fr 5fr; column-gap: calc(var(--gutter) * 3); align-items: start; } }

/* ───────── Legal pages ───────── */
.legal { max-width: 760px; display: grid; gap: 40px; }
.legal__meta { font-size: 14px; color: var(--muted); }
.legal section { display: grid; gap: 14px; }
.legal h2 { font-size: clamp(20px, 1.6vw, 26px); line-height: 1.25; font-weight: 400; margin: 0; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--body); margin: 0; }
.legal ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: start; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
:root[dir="rtl"] .table th, :root[dir="rtl"] .table td { padding: 14px 0 14px 12px; }
.table th { font-weight: 400; color: var(--muted); font-size: 14px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-block: 1px solid var(--line); }
.switch input { width: 48px; height: 28px; accent-color: var(--navy); }

/* ───────── Project detail ───────── */
.pj-hero { position: relative; min-height: max(560px, 86svh); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy); isolation: isolate; }
.pj-hero__media { position: absolute; inset: 0; z-index: -2; }
.pj-hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--ease); }
.pj-hero.is-loaded .pj-hero__media img { transform: none; }
.pj-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(1, 14, 40, .45) 0%, rgba(1, 14, 40, .05) 30%, rgba(1, 14, 40, .85) 100%); }
.pj-hero__in { display: grid; gap: 20px; padding-bottom: clamp(32px, 5vw, 64px); }
.pj-hero h1 { font-size: clamp(44px, 5.6vw, 104px); line-height: .98; letter-spacing: var(--track-display); font-weight: 300; margin: 0; max-width: 14ch; }
:root[dir="rtl"] .pj-hero h1 { line-height: 1.2; }
.pj-hero p { margin: 0; font-size: 17px; color: rgba(255, 255, 255, .82); }
.pj-hero .glass-tag { justify-self: start; }
.facts { margin: 0; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); column-gap: var(--gutter); } }
@media (min-width: 1100px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts div { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 0; font-size: 18px; line-height: 1.35; }
.facts dd.is-tbc { color: var(--muted); }
.pj-about { display: grid; gap: 40px; }
@media (min-width: 840px) { .pj-about { grid-template-columns: 5fr 7fr; column-gap: var(--gutter); align-items: start; } }
/* Project description: plain text, no box */
.pj-desc { margin: 0; max-width: 52ch; font-size: clamp(17px, 1.2vw, 20px); line-height: 1.6; font-weight: 300; color: var(--muted); }

/* Gallery: first photo wide, then pairs; opens a lightbox */
.gallery { display: grid; gap: var(--gutter); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery > :first-child { grid-column: 1 / -1; } }
.gallery button { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.gallery > :first-child button { aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; background: rgba(0, 0, 0, .92); padding: 64px 16px; }
.lightbox.is-on { display: grid; }
.lightbox img { max-width: 100%; max-height: calc(100svh - 160px); object-fit: contain; }
.lightbox__bar { position: absolute; inset: auto 0 20px 0; display: flex; justify-content: center; align-items: center; gap: 16px; color: #fff; font-size: 14px; font-variant-numeric: tabular-nums; }
.lightbox .icon-btn { --g-bg: rgba(255, 255, 255, .12); --g-bg-hover: rgba(255, 255, 255, .22); --g-edge: rgba(255, 255, 255, .28); --g-ink: #fff; }
.lightbox__close { position: absolute; top: 16px; inset-inline-end: 16px; }

/* Next project */
.pj-next { display: grid; gap: 20px; text-decoration: none; color: inherit; }
.pj-next__media { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: var(--surface); }
.pj-next__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.pj-next:hover .pj-next__media img { transform: scale(1.03); }
.pj-next__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.pj-next__row .btn { flex: none; }

/* Required field left empty */
.input.is-error, .select.is-error, .textarea.is-error { border-color: #b42318; box-shadow: 0 0 0 1px #b42318; }
.consent input.is-error { outline: 2px solid #b42318; outline-offset: 2px; }

/* ───────── Contact: title and ways to reach us on one side, the form in a light card on the other ───────── */
.ct { padding: calc(var(--hdr-row) + env(safe-area-inset-top) + clamp(40px, 6vw, 96px)) 0 var(--section); }
.ct__in { display: grid; gap: 40px; }
.ct__side { display: grid; gap: 40px; align-content: space-between; }
.ct__head { display: grid; gap: 20px; }
.ct h1 { font-size: clamp(44px, 5.2vw, 96px); line-height: .98; letter-spacing: var(--track-display); font-weight: 300; margin: 0; max-width: 11ch; }
:root[dir="rtl"] .ct h1 { line-height: 1.2; }
.ct .t-lead { max-width: 34ch; }
.ct__reach { display: grid; gap: 28px; justify-items: start; }
.ct__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ct__list li { display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 1.4; }
.ct__list svg { width: 20px; height: 20px; flex: none; }
.ct__list a { color: var(--ink); text-decoration: none; transition: opacity .2s; }
.ct__list a:hover { opacity: .55; }
.ct__card { background: var(--surface); padding: clamp(20px, 3vw, 40px); }
.ct__card .form { gap: 20px; }
.ct__card .form__grid { gap: 18px var(--gutter); }
.ct__card .field { gap: 8px; }
.ct__card .field > span, .ct__card .fieldset > legend { font-size: 13px; }
.ct__card .input { height: 48px; font-size: 15px; border-color: transparent; }
.ct__card .textarea { min-height: 120px; font-size: 15px; border-color: transparent; }
.ct__card .check span { height: 40px; box-shadow: none; }
.ct__card .consent { font-size: 13px; }
@media (min-width: 840px) {
  .ct__in { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: stretch; }
  .ct__side { grid-column: 1 / span 5; }
  .ct__card { grid-column: 7 / span 6; }
}

/* Sector box: small, right under the city */
.pj-hero .pj-sector { height: 28px; padding: 0 10px; font-size: 12px; margin-top: -4px; }


/* Careers: one section only, starting under the header */
.cr { padding-top: calc(var(--hdr-row) + env(safe-area-inset-top) + var(--section)); }

.pj-desc.is-real { color: var(--body); }

/* About hero: keep the building in frame when the phone crops to 4:5 */
.ab-hero-img { object-position: 6% 50%; }
@media (min-width: 840px) { .ab-hero-img { object-position: 50% 50%; } }
