/* Navigation, project catalogue and gallery presentation. */
:root {
  --paper: #f5f6f5;
  --ink: #152937;
  --width: 1280px;
}
body { line-height: 1.5; }
.wrap { width: min(var(--width), calc(100% - 96px)); }
section, article, #catalogue, [id^="retail-"] { scroll-margin-top: 100px; }
.site-header { position: sticky; top: 0; z-index: 20; background: #0b1b2bf5; backdrop-filter: blur(16px); }
.nav { min-height: 82px; }
.site-nav a { padding-block: 16px; }
.brand b { letter-spacing: .1em; }
.nav-cta, .button, .menu { border-radius: 4px; }
.hero { min-height: 640px; }
.hero-inner { padding: 100px 0 80px; }
.hero-visual { background-image: linear-gradient(90deg, #0b192df5 3%, #0b192dd9 40%, #0b192d40 100%), url(media/hero.webp); }
h1 { max-width: 1000px; font-size: clamp(40px, 5.7vw, 80px); line-height: 1.08; letter-spacing: -.055em; margin-block: 25px; }
.hero-copy { max-width: 550px; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px 30px; align-items: center; }
.hero .button { padding: 15px 23px; }
.hero-secondary { font-size: 14px; padding-block: 10px; border-bottom: 1px solid #a2bdcc70; }
.hero-secondary span { margin-left: 12px; }
.hero-foot { padding-block: 22px; }
.services { padding-block: 76px; }
.section-title h2, .contact h2 { letter-spacing: -.045em; }
.service { border-radius: 8px; }
.service-content { padding: 36px; }
.service .section-index { font-size: 10px; }
.concepts { background: #eef1f1; padding-block: 84px; }
.concepts .split { align-items: center; margin-bottom: 30px; }
.concepts .split > p { max-width: 410px; line-height: 1.7; }
.catalogue-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.catalogue-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.catalogue-filters button { min-height: 44px; border: 1px solid #c7d2d7; border-radius: 4px; padding: 10px 17px; background: transparent; color: #304c5d; font-size: 13px; }
.catalogue-filters button[aria-pressed="true"] { background: #173748; border-color: #173748; color: white; }
.catalogue-count { font-size: 12px; color: #496171; white-space: nowrap; }
.catalogue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-preview { display: flex; flex-direction: column; min-width: 0; border: 1px solid #d6dfe1; border-radius: 8px; overflow: hidden; background: white; transition: border-color .2s, box-shadow .2s; }
.project-preview:hover, .project-preview[aria-current] { border-color: #45798e; box-shadow: 0 10px 30px #1a3a4a12; }
.project-image { position: relative; overflow: hidden; background: #cbd5da; aspect-ratio: 5/3; }
.project-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.project-preview:hover img { transform: scale(1.025); }
.project-open { position: absolute; bottom: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; background: #ffffffed; color: #193745; border-radius: 50%; font-size: 19px; }
.project-description { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.project-category { color: #55717d; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.project-description h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.035em; margin: 8px 0 14px; }
.project-size { font-size: 26px; font-weight: 700; letter-spacing: -.025em; color: #193c50; }
.project-detail { margin-top: 3px; color: #526875; font-size: 12px; line-height: 1.6; }
.project-action { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; margin-top: auto; padding-top: 20px; color: #2e596d; }
.project-preview[data-category="urban"] { grid-column: 1/-1; display: grid; grid-template-columns: 1.6fr 1fr; }
.project-preview[data-category="urban"] .project-image { aspect-ratio: 2.5/1; }
.project-preview[data-category="urban"] .project-description { padding: 28px; }
.catalogue-note { color: #526875; font-size: 12px; margin-block: 20px 28px; max-width: 800px; }
.technical-overview { border-top: 1px solid #c5d3d9; padding-block: 18px; }
.technical-overview > summary { cursor: pointer; color: #375665; font-size: 14px; font-weight: 600; }
.technical-overview[open] > summary { margin-bottom: 20px; }
.technical-overview .wall-spec { background: #e8eff1; }
.concept-card { padding: 32px; border: 1px solid #c9d7dd; border-radius: 8px; box-shadow: 0 12px 45px #203b4c08; }
.back-catalogue { display: inline-block; color: #4e7182; font-size: 12px; margin-bottom: 22px; padding-block: 6px; }
.concept-head { align-items: center; padding-bottom: 22px; }
.concept-head h3 { font-size: clamp(24px, 3vw, 37px); line-height: 1.16; }
.concept-size { font-size: 28px; }
.concept-metrics { margin-block: 24px; gap: 24px; }
.concept-metrics div { padding-left: 15px; border-color: #b5cdd8; }
.concept-metrics dd { line-height: 1.55; }
.concept-number { font-size: 10px; letter-spacing: .08em; }
.concept-gallery { grid-template-columns: minmax(0, 1fr) 230px; gap: 16px 20px; }
.phase-visual, .retail-picture, .grocery-picture, .urban-hero { border-radius: 6px; position: relative; }
.phase-image, .retail-picture img, .grocery-picture img, .urban-hero > img { object-fit: contain; }
.phase-select { border-radius: 4px; min-height: 46px; padding: 10px 12px; background: #f4f7f8; border-color: #dbe4e8; }
.phase-select span { font-size: 11px; font-variant-numeric: tabular-nums; }
.phase-select[aria-pressed="true"] { background: #193f52; border-color: #193f52; }
.image-mode, .retail-tabs button, .grocery-controls button { border-radius: 4px; min-height: 44px; }
.phase-summary { max-width: 105ch; padding-block: 5px; line-height: 1.75; }
.phase-tag, .retail-picture figcaption, .grocery-picture figcaption { border-radius: 3px; max-width: calc(100% - 22px); }
.crane-feature { background: #f0f5f7; border-left-color: #9bb9c6; border-radius: 0 4px 4px 0; }
.concept-plan { padding-bottom: 2px; }
.concept-plan summary { min-height: 44px; padding-block: 14px; line-height: 1.5; }
.retail-view { grid-template-columns: minmax(0, 1fr) 230px; gap: 20px; }
.retail-caption p { line-height: 1.65; }
.grocery-gallery { margin-top: 20px; }
.grocery-controls { gap: 8px; }
.urban-thumb { border-radius: 4px; }
.project-footer { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-top: 1px solid #d7e1e5; margin-top: 26px; padding-top: 22px; }
.project-footer p { color: #506b78; font-size: 13px; }
.project-request { background: #173c50; color: white; }
.project-request:hover { background: #28576e; }
.zoom-image { position: absolute; z-index: 2; top: 12px; right: 12px; min-height: 40px; border: 1px solid #ffffff80; border-radius: 4px; color: #193748; background: #fffffff0; font-size: 12px; font-weight: 700; padding: 8px 12px; box-shadow: 0 2px 8px #0002; }
.image-viewer { width: min(1500px, 96vw); max-width: 96vw; max-height: 96dvh; padding: 20px; border: 1px solid #446072; border-radius: 8px; color: #e9f1f5; background: #0e2331; }
.image-viewer::backdrop { background: #07131deb; backdrop-filter: blur(6px); }
body:has(.image-viewer[open]) { overflow: hidden; }
.viewer-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 18px; }
.viewer-toolbar p { font-size: 18px; font-weight: 700; }
.viewer-close { color: #e9f1f5; background: transparent; border: 1px solid #5b7687; border-radius: 4px; padding: 10px 16px; min-height: 44px; white-space: nowrap; flex-shrink: 0; }
.viewer-stage { position: relative; display: grid; place-items: center; background: #091a26; min-height: 140px; }
.viewer-stage img { display: block; width: 100%; height: auto; max-height: min(68dvh, 850px); object-fit: contain; }
.viewer-prev, .viewer-next { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 48px; background: #102d40eb; border: 1px solid #aac4d0; border-radius: 4px; color: white; font-size: 24px; }
.viewer-prev { left: 12px; }
.viewer-next { right: 12px; }
.viewer-caption { margin-top: 14px; color: #b9cedb; line-height: 1.5; font-size: 13px; }
.request-layout { grid-template-columns: 1fr 1.1fr; gap: 60px; }
.brief { border-radius: 6px; padding: 30px; }
.field { margin-bottom: 18px; }
.field input, .field select, .field textarea, .result textarea { border-radius: 4px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result-actions .button { font-size: 12px; }
.image-error { padding: 30px; color: #e3edf3; text-align: center; }
@media (max-width: 1080px) {
  .wrap { width: calc(100% - 48px); }
  .site-nav { gap: 18px; font-size: 13px; }
  .catalogue-grid { gap: 16px; }
  .project-description { padding: 18px; }
  .project-description h3 { font-size: 20px; }
  .concept-gallery, .retail-view { grid-template-columns: minmax(0, 1fr) 210px; }
}
@media (max-width: 800px) {
  .nav-cta { display: none; }
  .catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalogue-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .concept-card { padding: 22px; }
  .concept-gallery, .retail-view { grid-template-columns: 1fr; }
  .phase-controls, .retail-controls { display: flex; overflow-x: auto; padding-bottom: 8px; gap: 8px; }
  .phase-controls .phase-select, .retail-controls .phase-select { flex: 0 0 180px; min-height: 56px; }
  .request-layout { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .nav { min-height: 68px; }
  section, article, #catalogue, [id^="retail-"] { scroll-margin-top: 84px; }
  .hero { min-height: 560px; }
  .hero-inner { padding: 64px 0 52px; }
  h1 { font-size: clamp(34px, 8.2vw, 47px); }
  .hero-copy { font-size: 15px; }
  .hero-actions { gap: 12px 20px; }
  .hero-foot { font-size: 11px; padding-block: 16px; }
  .services, .concepts { padding-block: 52px; }
  .service-content { padding: 26px; }
  .catalogue-grid { grid-template-columns: 1fr; }
  .catalogue-filters { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
  .catalogue-filters button { flex-shrink: 0; padding-inline: 13px; }
  .catalogue-toolbar { min-width: 0; }
  .project-preview[data-category="urban"] { display: flex; }
  .project-preview[data-category="urban"] .project-image { aspect-ratio: 5/3; }
  .project-preview[data-category="urban"] .project-description { padding: 20px; }
  .project-description { padding: 20px; }
  .project-description h3 { font-size: 23px; }
  .project-action { padding-top: 16px; }
  .concept-card { padding: 16px; }
  .concept-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .concept-head h3 { font-size: 27px; }
  .concept-size { font-size: 24px; }
  .concept-metrics { grid-template-columns: 1fr; gap: 13px; margin-block: 20px; }
  .concept-metrics dt { font-size: 12px; }
  .concept-metrics dd { font-size: 14px; margin-top: 2px; }
  .image-view-buttons { display: flex; flex-wrap: wrap; }
  .image-mode { font-size: 12px; }
  .phase-tag { font-size: 8px; }
  .zoom-image { top: 8px; right: 8px; min-height: 36px; font-size: 11px; padding: 7px 9px; }
  .project-footer { align-items: stretch; flex-direction: column; }
  .brief { padding: 20px; }
  .image-viewer { padding: 12px; }
  .viewer-toolbar { gap: 12px; }
  .viewer-toolbar p { font-size: 15px; }
  .viewer-close { font-size: 12px; padding-inline: 10px; }
  .viewer-stage img { max-height: 58dvh; }
  .viewer-prev, .viewer-next { width: 36px; height: 44px; }
  .viewer-prev { left: 5px; }
  .viewer-next { right: 5px; }
  .viewer-caption { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Direct contact links in the header and above the existing request form. */
.site-header .nav { min-height: 70px; }
.header-contact { display: flex; justify-content: flex-end; align-items: center; min-height: 27px; padding-bottom: 7px; color: #d9e4f1; font-size: 13px; }
.header-contact a, .contacts-strip a { text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.header-contact a:hover { color: var(--sky); }
.contacts-strip { padding-block: 26px; background: #e7f0f7; color: #152937; }
.contacts-strip-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 28px; }
.contacts-strip h2 { font-size: clamp(23px, 3vw, 34px); }
.contacts-strip a { font-weight: 700; }
@media (max-width: 720px) {
  .site-header .nav { min-height: 56px; }
  .header-contact { justify-content: flex-start; }
}
